/* Hero */

.ccm-block-hero-image {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    box-shadow: var(--nfe-shadow);
    min-height: var(--nfe-hero-min-height, auto);
}

.ccm-block-hero-image-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 18, 16, 0.18), rgba(13, 18, 16, 0.58));
    z-index: 1;
    min-height: var(--nfe-hero-min-height, auto);
}

.ccm-block-hero-image-image {
    transform: scale(1.02);
    background-image: var(--nfe-hero-background-image, none);
    background-position: center center;
    background-size: cover;
    min-height: var(--nfe-hero-min-height, auto);
}

.ccm-block-hero-image .ccm-block-hero-image-text {
    position: absolute !important;
    top: 0;
    right: 0 !important;
    bottom: 0;
    left: 0 !important;
    z-index: 2;
    display: flex;
    gap: 1rem;
    width: 90% !important;
    max-width: none;
    min-height: var(--nfe-hero-min-height, auto);
    padding: 12rem 2rem 4.5rem;
    margin: 0 auto !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: stretch !important;
    color: #f7f2e7;
    text-align: inherit;
}

.ccm-block-hero-image-text > * {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: inherit;
}

.ccm-block-hero-image-text h1,
.ccm-block-hero-image-text h2,
.ccm-block-hero-image-text h3,
.ccm-block-hero-image-text .display-1,
.ccm-block-hero-image-text .display-2 {
    color: #f8f3e9;
    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.ccm-block-hero-image-text h1 {
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    margin: 0 0 1rem;
}

.ccm-block-hero-image-text h3,
.ccm-block-hero-image-text sub,
.ccm-block-hero-image-text p {
    display: block;
    max-width: 48rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(248, 243, 233, 0.88);
}

.ccm-block-hero-image-text h3 {
    margin: 0;
    line-height: 1.35;
}

.ccm-block-hero-image-text sub {
    display: block;
    vertical-align: baseline;
    font-size: inherit;
    line-height: inherit;
}

.ccm-block-hero-image-text .mt-4 {
    margin-top: 0.5rem !important;
}

.ccm-block-hero-image .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(248, 243, 233, 0.96);
    border-color: rgba(248, 243, 233, 0.96);
    color: var(--nfe-forest);
    box-shadow: 0 18px 40px rgba(13, 18, 16, 0.18);
}

.ccm-block-hero-image .btn:hover,
.ccm-block-hero-image .btn:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #16241c;
}

.ccm-block-hero-image .btn i.fas.fa- {
    display: none;
}

.ccm-block-hero-image-button-row {
    display: flex;
    justify-content: center !important;
    width: 100%;
    margin: 0;
}

.ccm-block-hero-image-button-row .btn {
    justify-content: center;
}

.ccm-block-hero-image-text--template-align-left h3,
.ccm-block-hero-image-text--template-align-left sub,
.ccm-block-hero-image-text--template-align-left p,
.ccm-block-hero-image-text--template-align-left .ccm-block-hero-image-button-row,
.ccm-block-hero-image-text--template-align-right h3,
.ccm-block-hero-image-text--template-align-right sub,
.ccm-block-hero-image-text--template-align-right p,
.ccm-block-hero-image-text--template-align-right .ccm-block-hero-image-button-row {
    width: min(100%, 42rem);
    max-width: 42rem;
}

.ccm-block-hero-image-text--template-align-left,
.ccm-block-hero-image-text--template-align-left > * {
    text-align: left;
}

.ccm-block-hero-image-text--template-align-left > * {
    margin-right: auto;
}

.ccm-block-hero-image-text--template-align-left h3,
.ccm-block-hero-image-text--template-align-left sub,
.ccm-block-hero-image-text--template-align-left p,
.ccm-block-hero-image-text--template-align-left .ccm-block-hero-image-button-row {
    margin-left: 0;
    margin-right: auto;
}

.ccm-block-hero-image-text--template-align-left h3,
.ccm-block-hero-image-text--template-align-left h3 sub,
.ccm-block-hero-image-text--template-align-left p {
    text-align: left !important;
}

.ccm-block-hero-image-text--template-align-center,
.ccm-block-hero-image-text--template-align-center > * {
    text-align: center;
}

.ccm-block-hero-image-text--template-align-center > * {
    margin-left: auto;
    margin-right: auto;
}

.ccm-block-hero-image-text--template-align-center h1,
.ccm-block-hero-image-text--template-align-center h3,
.ccm-block-hero-image-text--template-align-center h3 sub,
.ccm-block-hero-image-text--template-align-center p,
.ccm-block-hero-image-text--template-align-center .ccm-block-hero-image-button-row {
    text-align: center !important;
}

.ccm-block-hero-image-text--template-align-right,
.ccm-block-hero-image-text--template-align-right > * {
    text-align: right;
}

