/**
 * historia.css
 * Página História do Sindicato
 * Prefixo exclusivo: hist-
 */

/* HERO */
.hist-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(72,157,255,.24), transparent 30%),
        radial-gradient(circle at 16% 100%, rgba(227,33,43,.12), transparent 31%),
        linear-gradient(130deg,#03172f 0%,#062d62 50%,#0c4d9f 100%);
}

.hist-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: .055;
    background-image:
        linear-gradient(rgba(255,255,255,.75) 1px, transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.75) 1px,transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to right, transparent, #000 58%);
}

.hist-hero__orb {
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.hist-hero__orb--one {
    width: 430px;
    height: 430px;
    right: -165px;
    top: -190px;
    box-shadow: 0 0 0 65px rgba(255,255,255,.016),0 0 0 130px rgba(255,255,255,.011);
}

.hist-hero__orb--two {
    width: 120px;
    height: 120px;
    left: 45%;
    bottom: -58px;
}

.hist-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 28px;
    padding-bottom: 84px;
}

.hist-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 46px;
    color: rgba(255,255,255,.68);
    font-size: .79rem;
}

.hist-breadcrumb a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

.hist-breadcrumb > i {
    font-size: .6rem;
    opacity: .55;
}

.hist-hero__layout {
    display: grid;
    grid-template-columns: minmax(0,1.22fr) minmax(290px,.78fr);
    gap: clamp(42px,7vw,96px);
    align-items: center;
}

.hist-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hist-hero__copy h1 {
    max-width: 880px;
    margin: 0 0 21px;
    color: #fff;
    font-family: "Manrope","Inter",sans-serif;
    font-size: clamp(2.5rem,5vw,4.7rem);
    line-height: .98;
    letter-spacing: -.052em;
}

.hist-hero__copy h1 strong {
    color: #add5ff;
}

.hist-hero__copy > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.79);
    font-size: clamp(1rem,1.5vw,1.12rem);
    line-height: 1.8;
}

.hist-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hist-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 11px;
    text-decoration: none;
    font-size: .89rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hist-btn:hover {
    transform: translateY(-2px);
}

.hist-btn--light {
    color: #07356f;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.hist-btn--outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.055);
}

.hist-hero__visual {
    display: flex;
    justify-content: center;
}

.hist-year-mark {
    position: relative;
    display: flex;
    width: min(100%,330px);
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 0 50px rgba(255,255,255,.035),0 32px 62px rgba(0,0,0,.22);
}

.hist-year-mark__ring {
    position: absolute;
    inset: 22px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 50%;
}

.hist-year-mark > small {
    color: #9dc8fb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hist-year-mark > strong {
    color: #fff;
    font-family: "Manrope","Inter",sans-serif;
    font-size: 4.5rem;
    line-height: 1;
}

