@font-face {
    font-family: wfexolight;
    src: url(/fonts/Exo-Light.otf);
}
@font-face {
    font-family: wfexoregular;
    src: url(/fonts/Exo-Regular.otf);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue',Helvetica,Arial,Sans-Serif;
}

h1,h2,h3,h4 {font-family: 'wfexolight', 'sans-serif'; text-rendering:inherit!important;}


h2 {
    font-size: 20px !important;
}

.page {
    background-color: #f4f4f4;
    overflow: hidden;
    padding-bottom: 40px;
    padding-right: 15px;
}

.content {
    min-height: 100px;
}

.page .container-fluid {
    max-width: 1080px;
}

.page-bottom .container-fluid {
    max-width: 1080px;
}

/* header */

header {
    overflow: hidden;
    max-height: 400px;
    position: relative;
    z-index: 2;
}

.banner {
    width: 100%;
}

.logo {
    position: absolute;
    top: 30px;
    background-color: white;
    opacity: 0.9;
    width: 400px;
    display: block;
    text-align: right;
    padding: 10px;
    z-index: 10;
}

.items {
    position: absolute;
    border-bottom: solid thin #3172b8;
    width: 100%;
    height: 30px;
    font-size: 10px;
    z-index: 2;
}

/* lang selector */
.items .lang {
    position: absolute;
    top: 5px;
    right: 15%;
    padding: 4px 4px 0 4px;
    background-color: white;
    border-radius: 5px 5px 0 0;
    width: 110px;
    text-align: center;
    font-size: 14px;
}

.items .lang a {
    color: #3172b8;
}

.items .lang a.current {
    color: #e2965e;
}

/* login */

.items .login {
    position: absolute;
    top: 30px;
    right: 15%;
    padding: 0 4px 2px 4px;
    background-color: #ed965e;
    color: white;
    border-radius: 0 0 5px 5px;
    width: 110px;
    font-size: 14px;
    text-align: center;
}


.login-form {
    display: none;
    width: 200px;
    height: 100px;
}

.login-form .login-error {
    height: 2em;
    line-height: 2em;
    font-size: 16px;
    font-weight: bold;
}

.login-form .form-group {
    margin-bottom: 8px;
}

.pallozzi {
    position: absolute;
    bottom: 5px;
    right: 15%;
}

.pallozzi img {
    width: 20px;
}


a.link {
    color: #333 !important;
    text-decoration: underline;
}

a, a:hover, a:active, a:link {
    color: #e2965e;
    outline: 0;
}



.column h2 {
    color: #ed965e;
    width: 100%;
    border-bottom: solid thin #e2965e;
    padding-left: 15px;
    padding-right: 15px;
}

/* news block */

.news {
    background-color: white;
    border-radius: 15px 15px 0 0;
}

.news .figure {
    overflow: hidden;
    height: 200px;
    margin-top: -10px;
}

.news .figure img {
    width: 100%;
}

.news-content {
    padding: 0 10px 10px 10px;
}

.news .subheader {
    font-size: 18px;
    line-height: 19.8px;
}

.news .subheader .date {
    font-size: 12px;
}

/* news block when visualizing an image */

.links.nonews {
    margin-top: 90px;
} 

/* news page */
.newsrow {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: solid thin #3172ba;
}

.newsrow .column {
    padding-left: 0;
}

/* new modal */
.news-modal {
    padding: 10px;
}

.news-modal .news-text {
    text-align: justify;
}

/* text section */

.text p {
    padding-left: 15px;
    padding-right: 15px;
}

/* links section under news and text */

.links {
    border-top: solid thin #e2965e;
    padding-left: 25px;
}


.links .icon {
    height: 81px;
    line-height: 81px;
}

@media only screen and (min-width: 992px) {

    .links .icons {
        position: relative;
        top: -90px;
    }   


    .links .texts {
        position: relative;
        top: -60px;
    }
    
    .links .text  {
        position: relative;
        top: -107px;
    }
}

