/* ==========================================================================
   GRUPO GLICOSE — Novas funcionalidades
   Carregado APÓS style.css; sobrescreve onde necessário.
   ========================================================================== */

/* ── Corrige herança indesejada do CSS legado ───────────────────────
   O style.css original define estas regras que precisam ser
   neutralizadas nas seções novas.
   ──────────────────────────────────────────────────────────────────── */

/* .hero-meta orig: display:grid 3-col, max-width:560px, box children */
.hero-copy .hero-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
    max-width: none;
}
/* neutraliza o box que o original coloca em todo div filho de .hero-meta */
.hero-copy .hero-meta div,
.hero-meta-item {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
/* neutraliza strong/span coloring do hero-meta legado */
.hero-meta-item svg { color: var(--mustard); }
.hero-meta-item span { font-weight: 500; color: rgba(255,244,222,.9); font-size: .95rem; }

/* .hero-actions orig: margin-bottom:36px */
.hero-copy .hero-actions { margin-bottom: 0; margin-top: 28px; }

/* .hero-visual orig: aspect-ratio:1/1.05 — sobrescreve para a nova hero */
.hero-inner .hero-visual { aspect-ratio: unset; position: relative; }

/* .event-card-body h3 orig: text-transform:uppercase, font-display, 1.3rem */
.event-card-body h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: none;
    line-height: 1.2;
    margin: 0;
}
/* .event-card img orig: height:220px, border-bottom */
.event-card-img-link img,
.event-card .event-card-img-link img {
    height: 100%;
    border-bottom: none;
}

/* .news-card-body h3 orig: text-transform:uppercase, font-display, 1.3rem */
.news-card-body h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: none;
    line-height: 1.3;
    margin: 6px 0 8px;
}
.news-card-body h3 a { color: var(--ink); }
.news-card-body h3 a:hover { color: var(--orange); }

/* .news-card orig: grid-template-columns:280px 1fr */
.news-card { grid-template-columns: 180px 1fr; }

/* portfolio rotation legado — remove em grids específicos */
.portfolio-grid--full .portfolio-card:nth-child(odd),
.portfolio-grid--full .portfolio-card:nth-child(even) {
    transform: none;
}
.portfolio-card { overflow: visible; } /* permite o overlay crescer */

/* ── Overlay do portfolio — força contraste legível ── */
.portfolio-overlay .portfolio-date {
    color: var(--mustard);
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.portfolio-overlay h3 {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.portfolio-overlay .portfolio-cta {
    color: var(--mustard);
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
    text-decoration: underline;
}

/* ── Lightbox — inner, prev/next, caption ── */
.lightbox { align-items: center; }
.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 100%);
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 3px solid var(--cream);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    display: block;
}
.lightbox-caption {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--mustard);
    text-align: center;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    background: rgba(26,20,16,.7);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--rust); border-color: var(--rust); }

/* ==========================================================================
   HERO — Slider full-screen
   ========================================================================== */
.hero-section {
    position: relative;
    height: 92vh;
    min-height: 580px;
    overflow: hidden;
    background: var(--ink);
}

/* Todos os slides: absolute, invisíveis por padrão */
.hero-slide-full {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .65s ease;
    z-index: 1;
}

/* Slide ativo: visível — permanece absolute, NÃO muda para relative */
.hero-slide-full.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: brightness(.42) saturate(1.1);
    transition: filter .3s;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(26,20,16,.85) 0%,
        rgba(26,20,16,.5)  50%,
        rgba(26,20,16,.15) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 3;
    /* O visual é overlay absoluto — hero-inner só tem o copy.
       Mantemos a coluna fantasma para o copy não ocupar toda a largura. */
    display: grid;
    grid-template-columns: calc(100% - 468px) 1fr;
    gap: 0;
    align-items: center;
    height: 100%;
    min-height: 580px;
    padding: 80px 0 110px;
    box-sizing: border-box;
}

/* Visual global — absolutamente posicionado dentro de hero-section,
   alinhado à coluna direita do container. Único elemento, fora do loop. */
.hero-visual--global {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Alinha com a borda direita do container (max-width 1240px + padding 24px) */
    right: max(24px, calc((100% - 1240px) / 2 + 24px));
    width: 420px;
    z-index: 4;
    aspect-ratio: unset;
}
@media (max-width: 1024px) {
    .hero-visual--global { display: none; }
}

/* ── Copy ─ */
.hero-copy { color: var(--cream); }

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mustard);
}

