.arapoti-hero {
    --arapoti-gold: #ffca18;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: min(56.3vw, 941px);
    min-height: 700px;
    margin: -40px 0 50px;
    overflow: hidden;
    background: #061a36;
    color: #fff;
    font-family: inherit;
}

.page-arapoti-opening-hero .main-header {
    z-index: 3;
}

.page-arapoti-opening-hero .arapoti-hero {
    z-index: 2;
}

.page-arapoti-opening-hero .share-site,
.page-arapoti-opening-hero .social-contact {
    z-index: 1;
}

.arapoti-hero__art,
.arapoti-hero__art img,
.arapoti-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.arapoti-hero__art {
    z-index: -2;
    display: block;
}

.arapoti-hero__art img {
    object-fit: cover;
    object-position: center;
}

.arapoti-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 10, 24, .28) 0%, rgba(2, 10, 24, .08) 40%, transparent 68%),
        linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .16) 20%, transparent 48%);
}

.arapoti-hero__inner {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 1600px);
    height: 100%;
    margin: 0 auto;
}

.arapoti-hero__main {
    position: absolute;
    top: 0;
    left: 0;
    width: min(53%, 850px);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.arapoti-hero__main::before,
.arapoti-hero__main::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

.arapoti-hero__main::before {
    z-index: 0;
    inset: 10% 5% 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 190, 0, .35) 0%, rgba(255, 154, 0, .2) 42%, rgba(255, 133, 0, .09) 63%, transparent 78%);
    filter: blur(30px);
    opacity: .72;
    transform: scale(.9);
    animation: arapoti-badge-aura 4.8s ease-in-out infinite;
}

.arapoti-hero__main::after {
    z-index: 2;
    inset: 0;
    background: linear-gradient(112deg, transparent 40%, rgba(255, 242, 177, .05) 45%, rgba(255, 247, 206, .92) 50%, rgba(255, 198, 45, .38) 54%, transparent 60%);
    background-size: 300% 100%;
    background-position: 100% 0;
    filter: blur(1px) drop-shadow(0 0 12px rgba(255, 208, 76, .6));
    mix-blend-mode: screen;
    opacity: 0;
    -webkit-mask: url("../images/arapoti-opening-hero-logo.webp") center / 100% 100% no-repeat;
    mask: url("../images/arapoti-opening-hero-logo.webp") center / 100% 100% no-repeat;
    animation: arapoti-badge-shine 5s linear infinite;
}

.arapoti-hero__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 202, 24, .32));
    animation: arapoti-badge-glow 4.8s ease-in-out infinite;
}

.arapoti-hero__details-button {
    box-sizing: border-box;
    min-height: 54px;
    border: 1px solid rgba(255, 238, 160, .88);
    border-radius: 9px;
    background: linear-gradient(120deg, #ffd32c, #ffbd00);
    color: #14120b;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .42) inset;
    transition: transform .2s ease, filter .2s ease;
}

.arapoti-hero__details-button:hover {
    color: #14120b;
    text-decoration: none;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.arapoti-hero__details-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.arapoti-hero__details {
    position: absolute;
    left: 50%;
    bottom: 24px;
    box-sizing: border-box;
    width: calc(100% - 24px);
    min-height: 116px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1.12fr .9fr 1.13fr 1.13fr auto;
    align-items: center;
    border: 2px solid var(--arapoti-gold);
    border-radius: 20px;
    background: linear-gradient(110deg, rgba(5, 6, 8, .98), rgba(15, 15, 16, .96));
    box-shadow: 0 10px 32px rgba(0, 0, 0, .65), 0 0 24px rgba(255, 187, 0, .2);
    overflow: hidden;
    scroll-margin-top: 110px;
}

.arapoti-hero__event-name,
.arapoti-hero__date,
.arapoti-hero__attractions,
.arapoti-hero__address {
    min-height: 76px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.arapoti-hero__event-name,
.arapoti-hero__date,
.arapoti-hero__attractions,
.arapoti-hero__address {
    border-right: 1px solid rgba(255, 202, 24, .58);
}

.arapoti-hero__event-name > i,
.arapoti-hero__date > i,
.arapoti-hero__attractions > i,
.arapoti-hero__address > i {
    flex: 0 0 auto;
    color: var(--arapoti-gold);
    font-size: 34px;
}

.arapoti-hero__event-name > span,
.arapoti-hero__date > span,
.arapoti-hero__attractions > span,
.arapoti-hero__address > span {
    display: flex;
    flex-direction: column;
}

.arapoti-hero__event-name strong,
.arapoti-hero__event-name small,
.arapoti-hero__attractions strong,
.arapoti-hero__attractions small {
    color: #fff;
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 800;
    line-height: 1.3;
}

.arapoti-hero__event-name em {
    color: var(--arapoti-gold);
    font-size: clamp(18px, 1.6vw, 25px);
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
}

.arapoti-hero__date strong {
    color: var(--arapoti-gold);
    font-size: clamp(20px, 1.75vw, 29px);
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}

.arapoti-hero__date small,
.arapoti-hero__address small {
    margin-top: 4px;
    color: #fff;
    font-size: clamp(13px, 1.15vw, 18px);
    font-weight: 800;
    line-height: 1.15;
}

.arapoti-hero__address > span {
    color: #fff;
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 800;
    line-height: 1.28;
}

.arapoti-hero__address small {
    font-size: inherit;
}

.arapoti-hero__details-button {
    min-width: 176px;
    margin: 0 20px;
    padding: 10px 15px;
    white-space: nowrap;
}

.arapoti-hero__details-button i {
    font-size: 19px;
}

@keyframes arapoti-badge-aura {
    0%, 100% {
        opacity: .62;
        transform: scale(.9);
    }

    50% {
        opacity: .94;
        transform: scale(1.06);
    }
}

@keyframes arapoti-badge-glow {
    0%, 100% {
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 202, 24, .32));
    }

    50% {
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 21px rgba(255, 202, 24, .6));
    }
}

