/* Galeria editorial em coverflow da home. */
:where(html.page-index) .cases-coverflow {
    --cases-edge: #ffffff;
    position: relative;
    width: min(1180px, calc(100% - 24px));
    margin: 18px auto 52px;
    padding: 10px 0 6px;
    overflow: hidden;
}

:where(html.dark.page-index) .cases-coverflow {
    --cases-edge: #020202;
}

:where(html.page-index) .cases-coverflow__header {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

:where(html.page-index) .cases-coverflow__hint {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}


:where(html.page-index) .cases-coverflow__hint {
    color: #64748b;
}


:where(html.dark.page-index) .cases-coverflow__hint {
    color: #94a3b8;
}

:where(html.page-index) .cases-coverflow__viewport {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

:where(html.page-index) .cases-coverflow__viewport::before,
:where(html.page-index) .cases-coverflow__viewport::after {
    content: "";
    position: absolute;
    z-index: 7;
    top: 0;
    bottom: 0;
    width: clamp(38px, 9vw, 118px);
    pointer-events: none;
}

:where(html.page-index) .cases-coverflow__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--cases-edge) 3%, rgba(255, 255, 255, 0.76) 38%, transparent 100%);
}

:where(html.page-index) .cases-coverflow__viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--cases-edge) 3%, rgba(255, 255, 255, 0.76) 38%, transparent 100%);
}

:where(html.dark.page-index) .cases-coverflow__viewport::before {
    background: linear-gradient(90deg, #020202 3%, rgba(2, 2, 2, 0.78) 38%, transparent 100%);
}

:where(html.dark.page-index) .cases-coverflow__viewport::after {
    background: linear-gradient(270deg, #020202 3%, rgba(2, 2, 2, 0.78) 38%, transparent 100%);
}

:where(html.page-index) .cases-coverflow .cases-swiper-shell {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 28px 0 48px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    transform: none;
    transition: none;
}

:where(html.page-index) .cases-coverflow .cases-swiper-shell::before {
    content: none;
}

:where(html.page-index) .cases-coverflow .cases-swiper-shell:hover {
    border: 0;
    box-shadow: none;
    transform: none;
}

:where(html.page-index) .cases-coverflow .swiper-wrapper {
    align-items: center;
}

:where(html.page-index) .cases-coverflow .swiper-slide {
    width: clamp(270px, 57vw, 610px);
    aspect-ratio: 3395 / 2057;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    background: #dbe6f5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    cursor: zoom-in;
    opacity: 0.42;
    filter: saturate(0.72) brightness(0.78);
    transition:
        opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 520ms ease,
        box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

:where(html.page-index) .cases-coverflow .swiper-slide::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 36%);
    pointer-events: none;
}

:where(html.page-index) .cases-coverflow .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 70%, rgba(2, 6, 23, 0.14));
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
}

:where(html.page-index) .cases-coverflow .swiper-slide-active {
    z-index: 4;
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow:
        0 34px 72px rgba(15, 23, 42, 0.22),
        0 14px 34px rgba(5, 107, 246, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 1;
    filter: saturate(1.04) brightness(1);
}

:where(html.dark.page-index) .cases-coverflow .swiper-slide {
    border-color: rgba(96, 165, 250, 0.08);
    background: #07101f;
    box-shadow: 0 18px 40px rgba(0, 2, 6, 0.52);
    filter: saturate(0.62) brightness(0.5);
}

:where(html.dark.page-index) .cases-coverflow .swiper-slide-active {
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow:
        0 36px 78px rgba(0, 2, 6, 0.72),
        0 14px 38px rgba(29, 78, 216, 0.16),
        inset 0 1px 0 rgba(96, 165, 250, 0.08);
    filter: saturate(1) brightness(0.9);
}

:where(html.page-index) .cases-coverflow .swiper-slide-active::after {
    opacity: 1;
}

:where(html.page-index) .cases-coverflow .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.002);
    filter: none;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

:where(html.page-index) .cases-coverflow .swiper-slide:hover img,
:where(html.page-index) .cases-coverflow .swiper-slide-active:hover img {
    filter: none;
    transform: scale(1.025);
}

:where(html.page-index) .cases-coverflow .swiper-slide:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 5px;
}