.hero-badge {
    background: var(--pink);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    font-size: .68rem;
    font-family: var(--font-display);
    letter-spacing: .06em;
    border: 1.5px solid rgba(255,255,255,.25);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--cream);
    margin: 0 0 22px;
    text-shadow: 3px 3px 0 rgba(26,20,16,.5);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: rgba(255,244,222,.85);
    line-height: 1.4;
}

.hero-meta-item svg {
    width: 17px;
    height: 17px;
    stroke: var(--mustard);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Countdown ─ */
.countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26,20,16,.65);
    border: 2px solid rgba(242,180,65,.45);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 60px;
    backdrop-filter: blur(4px);
}

.countdown-block strong {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--mustard);
    margin: 0;
}

.countdown-block span {
    display: block;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,244,222,.55);
    margin-top: 4px;
}

.countdown-sep {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    color: rgba(242,180,65,.4);
    line-height: 1;
    margin-bottom: 10px;
    padding: 0 2px;
}

/* hero-actions já existe no original mas vamos garantir */
.hero-copy .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    margin-bottom: 0;
}

.btn-outline-light {
    background: transparent !important;
    color: var(--cream) !important;
    border: 2px solid rgba(255,244,222,.5) !important;
    box-shadow: none !important;
}
.btn-outline-light:hover {
    background: rgba(255,244,222,.1) !important;
    border-color: var(--cream) !important;
}

/* ── Visual / thumb ─ */
.hero-thumb-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--border);
    box-shadow: var(--shadow-pop-lg);
    aspect-ratio: 4 / 5;
    max-height: 65vh;
}

/* Variante Patrocinador Master: quadrado 1:1 */
.hero-thumb-wrap--sponsor {
    /* repete explicitamente tudo que o div base tem, mais overrides */
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 62vh;
    border-radius: var(--radius);
    border: var(--border);
    box-shadow: var(--shadow-pop-lg);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.hero-thumb-wrap--sponsor:hover {
    box-shadow: var(--shadow-pop-lg), 0 0 0 4px var(--mustard);
    transform: translateY(-3px);
}

.hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Label "Patrocinador Master" no rodapé da imagem */
.hero-sponsor-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(transparent, rgba(26,20,16,.85) 40%);
    color: var(--mustard);
    font-family: var(--font-display);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    text-align: center;
    padding: 28px 10px 10px;
}

.hero-thumb-wrap .hero-stamp {
    position: absolute;
    bottom: -18px;
    right: -18px;
    top: auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    border: var(--border);
    display: grid;
    place-items: center;
    text-align: center;
    transform: rotate(12deg);
    box-shadow: 6px 6px 0 var(--ink);
    z-index: 3;
    font-family: var(--font-display);
    line-height: 1.1;
    font-size: 1rem;
}
.hero-thumb-wrap .hero-stamp span {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8;
    display: block;
}
.hero-thumb-wrap .hero-stamp strong {
    font-size: 1rem;
    display: block;
    text-transform: uppercase;
    color: #fff;
}

/* ── Controles ─ */
.hero-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-dots { display: flex; gap: 8px; }

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,244,222,.3);
    border: 2px solid rgba(255,244,222,.55);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.hero-dot.is-active {
    background: var(--mustard);
    transform: scale(1.3);
    border-color: var(--mustard);
}

.hero-arrow {
    background: rgba(26,20,16,.55);
    color: var(--cream);
    border: 2px solid rgba(255,244,222,.35);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }

/* ==========================================================================
   PATROCINADOR MASTER — slider desktop (dentro do hero-visual)
   ========================================================================== */
.sponsor-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.sponsor-slide {
    display: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    text-decoration: none;
}
.sponsor-slide.is-active {
    display: block;
    position: relative;
    opacity: 1;
}

.sponsor-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 20;
}
.ssd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--mustard);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.ssd-dot.is-active {
    background: var(--mustard);
}

/* ==========================================================================
   PATROCINADOR MASTER — seção exclusiva mobile (≤1024px)
   Desktop: display:none — o visual já aparece dentro do hero
   ========================================================================== */
.section-sponsor-master-mobile {
    display: none; /* escondido no desktop */
}

