/**
 * Carrossel SEO do Veen Child.
 * Sem clones, sem dependências e com scroll-snap nativo.
 */

.vch-carousel-section {
    --vch-gap: 24px;
    --vch-radius: 11px;
    --vch-card-height: clamp(350px, 34vw, 475px);
    --vch-accent: #ef5350;
    margin-top: 34px;
    margin-bottom: 52px;
    overflow: hidden;
}

.vch-carousel__heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.vch-carousel__title {
    margin: 0;
}

.vch-carousel {
    position: relative;
}

.vch-carousel__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.vch-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.vch-carousel__viewport:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--vch-accent) 70%, transparent);
    outline-offset: 5px;
    border-radius: var(--vch-radius);
}

.vch-carousel__track {
    display: flex;
    gap: var(--vch-gap);
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vch-carousel__slide {
    flex: 0 0 calc((100% - (var(--vch-gap) * 2)) / 3);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.vch-card,
.vch-card__link,
.vch-card__media {
    display: block;
    width: 100%;
    height: 100%;
}

.vch-card {
    position: relative;
    height: var(--vch-card-height);
    margin: 0;
    overflow: hidden;
    border-radius: var(--vch-radius);
    background: #202124;
    box-shadow: 0 8px 26px rgba(20, 22, 26, 0.09);
    isolation: isolate;
}

.vch-card__link {
    position: relative;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    border-radius: inherit;
}

.vch-card__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #31343a;
}

.vch-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.002);
    transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 700ms ease;
}

.vch-card__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20), transparent 36%),
        linear-gradient(135deg, #2f3440, #15171c 70%);
}

.vch-card__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(0,0,0,.03) 20%, rgba(0,0,0,.22) 54%, rgba(0,0,0,.86) 100%),
        linear-gradient(90deg, rgba(0,0,0,.20), transparent 55%);
    transition: background 350ms ease;
}

.vch-card__content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: clamp(22px, 2.4vw, 34px);
}



.vch-card__title {
    display: block;
    max-width: 95%;
    color: #fff;
    font-family: inherit;
    font-size: clamp(25px, 2.35vw, 36px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.vch-card__link:hover .vch-card__image,
.vch-card__link:focus-visible .vch-card__image {
    transform: scale(1.055);
    filter: saturate(1.05) contrast(1.02);
}

.vch-card__link:hover .vch-card__shade,
.vch-card__link:focus-visible .vch-card__shade {
    background:
        linear-gradient(180deg, rgba(0,0,0,.01) 16%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.90) 100%),
        linear-gradient(90deg, rgba(0,0,0,.22), transparent 58%);
}

.vch-card__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.vch-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 48px;
    margin-top: 22px;
}

.vch-carousel__left-controls,
.vch-carousel__arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vch-carousel__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vch-carousel__dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd1d4;
    box-shadow: none;
    cursor: pointer;
    transition: width 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.vch-carousel__dot:hover,
.vch-carousel__dot:focus-visible {
    transform: scale(1.16);
}

.vch-carousel__dot[aria-current="true"] {
    width: 23px;
    background: var(--vch-accent);
}

.vch-carousel__arrow,
.vch-carousel__pause {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid rgba(20, 22, 26, .10);
    border-radius: 999px;
    background: #fff;
    color: #22252a;
    box-shadow: 0 5px 16px rgba(20,22,26,.06);
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vch-carousel__arrow:hover,
.vch-carousel__arrow:focus-visible,
.vch-carousel__pause:hover,
.vch-carousel__pause:focus-visible {
    color: var(--vch-accent);
    border-color: color-mix(in srgb, var(--vch-accent) 45%, transparent);
    box-shadow: 0 7px 20px rgba(20,22,26,.11);
    transform: translateY(-1px);
}

.vch-carousel__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vch-icon-pause,
.vch-icon-pause::after {
    display: block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

.vch-icon-pause {
    position: relative;
    margin-right: 6px;
}

.vch-icon-pause::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
}

.vch-icon-play {
    display: none;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

.vch-carousel__pause[aria-pressed="true"] .vch-icon-pause {
    display: none;
}

.vch-carousel__pause[aria-pressed="true"] .vch-icon-play {
    display: block;
}

.vch-carousel--static .vch-carousel__viewport {
    overflow: visible;
}

.vch-carousel--static .vch-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vch-carousel--static .vch-carousel__slide {
    min-width: 0;
}

@media (max-width: 1100px) {
    .vch-carousel-section {
        --vch-gap: 20px;
        --vch-card-height: clamp(330px, 47vw, 440px);
    }

    .vch-carousel__slide {
        flex-basis: calc((100% - var(--vch-gap)) / 2);
    }

    .vch-carousel--static .vch-carousel__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vch-carousel-section {
        --vch-gap: 14px;
        --vch-card-height: min(118vw, 450px);
        margin-top: 24px;
        margin-bottom: 38px;
    }

    .vch-carousel__heading-row {
        margin-bottom: 16px;
    }

    .vch-carousel__slide {
        flex-basis: 88%;
    }

    .vch-card__content {
        padding: 24px;
    }

    .vch-card__title {
        max-width: 100%;
        font-size: clamp(26px, 8vw, 34px);
    }

    .vch-carousel__controls {
        margin-top: 17px;
    }

    .vch-carousel__arrow,
    .vch-carousel__pause {
        width: 39px;
        height: 39px;
        min-width: 39px;
    }

    .vch-carousel--static .vch-carousel__track {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vch-carousel__viewport {
        scroll-behavior: auto;
    }

    .vch-card__image,
    .vch-card__shade,
    .vch-carousel__dot,
    .vch-carousel__arrow,
    .vch-carousel__pause {
        transition: none;
    }
}

@supports not (color: color-mix(in srgb, red 50%, white)) {
    .vch-carousel__viewport:focus-visible {
        outline-color: var(--vch-accent);
    }

    .vch-carousel__arrow:hover,
    .vch-carousel__arrow:focus-visible,
    .vch-carousel__pause:hover,
    .vch-carousel__pause:focus-visible {
        border-color: var(--vch-accent);
    }
}

/* v1.8.0 — contenção contra overflow da página -------------------------------- */
.vch-carousel-section,
.vch-carousel,
.vch-carousel__viewport {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vch-carousel__viewport {
    position: relative;
    touch-action: pan-y pan-x;
    contain: layout paint;
}

.vch-carousel__track {
    max-width: none;
    min-width: 0;
}

.vch-carousel__slide,
.vch-card,
.vch-card__link,
.vch-card__media,
.vch-card__image {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 767px) {
    .vch-carousel__viewport {
        width: 100%;
        max-width: 100%;
    }
}


/* v1.9.0 — controles nunca podem aumentar a largura da página ---------------- */
.vch-carousel__controls,
.vch-carousel__left-controls,
.vch-carousel__dots,
.vch-carousel__arrows {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.vch-carousel__left-controls {
    flex: 1 1 auto;
    overflow: hidden;
}

.vch-carousel__dots {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vch-carousel__dots::-webkit-scrollbar {
    display: none;
}

.vch-carousel__pause,
.vch-carousel__arrows {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .vch-carousel__controls {
        width: 100%;
        gap: 10px;
    }

    .vch-carousel__left-controls {
        flex: 1 1 0%;
        gap: 8px;
    }

    .vch-carousel__dots {
        gap: 7px;
        padding: 4px 2px;
        scroll-behavior: smooth;
    }

    .vch-carousel__dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }

    .vch-carousel__dot[aria-current="true"] {
        width: 18px;
    }

    .vch-carousel__arrows {
        gap: 7px;
    }
}
