:root {
    --primary-color: #af3844;
    --primary-color-light: #e8ebef;
    --secondary-color: #59b290;
    --secondary-color-light: #faf3f6;
    --th-color-light: #e9ecef;
}

html,
body {
    font-kerning: auto;
    text-rendering: optimizeLegibility;
}

html,
body {
    background-color: var(--th-color-light);
    font-family: 'Fira Sans', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-kerning: auto;
    font-weight: 100;
    position: relative;
}

body.pace-done {
    overflow: auto;
}

.pace {
    border: 1px solid var(--primary-color);
}

.pace .pace-progress {
    background: var(--primary-color);
}

section,
main,
article,
header,
footer,
nav {
    position: relative;
}

blockquote {
    font-size: 2.6rem;
    margin: 0 auto;
    text-align: center;
    width: 75%;
}

blockquote .fa-quote-left {
    display: block;
    font-size: 3rem;
    text-align: center;
}

blockquote small {
    display: block;
    font-style: italic;
}

blockquote small::before {
    background-color: black;
    content: '';
    display: block;
    height: 3px;
    margin: 1rem auto;
    position: relative;
    width: 100px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 100;
}

h1,
h2 {
    font-weight: 300
}

h1 {
    font-weight: 700;
    font-size: 4rem
}

h1 strong {
    color: var(--primary-color);
    font-weight: 300;
}

h1 small {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
}

h2 {
    font-size: 3rem
}

blockquote p {
    line-height: 1em;
}

.rounded-pill-right {
    border-radius: 0 50rem 50rem 0 !important;
}

.rounded-pill-left {
    border-radius: 50rem 0 0 50rem !important;
}

.btn:focus {
    outline: 0;
    box-shadow: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: inherit;
    letter-spacing: .2rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pb-6,
.py-6 {
    padding-bottom: 6rem !important;
}

.pt-6,
.py-6 {
    padding-top: 6rem !important;
}

.navbar {
    transition: all 250ms ease-in-out
}

.navbar .container-fluid {
    padding-right: 45px;
    padding-left: 45px;
}

.navbar-nav .nav-link {
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-nav .nav-link:not(.btn) {
    color: black;
}

.navbar-nav>.nav-item {
    position: relative;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1);
}

.bg-light {
    background-color: #fff!important;
}

.bg-primary-color {
    background-color: var(--primary-color)!important;
}

.bg-primary-color-light {
    background-color: var(--primary-color-light)!important;
}

.bg-secondary-color {
    background-color: var(--secondary-color)!important;
}

.bg-secondary-color-light {
    background-color: var(--secondary-color-light)!important;
}

.navbar-light.bg-light {
    background-color: rgba(255, 255, 255, .85) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    text-transform: uppercase;
}

.navbar-nav>.nav-item a::after,
.works-filters .filters button::after {
    background-color: transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    width: 0%;
    transition: all 350ms ease-in-out
}

.navbar-nav>.nav-item a:hover::after,
.navbar-nav>.nav-item a.active::after,
.works-filters .filters button:hover::after,
.works-filters .filters button.is-checked::after {
    background-color: var(--primary-color);
    bottom: 0;
    content: "";
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    width: 100%;
    transition: all 350ms ease-in-out
}

.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show>.nav-link {
    color: var(--primary-color);
}

.navbar-light .navbar-nav>.nav-item a:hover::after,
.navbar-light .navbar-nav>.nav-item a.active::after {
    background-color: var(--primary-color);
}

.navbar a.navbar-brand {
    max-width: 200px;
}


/*.navbar-nav>.nav-item a.active {
    border-bottom: solid;
}*/

.navbar-transparent {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent) !important
}

.navbar-transparent .navbar-brand img {
    filter: brightness(0.0) invert(1);
}

.scrollup,
.scrolldown {
    background-color: white;
    border-radius: 2em 2em 0 0;
    bottom: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    /*margin: 0 47%;*/
    padding: 1em;
    position: absolute;
    right: calc(50% - 78px / 2);
    z-index: 2;
}

.scrollup {
    border-radius: 2em 0 0 2em;
    box-shadow: 0 0 15px lightgrey;
    bottom: 1em;
    color: var(--primary-color) !important;
    margin: 0;
    padding: 0.7em 1.2em;
    position: fixed;
    right: -100px;
    text-decoration: none !important;
    transition: all 350ms ease-in-out 500ms
}

