/* HOME — hero e destaques (carregado só na home, depois do style.css) */
header.hero {
    height: auto;
    background: var(--c1);
}

.hero-swiper {
    position: relative;
    height: calc(100svh - 50px);
    min-height: 520px;
    max-height: 900px;
    margin-top: 50px;
    overflow: hidden;
}

.hero .swiper-slide {
    position: relative;
    overflow: hidden;
    background: var(--c1);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 8s ease-out;
}

.hero .swiper-slide-active .hero-img {
    transform: scale(1);
}

.hero .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 24, 32, .9) 0%, rgba(20, 24, 32, .62) 42%, rgba(20, 24, 32, 0) 78%),
        linear-gradient(0deg, rgba(20, 24, 32, .7) 0%, rgba(20, 24, 32, 0) 35%);
}

.hero-txt {
    position: absolute;
    z-index: 2;
    left: max(2.4rem, calc((100% - 120rem) / 2));
    bottom: 16rem;
    width: min(62rem, 100% - 4.8rem);
    color: var(--c5);
}

.hero-tag,
.hero-tit,
.hero-p,
.hero-btns {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

.hero .swiper-slide-active .hero-tag,
.hero .swiper-slide-active .hero-tit,
.hero .swiper-slide-active .hero-p,
.hero .swiper-slide-active .hero-btns {
    opacity: 1;
    transform: none;
}

.hero .swiper-slide-active .hero-tag { transition-delay: .5s; }
.hero .swiper-slide-active .hero-tit { transition-delay: .7s; }
.hero .swiper-slide-active .hero-p { transition-delay: .9s; }
.hero .swiper-slide-active .hero-btns { transition-delay: 1.1s; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c3);
}

.hero-tag::before {
    content: "";
    width: 3.2rem;
    height: 2px;
    background: var(--c3);
}

.hero-tit {
    margin: 1.4rem 0 1.6rem;
    font-family: var(--f1);
    font-size: clamp(3.2rem, 5vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--c5);
    text-wrap: balance;
}

.hero-tit span {
    color: var(--c3);
}

.hero-p {
    max-width: 50rem;
    font-size: clamp(1.6rem, 1.6vw, 1.9rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.8rem;
}

.hero-btn {
    padding: 1.4rem 2.8rem;
    border-radius: 999px;
    border: 2px solid var(--c3);
    background: var(--c3);
    color: var(--c1);
    font-size: 1.5rem;
    font-weight: 700;
    transition: background .3s, color .3s, border-color .3s;
}

.hero-btn:hover {
    background: var(--c5);
    border-color: var(--c5);
    color: var(--c1);
}

.hero-btn--line {
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
    color: var(--c5);
}

.hero-btn--line:hover {
    background: var(--c2);
    border-color: var(--c2);
    color: var(--c5);
}

.hero-nav {
    position: absolute;
    z-index: 5;
    right: max(2.4rem, calc((100% - 120rem) / 2));
    bottom: 16rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-pag.swiper-pagination-bullets {
    position: static;
    width: auto;
    display: flex;
    gap: .6rem;
    margin-right: 0;
}

.hero-pag .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: var(--c5);
    opacity: .5;
    transition: width .4s, opacity .4s, background .4s;
}

.hero-pag .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 6px;
    background: var(--c3);
    opacity: 1;
}

/* CARDS DE DESTAQUE */
.base {
    inline-size: min(120rem, 100% - 4.8rem);
    margin: -10rem auto 0;
    top: 0;
    gap: 2.4rem;
    z-index: 10;
}

.basex {
    flex: 1;
    align-items: stretch;
}

.basex a {
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 0;
    padding: 3.2rem 2.4rem;
    border-radius: 1.6rem;
    border-top: 4px solid var(--c3);
    box-shadow: 0 20px 45px rgba(20, 24, 32, .18);
    transition: transform .35s, box-shadow .35s;
}

.basex a:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(20, 24, 32, .26);
}

.basex a i {
    margin: 0 0 1.2rem;
    width: 7rem;
    height: 7rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 120, 139, .1);
    color: var(--c2);
    font-size: 3.6rem;
}

.basex a h3 {
    font-size: 1.9rem;
    letter-spacing: .06em;
}

.basex a p {
    padding: .8rem 0 0;
}

/* INTRODUÇÃO */
.home-intro {
    width: min(100rem, 100% - 4.8rem);
    margin: 8rem auto 9rem;
    text-align: center;
}

.home-intro .hero-tag {
    opacity: 1;
    transform: none;
    color: var(--c2);
}

.home-intro .hero-tag::before {
    background: var(--c2);
}

.home-intro h2 {
    margin: 1.4rem 0 2rem;
    font-size: clamp(2.6rem, 3.4vw, 4rem);
    line-height: 1.15;
    color: var(--c1);
    text-wrap: balance;
}

.home-intro p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--c6);
    text-wrap: pretty;
}

@media (max-width: 880px) {
    .hero-txt,
    .hero-nav {
        bottom: 13rem;
    }

    .hero-nav {
        left: 2.4rem;
        right: auto;
        bottom: 5rem;
    }

    .hero .swiper-slide::after {
        background: linear-gradient(0deg, rgba(20, 24, 32, .92) 0%, rgba(20, 24, 32, .55) 55%, rgba(20, 24, 32, .15) 100%);
    }

    .base {
        margin-top: 3rem;
    }

    .basex a {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 580px) {
    .hero-swiper {
        min-height: 560px;
    }

    .hero-txt {
        bottom: 12rem;
    }

    .hero-btn {
        padding: 1.2rem 2.2rem;
        font-size: 1.4rem;
    }

    .home-intro {
        margin: 5rem auto 6rem;
    }
}
