/* =============================================================================
Banner notícias em destaque — 100vw × 800px, 1 slide de cada vez
Rede de Bibliotecas de Barcelos — [rdeb_banner_destaque]
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;800&display=swap');

/* --------------------------------------------------------------------------
    Wrapper — ocupa toda a largura quebrando o contentor da página
    -------------------------------------------------------------------------- */
.rdeb-banner-destaque {
    width: 100vw;
    height: 80vh;
    max-width: 100vw;
    margin-top: -60px !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
    Slider — altura fixa 800px
    -------------------------------------------------------------------------- */
.rdeb-destaque {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    user-select: none;
}

.rdeb-destaque__slider {
    width: 100%;
    height: 80vh;
    position: relative;
}

/* Track — fila horizontal de slides */
.rdeb-destaque__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.rdeb-destaque__track.is-dragging {
    transition: none;
    cursor: grabbing;
}

/* Slide — cada um ocupa exactamente 100% da largura */
.rdeb-destaque__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center;
    background-color: #1a3650;
}

/* Impede que o link seja activado acidentalmente durante o drag */
.rdeb-destaque__track.is-dragging .rdeb-destaque__slide-link {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
    Overlay com gradiente e texto
    -------------------------------------------------------------------------- */
.rdeb-destaque__overlay {
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(28px, 5vw, 64px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        transparent 65%
    );
}

.rdeb-destaque__slide-link {
    display: block;
    max-width: 700px;
    text-decoration: none;
    color: #fff;
}

.rdeb-destaque__slide-date {
    display: block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 0.5em;
}

.rdeb-destaque__slide-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: inline;
    margin-bottom: 12px;
    background: linear-gradient(currentColor, currentColor) no-repeat bottom;
    background-size: 0% 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rdeb-destaque__slide-link:hover {
    color: #fff;
}

.rdeb-destaque__slide-link:hover .rdeb-destaque__slide-title {
    background-size: 100% 3px;
}

.rdeb-destaque__slide-link:hover .rdeb-destaque__slide-date,
.rdeb-destaque__slide-link:hover .rdeb-destaque__slide-excerpt,
.rdeb-destaque__slide-link:hover .rdeb-destaque__slide-cta {
    color: #fff;
}

.rdeb-destaque__slide-excerpt {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
    margin: 10px 0;
    opacity: 0.9;
    max-width: 60ch;
}

.rdeb-destaque__slide-cta {
    display: inline-block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
    Mensagem quando não há notícias
    -------------------------------------------------------------------------- */
.rdeb-destaque__empty {
    padding: 3rem 24px;
    color: #666;
    margin: 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
    Acessibilidade — título visually-hidden
    -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
    Responsive
    -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .rdeb-destaque {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .rdeb-destaque {
        height: 80vh;
        min-height: 240px;
    }
}
