/* ==========================================================================
   SKYSTONE 2.0 - APP.CSS
   Global visual rules of this template only.
   NO widget-specific CSS is allowed here.
   ========================================================================== */

:root {
    --sky-width: 765px;
    --sky-sidebar: 220px;
    --sky-gap: 10px;
    --sky-main: calc(var(--sky-width) - var(--sky-sidebar) - var(--sky-gap));
    --sky-bg: #f7fbfc;
    --sky-text: #24566a;
    --sky-border: #d4e6ea;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.template-skystone {
    background: var(--sky-bg);
    color: var(--sky-text);
    font-family: Arial, Helvetica, sans-serif;
}

body.template-skystone .site-page {
    width: 100%;
    min-height: 100vh;
    padding-top: var(--sky-menu-height, 56px);
}

body.template-skystone .sky-container {
    width: min(var(--sky-width), calc(100% - 32px));
    max-width: var(--sky-width);
    margin: 0 auto;
}

body.template-skystone .sky-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--sky-main)) var(--sky-sidebar);
    gap: var(--sky-gap);
    align-items: start;
    padding: 20px 0 40px;
}

body.template-skystone .sky-main,
body.template-skystone .sky-sidebar {
    min-width: 0;
}

body.template-skystone .sky-sidebar {
    width: var(--sky-sidebar);
}

body.template-skystone .sky-region {
    min-width: 0;
}

body.template-skystone .sky-placeholder {
    min-height: 90px;
    border: 1px dashed var(--sky-border);
    background: rgba(255,255,255,.75);
    padding: 18px;
    font-size: 12px;
    color: #6d929f;
}

@media (max-width: 900px) {
    body.template-skystone .sky-layout {
        grid-template-columns: 1fr;
    }

    body.template-skystone .sky-sidebar {
        width: auto;
    }
}


/* ==========================================================================
   SKYSTONE 2.0 - HOME / HERO / FOOTER
   --------------------------------------------------------------------------
   Esta é a ÚNICA área responsável pelo fundo geral, Hero e rodapé.
   Widgets não podem alterar estas regras.
   ========================================================================== */

/* Arte principal superior + arte inferior do site. */
body.template-skystone {
    background-color: #ffffff;
    background-image:
        url("../images/fon-bg-top.jpg"),
        url("../images/fon-bg-bottom.jpg");
    background-repeat:
        no-repeat,
        no-repeat;
    background-position:
        center top,
        center bottom;
    background-size:
        1920px auto,
        1920px auto;
    background-attachment:
        scroll,
        scroll;
}

/* O conteúdo não deve esconder a arte do template. */
body.template-skystone .site-page {
    background: transparent;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

body.template-skystone .sky-hero {
    position: relative;

    width: 100%;
    height: 500px;
    min-height: 500px;

    margin: 0;
    padding: 0;

    background: transparent;
    overflow: hidden;
}

body.template-skystone .sky-hero__inner {
    position: relative;

    height: 500px;
    min-height: 500px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: 42px;
}

body.template-skystone .sky-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 112px;

    position: relative;
    z-index: 2;
}

/* As imagens têm 314x126 e são mantidas na proporção original. */
body.template-skystone .sky-hero-button {
    width: 314px;
    height: 126px;

    flex: 0 0 314px;

    padding: 31px 18px 0 105px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    box-sizing: border-box;

    background-repeat: no-repeat;
    background-position: left top;
    background-size: 314px 126px;

    color: #0a5a74;
    font-family: "Times New Roman", Times, serif;
    text-align: left;
    text-decoration: none;

    transition: filter .16s ease;
}

body.template-skystone .sky-hero-button--download {
    background-image: url("../images/download-button.png");
}

body.template-skystone .sky-hero-button--register {
    background-image: url("../images/registration-button.png");

    padding-top: 34px;
    padding-left: 107px;
}

body.template-skystone .sky-hero-button span {
    display: block;

    margin: 0;
    padding: 0;

    color: #0a5a74;

    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;

    text-shadow: 0 1px 0 #ffffff;
}

body.template-skystone .sky-hero-button--register span {
    font-size: 20px;
}

body.template-skystone .sky-hero-button small {
    display: block;

    margin-top: 7px;

    color: #0a5a74;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;

    text-shadow: 0 1px 0 #ffffff;
}

