html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

a,
a:active,
a:visited {
    text-decoration: none;
}

nav a {
    display: flex;
    justify-content: center;
    align-items: center;
}

span {
    color: #0d4f83;
    font-weight: 600;
}

html,
body {
    font-family: "Roboto", sans-serif;
    width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
}

i {
    font-style: italic;
}

dialog {
    opacity: 0;
    transform: translateX(20vw); /* hidden by default */
    transition: all 0.6s ease;
}

/* final visible state */
dialog[open] {
    opacity: 1;
    border: none;
    height: 75vh;
    min-width: 20vw;
    background-color: #ffffffe7;
    border-radius: 24px;
    margin-right: -24px;
    padding: 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateX(0);
}

dialog img {
    width: 40px;
    margin-bottom: 32px;
    transition: all 0.4s ease;
    transform: scale(1);
    cursor: pointer;
}

dialog img:hover {
    transform: scale(1.1);
}

dialog a {
    color: #0d5083e2;
    font-family: "Roboto Slab", serif;
    font-weight: 500;
    font-size: 28px;
    transition: all 0.4s ease;
    transform: translateX(0);
    outline: none;
}

dialog a:hover {
    color: #0d4f83;
    transform: translateX(8px);
}

dialog[open]:focus {
    outline: none;
}

/* overrides */
dialog.opening {
    opacity: 0 !important;
    transform: translateX(20vw) !important;
}

dialog.closing {
    opacity: 0 !important;
    transform: translateX(20vw) !important;
}

/* backdrop */
dialog::backdrop {
    background: rgba(0, 0, 0, 0);
    transition: all 0.6s ease;
}

dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

dialog.opening::backdrop,
dialog.closing::backdrop {
    background: rgba(0, 0, 0, 0) !important;
}

.button {
    padding: 12px 18px;
    border: #0d4f83 1px solid;
    border-radius: 999px;
    color: #0d4f83;
    font-size: 24px;
    transition: all 0.4s ease;
}
.button:hover {
    border-color: #0d4f83;
    background-color: #0d4f83;
    color: white;
}

.button-inverted {
    padding: 12px 18px;
    border: white 1px solid;
    border-radius: 999px;
    color: white;
    font-size: 24px;
    transition: all 0.4s ease;
}
.button-inverted:hover {
    border-color: #0d4f83;
    background-color: #0d4f83;
}

.button-inverted,
.button-white {
    padding: 12px 18px;
    border: white 1px solid;
    border-radius: 999px;
    color: white;
    font-size: 24px;
    transition: all 0.4s ease;
}
.button-inverted:hover {
    border-color: #0d4f83;
    background-color: #0d4f83;
}
.button-white:hover {
    background-color: white;
    color: #0d4f83;
}

.icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

#header-menu-open {
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 120px;
}

header .icon {
    transition: all 0.4s ease;
    transform: scale(1);
}

header .icon:hover {
    transform: scale(1.1);
}

footer {
    background-color: #0d4f83;
    padding: 64px 256px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

footer section {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    border-bottom: solid white 1px;
    padding: 48px 24px 0;
}

.footer-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background-color: white;
    border: #0d4f83 solid 3px;
    padding: 1px;
    border-radius: 999px;
    transition: all 0.4s ease;
}

.footer-icon:hover {
    border-color: rgba(255, 255, 255, 0);
}

footer > img {
    height: 80px;
    object-fit: contain;
    filter: brightness(100);
    align-self: flex-start;
}

footer p {
    font-size: 14px;
}

footer h3 {
    font-size: 18px;
    font-weight: 300;
}

footer div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

footer div:last-child {
    border-left: solid white 1px;
}

footer nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

#header-logo {
    width: 30vw;
    max-width: 400px;
}

footer a:active,
footer a:visited,
footer a {
    color: white;
    text-decoration: underline;
}

#section-home-banner {
    background-image: url(../img/banner-home.png);
}
#section-modalidades-banner {
    background-image: url(../img/banner-modalidades.jpg);
}
#section-servicos-banner {
    background-image: url(../img/banner-outros-servicos.jpg);
    background-position: 25% 25%;
}

.banner {
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

.banner h1 {
    color: white;
    font-size: 48px;
    font-weight: 300;
    mix-blend-mode: lighten;
    width: 900px;
    max-width: 80vw;
    text-align: center;
}

.banner div {
    display: flex;
    gap: 32px;
}

.section-icons {
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.icon-track {
    display: inline-flex;
    justify-content: space-around;
    width: max-content; /* CRITICAL: size to content, not to container */
    animation: scroll 15s linear infinite;
}

.icon-track img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: saturate(0.2) opacity(0.75);
    flex: 0 0 auto;
    padding: 25px 50px;
    transition: all 0.4s ease;
}

.icon-track img:hover {
    filter: saturate(1) opacity(1);
}

@keyframes scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.section-content {
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-content-wrapper {
    display: flex;
    gap: 64px;
}

.section-content-wrapper img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 999px;
}

.section-content-wrapper div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

.inverted {
    flex-direction: row-reverse;
}

.inverted div {
    align-items: flex-end;
}

.section-content h2 {
    font-size: 42px;
    color: #0d4f83;
    font-weight: 300;
}

.section-content p {
    color: rgb(52, 52, 52);
    font-size: 20px;
    max-width: 600px;
    line-height: 28px;
}

.inverted p,
.inverted h2 {
    text-align: end;
}

#section-logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    width: 100vw;
    background-color: #0729444e;
    margin: 60px 0 120px;
    gap: 40px;
    padding: 50px 0;
}

