/* Carrossel responsivo da página inicial — 2026-10-14 */

.home-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #edf3f8;
}

.home-carousel__viewport {
    position: relative;
    width: min(100%, 1920px);
    aspect-ratio: 32 / 11;
    margin-inline: auto;
    overflow: hidden;
    background: #edf3f8;
    outline: none;
    touch-action: pan-y;
}

.home-carousel__slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.012);
    transition:
        opacity 600ms ease,
        transform 850ms ease,
        visibility 0s linear 850ms;
}

.home-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0s;
}

.home-carousel__content,
.home-carousel__picture,
.home-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
}

.home-carousel__content {
    color: inherit;
    text-decoration: none;
}

.home-carousel__image {
    object-fit: cover;
    object-position: center;
}

.home-carousel__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: inline-flex;
    width: 58px;
    height: 76px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent;
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.92;
    transform: translateY(-50%);
    transition:
        opacity 150ms ease,
        transform 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.home-carousel__arrow--previous {
    left: clamp(8px, 2.2vw, 34px);
}

.home-carousel__arrow--next {
    right: clamp(8px, 2.2vw, 34px);
}

.home-carousel__arrow svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0 2px 2px rgb(0 0 0 / 90%))
        drop-shadow(0 0 5px rgb(0 0 0 / 65%));
}

.home-carousel__arrow:focus-visible,
.home-carousel__toggle:focus-visible,
.home-carousel__dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.home-carousel__controls {
    position: absolute;
    z-index: 4;
    right: 50%;
    bottom: clamp(12px, 1.8vw, 28px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    background: rgb(7 34 73 / 66%);
    box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
    transform: translateX(50%);
}

.home-carousel__toggle {
    display: inline-flex;
    width: 24px;
    height: 24px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid rgb(255 255 255 / 28%);
    border-radius: 0;
    appearance: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-carousel__toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 86%);
    border-radius: 999px;
    appearance: none;
    background: transparent;
    cursor: pointer;
    transition:
        width 180ms ease,
        background-color 180ms ease;
}

.home-carousel__dot[aria-current='true'] {
    width: 26px;
    background: #fff;
}

.home-carousel__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .home-carousel__arrow:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.12);
    }

    .home-carousel__dot:hover {
        background: rgb(255 255 255 / 68%);
    }
}

@media (max-width: 700px) {
    .home-carousel__viewport {
        aspect-ratio: 4 / 5;
    }

    .home-carousel__arrow {
        width: 46px;
        height: 64px;
    }

    .home-carousel__arrow svg {
        width: 32px;
        height: 32px;
    }

    .home-carousel__arrow--previous {
        left: 4px;
    }

    .home-carousel__arrow--next {
        right: 4px;
    }

    .home-carousel__controls {
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel__slide,
    .home-carousel__arrow,
    .home-carousel__dot {
        transition: none;
    }
}
