/**
 * Widget: block-html|slider-slogan
 */

.block-html-slider-slogan {
    position: relative;
    width: 100%;
    min-height: 776px;
    overflow: hidden;
}

/* -----------------------------------------------------------------------
   Track + slides
----------------------------------------------------------------------- */
.block-html-slider-slogan .slogan-track {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 776px;
}

.block-html-slider-slogan .slogan-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 776px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.block-html-slider-slogan .slogan-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* -----------------------------------------------------------------------
   Background full-width seppia
----------------------------------------------------------------------- */
.block-html-slider-slogan .slogan-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: sepia(80%) saturate(120%) brightness(0.85);
}

.block-html-slider-slogan .slogan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(25, 24, 20, 0.50) 0%, rgba(25, 24, 20, 0.50) 100%);
}

/* -----------------------------------------------------------------------
   Card centrata
----------------------------------------------------------------------- */
.block-html-slider-slogan .slogan-container {
    position: relative;
    z-index: 2;
    max-width: var(--website-container-max-width);
    display: flex;
    justify-content: center;
}

.block-html-slider-slogan .slogan-card {
    background: #FFF5E2;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 582px;
    display: flex;
    flex-direction: column;
}

/* Header card: icona + counter */
.block-html-slider-slogan .slogan-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(106, 52, 0, 0.20);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-html-slider-slogan .slogan-card-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6A3400;
}

.block-html-slider-slogan .slogan-card-counter {
    color: #6A3400;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Body card */
.block-html-slider-slogan .slogan-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.block-html-slider-slogan .slogan-card-title {
    color: #6A3400;
    font-size: 2.625rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.block-html-slider-slogan .slider-slogan-title-emphasis {
    font-style: italic;
    font-weight: 500;
}

.block-html-slider-slogan .slogan-card-content {
    color: #6A3400;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 400px;
}

.block-html-slider-slogan .slogan-card-content p {
    margin: 0;
}

.block-html-slider-slogan .slogan-card-content p + p {
    margin-top: 1rem;
}

/* -----------------------------------------------------------------------
   Frecce navigazione
----------------------------------------------------------------------- */
.block-html-slider-slogan .slogan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.block-html-slider-slogan .slogan-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.block-html-slider-slogan .slogan-nav:focus-visible {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.block-html-slider-slogan .slogan-prev { left: 1.5rem; }
.block-html-slider-slogan .slogan-next { right: 1.5rem; }

/* -----------------------------------------------------------------------
   Dots
----------------------------------------------------------------------- */
.block-html-slider-slogan .slogan-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.block-html-slider-slogan .slogan-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.50);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.block-html-slider-slogan .slogan-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.block-html-slider-slogan .slogan-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   Reduced motion
----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .block-html-slider-slogan .slogan-slide,
    .block-html-slider-slogan .slogan-nav,
    .block-html-slider-slogan .slogan-dot {
        transition: none;
    }

    .block-html-slider-slogan .slogan-dot.is-active {
        transform: none;
    }
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 768px) {
    .block-html-slider-slogan,
    .block-html-slider-slogan .slogan-track,
    .block-html-slider-slogan .slogan-slide {
        min-height: 600px;
    }

    .block-html-slider-slogan .slogan-card {
        max-width: 90%;
    }

    .block-html-slider-slogan .slogan-card-title {
        font-size: 2rem;
    }

    .block-html-slider-slogan .slogan-prev { left: 0.5rem; }
    .block-html-slider-slogan .slogan-next { right: 0.5rem; }

    .block-html-slider-slogan .slogan-nav {
        width: 40px;
        height: 40px;
    }
}
