/* =========================================
   HEADER HOME - LOGO GRANDE CABENDO NO MENU
   ========================================= */

.home-site-header{
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #ffffff;
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    overflow: visible;
    transition: all .28s ease;
}

.home-site-header .home-header-inner{
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0;
    overflow: visible;
    transition: all .28s ease;
}

.home-site-header .home-brand{
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none;
    color: #111827;
    flex-shrink: 0;
    line-height: 0;
    transition: all .28s ease;
}

.home-site-header .home-brand img{
    display: block !important;
    height: 128px !important;
    max-height: 128px !important;
    width: auto !important;
    max-width: 420px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transition: all .28s ease;
}

/* Menu desktop */
.home-site-header .home-menu{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.home-site-header .home-menu a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #111827 !important;
    text-decoration: none;
    background: transparent !important;
    font-weight: 800;
    transition: .2s ease;
    white-space: nowrap;
}

.home-site-header .home-menu a:hover,
.home-site-header .home-menu a:focus{
    background: #b91c1c !important;
    color: #ffffff !important;
}

.home-menu-toggle{
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.home-menu-toggle span{
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.home-menu-backdrop{
    display: none;
}

/* Ao rolar */
.home-site-header.is-scrolled .home-header-inner{
    height: 82px;
    min-height: 82px;
    max-height: 82px;
}

.home-site-header.is-scrolled .home-brand{
    height: 82px;
    min-height: 82px;
    max-height: 82px;
}

.home-site-header.is-scrolled .home-brand img{
    height: 68px !important;
    max-height: 68px !important;
    max-width: 260px !important;
}

/* reduz espaço do primeiro bloco abaixo do menu */
.home-site-header + *{
    margin-top: 0 !important;
}

body section:first-of-type,
body .hero,
body .hero-section,
body .banner,
body .banner-section,
body .main-banner,
body .slider-area,
body .hero-area,
body .intro-section,
body .home-hero,
body .home-banner{
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* MOBILE */
@media (max-width: 991px){
    .home-site-header .home-header-inner{
        width: 100%;
        height: 132px;
        min-height: 132px;
        max-height: 132px;
        padding: 0 14px;
        justify-content: center;
        position: relative;
    }

    .home-site-header .home-brand{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        height: 132px;
        min-height: 132px;
        max-height: 132px;
        width: calc(100% - 112px);
        max-width: calc(100% - 112px);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        line-height: 0;
    }

    .home-site-header .home-brand img{
        height: 118px !important;
        max-height: 118px !important;
        max-width: 100% !important;
        width: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: static !important;
    }

    .home-site-header.is-scrolled .home-header-inner{
        height: 76px;
        min-height: 76px;
        max-height: 76px;
    }

    .home-site-header.is-scrolled .home-brand{
        height: 76px;
        min-height: 76px;
        max-height: 76px;
    }

    .home-site-header.is-scrolled .home-brand img{
        height: 62px !important;
        max-height: 62px !important;
        max-width: 190px !important;
    }

    .home-menu-toggle{
        display: flex;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%) !important;
        z-index: 3002;
    }

    .home-site-header .home-menu{
        position: fixed;
        top: 0;
        right: -310px;
        width: 290px;
        max-width: 86vw;
        height: 100vh;
        background: #ffffff;
        border-left: 1px solid #e5e7eb;
        box-shadow: -18px 0 40px rgba(15,23,42,.18);
        z-index: 3001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 96px 18px 24px;
        transition: right .28s ease;
        overflow-y: auto;
    }

    .home-site-header .home-menu.is-open{
        right: 0;
    }

    .home-site-header .home-menu a{
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        border-radius: 14px;
        color: #111827 !important;
        background: #ffffff !important;
    }

    .home-site-header .home-menu a:hover,
    .home-site-header .home-menu a:focus{
        background: #b91c1c !important;
        color: #ffffff !important;
    }

    .home-menu-backdrop.is-open{
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.45);
        z-index: 3000;
    }

    body.home-menu-open{
        overflow: hidden;
    }
}

@media (max-width: 420px){
    .home-site-header .home-header-inner{
        height: 124px;
        min-height: 124px;
        max-height: 124px;
        padding: 0 12px;
    }

    .home-site-header .home-brand{
        height: 124px;
        min-height: 124px;
        max-height: 124px;
        width: calc(100% - 104px);
        max-width: calc(100% - 104px);
    }

    .home-site-header .home-brand img{
        height: 110px !important;
        max-height: 110px !important;
        max-width: 100% !important;
    }

    .home-site-header.is-scrolled .home-header-inner{
        height: 72px;
        min-height: 72px;
        max-height: 72px;
    }

    .home-site-header.is-scrolled .home-brand{
        height: 72px;
        min-height: 72px;
        max-height: 72px;
    }

    .home-site-header.is-scrolled .home-brand img{
        height: 56px !important;
        max-height: 56px !important;
        max-width: 170px !important;
    }

    .home-menu-toggle{
        width: 44px;
        height: 44px;
        right: 12px;
    }
}

/* =========================================
   AJUSTE DO SLIDE/HERO ABAIXO DO MENU
   Sobe os textos e reduz espaço vazio
   ========================================= */

.home-site-header + section,
.home-site-header + .hero,
.home-site-header + .home-hero,
.home-site-header + .hero-section,
.home-site-header + .banner,
.home-site-header + .main-banner,
.home-site-header + .slider-area,
.home-site-header + .hero-area {
    margin-top: 0 !important;
}

/* Reduz altura e padding do primeiro bloco */
body section:first-of-type,
.hero,
.home-hero,
.hero-section,
.banner,
.main-banner,
.slider-area,
.hero-area,
.intro-section,
.home-banner {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Sobe o conteúdo interno do slide */
body section:first-of-type .container,
.hero .container,
.home-hero .container,
.hero-section .container,
.banner .container,
.main-banner .container,
.slider-area .container,
.hero-area .container,
.intro-section .container,
.home-banner .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Força o conteúdo do hero a começar mais alto */
.hero-content,
.banner-content,
.slide-content,
.home-hero-content,
.hero-text,
.banner-text,
.main-banner-content,
.slider-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    transform: translateY(-70px);
}

/* Se o hero estiver centralizando verticalmente, joga para cima */
.hero,
.home-hero,
.hero-section,
.banner,
.main-banner,
.slider-area,
.hero-area,
.home-banner {
    align-items: flex-start !important;
}

/* Ajuste de altura para evitar slide muito vazio */
.hero,
.home-hero,
.hero-section,
.banner,
.main-banner,
.slider-area,
.hero-area,
.home-banner,
body section:first-of-type {
    min-height: 520px !important;
}

/* Mobile */
@media (max-width: 991px) {
    .hero-content,
    .banner-content,
    .slide-content,
    .home-hero-content,
    .hero-text,
    .banner-text,
    .main-banner-content,
    .slider-content {
        transform: translateY(-55px);
    }

    .hero,
    .home-hero,
    .hero-section,
    .banner,
    .main-banner,
    .slider-area,
    .hero-area,
    .home-banner,
    body section:first-of-type {
        min-height: 470px !important;
    }
}

@media (max-width: 575px) {
    .hero-content,
    .banner-content,
    .slide-content,
    .home-hero-content,
    .hero-text,
    .banner-text,
    .main-banner-content,
    .slider-content {
        transform: translateY(-45px);
    }

    .hero,
    .home-hero,
    .hero-section,
    .banner,
    .main-banner,
    .slider-area,
    .hero-area,
    .home-banner,
    body section:first-of-type {
        min-height: 430px !important;
    }
}