@media (max-width: 1024px) {
    .section-sponsor-master-mobile {
        display: block;
        margin: 28px 0 32px;
    }

    .sspm-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 0 20px;
        text-align: center;
    }

    .sspm-eyebrow {
        font-family: var(--font-display);
        font-size: .65rem;
        text-transform: uppercase;
        letter-spacing: .18em;
        color: var(--mustard);
        margin: 0;
        opacity: .85;
    }
    .sspm-eyebrow::before { content: '★ '; }
    .sspm-eyebrow::after  { content: ' ★'; }

    /* slider wrapper */
    .sspm-slider {
        position: relative;
        width: min(320px, 80vw);
    }

    .sspm-slide {
        display: none;
        width: 100%;
        aspect-ratio: 1 / 1;
        border: var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-pop-lg);
        overflow: hidden;
        text-decoration: none;
        transition: transform .2s, box-shadow .2s;
        opacity: 0;
        transition: opacity .5s ease;
    }
    .sspm-slide.is-active {
        display: block;
        opacity: 1;
    }
    .sspm-slide:hover {
        transform: translateY(-3px);
        box-shadow: 6px 6px 0 var(--mustard);
    }

    .sspm-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* dots */
    .sspm-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
    }
    .sspm-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        border: 2px solid var(--mustard);
        background: transparent;
        cursor: pointer;
        padding: 0;
        transition: background .2s;
    }
    .sspm-dot.is-active {
        background: var(--mustard);
    }

    .sspm-name {
        font-family: var(--font-display);
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .1em;
        color: var(--cream);
        margin: 0;
        opacity: .7;
        min-height: 1.2em;
        transition: opacity .3s;
    }
}

/* ==========================================================================
   MERCHAN HERO BAR (abaixo da hero)
   ========================================================================== */
.merchan-hero-bar {
    display: block;
    overflow: hidden;
    border-bottom: var(--border);
    line-height: 0;
}
.merchan-hero-bar img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
}
.merchan-placeholder-bar {
    background: repeating-linear-gradient(
        45deg, rgba(242,180,65,.06), rgba(242,180,65,.06) 10px,
        transparent 10px, transparent 22px
    );
    border-top: 2px dashed var(--mustard-2);
    border-bottom: 2px dashed var(--mustard-2);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.merchan-placeholder-bar span { font-size: .8rem; color: var(--ink-soft); }

/* ==========================================================================
   STORY SECTION
   ========================================================================== */
.section-story { background: var(--paper); }

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.story-card--image {
    position: relative;
}
.story-card--image img {
    border-radius: var(--radius);
    border: var(--border);
    box-shadow: var(--shadow-pop-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.story-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--mustard);
    border: var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 5px 5px 0 var(--ink);
    padding: 12px 16px;
    text-align: center;
    font-family: var(--font-display);
}
.story-badge strong { display: block; font-size: 2rem; line-height: 1; color: var(--ink); }
.story-badge span   { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

.story-card--copy .eyebrow { margin-bottom: 14px; }
.story-card--copy h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    color: var(--ink);
    margin: 0 0 12px;
}

.story-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ==========================================================================
   SEÇÃO EVENTOS HOME (fundo escuro)
   ========================================================================== */
.section-events-home {
    background: var(--ink);
    color: var(--cream);
    border-top: var(--border);
    border-bottom: var(--border);
}
.section-events-home .section-head h2 { color: var(--cream); }
.section-events-home .eyebrow  { background: var(--mustard); color: var(--ink); }
.section-events-home .text-link { color: var(--mustard); }
.section-events-home .event-card-body h3 a { color: var(--ink); }

.events-merchan-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* Event card — novos elementos */
.event-card-img-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.event-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
    border-bottom: none;
}
.event-card:hover .event-card-img-link img { transform: scale(1.04); }

.event-card-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 5px 9px;
    text-align: center;
    font-family: var(--font-display);
    box-shadow: 3px 3px 0 var(--ink);
    line-height: 1;
    pointer-events: none;
}
.event-card-date-badge strong { display: block; font-size: 1.3rem; line-height: 1; }
.event-card-date-badge span   { display: block; font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }

/* meta-list — substitui ::before retro por emojis no inline */
.meta-list li::before { content: "▸ "; }
.meta-list li:first-child::before { content: ""; }

/* ==========================================================================
   MERCHAN SLIDE SIDEBAR (ao lado dos eventos)
   ========================================================================== */
.events-merchan-sidebar { position: sticky; top: 88px; }

.merchan-slide-wrap {
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.merchan-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--mustard);
    border-bottom: var(--border);
}
.merchan-slide-header small { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }

.pill-gold { background: var(--ink); color: var(--mustard); }

.merchan-slider {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--cream-2);
    min-height: 120px;
}