@media only screen and (max-width: 991px) {
 
    .nav {
        padding-left: 30px;
    }
    
    .content .row {
        margin-left: 15px;
    }
    
    .links {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .links .icons {
        text-align: center;
        margin-top: 20px;
    }   

    .links .texts {
        margin-top: 20px;
    }   

    .links .texts .icontext {
        text-align: center;
    }
    
    .sbuffetto {
        display: none;
    }
    
}


@media only screen and (max-width: 768px) {
    .logo {
        position: static;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    .items .lang, .items .login {
        right: 20px;
        position: static;
    }

    .items {
        border-bottom: none;
        position: static;
        text-align: center;
    }
    
    .login-form {
        position: absolute;
        z-index: 100;
    }
    
    .pallozzi {
        display: none;
    }
    
    
    
} 




.links .icon img {
    vertical-align: bottom;
}

.sbuffetto {
    width: 100%;
    height: 40px;
    text-align: right;
}

.sbuffetto img {
    width: 95%;
    height: 40px;
    margin-top: -10px;
}


/* footer */
.page-bottom {
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-image: url(../img/footer_bg.png);
    position: relative;
    z-index: 2;
    opacity: 0.8;
    border-bottom: solid thin #e2965e;
}

.subfooter {
    height: 40px;
}

/* sx column */
.colsx .fregio {
    position: fixed;
    top: 50px;
    width: 100px;
    z-index: 1;
}

/* menu */

.navbar {
    position: relative;
    z-index: 3;
    font-size: 18px;
    margin-bottom: 0;
    max-width: 1070px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    background-color: white !important;
    background-image: none !important;
    box-shadow: none !important;
    font-family: wfexoregular;
}

/* navigation bar */

.nav li a:hover, .nav li a:active, .nav li.open a, .nav > li.active a {
    color: #e2965e !important;
    background-image: none !important;
    background-gradient: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.nav li a {
    padding-left: 0;
}

.nav li.dropdown  li a {
    color: #333 !important;
}

.nav .dropdown-menu a:active, .nav .dropdown-menu a:hover {
    color: #e2965e !important;
    background-image: none !important;
}

.nav .dropdown-menu {
    border-radius: 10px 10px 10px 10px !important;
    border: solid thin #e2965e;
    text-align: center;
    padding-top: 0;
}

.nav .dropdown-menu .menuhead {
    line-height: 20px;
    margin-top: 15px;
    color: #e2965e;
    font-size: 18px;
}

.nav .dropdown-menu .active a {
    color: #e2965e !important;
    background-image: none !important;
}

.navbar .collapse.in {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar .collapse {
    padding-left: 0;
    padding-right: 0;
}

.navbar .collapse.in > .nav {
    display: block;
    width: auto;
}

.navbar .collapse > .nav {
    display: table;
    width: 100%;
}

.navbar .collapse.in .nav > li {
    display: block;
    width: auto;
}

.navbar .collapse .nav > li {
    display: table-cell;
    width: 16%;
}



/* pages */
.photo-large {
    float: right;
    width: 100%;
    overflow: hidden;
    height: 240px;
    position: relative;
    margin-left: 20px;
    margin-top: 16px;
}

.photo {
    float: right;
    width: 40%;
    overflow: hidden;
    height: 240px;
    position: relative;
    margin-left: 20px;
    margin-top: 16px;
}

.photo_sfondo {
    width: 100%;
    height: 100%;
}

.photo img.mainphoto {
    width: 100%;
    position: absolute;
    top: 20px;
    left: 0;
}

.inner_page {
    padding-bottom: 40px;
    border-bottom: solid thin #e2965e;
    margin-bottom: 40px;
}


h2.underlined {
    color: #ed965e;
    border-bottom: solid thin #e2965e;
    position: relative;
    z-index: 2;
    padding-left: 20px;
    margin-left: -20px;
}

/* frame */

.frame {
    background-image: url(../img/sfondo-immagini-piccole.png);
    background-size: 100% 100%;
    width: 100%;
    height: 360px;
    position: relative;
    margin-top: 12px;
}

.frame .frame_inner {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: solid thin #e2965e;
}


/* contact page */
.contactform {
    padding-right: 20px;
}

.privacy {
    font-size: 11px;
}

/* misc */

.orange {
    color: #e2965e;
}

.justified {
    text-align: justify;
}

.row-no-padding [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

hr.blue {
    height: 1px;
    background-color: #3172ba;
}

.margin-left-sm {
    margin-left: 20px;
}

.margin-left-lg {
    margin-left: 40px;
}

.margin-top-sm {
    margin-top: 20px;
}

/* generic picture frames */
.picture_frame {
    background-image: url(../img/sfondo-immagini-piccole.png);
    background-size: 100% 100%;
    padding: 20px 0;
}

.picture_frame > div {
    overflow: hidden;
    line-height: 100%;
    vertical-align: middle;
    text-align: center;
}

.picture_frame > div > div {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}


.picture_frame > div img {
    display: inline-block;
    vertical-align: middle;
}

/* folder list */
.folder .column {
    height: 30px;
    line-height: 30px;
}

.folder .glyphicon {
    font-size: 22px;
    vertical-align: middle;
}

.folder .folder-name {
    font-size: 22px;
    vertical-align: middle;
}

.folder-name a {
    text-decoration: underline;
    color: #333;
}


/* upload list */
.upload {
    font-size: 22px;
    vertical-align: middle;
}

.upload-name a {
    text-decoration: underline;
    color: #333;
}

.upload-size {
    margin-left: 5px;
}

/* put lens in the middle of a div */
.lens {
    position: relative;
}

.lens:after {
    content: url(../img/lente.png);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -38px;
    margin-top: -37px;
    opacity: 0.7;
}

/* another frame base on figure tag */
figure.framed {
    overflow: hidden;
    margin: 0 20px 0 20px;
    background-image: url(../img/sfondo-immagini-piccole.png);
    background-size: 100% 100%;
    padding: 20px 0;
}


/* modal backdrop */

.modal-backdrop {
    background-color: white;
}

/* element list */

h3.elementtitle {
    font-weight: bold;
    font-family: 'Helvetica Neue',Helvetica,Arial,Sans-Serif;
    font-size: 18px;
}

.noborderdown {
    border-bottom: none !important;
}

/* note on picture frames */
.picture_note {
    position: absolute;
    right: 20px;
    bottom: 3px;
    z-index: 100;
    color: #e2965e;
}

/* form messages */

.form-message:after {
    content: "x";
    visibility: hidden;
}