/* ==========================================================================
03_GENERALS: SITE
--------------------------------------------------------------------------
   * README

   * DOCUMENT
   * HEADER
   * HEADER FIXED ON SCROLL
   * BANNER
   * BANNER FIXED ON SCROLL
   * MAIN
   * FOOTER
   * FOOTER STICKY
   ========================================================================== */

/* README
========================================================================== */

/*!
 * Styles on this stylesheet are the Site default styles.
 * That means they apply to the HTML components you can find in the
 * BaseTemplate.nopage file, and therefore, they apply to all site pages.

 * If you need to deal with an exception to these Site default styles, you
 * should manage it by adding a .body--modifier class via
 * {% block extraBodyClass %}{% endblock %} in the .page file that requires it,
 * and develop the given exception nested to that body modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with styles for a new type of Site component or a new
 * sub-element for an existing one, you should develop them in this stylesheet,
 * under a new component subtitle or under the correspondent one accordingly.
 */

/* FONT DEFINITION */

/* Recoleta Bold */
@font-face {
    font-family: 'RecoletaBold';
    font-style: normal;
    font-weight: bold;
    src: local('RRecoleta Bold'), local('Recoleta-Bold'),
    url('../fonts/RecoletaBold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/RecoletaBold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* DOCUMENT
========================================================================== */

.body {
    width: 100%;
    color: #666666;
    margin: 0 auto;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
}

[class*="__wrapper"] {
    width: 100%;
    margin: 0 auto;
    max-width: 1208px;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    [class*="__wrapper"] {
        padding-right: 16px; /* var(--main__wrapper--padding-right--mobile) */
        padding-left: 16px; /* var(--main__wrapper--padding-left--mobile) */
    }
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    [class*="__wrapper"] {
        padding-right: 32px; /* var(--main__wrapper--padding-right--tablet-and-desktop) */
        padding-left: 32px; /* var(--main__wrapper--padding-left--tablet-and-desktop) */
    }
}

.body__content {
    width: 100%;
}

/* HEADER
========================================================================== */

.header {
    width: 100%;
    color: #666666;
    margin: 0 auto;
    background-color: #FFFFFF;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .header__wrapper {
        padding-top: 10px;
        padding-right: 25px;
        padding-bottom: 13px;
    }
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .header__wrapper {
        padding-top: 21px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 22px;
    }
}

.header__logo {
    display: block;
    float: left;
    width: 141px;
    height: 36px;
    background-image: url('../images/logo--default.svg');
    background-position: left center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

/* HEADER FIXED ON SCROLL
========================================================================== */

.body--header-fixed-on-scroll .header {
    position: fixed;
    top: 0;
    z-index: 9;
}

.body--header-fixed-on-scroll .header--scrolling {
    -webkit-box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
    box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
}

/* BANNER: MAIN
========================================================================== */

.banner {
    width: 100%;
    color: #666666;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.banner__wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    background-image: url('../images/banner--main-large.webp');
    background-position: left top;
}

.banner__image {
    margin-right: 12px;
}

.banner__image img {
    display: block;
    border-radius: 100%;
    border: 2px solid #FFFFFF;
}

.banner__text__title {
    font-weight: 400;
    text-transform: capitalize;
}

.banner__text__subtitle {
    text-transform: uppercase;
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .banner__image {
        width: 46px;
    }

    .banner__text__subtitle {
        font-size: 12px;
        font-weight: 700;
    }
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .banner--main {
        height: auto;
        min-height: 110px;
    }

    .banner__wrapper {
        height: 110px;
        background-size: 100% 110px;
        background-image: url('../images/banner--main.webp');
    }

    .banner__text__title {
        font-size: 28px;
    }
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .banner__text__title br {
        display: none;
    }
}

/* Media query to target only tablet */
@media all and (min-width:751px) and (max-width:1024px) {
    .banner--main {
        height: 110px;
    }

    .banner__wrapper {
        background-size: 100% 110px;
    }

    .banner__text__title {
        font-size: 34px;
    }
}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .banner--main {
        height: 240px;
    }

    .banner__wrapper {
        background-size: 100% 240px;
    }

    .banner__image {
        width: 68px;
    }

    .banner__text__title {
        font-size: 36px;
    }
}

/* BANNER FIXED ON SCROLL
========================================================================== */

/* --------------------------------------------------------------------------
To be used only in combination with .body--header-fixed-on-scroll
-------------------------------------------------------------------------- */

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .body--banner-fixed-on-scroll .banner--main {
        position: fixed;
        /* top: (the .header height value will be set as this element inline top via JS) */
        z-index: 8;
        /* max-height: (this element height will be overrided with a scroll-changing inline max-height set via JS) */
    }

    .body--banner-fixed-on-scroll .banner--main.banner--scrolling .banner__wrapper {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .body--banner-fixed-on-scroll .banner--main .banner__image {
        -webkit-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .body--banner-fixed-on-scroll .banner--main.banner--scrolling .banner__image {
        width: 46px;
    }

    .body--banner-fixed-on-scroll .banner--main .banner__text__title {
        -webkit-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .body--banner-fixed-on-scroll .banner--main.banner--scrolling .banner__text__title {
        font-size: 28px;
    }

    .body--banner-fixed-on-scroll .banner--main .banner__text__subtitle {
        -webkit-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .body--banner-fixed-on-scroll .banner--main.banner--scrolling .banner__text__subtitle {
        font-size: 12px;
    }
}

/* MAIN
========================================================================== */

.main {
    width: 100%;
    color: #666666;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.main__wrapper {
    height: 100%;
    background-color: #FFFFFF;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .main__wrapper {
        padding-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 32px;
    }

    .aside__wrapper,
    .section__wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .aside__wrapper {
        padding-top: 32px;
    }
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .main__wrapper {
        padding-top: 33px;
        padding-left: 78px;
        padding-right: 77px;
        padding-bottom: 40px;
    }

    .aside__wrapper {
        padding-left: 50.5px;
        padding-right: 0;
    }

    .section__wrapper {
        padding-left: 0;
        padding-right: 50.5px;
    }
}

/* FOOTER
========================================================================== */

.footer {
    width: 100%;
    color: #FFFFFF;
    margin: 0 auto;
    font-size: 14px;
    text-align: center;
    background-color: #768692;
}

.footer .link {
    color: inherit;
}

.footer__rights__links {
    margin-right: 16px;
}

.footer__rights__links .link + .link {
    margin-left: 16px;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .footer__wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .footer__rights__links .link,
    .footer__rights .footer__rights__copy,
    .footer__rights .footer__rights__links {
        display: block;
    }

    .footer__rights__links .link + .link {
        margin-left: 0;
    }

    .footer__rights__links .link {
        border: 0;
    }

    .footer__rights__links .link,
    .footer__rights .footer__rights__links {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .footer__wrapper {
        padding-top: 26px;
        padding-bottom: 28px;
    }
}

/* FOOTER STICKY
========================================================================== */

.body--footer-sticky .body__content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
}

.body--footer-sticky.body--IE {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.body--footer-sticky .main {
    flex: 1;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.body--footer-sticky .footer {
    flex-shrink: 0;
}