:where(html.page-index) .cases-coverflow .swiper-button-next,
:where(html.page-index) .cases-coverflow .swiper-button-prev {
    z-index: 10;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #056bf6;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-50%);
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

:where(html.page-index) .cases-coverflow .swiper-button-prev {
    left: max(8px, calc((100% - 940px) / 2));
}

:where(html.page-index) .cases-coverflow .swiper-button-next {
    right: max(8px, calc((100% - 940px) / 2));
}

:where(html.page-index) .cases-coverflow .swiper-button-next:hover,
:where(html.page-index) .cases-coverflow .swiper-button-prev:hover {
    border-color: rgba(5, 107, 246, 0.26);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(5, 107, 246, 0.2);
    transform: translateY(-50%) scale(1.06);
}

:where(html.page-index) .cases-coverflow .swiper-button-next::after,
:where(html.page-index) .cases-coverflow .swiper-button-prev::after {
    font-size: 15px;
    font-weight: 900;
}

:where(html.dark.page-index) .cases-coverflow .swiper-button-next,
:where(html.dark.page-index) .cases-coverflow .swiper-button-prev {
    border-color: rgba(96, 165, 250, 0.12);
    background: rgba(4, 8, 14, 0.9);
    color: #93c5fd;
    box-shadow: 0 16px 36px rgba(0, 2, 6, 0.62);
}

:where(html.page-index) .cases-coverflow .swiper-pagination {
    bottom: 8px !important;
}

:where(html.page-index) .cases-coverflow .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 4px;
    border: 0;
    background: #94a3b8;
    box-shadow: none;
    opacity: 0.34;
    transition:
        width 260ms cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 260ms ease,
        background-color 260ms ease,
        opacity 260ms ease,
        transform 260ms ease;
}

:where(html.page-index) .cases-coverflow .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #056bf6, #1bc7fb);
    opacity: 1;
    transform: none;
}

:where(html.page-index) .cases-coverflow__details {
    width: min(760px, calc(100% - 32px));
    min-height: 220px;
    margin: 16px auto 0;
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
}

:where(html.page-index) .cases-coverflow__category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(5, 107, 246, 0.13);
    border-radius: 999px;
    background: rgba(5, 107, 246, 0.07);
    color: #075fd6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

:where(html.page-index) .cases-coverflow__details h2 {
    margin: 14px 0 10px;
    color: #0f172a;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

:where(html.page-index) .cases-coverflow__details > p {
    max-width: 680px;
    margin: 0;
    padding: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    text-wrap: pretty;
}

:where(html.dark.page-index) .cases-coverflow__category {
    border-color: rgba(96, 165, 250, 0.12);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}

:where(html.dark.page-index) .cases-coverflow__details h2 {
    color: #f8fafc;
}

:where(html.dark.page-index) .cases-coverflow__details > p {
    color: #cbd5e1;
}

:where(html.page-index) .cases-coverflow__footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

:where(html.page-index) .cases-coverflow__counter {
    height: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 15px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #94a3b8;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

:where(html.page-index) .cases-coverflow__counter strong,
:where(html.page-index) .cases-coverflow__counter > span {
    height: 100%;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

:where(html.page-index) .cases-coverflow__counter strong {
    color: #0f172a;
    font-size: 1rem;
}

:where(html.page-index) .cases-coverflow__cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

:where(html.page-index) .cases-coverflow__cta:hover {
    border-color: rgba(5, 107, 246, 0.22);
    color: #056bf6;
    box-shadow: 0 14px 30px rgba(5, 107, 246, 0.12);
    transform: translateY(-2px);
}

:where(html.dark.page-index) .cases-coverflow__counter,
:where(html.dark.page-index) .cases-coverflow__cta {
    border-color: rgba(96, 165, 250, 0.09);
    background: rgba(4, 8, 14, 0.94);
    color: #94a3b8;
    box-shadow: none;
}

:where(html.dark.page-index) .cases-coverflow__counter strong,
:where(html.dark.page-index) .cases-coverflow__cta {
    color: #e5eefc;
}

:where(html.page-index) .cases-coverflow.has-gallery-motion .cases-coverflow__header,
:where(html.page-index) .cases-coverflow.has-gallery-motion .cases-coverflow__viewport,
:where(html.page-index) .cases-coverflow.has-gallery-motion .cases-coverflow__details {
    transition:
        opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 720ms ease;
}

:where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__header,
:where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__viewport,
:where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__details {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 22px, 0) scale(0.985);
}

:where(html.page-index) .cases-coverflow.has-gallery-motion .cases-coverflow__viewport {
    transition-delay: 80ms;
}

:where(html.page-index) .cases-coverflow.has-gallery-motion .cases-coverflow__details {
    transition-delay: 150ms;
}

:where(html.page-index) #gallery-lightbox .content {
    width: min(1120px, calc(100% - 32px));
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

:where(html.page-index) #gallery-lightbox img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #020617;
}

:where(html.page-index) #gallery-lightbox .close,
:where(html.page-index) #gallery-lightbox .prev,
:where(html.page-index) #gallery-lightbox .next {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:where(html.page-index) #gallery-lightbox .gallery-lightbox__caption {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 18px;
    max-width: min(70%, 520px);
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:where(html.page-index) #gallery-lightbox .gallery-lightbox__caption strong,
:where(html.page-index) #gallery-lightbox .gallery-lightbox__caption span {
    display: block;
}