.merchan-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s;
    display: block;
    text-decoration: none;
}
.merchan-slide-item.is-active {
    opacity: 1;
    pointer-events: auto;
}
.merchan-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.merchan-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: repeating-linear-gradient(
        45deg, rgba(242,180,65,.07), rgba(242,180,65,.07) 8px,
        transparent 8px, transparent 16px
    );
    padding: 16px;
    text-align: center;
    gap: 6px;
}
.merchan-ph-label strong { display: block; font-family: var(--font-headline); font-size: .95rem; color: var(--ink); }
.merchan-ph-label small  { font-size: .72rem; color: var(--ink-soft); }

.merchan-ph--small {
    border: 2px dashed var(--mustard-2);
    border-radius: 10px;
    padding: 16px;
    min-height: 110px;
}

.btn-gold {
    background: var(--mustard);
    color: var(--ink);
    border-color: var(--ink) !important;
}
.btn-gold:hover { background: var(--mustard-2); }

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 0 !important;
    display: flex;
}

.mt-1 { margin-top: 8px; }

/* Photo grid dentro de sidebar layout → 2 colunas (já que a área é mais estreita) */
.content-with-sidebar .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.content-with-sidebar .photo-card img { height: 220px; }

/* ── Sidebar banner slider ── */
.sidebar-banner-slider {
    position: relative;
    width: 100%;
    padding-top: calc(250 / 300 * 100%); /* proporção 300×250 */
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.sidebar-banner-item {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    line-height: 0;
}
.sidebar-banner-item.is-active {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

/* Faixa topo de show/evento (evento_topo) */
.merchan-faixa-topo {
    padding: 16px 0 0;
    line-height: 0;
}
.merchan-faixa-topo a { display: block; line-height: 0; }
.merchan-faixa-topo img {
    width: 100%;
    max-height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: var(--border);
}

/* Billboard no fim do artigo (noticia_fim) */
.merchan-article-fim {
    margin: 32px 0 0;
    border-top: var(--border);
    padding-top: 24px;
    line-height: 0;
}
.merchan-article-fim a { display: block; line-height: 0; }
.merchan-article-fim img { width: 100%; border-radius: var(--radius-sm); }

/* ==========================================================================
   MERCHAN FAIXAS HORIZONTAIS
   ========================================================================== */
.merchan-strip {
    border-top: var(--border);
    border-bottom: var(--border);
    overflow: hidden;
    line-height: 0;
}
.merchan-strip a { display: block; line-height: 0; }
.merchan-strip img {
    width: 100%;
    display: block;
    max-height: 280px;
    object-fit: cover;
}
.merchan-strip--rodape { border-bottom: none; }

.merchan-strip--ph {
    background: repeating-linear-gradient(
        45deg, rgba(242,180,65,.04), rgba(242,180,65,.04) 10px,
        transparent 10px, transparent 22px
    );
    border-style: dashed;
    border-color: var(--mustard-2);
    padding: 18px 0;
    line-height: normal;
}
.merchan-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
/* Garante que btn-small dentro de flex containers nunca perca centralização */
.merchan-strip-inner .btn,
.merchan-ph .btn,
.sidebar-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    align-self: center;
}
.merchan-strip-inner strong { font-family: var(--font-headline); font-size: 1rem; }
.merchan-strip-inner span   { font-size: .78rem; color: var(--ink-soft); display: block; margin-top: 2px; }

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--ink) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}
.btn-outline-dark:hover {
    background: var(--ink) !important;
    color: var(--cream) !important;
}

/* ==========================================================================
   PORTFOLIO / GALERIAS (nova estrutura)
   ========================================================================== */
.portfolio-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* .portfolio-card já tem estilos no original (border, box-shadow).
   Apenas ajustamos para funcionar com o novo inner <a> */
.portfolio-card { padding: 0; overflow: hidden; }

.portfolio-link {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.portfolio-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
    border-bottom: none;
}
.portfolio-link:hover img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(26,20,16,.88));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: var(--cream);
    opacity: 0;
    transition: opacity .25s;
}
.portfolio-link:hover .portfolio-overlay { opacity: 1; }

.portfolio-date {
    font-size: .72rem;
    color: var(--mustard);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.portfolio-overlay h3 {
    font-family: var(--font-display);
    font-size: .95rem;
    margin: 0 0 6px;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--cream);
}
.portfolio-cta {
    font-size: .78rem;
    font-weight: 700;
    text-decoration: underline;
    color: var(--mustard);
}

/* ==========================================================================
   NOTÍCIAS + SIDEBAR
   ========================================================================== */
