body.no-scroll {
  overflow-y: hidden;
  padding-right: 16px;
}

.screen {

    display: grid;
    font-size: 1.4rem;
    grid-template-columns: auto;
    grid-template-rows: auto;

    height: 100vh;
    
    opacity: 0.1;
    overflow: hidden;
    transition: all 1s;
    position: relative;

}


footer#bottombar {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

footer#bottombar.sticky-bottom{
    position: sticky;
}
.show {
    opacity: 1;
    transition: all 1s;
}

.darktheme {
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: left;

}

.videothumb{
    max-width: 80%;
    height: auto;
    text-align:center;
    margin:auto;
    cursor: pointer;
}
.debugoverlay{
    z-index: 2000;
    border-style:solid;
    color:red;
    height: 70vh;
    top:0px;
    left:0px;
    right:0px;
    pointer-events: none;
    position:fixed;
}
.hoverthumb{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:100%;
    background-color:#ffffff80;
    font-size: 2em;
    text-align: center;
    pointer-events: none;
    cursor:pointer;
}
.hoverthumb.loading{
    opacity:0.5;
    cursor:progress;
}
.col.card.consentmodule {
    padding: 0.5em;
}

.screen .content {
    background-color: #f0f0f080;
    left: 0;
    margin: auto;
    right: 0;
    padding: 2em;
    transition: all 2s;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 80vh;
}
.screen .content.godown {
    
    top: 20vh;
}

.screen.show .content.godown {
    
    transition: all 2s;
    color: var(--lf_color_screen_overlay);
    top:50%;
    transform: translateY(-50%);
}


.screen.show .content {
    
    transition: all 2s;
    color: var(--lf_color_screen_overlay);
    top:50%;
    transform: translateY(-50%);
}

.screen img {
    align-self: center;
    width: 100%;
    opacity: 0;
    transition: all 1s;
    position: absolute;
    max-height: 100%;
    
    
    top: 50%;
    
    left: 50%;
    transform: translate(-50%,-50%);
}

.screen.show img {
    opacity: 1;
    transition: all 1s;
}

body {
    background-color: var(--lf_background);
    margin: 0px;
    overflow-x: hidden;
}

#profilebar {

    margin: 0px;
    width: 300px;
    border-radius: 25px;
    border-style: solid;
    border-color: #666;
    border-width: 1px;
    overflow: hidden;
    max-height: 60px;
}

.profpicture {
    background-color: #FFF;
    border-top-width: thin;
    border-right-width: thin;
    border-bottom-width: thin;
    border-left-width: thin;
    border-top-color: #CCC;
    border-right-color: #666;
    border-bottom-color: #666;
    border-left-color: #CCC;
    max-width: 80px;
    max-height: 80px;
}

.maingallery {
    text-align: center;
    display: flex;
    grid-template-columns: auto auto auto;
    justify-content: space-around;

    margin-top: 5em;
}

.infostyle {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    color: #B0B0B0;
    text-decoration: none
}

#profilebarwrap {
    display: inline-block;
    width: 200px;
    overflow: hidden;
    text-align: left;
    border-right-style: none;
    border-right-width: 1px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.alignright {
    text-align: right;
}

#profilename {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 8px;
    font-weight: bold;
    color: #666;
    vertical-align: middle;
    display: inline-block;
    vertical-align: top;
    padding-left: 10px;
}


#w1000px {
    margin: auto;
    max-width: 1000px;
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: var(--lf_background_sheet1);
    color: var(--lf_color_sheet1);
    border-width: 0px;
    border-spacing: 5px;
    border-collapse: separate;
    position: relative;
    
    box-shadow: var(--lf_shadow1);
    /*display: flex;
    flex-direction: column;
    justify-content: space-between;*/
}

main#mainpage {
    min-height: 60vh;
}

.divmenu {

    font-size: 12px;
    font-weight: bold;
    background-color: var(--lf_background_menuItem);
    width: 100%;
    padding-top: 1em;
    padding-bottom: 1em;
    overflow-x: hidden;
}

.menubaritem {

    font-size: 12px;
    font-weight: bold;
    color: var(--lf_color_menuItem);
    background-color: var(--lf_background_menuItem);
    text-decoration: none;
    text-align: center;
}

.endbar {
    background-color: var(--lf_background_endbar);
    color: var(--lf_color_endbar);
    display: grid;
    grid-template-columns: auto auto auto;
    padding: 1em;
    text-align: center;

}

a.endlink {
    text-decoration: none;
    color: var(--lf_color_menuItem);
    background-color: var(--lf_background_endbar);
}

#foldernote {
    font-size: 14px;
    color: var(--lf_color_normal);
    text-align: left;
    margin: auto;
    padding: 5px;
    width: 100%;
    border-style: none;
    border-radius: 0;
    box-sizing: border-box;
    margin-bottom: 1em;
    margin-top: 5em;
}