.separator-bottom::after {
    background-color: black;
    content: "";
    display: block;
    height: 3px;
    margin: 30px auto 60px;
    max-width: 20%;
    min-width: 50px;
    position: relative;
    width: 100%;
}

.bg-secondary-color .separator-bottom::after {
    background-color: white;
}

.overlay {
    background-color: rgba(0, 0, 0, .4);
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.overlay.overlay-gradient {
    background: linear-gradient(to bottom, rgba(3, 3, 3, .3), rgba(0, 0, 0, .3), rgba(3, 3, 3, .4));
}

.overlay.overlay-darker {
    background-color: rgba(0, 0, 0, .7);
}

#preload {
    background-color: var(--secondary-color);
    bottom: 0;
    display: block;
    height: 100%;
    height: 100vh;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1111;
}

.pace-done #preload {
    position: absolute;
}

#preload.inactive {
    display: none;
    opacity: 0;
    transition: all 350ms ease-in-out
}


/*
.pace-done #home .container::before {
    background: transparent;
    border: solid white 3px;
    border-bottom: none;
    border-left: none;
    content: "";
    display: block;
    left: 50px;
    position: absolute;
    top: 10vh;
    height: 80vh;
    width: calc(100% - 100px);
    animation: square 2s ease 1s backwards;
}

.pace-done #home .container::after {
    background: transparent;
    border: solid white 3px;
    border-bottom: none;
    border-left: none;
    content: "";
    display: block;
    right: 50px;
    position: absolute;
    bottom: 13.1vh;
    height: 80vh;
    width: calc(100% - 100px);
    transform: rotate(180deg);
    animation: square 2s ease 3s backwards;
}

@keyframes square {
    0% {
        height: 0;
        opacity: 0;
        width: 0;
    }
    1% {
        height: 0;
        opacity: 1;
        width: 0;
    }
    50% {
        height: 0;
        width: calc(100% - 100px);
    }
    100% {
        height: 80vh;
    }
}
*/

#home {
    max-height: 768px;
}

#home #header-destak {
    background-color: transparent;
    /*box-shadow: 0px 0px 20px rgba(0, 0, 0, .4), 0px 0px 100px rgba(0, 0, 0, .4) inset, -20px -20px 0 white, 20px 20px 0 var(--primary-color);*/
}

#home #header-destak h2 {
    font-size: 3rem;
}

#home #header-destak h3 {
    font-size: 1.4rem;
}

#home #header-destak ul {
    list-style: none;
}

#home #header-destak h2,
#home #header-destak h3 {
    text-shadow: 1px 1px 2px slategrey;
}

#btnCadastro i {
    right: -35px;
    position: relative;
    transform: scale(1.5);
}

.skewed {
    box-shadow: 0px -10px 0 var(--secondary-color);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: white;
    z-index: 0;
    transform: skewY(-5deg);
    transform-origin: top left;
}

.box-service {
    background-color: white;
    color: black;
    margin-bottom: 2em;
}

.box-service .box-service-head,
.box-service .box-service-body,
.box-testmonial .box-testmonial-body {
    padding: 2.9em;
}

.box-service .box-service-head {
    background-color: var(--secondary-color);
    color: var(--secondary-color-light);
    padding-bottom: 1.5em;
    padding-top: 1.5em;
    transition: all 500ms ease-in-out;
}

.box-service .box-service-head .ico {
    border-radius: 50%;
    border: dotted;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: .5em;
    padding: .5em;
}

.box-service .box-service-head::before {
    background-color: lightgray;
    border-radius: 50%;
    content: "";
    display: block;
    height: 5px;
    width: 5px;
    box-shadow: 50px 90px 0 lightgray, 30px 20px 0 lightgray, 30px 60px 0 lightgray, 60px 60px 0 lightgray, 50px 10px 0 lightgray, 190px 10px 0 lightgray, 170px 80px 0 gray, 210px 60px 0 lightgray, 240px 30px 0 lightgray, 180px 40px 0 lightgray, 210px 20px 0 lightgray;
    opacity: 0.5;
}

.socials-icons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.socials-icons li {
    float: left;
    list-style: none;
    padding: .5em;
}

.socials-icons a {
    color: white;
    font-size: .9rem;
}

.bg-primary-color .socials-icons a:hover {
    color: var(--primary-color);
}

