/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
    font-family: 'GothamBook';
    src: url('../fonts/gotham-book.eot');
    src: url('../fonts/gotham-book.eot') format('embedded-opentype'),
         url('../fonts/gotham-book.woff2') format('woff2'),
         url('../fonts/gotham-book.woff') format('woff'),
         url('../fonts/gotham-book.ttf') format('truetype'),
         url('../fonts/gotham-book.svg#GothamBook') format('svg');
}

@font-face {
    font-family: 'GothamMedium';
    src: url('../fonts/gotham-medium.eot');
    src: url('../fonts/gotham-medium.eot') format('embedded-opentype'),
         url('../fonts/gotham-medium.woff2') format('woff2'),
         url('../fonts/gotham-medium.woff') format('woff'),
         url('../fonts/gotham-medium.ttf') format('truetype'),
         url('../fonts/gotham-medium.svg#GothamMedium') format('svg');
}

@font-face {
    font-family: 'GothamLight';
    src: url('../fonts/gotham-light.eot');
    src: url('../fonts/gotham-light.eot') format('embedded-opentype'),
         url('../fonts/gotham-light.woff2') format('woff2'),
         url('../fonts/gotham-light.woff') format('woff'),
         url('../fonts/gotham-light.ttf') format('truetype'),
         url('../fonts/gotham-light.svg#GothamLight') format('svg');
}


body {
    background-color: #e8e7e8;
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

.btn,
.btn:hover {
    color: #fff;
    padding: 8px 10px;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    float: right;
    font-family: 'GothamLight';
}

.btn:after {
    content: "";
    clear: both;
    display: block;
}

.btn.primary {
    border-bottom: 2px solid #c6243f;
}
.btn.green {
    border-bottom: 2px solid #349d35;
}
.btn.blue {
    border-bottom: 2px solid #22a0c7;
}

.btn.primary:hover {
    background-color: #c6243f;
}
.btn.green:hover {
    background-color: #349d35;
}
.btn.blue:hover {
    background-color: #22a0c7;
}


.primary,
h2.marker-primary:after {
    background-color: #ec3049;
}

.green,
h2.marker-green:after {
    background-color: #47b648;
}

.blue,
h2.marker-blue:after {
    background-color: #31c5f4;
}

.main-navigation {
    text-transform: uppercase;
    font-size: 11px;
    font-family: 'GothamMedium';
}

.main-navigation li {
    display: block;
    float: left;
}

.main-navigation li:hover,
.main-navigation li:active,
.current_page_item {
    color: #fff;
    background-color: #ec3049;
}

.main-navigation li a {
    display: block;
    padding: 15px;

}

hr {
    margin: 0;
    position: relative;
    top: -3px;
    z-index: -1;
}

h2 {
    text-transform: uppercase;
    font-family: 'GothamLight';
}

h2.marker {
    margin-bottom: 0;
    display: inline-block;
}

h2.marker:after {
    content: "";
    width: inherit;
    display: block;
    height: 5px;
    margin-top: 10px;
    margin-right: -20px;
} 

.main-navigation ul {
    margin: 0;
    padding-right: 15px;
    padding-left: 15px;
}

.container {
    max-width: 970px;
}

.schedule .time {
    font-weight: bold;
    display: block;
    float: left;
    margin-right: 20px;
}

.schedule p {
    margin: 0;
    overflow: hidden;
}

.schedule ul {
    border-top: 5px solid #22a0c7;
}

.news .date {
    color: #8e8e8e;
    font-weight: bold;
}
.news p {
    margin: 0.5em 0;
}

.home .speakers {
    background-image: url("../img/pattern.png");
}

.speakers ul {
    display: table;
    margin: 20px auto;
}

.speakers ul,
.banner ul,
.news ul,
.schedule ul {
    padding: 0;
}

.speakers li,
.banner li,
.news li,
.schedule li {
    list-style: none;
}

.news li,
.schedule li {
    padding: 15px 18px;
}

.news li:nth-child(even),
.day-1 li:nth-child(odd),
.day-2 li:nth-child(odd)  {
    background-image: url("../img/pattern.png");
}

.schedule .day-1,
.schedule .day-2 {
    margin-top: 10px;
}

.schedule .no-marker {
    margin-bottom: 0;
}

ul.nav-ul {
    border: 0;
    padding-right: 15px;
    margin: 0;
    display: inline-block;
    position: absolute;
    right: 0;
    margin-top: -44px;
}

ul.nav-ul li {
    padding: 10px;
    display: inline-block;
    background-color: #31c5f4;
    color: #fff;
}

ul.nav-ul li.ui-state-active {
    background-color: #22a0c7;
}

.institucional {
    background-image: url("../img/header-bg.png");
    background-repeat: repeat-x;
    height: 266px;
    z-index: 9;
    position: relative;
    padding-top: 30px;
    text-align: center;
}

.institucional img {
    max-width: 100%;
}

.institucional input {
    background-color: transparent;
    border: 1px solid #f35d75;
    padding: 10px;
}

.institucional ::-webkit-input-placeholder { /* WebKit browsers */
    color:    #fff;
}
.institucional :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #fff;
}
.institucional ::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #fff;
   opacity:  1;
}
.institucional :-ms-input-placeholder { /* Internet Explorer 10+ */
   color:    #fff;
}

