/* ================================
   BARRA DE ANÚNCIOS
================================ */

/* Ajuste do body quando a barra está ativa */
/* O body já tem padding-top: 60px do header.css, então somamos apenas a altura da barra */
body:has(.candini-announcement-bar) {
    padding-top: 90px; /* 60px (header original) + 30px (barra mobile) */
}

@media (min-width: 768px) {
    body:has(.candini-announcement-bar) {
        padding-top: 95px; /* 60px (header original) + 35px (barra desktop) */
    }
}

/* Ajuste do header quando a barra está presente */
body:has(.candini-announcement-bar) .candini-header {
    top: 30px;
}

@media (min-width: 768px) {
    body:has(.candini-announcement-bar) .candini-header {
        top: 35px;
    }
}

.candini-announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--color-primary);
    color: #FFFFFF;
    z-index: 1000;
}

/* Swiper Container */
.announcement-swiper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.announcement-swiper .swiper-wrapper {
    align-items: center;
}

.announcement-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Conteúdo */
.announcement-content {
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.announcement-text,
.announcement-link {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.announcement-link:hover {
    text-decoration: underline;
}

/* Tablet */
@media (min-width: 768px) {
    .candini-announcement-bar {
        height: 35px;
    }
    
    .announcement-text,
    .announcement-link {
        font-size: 14px;
    }
    
    .announcement-content {
        padding: 0 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .announcement-text,
    .announcement-link {
        font-size: 15px;
    }
}