.btn-animate {
    background: transparent;
    max-width: 350px;
    position: relative;
    width: 100%;
}

.btn-animate::before {
    content: attr(data-btn-name);
    position: relative;
    z-index: 2;
}

.btn-animate::after {
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 0%;
}

.btn-animate::before,
.btn-animate::after {
    transition: all 250ms ease-in-out;
}

.btn-animate:hover::before {
    content: attr(data-btn-name-alt);
    color: black;
}

.btn-animate:hover::after {
    background-color: white;
    width: 100%;
}

.works-filters .filters button {
    position: relative;
}

.grid-item {
    overflow: hidden;
}

.grid-item>span,
.grid-item img {
    transition: all 150ms ease-in-out 300ms;
}

.grid-item>span {
    background-color: rgba(0, 0, 0, .5);
    color: white;
    content: "";
    display: table;
    height: inherit;
    left: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 11;
}

.grid-item>span p {
    height: inherit;
    display: table-cell;
    line-height: 100%;
    margin: auto;
    vertical-align: middle;
    width: 100%;
}

.grid-item>span p span {
    display: block;
    font-size: 2rem;
    opacity: 0;
    transition: all 500ms ease-in-out 250ms;
    transform: rotate(-180deg);
}

.grid-item:hover>span p span {
    opacity: 1;
    transform: rotate(0deg);
}

.grid-item img {
    transform: scale(1.1);
    width: 100%;
}

.grid-item:hover>span {
    opacity: 1;
}

.grid-item:hover img {
    transform: scale(1.2);
}

@media(min-width: 824px) and (orientation: portrait) {
    .backstretch .backstretch-item img {
        left: -150px !important;
    }
}

@media(max-width: 768px) {
    .w-50,
    .w-75 {
        width: 100% !important;
    }
    .navbar.py-0 {
        padding: .5rem 1rem !important;
    }
    h1 {
        font-size: 3rem;
    }
    .backstretch .backstretch-item img {
        left: -500px !important;
    }
    #header-destak {
        padding-left: inherit !important;
        padding-right: inherit !important;
    }
    #home #header-destak h2 {
        font-size: 1.6rem;
        padding-top: 5em !important;
    }
    #home #header-destak h3 {
        font-size: 1.1rem;
    }
}

@media(min-width: 824px) and (orientation: portrait) {
    #home #header-destak h2 {
        font-size: 3rem;
    }
    #home #header-destak h3 {
        font-size: 1.6rem;
    }
}

@media(max-width: 991px) and (orientation: landscape) {
    .navbar.py-0 {
        padding: .5rem 1rem !important;
    }
    .navbar a.navbar-brand {
        max-width: 150px;
    }
    .navbar #btnCadastro {
        margin: 0 !important;
        position: relative;
        right: -30px;
        top: 0;
        transform: scale(.8);
    }
    #home #header-destak h2 {
        font-size: 1.37rem;
        padding-top: 0 !important;
    }
    #home #header-destak h3 {
        font-size: 1rem;
    }
    #home #header-destak a.btn {
        font-size: .8rem;
    }
    .backstretch .backstretch-item img {
        left: -100px !important;
    }
    .box-service .box-service-head,
    .box-service .box-service-body,
    .box-testmonial .box-testmonial-body {
        padding: 2em;
    }
    .box-service-head h5 {
        font-size: 1rem;
    }
}

@media(max-width: 640px) and (orientation: landscape) {
    .navbar #btnCadastro {
        margin: 0 !important;
        position: relative;
        right: 0;
    }
    .navbar #btnCadastro i {
        right: 0;
    }
    .backstretch .backstretch-item img {
        left: -100px !important;
    }
}

@media(max-width: 480px) {
    .navbar #btnCadastro {
        margin: 0 !important;
        position: relative;
        right: 0;
    }
    .w-50,
    .w-75 {
        width: 100% !important;
    }
    .navbar.py-0 {
        padding: .5rem 1rem !important;
    }
    .backstretch .backstretch-item img {
        left: -550px !important;
    }
    #home #header-destak h2 {
        padding-top: 5em !important;
    }
    #btnCadastro i {
        right: 0;
    }
    .socials-icons li {
        width: 100%;
    }
}

@media(max-width: 380px) {
    .backstretch .backstretch-item img {
        left: -600px !important;
    }
}