/*
Theme Name: Superbock Wordpress theme
Author: havas
Author URI: http://www.havas.pt/
Description: Template for Mestra à mesa
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*Wordpress editor styles start*/

.entry-content img {
    margin: 0 0 1.5em 0;
}
.alignleft, img.alignleft {
    margin-right: 1.5em;
    display: inline;
    float: left;
}
.alignright, img.alignright {
    margin-left: 1.5em;
    display: inline;
    float: right;
}
.aligncenter, img.aligncenter {
    margin-right: auto;
    margin-left: auto;
    display: block;
    clear: both;
}
.alignnone, img.alignnone {
    /* not sure about this one */
}
.wp-caption {
    margin-bottom: 1.5em;
    text-align: center;
    padding-top: 5px;
}
.wp-caption img {
    border: 0 none;
    padding: 0;
    margin: 0;
}
.wp-caption p.wp-caption-text {
    line-height: 1.5;
    font-size: 10px;
    margin: 0;
}
.wp-smiley {
    margin: 0 !important;
    max-height: 1em;
}
blockquote.left {
    margin-right: 20px;
    text-align: right;
    margin-left: 0;
    width: 33%;
    float: left;
}
blockquote.right {
    margin-left: 20px;
    text-align: left;
    margin-right: 0;
    width: 33%;
    float: right;
}

/*Wordpress editor styles end*/
*{
    outline: none;
}

html, body{
    box-sizing: border-box;
    height: 100%;
}