.albumtitle {
    font-style: italic;

    color: var(--lf_color_albumtitle);
    background-color: var(--lf_background_albumtitle);
    left: 0px;
    top: 0px;
    border-top-width: thin;
    border-right-width: thin;
    border-bottom-width: thin;
    border-left-width: thin;
    border-top-style: solid;
    border-bottom-style: solid;

    border-top-color: #333;
    border-right-color: #CCC;
    border-bottom-color: #333;
    border-left-color: #CCC;
    padding-left: 5px;
    margin-top: 0px;
    margin-right: 5px;
    margin-bottom: 0px;
    margin-left: 5px;
    font-size: 1.4em;
}

.sm_newsdocument {
    color: var(--lf_color_docsheet);
    background-color: var(--lf_background_docsheet);
    margin: 1px;
    padding: 5px;
    font-size: 10px;
    width: 220px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--lf_shadowCol1) 2px 2px 8px;
    font-weight: normal;
}

.sm_newsparagraph {


    margin-top: 2px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
    padding-right: 2px;
    padding-left: 2px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-top-color: #333;
    border-right-color: #333;
    border-bottom-color: #333;
    border-left-color: #333;
    padding-top: 2px;
    padding-bottom: 2px;

    line-height: normal;
}

.sm_newsimage {

    margin-top: 1px;
    margin-right: 1px;
    margin-bottom: 1px;
    float: left;
}

.sm_newsimageleft {
    margin-top: 1px;
    margin-right: 1px;
    margin-bottom: 1px;
    float: left;
    width: 50%;
}

.sm_newsimageright {
    margin-top: 1px;
    margin-right: 1px;
    margin-bottom: 1px;
    float: right;
    width: 50%;
}

.sm_newsimagecenter {
    margin-top: 1px;
    margin-right: 1px;
    margin-bottom: 1px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;

}


.sm_newstitles {

    font-size: 20px;
    color: #06C;
    margin-left: 20px;
    overflow: auto;
    padding-left: 10px;
    text-align: left;
}

.sm_newstitlelink {


    font-weight: bold;
    color: #666;
    text-decoration: none;
}

.sm_newslink {


    font-weight: bold;
    color: #06C;
    text-decoration: none;

}

.sm_newstitlelink:hover {


    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
    text-transform: none;
}

.sm_newslink:hover {

    font-weight: bold;
    color: #06C;
    text-decoration: none;
    background-color: #CCC;
}

nav#breadcrumb {

    background-color: var(--lf_background_breadcrumb);
    margin-bottom: 1em;
    margin-top: 1em;
    padding: 0.5em;

}

nav#breadcrumb a {
    padding-left: 1em;
    text-decoration: none;
    color: var(--lf_color_breadcrumb);
    background-color: var(--lf_background_breadcrumb);
    font-variant-caps: all-small-caps;
}

nav#breadcrumb a:before {
    content: "> ";
}

.imgframe {
    display: block;
    margin: 4px;
    margin-bottom: 10px;


}

.imgframe img {
    margin: auto;
    margin-top: 4px;
    display: block;
    border: none;

    border-radius: 10px;
    box-shadow: var(--lf_shadow_col_thumb) 2px 2px 12px -2px;
    height: auto;

}

nav.divmenu.top {
    display: flex;
    justify-content: space-around;
}

nav.divmenu.bottom {
    display: flex;
    justify-content: space-around;
}

#menubutton {
    display: none;
}

#menugrip {
    vertical-align: middle;
    height: 50px;
    height: 3em;
    background-color: #7b7b7b;
    padding: 0.4em;
    box-sizing: border-box;
}

.sitecredit {
    color: #666;
    text-align: right;
    padding-top: 1em;
    border-top-style: solid;
    border-top-width: 1px;
    padding-bottom: 1em;
    padding-right: 1em;
}

