.pages { margin-top: 220px; }
.header .sub_header .cerca { float: left; margin-right: 30px; }
.upper-menu
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding-bottom: 30px;
}

.left-container
{
    width: 200px;
}

.right-container
{
    width: calc(100% - 200px);
    align-self: flex-end;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.main-menu-container
{
    width: 100%;
}

.main-menu-container .nav
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu-header li
{
    float: none;
    display: inline-block;
}

.language-container
{
    align-self: flex-end;

    height: 16px;
    padding: 18px 10px 16px 10px;
}

#languages
{
    background-color: transparent;
    font-size: 16px;
    border: none;
    font-weight: bold;
    box-shadow: none;
    color: black;
}

.header
{
    padding-top: 10px;
}

.header .sub_header
{
    padding: 10px 0;
}

.lower-menu
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #f2f2f2;
    height: 62px;
}

.lower-left-menu
{
    padding: 15px 5px;
    font-size: 32px;
    height: 32px;
    line-height: 32px;
    font-family: 'bentonsansextra_light';
    width: 190px;
}

.lower-right-menu .menu-header
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 62px;
}

.lower-right-menu .menu-header .menu
{
    margin-bottom: 0;
}

.lower-right-menu
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: calc(100% - 200px);
}

#menu-mobile
{
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9999;
    background-color: white;
    overflow: auto;
}

.menu-mobile-wrapper
{
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: wrap;
    /*justify-content: center;*/
    margin-top: 30px;
    align-items: center;
    /*height: 100%;*/
align-items: flex-start;
}

#menu-mobile .menu-header
{
    width: calc(100% - 20px);
    max-width: 400px;
}

#menu-mobile .menu-header .menu
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    font-size: 22px;
    color: black;
    margin-left: 0;
    margin-bottom: 0;
}

#menu-mobile .menu-header .menu li
{
    padding: 7px;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

#menu-mobile .menu-header .menu li a
{
    color: black;
}

#mobile-menu-closer
{
    justify-content: flex-end;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-right: 20px;
}

#mobile-menu-closer img
{
    margin-right: 30px;
}

.video-content
{
    display: none;
}

#popup-overlayer
{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(255,255,255,.95);
    z-index: 99999;

    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-container
{
    width: calc(100% - 30px);
    max-width: 1380px;
    height: 100%;

}

.rwd-video {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    padding-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}
.rwd-video iframe,
.rwd-video object,
.rwd-video embed {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.video-wrapper:hover
{
    cursor: pointer;
}

.popup-close
{
    text-align: right;
    padding-bottom: 15px;
    padding-top: 15px;
}

.videogallery-wrapper
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.video-wrapper
{
    width: 33.333%;
    padding: 10px;
    box-sizing: border-box;
}

.video-poster img
{
    width: 100%;
    height: auto;

}

.video-poster
{
    position: relative;
}

.video-poster img.play-btn
{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;

    width: 90px;
    height: auto;
}

.pages .container.onecolumn h2.video-title
{
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.video-description
{
    min-height: 100px;
}

.wrapper.gallery-wrapper
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    margin: 0;
}

.gallery-img-wrapper
{
    width: 100%;

    padding-top: 20px;
    max-width: 768px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-img-wrapper img
{
    width: 100%;
    height: auto;

}

.gallery-info-wrapper
{
    width: 100%;
    max-width: 768px;
    padding-top: 20px;
}

.row
{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 15px 0;
    border-bottom: thin solid lightgrey;
}

.col-title
{
    font-size: 22px;
}

.col-sx
{
    font-weight: bold;
    width: 200px;

}

.col-dx
{

}

.pages { margin-top: 220px; }

.social-container
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 184px;
    justify-content: flex-start;
}

.social-container .addthis_toolbox, .social-container .sub_header
{
    width: 50%;
    padding-top: 0;
    padding-bottom: 0;
}

.social-container .sub_header .cerca
{
    width: 100%;
}

#txtCercaSito
{
    width: 100%;
}

.header .logo
{
    width: 100%;
}

.uris-slider-post-title
{
	text-align: center;
	padding-bottom: 20px;
	padding-top: 20px;
	font-weight: bold;
}

.bwg-thumb-description
{
	padding: 5px 0 10px 0;
}

.intro-wrapper
{
	padding-top: 30px;
	padding-bottom: 30px;
}

@media screen and (min-width: 0px) and (max-width: 1256px) {
    .wrapper { margin: 0 15px; }
}

@media screen and (max-width:1024px)
{
    .lower-right-menu .menu-header
    {
        display: none;
    }
}

@media screen and (max-width: 768px)
{
    #languages
    {
        font-size: 22px;
    }

    .language-container
    {
        align-self: flex-start;
        margin-top: 7px;
        height: auto;
        padding-top: 0;
    }

    .video-wrapper
    {
        width: 50%;
    }

    .social-container .addthis_toolbox, .social-container .sub_header
    {
        width: 184px;
        position: static;
    }

    .nav .menu-bt-mobile
    {
        position: static;
    }

    .header .logo
    {
        margin-top: 10px;
        padding-top: 0px;
    }
}

@media screen and (max-width: 640px)
{
    .header .sub_header .cerca
    {
        top:100px;
    }

    .nav .search-bt-mobile.on
    {
        background-size: contain;
        background-position: top;
    }
}


@media screen and (max-width: 450px)
{
    .video-wrapper
    {
        width: 100%;
    }

    .pages
    {
        margin-top: 20px;
    }

    .nav .search-bt-mobile, .nav .menu-bt-mobile
    {
        position: static;
        width: 30px;

    }

    .nav .search-bt-mobile
    {
        margin-left: 5px;
        margin-right: 5px;
    }

    .menu-header
    {
        padding: 0 10px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
    }

    .language-container
    {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 3px;
        padding-right: 0;
    }

    .header .logo
    {
        margin-top: 0px;
        padding-top: 0px;
    }

    .col-sx
    {
        width: auto;
        padding-right: 20px;
    }
}