/* Site Banner Rotator */

/* ── Fixed footer/header bar ─────────────────────────────────────────────── */

.sbr-footer-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    height: clamp(60px, 12vh, 160px);
    overflow: hidden !important;
}
.sbr-footer-bar.sbr-bar-bottom { bottom: 0; box-shadow: 0 -2px 8px rgba(0,0,0,0.15); }
.sbr-footer-bar.sbr-bar-top    { top: 0;    box-shadow: 0  2px 8px rgba(0,0,0,0.15); }

/* Transparent background: no shadow */
.sbr-footer-bar[style*="transparent"] { box-shadow: none !important; }

.sbr-footer-bar .sbr-rotator {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sbr-footer-bar .sbr-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.sbr-footer-bar .sbr-slide.sbr-active {
    display: flex;
    align-items: stretch;
    opacity: 1;
}

/* Nascondi i dot nella barra fissa (poco spazio) */
.sbr-footer-bar .sbr-dots { display: none; }

/* Close button */
.sbr-bar-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    z-index: 1;
    padding: 2px 6px;
}
.sbr-bar-close:hover { color: #333; }

/* ── Composed banner (flex row of components) ─────────────────────────────── */

.sbr-banner.sbr-composed {
    display: flex;
    align-items: center;
}

/* Inside the bar: centered row, no stretching */
.sbr-footer-bar .sbr-banner.sbr-composed,
.sbr-footer-bar .sbr-banner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Component cell: natural content size by default */
.sbr-component {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto; /* natural size; use spacer blocks to fill space */
}

/* Spacer: only this expands to fill available space */
.sbr-comp-spacer { flex: 1 !important; }

/* Images inside the bar: constrained height, auto width */
.sbr-footer-bar .sbr-img {
    max-height: clamp(50px, 10vh, 136px) !important;
    width: auto !important;
    display: block !important;
}

/* Anchor wrapping an image inside the bar */
.sbr-footer-bar .sbr-component a {
    display: flex !important;
    align-items: center !important;
}

/* Text components inside the bar */
.sbr-footer-bar .sbr-comp-text,
.sbr-footer-bar .sbr-comp-text_link {
    padding: 0 16px;
    box-sizing: border-box;
}

/* ── Standalone rotator (shortcode, widget) ───────────────────────────────── */

.sbr-rotator {
    position: relative;
    overflow: hidden;
}

.sbr-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.sbr-slide.sbr-active {
    display: block;
    opacity: 1;
}

/* Legacy single-type banners */
.sbr-type-image .sbr-img,
.sbr-type-image_link .sbr-img {
    display: block;
    width: 100%;
    height: auto;
}
.sbr-type-image_link a { display: block; text-decoration: none; }

.sbr-caption { margin: 6px 0 0; font-size: 14px; text-align: center; }

.sbr-type-text,
.sbr-type-text_link { padding: 16px; }

.sbr-text { line-height: 1.6; }

.sbr-link-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.sbr-link-btn:hover { background: #005a87; }

/* Navigation dots */
.sbr-dots { text-align: center; padding: 8px 0 4px; }

.sbr-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.sbr-dot-active,
.sbr-dot:hover { background: #0073aa; }