.hist-year-mark > div {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    color: rgba(255,255,255,.75);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* BASE */
.hist-story,
.hist-headquarters,
.hist-era,
.hist-gallery,
.hist-achievements,
.hist-closing,
.hist-cta {
    padding: clamp(64px,8vw,104px) 0;
}

.hist-section-kicker {
    display: inline-block;
    color: #0d55b7;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hist-section-line {
    display: block;
    width: 48px;
    height: 3px;
    margin: 11px 0 18px;
    border-radius: 99px;
    background: #e3212b;
}

.hist-story__heading,
.hist-section-heading {
    max-width: 830px;
    margin-bottom: 38px;
}

.hist-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hist-section-heading--center .hist-section-line {
    margin-right: auto;
    margin-left: auto;
}

.hist-story__heading h2,
.hist-section-heading h2,
.hist-cta__copy h2 {
    margin: 0;
    color: #061f45;
    font-family: "Manrope","Inter",sans-serif;
    font-size: clamp(1.9rem,3.4vw,3rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.hist-section-heading p {
    color: #5e6c7d;
    line-height: 1.75;
}

/* MARCOS */
.hist-milestones {
    position: relative;
    z-index: 3;
    margin-top: -28px;
}

.hist-milestones__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
}

.hist-milestone-card {
    padding: 20px 19px;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(6,31,69,.09);
}

.hist-milestone-card > span {
    display: block;
    margin-bottom: 7px;
    color: #0d55b7;
    font-family: "Manrope","Inter",sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.hist-milestone-card strong,
.hist-milestone-card small {
    display: block;
}

.hist-milestone-card strong {
    color: #082b5d;
    font-size: .88rem;
}

.hist-milestone-card small {
    margin-top: 4px;
    color: #7c8898;
    font-size: .72rem;
    line-height: 1.45;
}

/* HISTÓRIA */
.hist-story {
    padding-top: clamp(90px,10vw,125px);
    background: #fff;
}

.hist-story__content {
    max-width: 920px;
}

.hist-story__content > p,
.hist-era__text > p,
.hist-achievements__story > p,
.hist-closing__text > p {
    color: #5f6c7d;
    font-size: .96rem;
    line-height: 1.86;
}

.hist-story__content > p + p,
.hist-era__text > p + p,
.hist-achievements__story > p + p,
.hist-closing__text > p + p {
    margin-top: 19px;
}

.hist-story__content a,
.hist-era__text a,
.hist-closing__text a {
    color: #0d55b7;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dotted #0d55b7;
}

.hist-highlight-card {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr);
    gap: 18px;
    margin: 31px 0;
    padding: 26px;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(20,99,217,.08), transparent 38%),
        #f6faff;
}

.hist-highlight-card__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg,#07356f,#1463d9);
    font-size: 1.5rem;
}

.hist-highlight-card small,
.hist-highlight-card strong {
    display: block;
}

.hist-highlight-card small {
    color: #0d55b7;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hist-highlight-card strong {
    margin-top: 4px;
    color: #061f45;
    font-size: 1.12rem;
}

.hist-highlight-card p {
    margin: 8px 0 0;
    color: #647386;
    font-size: .84rem;
    line-height: 1.65;
}

.hist-quote {
    position: relative;
    margin: 34px 0 0;
    padding: 27px 30px 27px 74px;
    border-left: 4px solid #e3212b;
    border-radius: 0 16px 16px 0;
    background: #f8fafc;
}

.hist-quote > i {
    position: absolute;
    left: 26px;
    top: 28px;
    color: #c6d6e8;
    font-size: 1.9rem;
}

.hist-quote p {
    margin: 0;
    color: #536277;
    font-size: .94rem;
    font-style: italic;
    line-height: 1.75;
}

.hist-quote cite {
    display: block;
    margin-top: 12px;
    color: #082b5d;
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
}

/* FACHADA */
.hist-headquarters {
    padding-top: 0;
    background: #fff;
}

.hist-headquarters__figure {
    max-width: 960px;
    margin: 0 auto;
}

.hist-headquarters__image {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 52px rgba(6,31,69,.14);
}

.hist-headquarters__image img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.hist-headquarters__figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 4px 0;
    color: #657487;
    font-size: .78rem;
}

.hist-headquarters__figure figcaption span {
    color: #0d55b7;
    font-weight: 800;
}

.hist-headquarters__figure figcaption strong {
    color: #40516a;
}

/* ERAS */
.hist-era {
    background: #fff;
}

.hist-era--soft {
    background: #f5f8fc;
}

.hist-era__layout {
    display: grid;
    grid-template-columns: 210px minmax(0,1fr);
    gap: clamp(34px,6vw,74px);
    align-items: start;
}

.hist-era__year {
    position: sticky;
    top: 110px;
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg,#061f45,#0b4c9e);
    box-shadow: 0 18px 38px rgba(6,31,69,.13);
}