@keyframes arapoti-badge-shine {
    0%, 8% {
        opacity: 0;
        background-position: 100% 0;
    }

    20% {
        opacity: .85;
        background-position: 75% 0;
    }

    48%, 100% {
        opacity: 0;
        background-position: 0 0;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .arapoti-hero {
        height: min(70vw, 800px);
        min-height: 680px;
    }

    .arapoti-hero__art img {
        object-position: right center;
    }

    .arapoti-hero__main {
        width: min(58%, 730px);
    }

    .arapoti-hero__details {
        min-height: 142px;
        grid-template-columns: 1fr 1fr 1.15fr;
    }

    .arapoti-hero__event-name,
    .arapoti-hero__date,
    .arapoti-hero__attractions,
    .arapoti-hero__address {
        min-height: 56px;
        padding: 8px 13px;
        gap: 10px;
    }

    .arapoti-hero__event-name,
    .arapoti-hero__date,
    .arapoti-hero__attractions {
        border-bottom: 1px solid rgba(255, 202, 24, .4);
    }

    .arapoti-hero__attractions {
        border-right: 0;
    }

    .arapoti-hero__address {
        grid-column: 1 / span 2;
        border-right: 0;
    }

    .arapoti-hero__details-button {
        min-width: 0;
        min-height: 45px;
        margin: 0 12px;
        padding: 8px;
        font-size: 13px;
    }

    .arapoti-hero__event-name > i,
    .arapoti-hero__date > i,
    .arapoti-hero__attractions > i,
    .arapoti-hero__address > i {
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    .arapoti-hero {
        height: auto;
        min-height: 0;
        margin-top: -40px;
        margin-bottom: 34px;
        padding: 42px 12px 18px;
    }

    .arapoti-hero__art {
        height: 540px;
        bottom: auto;
    }

    .arapoti-hero__art img {
        object-position: 69% center;
    }

    .arapoti-hero__shade {
        height: 540px;
        background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(1, 10, 23, .18) 34%, rgba(3, 6, 11, .88) 77%, #050505 100%);
    }

    .arapoti-hero__inner {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .arapoti-hero__main {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 560px);
        margin: 0 auto;
        align-items: center;
    }

    .arapoti-hero__logo {
        width: 100%;
    }

    .arapoti-hero__details {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(100%, 560px);
        min-height: 0;
        margin: 0 auto;
        transform: none;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-radius: 14px;
    }

    .arapoti-hero__event-name {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 59px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 202, 24, .45);
    }

    .arapoti-hero__date,
    .arapoti-hero__address {
        min-height: 70px;
        padding: 9px 11px;
        gap: 8px;
    }

    .arapoti-hero__date {
        grid-column: 1;
        grid-row: 2;
        border-bottom: 1px solid rgba(255, 202, 24, .38);
    }

    .arapoti-hero__address {
        grid-column: 2;
        grid-row: 2;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 202, 24, .38);
    }

    .arapoti-hero__attractions {
        grid-column: 1 / -1;
        grid-row: 3;
        min-height: 60px;
        border-right: 0;
    }

    .arapoti-hero__event-name > i,
    .arapoti-hero__date > i,
    .arapoti-hero__attractions > i,
    .arapoti-hero__address > i {
        font-size: 25px;
    }

    .arapoti-hero__event-name strong,
    .arapoti-hero__event-name small,
    .arapoti-hero__attractions strong,
    .arapoti-hero__attractions small {
        font-size: 11px;
    }

    .arapoti-hero__event-name em {
        font-size: 17px;
    }

    .arapoti-hero__date strong {
        font-size: 20px;
    }

    .arapoti-hero__date small,
    .arapoti-hero__address > span {
        font-size: 12px;
    }

    .arapoti-hero__address small {
        font-size: inherit;
    }

    .arapoti-hero__details-button {
        grid-column: 1 / -1;
        grid-row: 4;
        min-height: 46px;
        margin: 0 10px 10px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .arapoti-hero__date,
    .arapoti-hero__address {
        gap: 6px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .arapoti-hero__date strong {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arapoti-hero__main::before,
    .arapoti-hero__main::after,
    .arapoti-hero__logo {
        animation: none;
    }

    .arapoti-hero__main::after {
        opacity: 0;
    }

    .arapoti-hero__details-button {
        transition: none;
    }
}