.banner {
    margin-top: -266px;
    position: relative;
}

.banner li {
    overflow: hidden;
}

.banner ul div {
    position: relative;
}

.banner .btn {
    position: absolute;
    bottom: 40px;
    margin-left: 15px;
    font-family: 'GothamLight';
    text-transform: uppercase;
}

.home .speakers {
    padding-bottom: 140px;     
    padding-top: 20px;
}

.home .speakers ul {
    overflow: hidden;
}

.home .speakers li {
    width: 160px;
    padding: 10px;
    margin: 0 auto;
}

.home .speakers figcaption {
    background-color: #fff;
    padding: 20px 15px;
}

.home .speakers .from {
    font-size: 13px;
}

.name {
    display: block;
    font-weight: bold;
}

.execucao {
    margin-bottom: 30px;
}

.execucao,
.copyright {
    font-size: 11px;
}

.copyright a {
    padding: 2px 5px;
    background-color: #fff;
    color: #ec3049;
    font-weight: bold;
}

figure {
    overflow: hidden;
}

.main-footer {
    background-image: url("../img/footer-bg.png");
    background-size: cover;
    color: #fff;
    width: 100%;
    padding-top: 110px;
    margin-top: -110px; 
    text-align: center;
}

.duvida,
.noticia,
.local, 
.palestrante {
    padding: 40px 0;
    overflow: hidden;
}

.local figure,
.palestrante figure {
    float: left;
    margin-right: 20px;
}

.local .info, 
.palestrante .bio {
    overflow: hidden;
}

.page .news,
.page .speakers,
.page .palestrante,
.page .about,
.page .schedule {
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
}

.page .schedule .full {
    border: 0;
}

.page .schedule .full h2 {
    margin: 0;
}

.page .schedule .full li:first-child {
    text-transform: uppercase;
    font-family: 'GothamBook';
    background-color: #31c5f4;
    color: #fff;
    padding: 8px 18px;
}

.contact label {
    margin-bottom: 10px;
}

.contact input {
    margin-bottom: 20px;
}

.contact input {
    border: 1px solid #999;
    background-color: transparent;
    border: 1px solid inherit;
    padding: 10px;
}

.contact textarea {
    background-color: transparent;
    height: 218px;
    margin-bottom: 20px;
}

.contato {
    margin-top: 20px;
}

.ninja-forms-field {
background-color: transparent;
border-radius: 0 !important;
}

.ninja-forms-field.btn.primary {
background-color: #ec3049;
border: 0;
}

.ninja-forms-field.btn.primary:hover {
background-color: #c6243f;
}


input[type="search"]:focus.search-field, input[type="search"].search-field, select {
border-radius: 0;
border: 1px solid #fff;
position: relative;
right: 0;
width: 120px;
color: #fff;
box-shadow: none;
}

.search-submit {
color: #fff;
position: absolute;
height: 32px;
width: 32px;
border-radius: 0;
border: 1px solid #fff;
background-color: transparent;
box-shadow: none;
border-left: 0;
padding: 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) { 
    .institucional {
        background-position-y: -66px; 
    }

    .home .speakers li {
        float: left;
    }
    .execucao {
        text-align: left;
        float: left;
    }

    .execucao p {
        display: inline-block;
    }

    .execucao img {
        margin-left: 30px;
    }

    .execucao .ufsc {
        margin-right: 30px;
    }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { 

    .copyright p {
        text-align: left;
    }

    .copyright p:first-child {
        float: left;
    }
    
    .copyright p:last-child {
        float: right;

    }
}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}