:root {
    --cotec-title-rail: #b5060b;
    --cotec-title-ink: #111111;
    --cotec-title-font: "Inter Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --cotec-breadcrumb-font: Inter, "Helvetica Neue", Arial, sans-serif;
    --cotec-breadcrumb-link: #4e535b;
    --cotec-breadcrumb-current: #b5060b;
    --cotec-breadcrumb-separator: #b5060b;
}

/* Evita a duplicacao do breadcrumb nativo do Astra quando este hero esta ativo. */
.has-cotec-title-hero .ast-breadcrumbs-wrapper,
.has-cotec-title-hero .ast-header-breadcrumb {
    display: none;
}

.cotec-title-hero {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 203px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #dedede;
}

.cotec-title-hero::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 0;
    width: 14px;
    background: var(--cotec-title-rail);
}

.cotec-title-hero__inner {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 71.5%;
    max-width: 1464px;
    min-height: 203px;
    margin-inline: auto;
    padding-block: 36px 30px;
}

.cotec-title-hero__breadcrumbs {
    width: calc(100% - 220px);
    margin: 0 0 12px;
    color: var(--cotec-breadcrumb-link);
    font-family: var(--cotec-breadcrumb-font);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.cotec-title-hero .cotec-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cotec-title-hero .cotec-breadcrumbs__item {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.cotec-title-hero .cotec-breadcrumbs__item + .cotec-breadcrumbs__item::before {
    content: "/";
    flex: 0 0 auto;
    margin-inline: 0.72rem;
    color: var(--cotec-breadcrumb-separator);
    font-weight: 800;
}

.cotec-title-hero .cotec-breadcrumbs__link {
    color: var(--cotec-breadcrumb-link);
    text-decoration: none;
    text-underline-offset: 0.22em;
    transition: color 160ms ease;
}

.cotec-title-hero .cotec-breadcrumbs__link:hover,
.cotec-title-hero .cotec-breadcrumbs__link:focus-visible {
    color: var(--cotec-breadcrumb-current);
    text-decoration: underline;
}

.cotec-title-hero .cotec-breadcrumbs__text {
    color: var(--cotec-breadcrumb-link);
}

.cotec-title-hero .cotec-breadcrumbs__item--current {
    max-width: min(52ch, 100%);
}

.cotec-title-hero .cotec-breadcrumbs__current {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--cotec-breadcrumb-current);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cotec-title-hero__title {
    max-width: calc(100% - 220px);
    margin: 0;
    color: var(--cotec-title-ink);
    font-family: var(--cotec-title-font);
    font-size: clamp(4rem, 6.35vw, 8.125rem);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.cotec-title-hero__mark {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 0;
    width: 184px;
    height: 203px;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    user-select: none;
    transform: translateY(-50%);
}

.cotec-title-hero--long .cotec-title-hero__title {
    font-size: clamp(3.25rem, 4.8vw, 6.25rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.cotec-title-hero--very-long .cotec-title-hero__title {
    font-size: clamp(2.6rem, 3.8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

@media (max-width: 1024px) {
    .cotec-title-hero {
        min-height: 160px;
    }

    .cotec-title-hero::before {
        width: 10px;
    }

    .cotec-title-hero__inner {
        width: calc(100% - 96px);
        max-width: none;
        min-height: 160px;
        padding-block: 28px 24px;
    }

    .cotec-title-hero__breadcrumbs {
        width: calc(100% - 165px);
        margin-bottom: 10px;
        font-size: 0.7rem;
    }

    .cotec-title-hero__title {
        max-width: calc(100% - 165px);
        font-size: clamp(3.5rem, 9vw, 6rem);
    }

    .cotec-title-hero__mark {
        width: 145px;
        height: 160px;
    }
}

@media (max-width: 767px) {
    .cotec-title-hero {
        min-height: 132px;
    }

    .cotec-title-hero::before {
        width: 7px;
    }

    .cotec-title-hero__inner {
        width: calc(100% - 40px);
        min-height: 132px;
        padding-block: 23px 21px;
    }

    .cotec-title-hero__breadcrumbs {
        width: calc(100% - 78px);
        margin-bottom: 8px;
        font-size: 0.625rem;
        letter-spacing: 0.065em;
    }

    .cotec-title-hero .cotec-breadcrumbs {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .cotec-title-hero .cotec-breadcrumbs__item {
        flex: 0 0 auto;
    }

    .cotec-title-hero .cotec-breadcrumbs__item + .cotec-breadcrumbs__item::before {
        margin-inline: 0.48rem;
    }

    .cotec-title-hero .cotec-breadcrumbs__item--current {
        flex: 1 1 auto;
        max-width: none;
        overflow: hidden;
    }

    .cotec-title-hero__title,
    .cotec-title-hero--long .cotec-title-hero__title,
    .cotec-title-hero--very-long .cotec-title-hero__title {
        max-width: calc(100% - 78px);
        font-size: clamp(2.45rem, 12.5vw, 4.25rem);
        line-height: 0.92;
        letter-spacing: -0.055em;
    }

    .cotec-title-hero--very-long .cotec-title-hero__title {
        font-size: clamp(2.15rem, 10.5vw, 3.5rem);
        line-height: 1;
    }

    .cotec-title-hero__mark {
        width: 74px;
        height: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cotec-title-hero .cotec-breadcrumbs__link {
        transition: none;
    }
}
