/* Banner Home Plugin - Frontend CSS */
/* Integrado com Tailwind CSS - CEAFMPMG_Tailwind */
/* Utiliza variáveis e cores globais do tema */

:root {
    --banner-height-desktop: 80vh;
    --banner-height-tablet: 75vh;
    --banner-height-mobile: 75vh;
	--banner-height-mobile-landscape: 95vh;
}

.banner-home-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.banner-home-wrapper {
    position: relative;
    width: 100%;
    height: var(--banner-height-desktop);
    overflow: hidden;
}

.banner-home-slide-link {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    text-decoration: none;
    z-index: 3;
}

.banner-home-slide-link:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    border-radius: 4px;
}

.banner-home-dot:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Remover outline padrão em navegadores que suportam :focus-visible 
.banner-home-slide-link:focus:not(:focus-visible),
.banner-home-prev:focus:not(:focus-visible),
.banner-home-next:focus:not(:focus-visible),
.banner-home-dot:focus:not(:focus-visible) {
    outline: none;
}*/

.banner-home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-home-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.banner-home-slide.active {
    opacity: 1;
}

.banner-home-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.banner-home-content {
    max-width: 440px;
    position: absolute;
    color: var(--color-white, #fff);
    left: 19%;
    top: 50%;
    font-family: inherit;
    z-index: 2;
}

.banner-home-title {
    margin: 0;
    padding: 0;
    color: var(--color-white, #ffffff);
    text-align: left;
    max-width: 90%;
    word-wrap: break-word;
}

/* Garantir que elementos filhos (p, strong, em, etc.) herdem o tamanho */
.banner-home-title p,
.banner-home-title strong,
.banner-home-title em,
.banner-home-title span,
.banner-home-title h1,
.banner-home-title h2,
.banner-home-title h3,
.banner-home-title h4,
.banner-home-title h5,
.banner-home-title h6 {
    font-size: inherit;
}

.banner-home-controls {
    /* position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none; */
    display: none
}

/* .banner-home-prev,
.banner-home-next {
    pointer-events: all;
    background-color: rgba(30, 112, 182, 0.8);
    border: none;
    color: var(--color-white, #ffffff);
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius-md, 0.375rem);
    transition: background-color var(--default-transition-duration, 150ms) var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold, 700);
} */

/* .banner-home-prev:hover,
.banner-home-next:hover {
    background-color: var(--color-azulCEAF-100, #1E70B6);
    display: hidden;
}

.banner-home-prev:focus,
.banner-home-next:focus {
    outline: 2px solid var(--color-white, #ffffff);
    outline-offset: 2px;
    display: hidden;
}

.banner-home-arrow {
    display: inline-block;
    user-select: none;
} */

.banner-home-dots {
    position: absolute;
    width: 100%;
    bottom: 30px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.banner-home-dot {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color:transparent;
    border: 2px solid #fff;
    cursor: pointer;
    transition: .1s;
}

.banner-home-dot:hover {
    transform: scale(1.2);
}

.banner-home-dot.active {
    background-color:#fff;
    transform: scale(1.3);
}


/* Responsividade para tablets */
@media (max-width: 768px) {
    .banner-home-wrapper{
        height: var(--banner-height-tablet);
    }

    .banner-home-content {
        padding-bottom: 15px;
		left: 5%;
    }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .banner-home-wrapper {
        height: var(--banner-height-mobile);
    }

    .banner-home-dots {
        gap: 8px;
        bottom: 15px;
    }

    .banner-home-dot {
        width: 10px;
        height: 10px;
    }

    .banner-home-content {
        padding: 10px;
    }
}

/* Reduzir altura em dispositivos muito pequenos */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-home-wrapper {
        height: var(--banner-height-mobile-landscape);
    }
}

/* Compatibilidade com Tailwind - Classes opcionais */
.banner-home-container.tw-relative {
    position: relative;
}

.banner-home-container.tw-overflow-hidden {
    overflow: hidden;
}

.banner-home-wrapper.tw-relative {
    position: relative;
}

.banner-home-wrapper.tw-overflow-hidden {
    overflow: hidden;
}