/* Seção da prova em destaque na landing (app/pages/partials/evento_secao.php). Mobile primeiro. */

.event-feature {
    padding: 28px 16px 32px;
    background: #071d33;
    color: #e8f1fa;
    scroll-margin-top: 84px;
}

.event-feature__inner {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.event-feature__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #8fc6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.event-feature__head h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(26px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: -.01em;
}

.event-feature__start {
    margin: 10px 0 0;
    color: #ffd27a;
    font-size: clamp(16px, 2.4vw, 20px);
    font-weight: 800;
}

/* Resumo rápido */
.event-feature__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 0;
    overflow: hidden;
    border: 1px solid rgba(143, 198, 255, .2);
    border-radius: 12px;
    background: rgba(143, 198, 255, .2);
}

.event-feature__facts > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: #0b2742;
}

.event-feature__facts dt {
    color: #8fc6ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.event-feature__facts dd {
    margin: 0;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.event-feature__facts small {
    color: #b5cbe0;
    font-size: 12px;
    line-height: 1.35;
}

.event-feature__facts .calendar-status {
    font-size: 12px;
}

/* Texto e aviso */
.event-feature__body {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.event-feature__copy p {
    margin: 0 0 12px;
    color: #c9d9e8;
    font-size: 15px;
    line-height: 1.65;
}

.event-feature__copy .event-feature__lead {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
}

.event-feature__notice {
    align-self: start;
    border-left: 4px solid #ffd27a;
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    background: rgba(255, 210, 122, .1);
}

.event-feature__notice i {
    color: #ffd27a;
    font-size: 20px;
}

.event-feature__notice strong {
    display: block;
    margin-top: 4px;
    color: var(--white);
    font-size: 16px;
}

.event-feature__notice p {
    margin: 6px 0 0;
    color: #d9e4ee;
    font-size: 14px;
    line-height: 1.55;
}

/* Rota */
.event-feature__route {
    margin-top: 26px;
}

.event-feature__route-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.event-feature__route-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--white);
    font-size: 20px;
}

.event-feature .brm-event-link {
    color: #8fc6ff;
}

.event-feature .brm-event-link:hover,
.event-feature .brm-event-link:focus-visible {
    color: var(--white);
}

.event-feature__map {
    overflow: hidden;
    border-radius: 12px;
    background: #0b2742;
}

.event-feature__map iframe {
    display: block;
    width: 1px;
    min-width: 100%;
    height: 520px;
    border: 0;
}

.event-feature__route-note {
    margin: 8px 0 0;
    color: #b5cbe0;
    font-size: 13px;
}

/* CTA final */
.event-feature__cta {
    margin-top: 26px;
    border-top: 1px solid rgba(143, 198, 255, .2);
    padding-top: 20px;
}

.event-feature__cta > p {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 800;
    line-height: 1.35;
}

.event-feature .brm-event-cta {
    max-width: 100%;
    text-align: center;
}

.event-feature :focus-visible {
    outline: 3px solid #ffd27a;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .event-feature {
        padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 40px);
    }

    .event-feature__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .event-feature__facts > div {
        padding: 16px 18px;
    }

    .event-feature__facts dd {
        font-size: 24px;
    }

    .event-feature__body {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
        gap: 32px;
        margin-top: 32px;
    }

    .event-feature__copy p {
        font-size: 16px;
    }

    .event-feature__map iframe {
        height: 700px;
    }
}

/* Cards do calendário que têm seção própria: o card inteiro vira link para "Detalhes". */
.calendar-item.has-link,
.app-calendar__item.has-link {
    position: relative;
}

.calendar-item__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.calendar-item__link::after {
    position: absolute;
    inset: 0;
    content: "";
}

.calendar-item.has-link:hover .calendar-item__link,
.app-calendar__item.has-link:hover .calendar-item__link {
    text-decoration: underline;
}

/* Local da largada/chegada */
.event-feature__venue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 8px 0 0;
    color: #d9e4ee;
    font-size: 15px;
}

.event-feature__venue > i {
    color: #ffd27a;
}

