.dbrace-title-hero {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Un gruppo per slide: solo quello attivo e' visibile */
.dbrace-title-hero__group {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    width: 1440px;
    max-width: 100%;

    /* griglia a 3 colonne: sinistra | centro | destra */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-content: center;
    /* blocco testi centrato verticalmente */
    column-gap: 24px;
    row-gap: 12px;
    padding: 0 40px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.dbrace-title-hero__group.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0s;
}

.dbrace-title-hero__text {
    pointer-events: auto;
    color: #fff;
    font-family: "Inter", Sans-serif;
    font-size: 60px;
    font-weight: 700;
    mix-blend-mode: difference;
}

.dbrace-title-hero__text span {
    backdrop-filter: grayscale(1) contrast(100);
}

.dbrace-title-hero__text--left {
    grid-column: 1;
    justify-self: start;
}

.dbrace-title-hero__text--center {
    grid-column: 2;
    justify-self: center;
}

.dbrace-title-hero__text--right {
    grid-column: 3;
    justify-self: end;
}

/* Root hero: contenitore relative con media in assoluto */
.general-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: #f2f2f2;
    height: calc(100vh - 54px);
}

.general-hero__slides {
    position: absolute;
    inset: 0;
}

.general-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid transparent;
    /* rgba(255, 255, 255, 0.75) */
    border-radius: 50%;
    /* background: rgba(26, 24, 22, 0.2); */
    /* backdrop-filter: blur(3px); */
    color: #fff;
    font-size: 28px;
    line-height: 1;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    mix-blend-mode: difference;
}

/* .general-hero__arrow svg {
    mix-blend-mode: difference; 
}
*/

.general-hero__arrow:hover,
.general-hero__arrow:focus-visible {
    background: transparent;
    color: #1A1816;
}

.general-hero__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.general-hero__arrow--prev {
    left: 24px;
}

.general-hero__arrow--next {
    right: 24px;
}

.general-hero__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease, display 0.8s ease allow-discrete;
}

.general-hero__slide.is-active {
    display: block;
    opacity: 1;
}

@starting-style {
    .general-hero__slide.is-active {
        opacity: 0;
    }
}

.general-hero__slide--video {
    background: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blocco inferiore: linea + titolo + buttoni icona */
.dbrace-content-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0 auto;
    width: 1440px;
    max-width: 100%;
    padding: 40px 0px 40px 0px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dbrace-content-bottom__group {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.dbrace-content-bottom__group.is-active {
    display: flex;
}

.line-hero {
    height: 1px;
}

.line-hero__black {
    background: #1A1816;
}

.line-hero__white {
    background: #fff;
}

.name-button {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.general-hero__title {
    margin: 0;
    color: #1A1816;
    font-family: "Inter", Sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.general-hero__title__black {
    color: #1A1816;
}

.general-hero__title__white {
    color: #fff;
}

.text-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    cursor: pointer;
    border-radius: 8px;
}

.text-icon__black {
    background-color: #1A1816;
    color: #fff;
}

.text-icon__black:hover {
    color: #fff;
}

.text-icon__white {
    background-color: #fff;
    color: #1A1816;
}

.text-icon__white:hover {
    color: #1A1816;
}

.text-icon__label {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-icon__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    mix-blend-mode: difference;
}

.dbrace-general-hero-placeholder {
    padding: 24px;
    border: 1px dashed #8b2218;
    color: #1A1816;
    font-family: "Inter", Sans-serif;
    font-size: 13px;
}

@media (max-width: 767px) {
    .general-hero {
        min-height: 480px;
    }

    .dbrace-title-hero__group {
        padding: 0 20px;
    }

    .dbrace-content-bottom {
        padding: 20px;
    }

    .general-hero__title {
        font-size: 26px;
    }

    .name-button {
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
    }

    a.text-icon {
        justify-content: center;
        width: stretch;
    }

    .general-hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .general-hero__arrow--prev {
        left: 12px;
    }

    .general-hero__arrow--next {
        right: 12px;
    }

}