.mayoral-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.mayoral-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.mayoral-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mayoral-slides img.is-active {
    opacity: 1;
}

.mayoral-prev,
.mayoral-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    padding: 12px 16px;
    cursor: pointer;
}

.mayoral-prev { left: 10px; }
.mayoral-next { right: 10px; }

.mayoral-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.mayoral-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.mayoral-dots button.is-active {
    background: white;
}

/* Mayoral slider - responsive full width */
.mayoral-slider {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 2;
}

.mayoral-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider a tutta larghezza anche dentro il contenitore Cassiopeia */
.container-banner .mayoral-slider {
    width: 100%;
}

/* Nasconde logo e titolo del sito, mantiene la navigazione */
.container-header .navbar-brand {
    display: none;
}

/* Slider Mayoral a tutta larghezza dello schermo */
.container-banner,
.container-banner .mod-custom {
    width: 100%;
    max-width: none;
    margin-bottom: 0px;
}

.container-banner .mayoral-slider {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 3 / 2;
}

/* Nasconde il marchio di Cassiopeia */
.container-header .navbar-brand,
.container-header .container-header .navbar-brand,
.container-header .brand-logo,
.container-header .site-title,
.container-component {
    display: none !important;
}

/* Mayoral Slider - Full width e altezza 100vh */
.container-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.container-banner .mayoral-slider {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    aspect-ratio: auto;
    margin-left: 0;
    transform: none;
}

.mayoral-slides,
.mayoral-slides img {
    width: 100%;
    height: 100%;
}

.mayoral-slides img {
    object-fit: cover;
}