:where(html.page-index) #gallery-lightbox .gallery-lightbox__caption strong {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

:where(html.page-index) #gallery-lightbox .gallery-lightbox__caption span {
    color: #bfdbfe;
    font-size: 0.78rem;
}

:where(html.page-index) #gallery-lightbox .gallery-lightbox__counter {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 768px) {
    :where(html.page-index) .cases-coverflow {
        width: 100%;
        margin-top: 12px;
        margin-bottom: 36px;
    }

    :where(html.page-index) .cases-coverflow__header {
        width: calc(100% - 28px);
    }

    :where(html.page-index) .cases-coverflow__viewport {
        padding: 0 8px;
    }

    :where(html.page-index) .cases-coverflow__viewport::before,
    :where(html.page-index) .cases-coverflow__viewport::after {
        width: 38px;
    }

    :where(html.page-index) .cases-coverflow .cases-swiper-shell {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 22px 0 44px;
        border-radius: 0;
    }

    :where(html.page-index) .cases-coverflow .swiper-slide {
        width: min(78vw, 500px);
        border-radius: 22px;
    }

    :where(html.page-index) .cases-coverflow .swiper-button-next,
    :where(html.page-index) .cases-coverflow .swiper-button-prev {
        width: 42px;
        height: 42px;
        margin: 0;
        background: rgba(255, 255, 255, 0.88);
    }

    :where(html.page-index) .cases-coverflow .swiper-button-prev {
        left: 10px;
    }

    :where(html.page-index) .cases-coverflow .swiper-button-next {
        right: 10px;
    }

    :where(html.dark.page-index) .cases-coverflow .swiper-button-next,
    :where(html.dark.page-index) .cases-coverflow .swiper-button-prev {
        background: rgba(4, 8, 14, 0.88);
    }

    :where(html.page-index) .cases-coverflow__details {
        min-height: 240px;
        margin-top: 10px;
    }

    :where(html.page-index) .cases-coverflow__details > p {
        font-size: 0.95rem;
        line-height: 1.62;
    }
}

@media (max-width: 480px) {
    :where(html.page-index) .cases-coverflow__header {
        align-items: center;
    }

    :where(html.page-index) .cases-coverflow__hint {
        width: 38px;
        height: 38px;
        justify-content: center;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.64);
        font-size: 0;
    }

    :where(html.page-index) .cases-coverflow__hint i {
        font-size: 0.8rem;
    }

    :where(html.dark.page-index) .cases-coverflow__hint {
        border-color: rgba(96, 165, 250, 0.09);
        background: rgba(4, 8, 14, 0.94);
    }

    :where(html.page-index) .cases-coverflow .swiper-slide {
        width: calc(100vw - 64px);
        min-width: 250px;
        border-radius: 19px;
    }

    :where(html.page-index) .cases-coverflow .swiper-button-next,
    :where(html.page-index) .cases-coverflow .swiper-button-prev {
        width: 38px;
        height: 38px;
    }

    :where(html.page-index) .cases-coverflow .swiper-button-next::after,
    :where(html.page-index) .cases-coverflow .swiper-button-prev::after {
        font-size: 12px;
    }

    :where(html.page-index) .cases-coverflow__details {
        width: calc(100% - 28px);
        min-height: 260px;
    }

    :where(html.page-index) .cases-coverflow__details h2 {
        font-size: 1.7rem;
    }

    :where(html.page-index) .cases-coverflow__footer {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    :where(html.page-index) .cases-coverflow__cta {
        min-width: 0;
        padding: 0 13px;
    }

    :where(html.page-index) #gallery-lightbox .gallery-lightbox__caption {
        left: 12px;
        right: 70px;
        bottom: 12px;
        max-width: none;
        padding: 10px 12px;
    }

    :where(html.page-index) #gallery-lightbox .gallery-lightbox__counter {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(html.page-index) .cases-coverflow *,
    :where(html.page-index) .cases-coverflow *::before,
    :where(html.page-index) .cases-coverflow *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

    :where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__header,
    :where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__viewport,
    :where(html.page-index) .cases-coverflow.has-gallery-motion:not(.is-visible) .cases-coverflow__details {
        opacity: 1;
        filter: none;
        transform: none;
    }
}