.ccm-block-hero-image-text--template-align-right > * {
    margin-left: auto;
}

.ccm-block-hero-image-text--template-align-right h3,
.ccm-block-hero-image-text--template-align-right sub,
.ccm-block-hero-image-text--template-align-right p,
.ccm-block-hero-image-text--template-align-right .ccm-block-hero-image-button-row {
    margin-left: auto;
    margin-right: 0;
}

.ccm-block-hero-image-text--template-align-right h3,
.ccm-block-hero-image-text--template-align-right h3 sub,
.ccm-block-hero-image-text--template-align-right p {
    text-align: right !important;
}

.ccm-block-hero-image .ccm-block-hero-image-text--template-left-third,
.ccm-block-hero-image .ccm-block-hero-image-text--template-right-third {
    width: 100% !important;
    max-width: none !important;
    left: 0;
    right: 0 !important;
    align-items: stretch;
}

.ccm-block-hero-image-text--template-left-third > * {
    display: block;
    width: 33.3333%;
    max-width: 33.3333%;
    margin-left: clamp(1.5rem, 4vw, 4rem);
    margin-right: auto;
}

.ccm-block-hero-image-text--template-left-third h1,
.ccm-block-hero-image-text--template-left-third h3,
.ccm-block-hero-image-text--template-left-third p {
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    margin-left: clamp(1.5rem, 4vw, 4rem) !important;
    margin-right: auto !important;
    text-align: left !important;
}

.ccm-block-hero-image-text--template-left-third h3 sub {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.ccm-block-hero-image-text--template-left-third .ccm-block-hero-image-button-row {
    display: flex !important;
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    margin-left: clamp(1.5rem, 4vw, 4rem) !important;
    margin-right: auto !important;
    justify-content: center !important;
}

.ccm-block-hero-image-text--template-right-third > * {
    display: block;
    width: 33.3333%;
    max-width: 33.3333%;
    margin-left: auto;
    margin-right: clamp(1.5rem, 4vw, 4rem);
}

.ccm-block-hero-image-text--template-right-third h1,
.ccm-block-hero-image-text--template-right-third h3,
.ccm-block-hero-image-text--template-right-third p {
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    margin-left: auto !important;
    margin-right: clamp(1.5rem, 4vw, 4rem) !important;
    text-align: right !important;
}

.ccm-block-hero-image-text--template-right-third h3 sub {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: right !important;
}

.ccm-block-hero-image-text--template-right-third .ccm-block-hero-image-button-row {
    display: flex !important;
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    margin-left: auto !important;
    margin-right: clamp(1.5rem, 4vw, 4rem) !important;
    justify-content: center !important;
}

@media (max-width: 991.98px) {
    .ccm-block-hero-image {
        margin: 0;
    }

    .ccm-block-hero-image .ccm-block-hero-image-text {
        gap: 0.75rem;
        padding: 8rem 1.3rem 3rem;
    }

    .ccm-block-hero-image-text--template-left-third > *,
    .ccm-block-hero-image-text--template-right-third > * {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    .ccm-block-hero-image-text h1 {
        font-size: 2.8rem;
    }

    .ccm-block-hero-image-text--template-left-third > *,
    .ccm-block-hero-image-text--template-right-third > *,
    .ccm-block-hero-image-text--template-left-third h1,
    .ccm-block-hero-image-text--template-left-third h3,
    .ccm-block-hero-image-text--template-left-third p,
    .ccm-block-hero-image-text--template-left-third .ccm-block-hero-image-button-row,
    .ccm-block-hero-image-text--template-right-third h1,
    .ccm-block-hero-image-text--template-right-third h3,
    .ccm-block-hero-image-text--template-right-third p,
    .ccm-block-hero-image-text--template-right-third .ccm-block-hero-image-button-row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ccm-block-hero-image .ccm-block-hero-image-text--template-left-third,
    .ccm-block-hero-image .ccm-block-hero-image-text--template-right-third {
        width: 100% !important;
        max-width: none !important;
    }

    .ccm-block-hero-image-text--template-left-third > *,
    .ccm-block-hero-image-text--template-right-third > * {
        width: 50%;
        max-width: 50%;
    }

    .ccm-block-hero-image-text--template-left-third h1,
    .ccm-block-hero-image-text--template-left-third h3,
    .ccm-block-hero-image-text--template-left-third p,
    .ccm-block-hero-image-text--template-left-third .ccm-block-hero-image-button-row {
        width: 50% !important;
        max-width: 50% !important;
    }

    .ccm-block-hero-image-text--template-right-third h1,
    .ccm-block-hero-image-text--template-right-third h3,
    .ccm-block-hero-image-text--template-right-third p,
    .ccm-block-hero-image-text--template-right-third .ccm-block-hero-image-button-row {
        width: 50% !important;
        max-width: 50% !important;
    }
}