.section-news-home {}

.news-list--full {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.section-news-home .news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* news-card nova estrutura: img-link + body */
.news-card { grid-template-columns: 200px 1fr; gap: 0; }

.news-card-img-link {
    display: block;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
}
.news-card-img-link img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
    border-right: var(--border);
    border-bottom: none;
}
.news-card:hover .news-card-img-link img { transform: scale(1.04); }

.news-card-body { padding: 16px 18px; }

.news-date {
    font-size: .72rem;
    color: var(--ink-soft);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    /* sticky só se o conteúdo couber na viewport; caso contrário rola normalmente */
    position: sticky;
    top: 88px;
    align-self: start; /* impede que o sticky container cresça além dos filhos */
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* scrollbar fina */
    scrollbar-width: thin;
    scrollbar-color: var(--mustard) transparent;
}

.sidebar-box {
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-pop);
    padding: 18px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.sidebar-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

/* Patrocinadores */
.sponsor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.sponsor-item {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}
.sponsor-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sponsor-item img { max-height: 60px; max-width: 100%; object-fit: contain; }
.sponsor-name { font-size: .75rem; font-weight: 700; text-align: center; color: var(--ink-soft); line-height: 1.3; }

/* Quando tem logo: sem fundo, sem borda — imagem maior e centralizada */
.sponsor-item--logo {
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px;
}
.sponsor-item--logo img {
    max-height: 80px;
    max-width: 90%;
}

/* ==========================================================================
   PAGINAÇÃO
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 44px 0 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 700;
    font-size: .84rem;
    color: var(--ink);
    text-decoration: none;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.pagination-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
    background: var(--mustard);
}

.pagination-numbers { display: flex; align-items: center; gap: 5px; }

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--paper);
    border: var(--border);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 700;
    font-size: .85rem;
    color: var(--ink);
    text-decoration: none;
    transition: background .12s, transform .12s;
}
.pagination-num:hover { background: var(--mustard); }
.pagination-num.is-active {
    background: var(--ink);
    color: var(--mustard);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--orange);
}

.pagination-ellipsis { font-weight: 700; padding: 0 4px; color: var(--ink-soft); }

.pagination-info {
    font-size: .76rem;
    color: var(--ink-soft);
    text-align: center;
    width: 100%;
    margin-top: 4px;
}

/* ==========================================================================
   PAGE HERO (variantes de cor por seção)
   O .page-hero .container tem background: var(--paper) (creme claro) definido
   no style.css. Por isso o texto DEVE ser escuro (--ink), não cream.
   As variantes de cor usam apenas a borda superior do container como acento.
   ========================================================================== */
.page-hero--events .container {
    border-top: 5px solid var(--rust);
}
.page-hero--galerias .container {
    border-top: 5px solid var(--teal-deep);
}
.page-hero--noticias .container {
    border-top: 5px solid var(--orange-2);
}
/* h1 e eyebrow seguem a identidade: tinta escura sobre fundo creme */
.page-hero--events h1,
.page-hero--galerias h1,
.page-hero--noticias h1 {
    color: var(--ink);
}
.page-hero--events .eyebrow,
.page-hero--galerias .eyebrow,
.page-hero--noticias .eyebrow {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ink-soft);
    background: var(--mustard);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}
.page-hero--events p,
.page-hero--galerias p,
.page-hero--noticias p {
    color: var(--ink-soft);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
    font-style: italic;
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer .footer-bottom p a { color: var(--mustard); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner           { grid-template-columns: 1fr; padding: 48px 0 96px; }
    .hero-inner .hero-visual { display: none; }
    .events-merchan-wrap  { grid-template-columns: 1fr; }
    .story-grid           { grid-template-columns: 1fr; gap: 32px; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar              { position: static; }
}

@media (max-width: 768px) {
    .hero-section { height: 100svh; min-height: 560px; }
    .hero-inner   { padding: 36px 0 84px; }
    .hero-title   { font-size: 2rem; }
    .countdown    { gap: 4px; flex-wrap: wrap; }
    .countdown-block { min-width: 52px; padding: 8px 10px; }
    .countdown-block strong { font-size: 1.5rem; }
    .story-badge  { bottom: -12px; left: -12px; }
    .news-card    { grid-template-columns: 1fr; }
    .news-card-img-link img { border-right: none; border-bottom: var(--border); }
}

@media (max-width: 640px) {
    .events-merchan-sidebar { display: none; }
    .story-grid { gap: 24px; }
    .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}