.socialbutton {
    display: inline-block;
    float: left;
    vertical-align: top;
    margin: auto;
    padding-top: 0.2em;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.news-abstract-document {
    color: var(--lf_color_sheet1);
    background-color: var(--lf_background_sheet2);
    padding: 5px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-color: #FFF;
    border-right-color: #666;
    border-bottom-color: #666;
    border-left-color: #FFF;
    font-size: 12px;
    position: relative;
    margin-top: 0px;
    margin-right: 1em;
    margin-bottom: 0px;
    margin-left: 1em;
    padding-bottom: 35px;
    font-family: 'Montserrat', sans-serif;
}

.news-abstract-date {
    font-weight: bold;
    color: #666;
    font-size: 0.6em;
}

.news-abstract-title {
    font-weight: bold;
    padding: 2px;
    margin-top: 2px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
}

.news-abstract-folder {
    font-style: italic;
    color: #A3A3A3;
}

.news-abstract-paragraph {
    border-color: #333;
    border-style: none;
    border-width: 1px;
    margin: 2px 0 2px 0;
    padding-bottom: 2px;
    padding-top: 2px;
}

.news-abstract-image {
    background-color: #9CF;
    padding: 5px;
    border: 1px dotted #09C;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.news-abstract-titles {
    font-size: 10px;
    color: #06C;
    margin-left: 20px;
    overflow: auto;
    padding-left: 10px;
    text-align: left;
}

.news-abstract-titlelink {
    font-weight: bold;
    color: #666;
    text-decoration: none;
}

.news-abstract-link {
    font-weight: bold;
    color: #444;
    text-decoration: none;
}

.news-abstract-titlelink:hover {
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
}

.news-abstract-link:hover {
    font-weight: bold;
    color: #06C;
    text-decoration: none;
}

.newsdocument {

    color: var(--lf_color_sheet1);
    /* background-color: #EBEBEB; */
    margin: 5px;
    margin-bottom: 15px;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;

    border-left-color: #FFF;
    font-size: 12px;
    display: block;
    max-width: 90%;
    text-align: justify;
    /* border-radius:20px; */
}

.newsparagraph {


    margin-top: 2px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
    /*padding-right: 5px;
    padding-left: 15px;*/
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-top-color: #333;
    border-right-color: #333;
    border-bottom-color: #333;
    border-left-color: #333;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 14px;

    clear: both;
}

.newsparagraph:after {
    content: "";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.newsdate {

    font-size: 10px;
    font-weight: bold;

}


.newstitle {

    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    padding: 2px;
    margin-top: 2px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
}

.newslink {

    font-weight: bold;
    color: #06C;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.newsfolder {

    font-size: 12px;
    font-style: italic;
    font-weight: bold;

    padding-left: 5px;
}

.newsimage {
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.newsimageleft {
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-left: 0px;

    float: left;
    max-width: 500px;
}

.newsimageright {
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-left: 5px;

    float: right;
    max-width: 500px;
}

.newsimagecenter {
    margin-top: 5px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 5px;
    width: 100%;
}

.sheet a {
    color: var(--lf_link_color_sheet1);
    background-color: var(--lf_link_background_sheet1);
    font-weight: bold;
}

.layer a {
    color: var(--lf_link_color_sheet1);
    background-color: var(--lf_link_background_sheet1);
    font-weight: bold;
}

a {
    color: var(--lf_link_color_sheet1);
    background-color: var(--lf_link_background_sheet1);
    font-weight: bold;
}

.screen a {
    background-color: unset;
}



@media(max-width:1024px) {

    nav.divmenu.top {
        display: none;
    }


    .menubar {

        font-size: 30px;


        font-weight: bold;
        text-align: center;
        max-width: 220px;
        float: left;
        position: relative;
        margin: 4px;
        border-style: none;
        padding: 3px;


    }


    #menubutton {
        background-color: var(--lf_background_sheet2);
        position: fixed;
        left: 0px;
        top: 0px;
        width: 100%;
        position: fixed;
        left: 0px;
        top: 0px;
        border: 0px none #666;
        border-bottom-width: 2px;
        border-bottom-style: solid;
        vertical-align: middle;
        font-size: 20px;
        color: var(--lf_color_sheet2);
        text-shadow: var(--lf_shadowCol1) 2px 2px 8px;
        font-style: italic;
        box-shadow: var(--lf_shadowCol1) 0px 2px 8px;
        display: block;
        z-index: 100;
    }

    .divmenu {

        font-size: 30px;
        font-style: italic;
        font-weight: 100;
        width: 100%;

    }
}

@media(max-width:1000px) {
    #coverimg {
        height: auto;
        max-width: 100vw;
        width: auto;
    }


    #page {
        font-size: 20px;
    }

    #w1000px {
        margin-top: 3em;
    }
}


    .alternatelang {
        margin-top: 1em;
        margin-bottom: 1em;
    }

    a.alternatelang {
        text-decoration: none;
        color: chocolate;
        background-color: bisque;
        padding: 0.5em;
        border-radius: 0.5em;
        padding-left: 1em;
        position: relative;
        left: -0.5em;
    }


@media (hover:hover) {
    a.endlink:hover {
        color: var(--lf_color_menuItem_hover);
    }

    .sheet a:hover {
        color: var(--lf_link_color_sheet1_hover);
        background-color: var(--lf_link_background_sheet1_hover);
        font-weight: bold;
    }

    .layer a:hover {
        color: var(--lf_link_color_sheet1_hover);
        background-color: var(--lf_link_background_sheet1_hover);
        font-weight: bold;
    }

    .newslink:hover {

 font-weight: bold;
    color: #fff;
    text-decoration: none;
    background-color: rgba(0, 102, 204, 0.85); /* blu con opacità */
    border-radius: 4px;
    transform: scale(1.03); /* leggero ingrandimento */

    }

    .language:hover {
        color: #2973d2;
        text-decoration: none;
    }

    .menubaritem:hover {

        font-size: 12px;
        font-weight: bold;
        color: var(--lf_color_menuItem_hover);
        text-align: center;
    }

    .MainMenuLink:hover {
        font-family: Verdana, Geneva, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: bold;
        color: var(--lf_color_menuItem_hover);
        text-decoration: none;
    }

    #acceptcookies a:hover {
        color: #FC6;
        text-decoration: none;
    }
}