.hist-era__year--red {
    background: linear-gradient(145deg,#7f151d,#d92833);
}

.hist-era__year small,
.hist-era__year strong {
    display: block;
}

.hist-era__year small {
    color: rgba(255,255,255,.68);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hist-era__year strong {
    margin-top: 7px;
    color: #fff;
    font-family: "Manrope","Inter",sans-serif;
    font-size: 2rem;
    line-height: 1.1;
}

.hist-fact-card {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    gap: 16px;
    margin-top: 28px;
    padding: 23px;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    background: #f5f9fe;
}

.hist-fact-card > i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    color: #0d55b7;
    background: #e6f1ff;
    font-size: 1.3rem;
}

.hist-fact-card small,
.hist-fact-card strong {
    display: block;
}

.hist-fact-card small {
    color: #0d55b7;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.hist-fact-card strong {
    margin-top: 4px;
    color: #082b5d;
    font-size: 1rem;
}

.hist-fact-card p {
    margin: 8px 0 0;
    color: #657487;
    font-size: .82rem;
    line-height: 1.62;
}

.hist-fact-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0d55b7;
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
}

/* GALERIA */
.hist-gallery {
    overflow: hidden;
    background: #eef4fb;
}

.hist-carousel {
    position: relative;
}

.hist-carousel__viewport {
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

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

.hist-carousel__track {
    display: flex;
    gap: 18px;
}

.hist-slide {
    flex: 0 0 calc((100% - 36px) / 3);
    margin: 0;
}

.hist-slide__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    background: #dbe7f4;
    aspect-ratio: 4 / 3;
}

.hist-slide__button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hist-slide__button:hover img {
    transform: scale(1.04);
}

.hist-slide__button > span {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: rgba(4,24,50,.75);
    backdrop-filter: blur(7px);
}

.hist-carousel__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #082b5d;
    background: #fff;
    box-shadow: 0 10px 26px rgba(6,31,69,.16);
    cursor: pointer;
    transform: translateY(-50%);
}

.hist-carousel__nav:disabled {
    opacity: .35;
    cursor: default;
}

.hist-carousel__nav--prev {
    left: -18px;
}

.hist-carousel__nav--next {
    right: -18px;
}

.hist-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.hist-carousel__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b7c5d6;
    cursor: pointer;
}

.hist-carousel__dots button.is-active {
    width: 24px;
    border-radius: 99px;
    background: #0d55b7;
}

.hist-gallery__cta {
    margin-top: 26px;
    text-align: center;
}

.hist-link-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0d55b7;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.hist-gallery__empty {
    padding: 34px;
    border: 1px dashed #bdcee1;
    border-radius: 18px;
    text-align: center;
    color: #667589;
    background: #fff;
}

.hist-gallery__empty > i {
    display: block;
    margin-bottom: 10px;
    color: #0d55b7;
    font-size: 2rem;
}

.hist-gallery__empty strong {
    display: block;
    color: #082b5d;
}

.hist-gallery__empty p {
    margin: 6px 0 0;
    font-size: .78rem;
}

/* CONQUISTAS */
.hist-achievements {
    background: #f5f8fc;
}

.hist-achievements__story {
    max-width: 920px;
    margin: 0 auto 38px;
}

.hist-achievements__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.hist-achievement-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 24px 21px;
    border: 1px solid #e0e9f4;
    border-radius: 18px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(6,31,69,.045);
    transition: transform .22s ease, box-shadow .22s ease;
}

.hist-achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(6,31,69,.09);
}

.hist-achievement-card > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 14px;
    color: #0d55b7;
    background: #eaf3ff;
}

.hist-achievement-card > strong {
    color: #082b5d;
    font-size: 1rem;
}

.hist-achievement-card > p {
    flex: 1;
    margin: 9px 0 18px;
    color: #687688;
    font-size: .8rem;
    line-height: 1.62;
}

.hist-achievement-card > small {
    color: #0d55b7;
    font-size: .72rem;
    font-weight: 800;
}

/* FECHAMENTO */
.hist-closing {
    background: #fff;
}

.hist-closing__grid {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
    gap: 34px;
    align-items: start;
}