.event-feature__venue strong {
    color: var(--white);
}

.event-feature__venue a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8fc6ff;
    font-size: 14px;
    font-weight: 900;
}

.event-feature__venue a:hover,
.event-feature__venue a:focus-visible {
    color: var(--white);
}

/* ==========================================================================
   Hero fixo com card translúcido do próximo brevet
   (app/pages/partials/hero_evento.php)
   ========================================================================== */

.hero.hero--static {
    display: flex;
    min-height: max(640px, 86vh);
    align-items: center;
    padding: 120px clamp(20px, 5vw, 72px) 64px;
    background-position: center;
    background-size: cover;
}

.hero-static {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    margin: 0 auto;
}

.hero--static.has-event .hero-static {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.hero-static__copy .eyebrow {
    color: #cfe6ff;
}

.hero-static__copy h1 {
    max-width: 14ch;
    text-wrap: balance;
}

.hero-static__copy .hero__text {
    max-width: 46ch;
}

/* Card de vidro */
.glass-event {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    padding: 26px 26px 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
    box-shadow: 0 24px 60px rgba(0, 12, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: var(--white);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

/* Sem suporte a blur, o card fica mais opaco para manter a leitura. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-event {
        background: rgba(4, 34, 62, .88);
    }
}

.glass-event__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.glass-event__kicker {
    margin: 0;
    color: #cfe6ff;
    font-size: 15px;
    font-weight: 700;
}

.glass-event .calendar-status {
    font-size: 12px;
}

.glass-event__title {
    margin: 0;
    color: var(--white);
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.02em;
}

.glass-event__subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    font-weight: 600;
}

.glass-event__when {
    margin: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 16px;
    color: #ffd27a;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.glass-event__facts {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 1.4;
}

.glass-event__facts li {
    display: flex;
    gap: 10px;
}

.glass-event__facts i {
    color: #cfe6ff;
}

.glass-event__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: 22px;
}

.glass-event__price {
    margin: 0;
    color: var(--white);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.glass-event__price small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
}

.glass-event__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.glass-event .glass-event__cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 26px;
    background: var(--white);
    color: var(--teal-dark);
    font-size: 16px;
    font-weight: 900;
    transition: background .16s ease;
}

.glass-event .glass-event__cta:hover {
    background: #e3f0fb;
}

.glass-event .glass-event__more {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0;
    background: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .5);
    text-underline-offset: 4px;
}

.glass-event a:focus-visible {
    outline: 3px solid #ffd27a;
    outline-offset: 3px;
}

/* Desktop estreito: texto em cima, card embaixo */
@media (max-width: 1000px) {
    .hero--static.has-event .hero-static {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hero--static.has-event .hero-static__copy h1 {
        max-width: none;
        font-size: clamp(36px, 6vw, 52px);
    }

    .hero--static.has-event .glass-event {
        max-width: 560px;
    }
}

/* Versão app: foto com o card de vidro no topo, sobrepondo o cabeçalho azul */
@media (max-width: 767px) {
    .app-hero-event {
        position: relative;
        z-index: 11;
        margin-top: -58px;
        border-radius: 26px;
        padding: 14px;
        background-position: center;
        background-size: cover;
        box-shadow: 0 22px 44px rgba(3, 64, 111, .2);
    }

    .app-hero-event .glass-event {
        border-radius: 18px;
        padding: 18px 16px 16px;
    }

    .app-hero-event .glass-event__title {
        font-size: 34px;
    }

    .app-hero-event .glass-event__subtitle {
        font-size: 16px;
    }

    .app-hero-event .glass-event__when {
        margin-top: 14px;
        padding-top: 12px;
        font-size: 18px;
    }

    .app-hero-event .glass-event__facts {
        font-size: 14px;
    }

    .app-hero-event .glass-event__foot {
        margin-top: 16px;
    }

    .app-hero-event .glass-event__price {
        font-size: 26px;
    }

    .app-hero-event .glass-event__actions {
        width: 100%;
    }

    .app-hero-event .glass-event .glass-event__cta {
        flex: 1;
    }
}
