/* ------------------------- home -- */
.home {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 0;
    overflow: hidden;
    background: #1f2937;

    --home-margin: max(0px, (100% - 1920px) / 2);
    --home-fade-right: min(var(--home-margin), 150px);
    --home-fade-left: min(var(--home-margin), 210px);
}

/* ------------------------- visual -- */
.home-visual {
    position: absolute;
    inset: 0;
    width: min(100%, 1920px);
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.home-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.home-edge-left {
    left: var(--home-margin);
    width: var(--home-fade-left);

    background: linear-gradient(
        to right,
        #1f2937 0%,
        transparent 100%
    );
}

.home-edge-right {
    right: var(--home-margin);
    width: var(--home-fade-right);

    background: linear-gradient(
        to left,
        #1f2937 0%,
        transparent 100%
    );
}

/* ------------------------- conteúdo -- */
.home-container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 20px;
}

/* ------------------------- fundo -- */
.home-bg {
    position: absolute;
    inset: 0;

    z-index: 0;
}

.home-bg-img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.home-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(31, 41, 55, .96) 0%,
        rgba(31, 41, 55, .90) 35%,
        rgba(49, 45, 101, .45) 50%,
        rgba(49, 45, 101, .10) 60%,
        rgba(49, 45, 101, 0) 65%,
        rgba(49, 45, 101, 0) 100%
    );
}

/* ------------------------- estudante -- */
.home-person {
    position: absolute;
    inset: 0;

    z-index: 2;
}

.home-person-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ------------------------- transição inferior -- */
.home::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(31, 41, 55, 0) 0%,
        rgba(31, 41, 55, .35) 40%,
        rgba(31, 41, 55, .75) 70%,
        #1f2937 100%
    );
}

/* ------------------------- texto -- */
.home-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 560px;
}

.home-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 153, .25);
    border-radius: 999px;
    background: rgba(0, 255, 153, .12);
    color: #00ff99;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.home h1 {
    margin-bottom: 24px;

    color: #fff;
    font-size: 2.8rem;
    line-height: 1.15;
}

.home p {
    max-width: 520px;
    margin-bottom: 34px;

    color: #fff;
    opacity: .92;

    font-size: .95rem;
    line-height: 1.7;
    text-align: justify;
}

/* ------------------------- botão -- */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 10px;
    background: #00ff99;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
}

.home-btn-mobile {
    display: none;
}

/* ------------------------- mobile -- */
@media (max-width: 768px) {

    .home {
        min-height: 360px;
        align-items: flex-end;
    }

    .home-container {
        padding: 0 20px 40px;
    }

    .home-bg-img {
        object-position: 60% center;
    }

    .home-person {
        transform: scale(1.18);
        transform-origin: center bottom;
    }

    .home-person-img {
        object-position: 65% center;
    }

    .home-overlay {
        background: linear-gradient(
            90deg,
            rgba(31, 41, 55, .92) 0%,
            rgba(31, 41, 55, .85) 40%,
            rgba(31, 41, 55, .60) 65%,
            rgba(31, 41, 55, .25) 85%,
            rgba(31, 41, 55, 0) 100%
        );
    }

    .home-texto {
        max-width: 290px;
        align-items: flex-start;
        text-align: left;
    }

    .home-badge {
        margin-bottom: 14px;
        padding: 8px 15px;
        font-size: .78rem;
        letter-spacing: .08em;
    }

    .home h1 {
        margin-bottom: 40px;

        font-size: 1.95rem;
        line-height: 1.15;
        text-align: left;
    }

    .home p {
        display: none;
    }

    .home-btn-desktop {
        display: none;
    }

    .home-btn-mobile {
        display: inline-flex;
        width: 60%;
        max-width: 290px;
        min-width: max-content;
        justify-content: center;
        padding: 13px 20px;
        font-size: .90rem;
    }

}

/* ------------------------- mobile landscape -- */
@media (max-width: 768px) and (orientation: landscape) {

    .home {
        min-height: 420px;
        align-items: center;
    }

    .home-container {
        padding: 40px 20px;
    }

    .home-texto {
        max-width: 420px;
    }

    .home-badge {
        margin-bottom: 18px;
    }

    .home h1 {
        margin-bottom: 20px;

        font-size: 2.3rem;
        line-height: 1.12;
    }

    .home p {
        display: block;

        max-width: 420px;
        margin-bottom: 24px;
        font-size: .92rem;
        line-height: 1.6;
        text-align: left;
    }

    .home-btn {
        display: inline-flex;
    }

    .home-btn-mobile{
        display: none;
    }

    .home-person {
        transform: scale(1.08);
    }

    .home-person-img {
        object-position: 72% center;
    }
}

@media (min-width:1600px){

    .home{
        --home-margin: calc((100% - min(90vw, 1600px)) / 2);
        --home-fade-right: min(var(--home-margin), 150px);
        --home-fade-left: min(var(--home-margin), 210px);
    }

    .home-visual{
        width:90vw;
        max-width:1600px;
    }

}