#section-logos div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#section-logos h2 {
    font-size: 42px;
    color: #0d4f83;
    font-weight: 300;
    text-align: center;
}

#section-logos img {
    width: 200px;
    height: 200px;
    filter: saturate(0.5);
    object-fit: contain;
    flex: 0 0 auto;
    padding: 25px 25px;
    filter: saturate(0) contrast(1);
    transform: scale(1);
    transition: all 0.4s ease;
}

#section-logos img:hover {
    transform: scale(1.25);
    filter: saturate(1) contrast(1.25);
}

#section-quem-somos {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding-bottom: 200px;
}

#section-quem-somos p {
    color: rgb(52, 52, 52);
    font-size: 22px;
    max-width: 900px;
    text-align: center;
    line-height: 28px;
}

#section-quem-somos h2 {
    font-size: 42px;
    color: #0d4f83;
    font-weight: 300;
}

#section-quem-somos div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

#section-quem-somos img {
    width: 400px;
    height: 400px;
    border-radius: 999px;
    object-fit: cover;
}

.unidades {
    padding: 128px 64px;
    gap: 64px;
    justify-content: center;
    align-items: stretch;
}

.unidades img {
    height: 200px;
    width: 200px;
    padding: 32px;
    background-color: white;
    border-radius: 999px;
    object-fit: contain;
    border: #0d4f83 solid 4px;
    flex-grow: 0;
}

.unidades > div {
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 32px;
    gap: 16px;
    max-width: 500px;
}

.unidades-links {
    display: flex;
    gap: 16px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
    align-items: baseline !important;
}

#modalidades-buttons {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 16px;
    min-height: 100%;
    flex-wrap: wrap;
    max-width: 640px;
    justify-content: start;
    flex-shrink: 2;
}

#modalidades-buttons .button {
    display: flex;
    align-items: center;
    gap: 16px;
}

#modalidades-buttons .button img {
    width: 24px;
    height: 24px;
}

.section-service-desc {
    flex-direction: column;
    align-content: center;
    text-align: center;
}

.section-service-desc div {
    flex-direction: row;
}

#section-logos[page="servicos"] {
    margin-bottom: 0;
}

#servicos li {
    padding: 3px 0;
}

#servicos .inverted li p {
    text-align: start !important;
}

#section-logos[page="empresa"] {
    margin-bottom: 0;
    background: none;
}

#modalidades-main {
    gap: 64px;
}

#modalidades-main .section-content-wrapper {
    justify-content: flex-end;
    text-align: end;
    flex-direction: column;
    flex-grow: 2;
}

#empresa-main {
    background-color: #0d4f83cc;
}

#empresa-main * {
    color: white !important;
}

#empresa-main #section-quem-somos {
    padding-bottom: 180px;
}

#empresa-section {
    gap: 60px;
    padding: 20px 0;
    align-items: flex-start;
}

#instagram-section {
    width: 75vw;
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.instagram-user-root-container,
.sk-ig-bottom-btn-container,
.sk_branding {
    display: none !important;
    color: #0d4f83cc !important;
}

.sk-instagram-feed-item,
.sk-ig-post-img {
    border-radius: 999px !important;
}

.sk-instagram-feed-item {
    background-color: transparent !important;
}

#contato {
    display: flex;
    border-radius: 32px;
    padding: 48px;
    width: 50vw;
    background-color: #0d4f83;
    margin: 100px 0;
    flex-direction: column-reverse;
}
#contato-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

#contato-links a {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 20px;
}

#contato-links .icon {
    background: white;
    border-radius: 999px;
    border: 1px solid white;
    width: 40px;
    height: 40px;
}

#contato-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 40px;
    flex-direction: column;
    font-size: 20px;
    font-style: italic;
    gap: 32px;
}

#contato-text strong {
    font-weight: 500;
    font-size: 28px;
}

@media screen and (max-width: 1200px) {
    footer {
        padding: 32px;
    }

    .side-image {
        display: none;
    }
    .section-content-wrapper {
        flex-direction: column;
    }
}

@media screen and (max-width: 767px) {
    header {
        padding: 24px;
    }

    #header-logo {
        width: 50vw;
    }

    header .icon {
        width: 40px;
        height: 40px;
    }

    .banner h1 {
        width: 80vw;
        font-size: 30px;
    }

    .section-content h2 {
        font-size: 30px;
    }

    .section-content p {
        font-size: 18px;
        line-height: 24px;
    }

    footer section {
        flex-direction: column;
        padding: 0;
    }

    footer section div {
        padding: 14px;
    }

    footer div:last-child {
        border-left: none;
    }

    .section-content {
        flex-direction: column;
        padding: 40px;
    }

    .inverted p,
    .inverted h2 {
        text-align: start;
    }

    .inverted div {
        align-items: flex-start;
    }

    #section-logos img {
        width: 130px;
        height: 130px;
        padding: 12px;
    }

    .button,
    .button-inverted {
        font-size: 18px;
        padding: 8px 12px;
    }

    #modalidades-main .section-content-wrapper {
        text-align: start;
        justify-content: flex-start;
    }

    .section-content-wrapper img,
    .main-image {
        width: 80vw !important;
        height: 80vw !important;
    }

    footer img {
        width: 80vw;
    }

    #empresa-section {
        padding: 40px;
    }

    .unidades img {
        max-width: 200px !important;
        max-height: 200px !important;
    }

    #contato a {
        font-size: 3.3vw;
    }
}

@media screen and (max-width: 1300px) {
    #contato {
        flex-direction: column-reverse;
        padding: 24px;
        width: 80vw;
        gap: 40px;
    }

    #contato-text {
        padding: 20px;
    }
}