body.template-skystone .sky-hero-button:hover {
    filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   RODAPÉ
   A arte inferior já pertence ao background do body. O footer fica
   transparente para não cobri-la.
   -------------------------------------------------------------------------- */

body.template-skystone .sky-footer,
body.template-skystone .main-footer,
body.template-skystone .footer-container,
body.template-skystone .site-footer-container {
    background: transparent !important;
}

body.template-skystone .sky-footer {
    min-height: 235px;

    display: flex;
    align-items: flex-end;

    padding: 40px 0 24px;
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 1919px) {
    body.template-skystone {
        background-size:
            100vw auto,
            100vw auto;
    }
}

@media (max-width: 900px) {
    body.template-skystone {
        background-size:
            auto 700px,
            auto 360px;
    }

    body.template-skystone .sky-hero,
    body.template-skystone .sky-hero__inner {
        height: 430px;
        min-height: 430px;
    }

    body.template-skystone .sky-hero__actions {
        gap: 14px;
    }

    body.template-skystone .sky-hero-button {
        width: 245px;
        height: 98px;

        flex-basis: 245px;

        padding: 24px 12px 0 82px;

        background-size: 245px 98px;
    }

    body.template-skystone .sky-hero-button--register {
        padding-top: 26px;
        padding-left: 84px;
    }

    body.template-skystone .sky-hero-button span {
        font-size: 17px;
    }

    body.template-skystone .sky-hero-button--register span {
        font-size: 16px;
    }

    body.template-skystone .sky-hero-button small {
        margin-top: 5px;
        font-size: 9px;
    }
}

@media (max-width: 560px) {
    body.template-skystone .sky-hero {
        height: 520px;
        min-height: 520px;
    }

    body.template-skystone .sky-hero__inner {
        height: 520px;
        min-height: 520px;

        padding-bottom: 24px;
    }

    body.template-skystone .sky-hero__actions {
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================================================
   SKYSTONE - CONTRATO DE LARGURA
   1140px é a largura máxima oficial do conteúdo do template.
   Hero interno, Quick Info, widgets e páginas devem usar .sky-container.
   ========================================================================== */

body.template-skystone .sky-container {
    width: min(765px, calc(100% - 32px));
    max-width: 765px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   SKYSTONE - LARGURA OFICIAL V4
   A partir daqui todo conteúdo central usa 765px.
   ========================================================================== */

body.template-skystone .sky-container {
    width: min(765px, calc(100% - 32px));
    max-width: 765px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   SKYSTONE - FEATURE REGION
   765px = 535px Slides + 10px gap + 220px Login.
   Only geometry belongs here.
   ========================================================================== */

body.template-skystone .sky-feature {
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
}

body.template-skystone .sky-feature__grid {
    width: 100%;
    height: 268px;

    display: grid;
    grid-template-columns: 535px 220px;
    gap: 10px;
    align-items: stretch;
}

body.template-skystone .sky-feature__slides,
body.template-skystone .sky-feature__login {
    min-width: 0;
    width: 100%;
    height: 268px;
    overflow: hidden;
}

@media (max-width: 790px) {
    body.template-skystone .sky-feature__grid {
        height: auto;
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 8px;
    }

    body.template-skystone .sky-feature__slides,
    body.template-skystone .sky-feature__login {
        height: 250px;
    }
}

@media (max-width: 620px) {
    body.template-skystone .sky-feature__grid {
        grid-template-columns: 1fr;
    }

    body.template-skystone .sky-feature__slides,
    body.template-skystone .sky-feature__login {
        height: auto;
        min-height: 250px;
    }
}


/* ==========================================================================
   SKYSTONE V5 - HERO / LOGO / POSIÇÕES
   --------------------------------------------------------------------------
   Objetivo:
   - Logo do Admin no topo esquerdo da Hero.
   - Botões mais altos.
   - Quick Info sobe automaticamente porque a Hero fica menor.
   ========================================================================== */

body.template-skystone .sky-hero {
    height: 395px;
    min-height: 395px;
    max-height: 395px;
}

body.template-skystone .sky-hero__inner {
    height: 395px;
    min-height: 395px;
    max-height: 395px;

    padding-bottom: 16px;

    align-items: flex-end;
}

/* Logo configurada em Admin > Configurações > Geral */
body.template-skystone .sky-hero__logo {
    position: absolute;

    top: 24px;
    left: 18px;

    width: 260px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    z-index: 3;

    pointer-events: none;
}

body.template-skystone .sky-hero__logo img {
    display: block;

    max-width: 260px;
    max-height: 110px;

    width: auto;
    height: auto;

    object-fit: contain;
    object-position: left center;
}

/* Sobe os dois botões e deixa mais espaço nas laterais do container 765px. */
body.template-skystone .sky-hero__actions {
    width: 100%;

    justify-content: space-between;
    gap: 0;

    padding: 0 12px;
}

body.template-skystone .sky-hero-button {
    width: 300px;
    height: 120px;

    flex: 0 0 300px;

    padding-top: 30px;
    padding-left: 101px;

    background-size: 300px 120px;
}

body.template-skystone .sky-hero-button--register {
    padding-top: 32px;
    padding-left: 102px;
}

body.template-skystone .sky-hero-button span {
    font-size: 20px;
}

body.template-skystone .sky-hero-button--register span {
    font-size: 19px;
}

body.template-skystone .sky-hero-button small {
    margin-top: 6px;
    font-size: 10px;
}

/*
 * O Quick Info já vem imediatamente depois da Hero no HTML.
 * Sem margem superior: ao reduzir Hero de 500px para 395px,
 * ele sobe junto 105px.
 */
body.template-skystone .sky-quick-info {
    margin-top: 0;
}

@media (max-width: 790px) {
    body.template-skystone .sky-hero,
    body.template-skystone .sky-hero__inner {
        height: 365px;
        min-height: 365px;
        max-height: 365px;
    }

    body.template-skystone .sky-hero__logo {
        top: 18px;
        left: 10px;

        width: 220px;
        height: 90px;
    }

    body.template-skystone .sky-hero__logo img {
        max-width: 220px;
        max-height: 90px;
    }

    body.template-skystone .sky-hero__actions {
        padding: 0;
        gap: 8px;
    }

    body.template-skystone .sky-hero-button {
        width: 245px;
        height: 98px;

        flex-basis: 245px;

        padding: 24px 10px 0 82px;

        background-size: 245px 98px;
    }

    body.template-skystone .sky-hero-button--register {
        padding-top: 26px;
        padding-left: 84px;
    }

    body.template-skystone .sky-hero-button span {
        font-size: 17px;
    }

    body.template-skystone .sky-hero-button--register span {
        font-size: 16px;
    }

    body.template-skystone .sky-hero-button small {
        margin-top: 5px;
        font-size: 9px;
    }
}

@media (max-width: 560px) {
    body.template-skystone .sky-hero {
        height: 470px;
        min-height: 470px;
        max-height: none;
    }

    body.template-skystone .sky-hero__inner {
        height: 470px;
        min-height: 470px;
        max-height: none;

        padding-bottom: 18px;
    }

    body.template-skystone .sky-hero__logo {
        left: 50%;
        transform: translateX(-50%);

        justify-content: center;
    }

    body.template-skystone .sky-hero__logo img {
        object-position: center;
    }

    body.template-skystone .sky-hero__actions {
        flex-direction: column;
        justify-content: flex-end;
        gap: 2px;
    }
}


/* ==========================================================================
   SKYSTONE V10 - GRADE OFICIAL DO CONTEÚDO
   765px = 535px main + 10px gap + 220px sidebar.
   ========================================================================== */

body.template-skystone .sky-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 535px 220px;
    gap: 10px;
    align-items: start;

    padding: 14px 0 40px;
}

body.template-skystone .sky-main {
    width: 535px;
    min-width: 0;
}

body.template-skystone .sky-sidebar {
    width: 220px;
    min-width: 0;
}

body.template-skystone .sky-main > *,
body.template-skystone .sky-sidebar > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 790px) {
    body.template-skystone .sky-layout {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 8px;
    }

    body.template-skystone .sky-main,
    body.template-skystone .sky-sidebar {
        width: auto;
    }
}

@media (max-width: 620px) {
    body.template-skystone .sky-layout {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   SKYSTONE V12 - FOOTER SIMPLES
   --------------------------------------------------------------------------
   Rodapé compacto, inspirado na referência enviada.
   Sem área alta, sem logo gigante e sem bloco visual pesado.
   ========================================================================== */

body.template-skystone .sky-footer {
    width: 100%;

    min-height: 0 !important;

    margin: 22px 0 0;
    padding: 0 0 14px;

    background: transparent !important;
}

body.template-skystone .sky-footer__inner {
    border-top: 1px solid rgba(91, 137, 151, .20);

    padding-top: 11px;
}

body.template-skystone .sky-footer__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    min-height: 24px;

    margin: 0;
    padding: 0 0 10px;
}

body.template-skystone .sky-footer__menu a {
    color: #527d8d;

    font-size: 8px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
}

body.template-skystone .sky-footer__menu a:hover {
    color: #087fa4;
}

body.template-skystone .sky-footer__bottom {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    margin: 0;
    padding: 4px 0 0;
}

body.template-skystone .sky-footer__brand {
    width: 110px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

body.template-skystone .sky-footer__brand img {
    display: block;

    max-width: 110px;
    max-height: 40px;

    width: auto;
    height: auto;

    object-fit: contain;
}

body.template-skystone .sky-footer__copy {
    display: flex;
    flex-direction: column;

    gap: 3px;

    color: #567a87;

    font-size: 7px;
    line-height: 1.15;
}

body.template-skystone .sky-footer__copy strong {
    color: #24586b;

    font-size: 7px;
    font-weight: 700;
}

body.template-skystone .sky-footer__copy span {
    color: #698e9a;
}

@media (max-width: 620px) {
    body.template-skystone .sky-footer__menu {
        gap: 10px 14px;
    }

    body.template-skystone .sky-footer__bottom {
        flex-direction: column;
        gap: 7px;
    }

    body.template-skystone .sky-footer__copy {
        text-align: center;
    }
}
