/* TechCiência 3.1.17 — correção definitiva do carrossel da home */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.page-home .hero-home {
    position: relative;
    overflow: hidden;
}

.page-home .hero-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: clamp(36px, 4.5vw, 72px);
    align-items: start;
}

.page-home .hero-home__copy,
.page-home .hero-home__visual {
    min-width: 0;
}

.page-home .hero-home__copy {
    width: 100%;
    max-width: 650px;
    padding-top: 0;
}

.page-home .hero-home__visual {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-start;
}

.page-home .hero-services-carousel,
.page-home .hero-services-carousel.science-depth-card,
.page-home .hero-services-carousel.science-depth-card:hover {
    position: relative;
    display: block;
    width: min(100%, 560px);
    max-width: 560px;
    height: clamp(540px, 46vw, 620px);
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    justify-self: auto;
    align-self: auto;
    overflow: hidden;
    border-radius: 34px;
    transform: none !important;
    translate: none !important;
}

.page-home .hero-services-carousel__viewport,
.page-home .hero-services-carousel__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.page-home .hero-services-carousel__viewport {
    overflow: hidden;
    border-radius: inherit;
}

.page-home .hero-services-carousel__track {
    display: block !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
}

.page-home .hero-service-slide {
    position: absolute !important;
    inset: 0;
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    height: 100% !important;
    min-height: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: none !important;
    transition: opacity .72s ease, visibility .72s ease;
}

.page-home .hero-service-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-home .hero-service-slide > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-home .hero-service-slide__shade {
    z-index: 1;
}

.page-home .hero-service-slide__content {
    z-index: 3;
    right: clamp(22px, 3vw, 38px);
    bottom: 92px;
    left: clamp(22px, 3vw, 38px);
}

.page-home .hero-services-carousel__controls {
    position: absolute;
    z-index: 8;
    top: auto !important;
    right: 16px;
    bottom: 16px !important;
    left: 16px;
    width: auto;
    margin: 0;
}

.page-home .hero-services-carousel::after {
    z-index: 9;
    top: auto !important;
    right: 0;
    bottom: 0 !important;
    left: 0;
}

@media (max-width: 1120px) {
    .page-home .hero-home__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .page-home .hero-home__copy {
        max-width: 760px;
    }

    .page-home .hero-home__visual {
        justify-content: center;
    }

    .page-home .hero-services-carousel,
    .page-home .hero-services-carousel.science-depth-card,
    .page-home .hero-services-carousel.science-depth-card:hover {
        width: min(100%, 680px);
        max-width: 680px;
        height: clamp(500px, 70vw, 580px);
    }
}

@media (max-width: 760px) {
    .page-home .hero-home__grid {
        gap: 26px;
    }

    .page-home .hero-services-carousel,
    .page-home .hero-services-carousel.science-depth-card,
    .page-home .hero-services-carousel.science-depth-card:hover {
        width: 100%;
        max-width: none;
        height: clamp(460px, 128vw, 540px);
        border-radius: 24px;
    }

    .page-home .hero-service-slide__content {
        right: 20px;
        bottom: 80px;
        left: 20px;
    }

    .page-home .hero-services-carousel__controls {
        right: 12px;
        bottom: 12px !important;
        left: 12px;
    }
}