.hist-closing__icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg,#07356f,#1463d9);
    box-shadow: 0 18px 34px rgba(20,99,217,.2);
    font-size: 1.8rem;
}

.hist-closing__final {
    padding: 18px 20px;
    border-left: 4px solid #e3212b;
    border-radius: 0 13px 13px 0;
    color: #33465f !important;
    background: #f6f8fb;
    font-weight: 800;
}

/* CTA */
.hist-cta {
    background: #fff;
    padding-top: 0;
}

.hist-cta__box {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 31px 34px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 87% 0%, rgba(255,255,255,.11), transparent 31%),
        linear-gradient(135deg,#061f45,#0b438c);
    box-shadow: 0 24px 50px rgba(6,31,69,.15);
}

.hist-cta__icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 19px;
    background: rgba(255,255,255,.1);
    font-size: 1.7rem;
}

.hist-cta__copy > span {
    display: block;
    margin-bottom: 4px;
    color: #a6cffd;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hist-cta__copy h2 {
    color: #fff;
    font-size: clamp(1.5rem,2.5vw,2.2rem);
}

.hist-cta__copy p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.72);
    font-size: .86rem;
}

/* LIGHTBOX */
.hist-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
}

.hist-lightbox[hidden] {
    display: none;
}

.hist-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(2,13,29,.91);
    cursor: pointer;
}

.hist-lightbox__dialog {
    position: absolute;
    inset: 4vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hist-lightbox__image {
    display: block;
    max-width: min(1200px, 88vw);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0,0,0,.4);
}

.hist-lightbox__close,
.hist-lightbox__nav {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.hist-lightbox__close {
    top: 0;
    right: 0;
}

.hist-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.hist-lightbox__nav--prev {
    left: 0;
}

.hist-lightbox__nav--next {
    right: 0;
}

.hist-lightbox-open {
    overflow: hidden;
}

/* RESPONSIVO */
@media (max-width: 1050px) {
    .hist-hero__layout {
        grid-template-columns: 1fr;
    }

    .hist-hero__visual {
        display: none;
    }

    .hist-milestones__grid,
    .hist-achievements__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hist-slide {
        flex-basis: calc((100% - 18px) / 2);
    }

    .hist-cta__box {
        grid-template-columns: auto minmax(0,1fr);
    }

    .hist-cta__box > .hist-btn {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .hist-milestones {
        margin-top: 18px;
    }

    .hist-era__layout,
    .hist-closing__grid {
        grid-template-columns: 1fr;
    }

    .hist-era__year {
        position: static;
        width: fit-content;
    }

    .hist-slide {
        flex-basis: 82%;
    }

    .hist-carousel__nav--prev {
        left: 8px;
    }

    .hist-carousel__nav--next {
        right: 8px;
    }
}

@media (max-width: 680px) {
    .hist-hero__content {
        padding-top: 20px;
        padding-bottom: 58px;
    }

    .hist-breadcrumb {
        margin-bottom: 31px;
        font-size: .71rem;
    }

    .hist-hero__copy h1 {
        font-size: clamp(2.15rem,12vw,3.2rem);
    }

    .hist-hero__actions,
    .hist-hero__actions .hist-btn {
        width: 100%;
    }

    .hist-milestones__grid,
    .hist-achievements__grid {
        grid-template-columns: 1fr;
    }

    .hist-highlight-card,
    .hist-fact-card {
        grid-template-columns: 1fr;
    }

    .hist-quote {
        padding: 62px 22px 22px;
    }

    .hist-quote > i {
        left: 22px;
        top: 22px;
    }

    .hist-achievement-card {
        min-height: auto;
    }

    .hist-cta__box {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .hist-cta__icon {
        width: 58px;
        height: 58px;
    }

    .hist-cta__box > .hist-btn {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .hist-lightbox__dialog {
        inset: 3vh 14px;
    }

    .hist-lightbox__image {
        max-width: 94vw;
    }
}