.video-background {
    background: #000;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -99;
}
.tv,
.video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#vidtop-content {
    top: 0;
    color: #fff;
}
.vid-info { position: absolute; top: 0; right: 0; width: 33%; background: rgba(0,0,0,0.3); color: #fff; padding: 1rem; font-family: Avenir, Helvetica, sans-serif; }
.vid-info h1 { font-size: 2rem; font-weight: 700; margin-top: 0; line-height: 1.2; }
.vid-info a { display: block; color: #fff; text-decoration: none; background: rgba(0,0,0,0.5); transition: .6s background; border-bottom: none; margin: 1rem auto; text-align: center; }
@media (min-aspect-ratio: 16/9) {
    .video-foreground { height: 300%; top: -100%; }
}
@media (max-aspect-ratio: 16/9) {
    .video-foreground { width: 300%; left: -100%; }
}
@media all and (max-width: 600px) {
    .vid-info { width: 50%; padding: .5rem; }
    .vid-info h1 { margin-bottom: .2rem; }
}
@media all and (max-width: 500px) {
    .vid-info .acronym { display: none; }
}


body{

}

.content_wrapper{
    position: relative;
    width: 100%;
    height: 100%;
}
#main-container{
    padding-bottom: 164px;
    position: relative;
    box-sizing: border-box;
    /*    height: 100%;*/
}
.page-template-home #main-container{
    height: 100%;
}
.absolute{
    position: absolute;
    top: 0;
    left: 0;
}
.grid-sizer,
.grid-item {
    width: 25%;
    padding: 15px;
    position: relative;
    cursor: pointer;
}
.grid-item .item_content, .grid2-item .item_content{
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}
.img{
    position: absolute;
    height: 100%;
    background-size: cover;
    padding: inherit;
    top: 0;
    left: 0;
    right: 0;
}
/* 2 columns wide */
.grid-item--width2 { width: 50%; }
.grid-item img{
    width: 100%;
}
.grid-item .grid-info{
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Safari */
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 16px;
    color: #000000;
    text-transform: uppercase;
    display: none;
}
.grid-item .grid-info .grid-category{
    color: #7f7f7f;
    font-size: 14px;
}
.grid-item:hover .grid-info{
    display: inline;
    position: absolute;
}
.grid-item:hover .img{
    opacity: 0.2;
}
.grid2-sizer,
.grid2-item {
    width: 50%;
    padding: 16px;
    position: relative;
}
/* 2 columns wide */
.grid2-item--width2 { width: 100%; }
.grid2-item img{
    width: 100%;
}
.mytransition{
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
.grid2-item .caixa_texto{
    position: absolute;
    top: 50%;
    left: 0;
    padding: 0 20px;
    -ms-transform: translate(0, -50%); /* IE 9 */
    -webkit-transform: translate(0, -50%); /* Safari */
    transform: translate(0, -50%);
}
.categories{
    text-transform: uppercase;
    text-align: center;
}
.categories .category-a{
    font-size: 16px;
    color: #000000;
    margin: 30px 12px;
    display: inline-block;
}
.mycontainer{
    max-width: 1500px;
    margin: auto;
    width: 100%;
}
@media all and (max-width: 1500px) {
    .grid2-sizer, .grid2-item {
        padding: 1vw;
    }
}
@media all and (max-width: 1200px) {
    .grid-sizer,
    .grid-item { width: 33%;  padding: 10px;}
    /* 2 columns wide */
    .grid-item--width2 { width: 66%; }

    .grid2-item {
        width: 50%;
        padding: 10px;
        position: relative;
    }
    /* 2 columns wide */
    .grid2-item--width2 { width: 100%; }
    .grid-item .grid-info{
        display: none !important;
        position: absolute;
    }
    .grid-item .img{
        opacity: 1 !important;
    }
}
@media all and (max-width: 1000px) {
    .categories .category-a {
        font-size: 16px;
        color: #000000;
        margin: 10px 12px;
        display: block;
        text-align: left;
    }
}
@media all and (max-width: 800px) {
    .grid-sizer,
    .grid-item { width: 50%;  padding: 10px;}
    /* 2 columns wide */
    .grid-item--width2 { width: 100%; }

    .grid2-item {
        width: 50%;
        padding: 0.8vw;
        position: relative;
    }
    /* 2 columns wide */
    .grid2-item--width2 { width: 100%; }
}
/************INÍCIO EDITOR*******/
.editor-categoria{
    font-size: 18px;
    color: #000000;
    text-transform: uppercase;
}
.editor-titulo{
    font-size: 40px;
    color: #000000;
}
.editor-subtitulo{
    font-size: 18px;
    color: #000000;
    font-weight: bold;
    margin: 10px 0;
}
.editor-texto{
    font-size: 16px;
    color: #000000;
}
.editor-linha{
    width: 60px;
    height: 1px;
    background: #000000;
}
#about{
    padding-top: 230px;
}
#about .editor-texto{
    margin-top: 20px;
}
#about .editor-subtitulo{
    font-weight: normal;
}
#about a, #about a:hover{
    color: #8d8d8d;
    text-decoration: none;
}
#about .col-lg-3{
    margin-bottom: 200px;
}
#totop{
    position: fixed;
    bottom: 60px;
    right: 60px;
    z-index: 99;
    display: none;
}
#totop.gotop{
    display: block;
}
@media all and (max-width: 700px) {
    .grid-sizer,
    .grid-item { width: 100%;  padding: 10px;}
    /* 2 columns wide */
    .grid-item--width2 { width: 100%; }
    .grid2-item {
        width: 100%;
        padding: 0.8vw;
        position: relative;
    }
    /* 2 columns wide */
    .grid2-item--width2 { width: 100%; }
    .categories{
        padding-left: 0;
    }
    /************INÍCIO EDITOR*******/
    .editor-categoria{
        font-size: 5vw;
    }
    .editor-titulo{
        font-size: 12vw;
    }
    .editor-subtitulo{
        font-size: 4vw;
        margin: 10px 0;
    }
    .editor-texto{
        font-size: 3.5vw;
    }
    .editor-linha{
        width: 14vw;
    }
    #about{
        padding-top: 20vw;
    }
    #about .col-lg-3{
        margin-bottom: 10vw;
    }
    #about .editor-texto{
        margin-top: 4vw;
    }
}


/************FIM EDITOR*******/

