/* Estilos para o Carrossel Página-Carrossel */

#pagina-carrossel-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* Removido position: relative para evitar conflitos de posicionamento absoluto com o tema */
}

.pc-optional-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Fundo semi-transparente para melhor leitura */
    box-sizing: border-box;
    z-index: 2; /* Acima da imagem */
}

.pc-text-content {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.pc-text-align-left {
    align-items: flex-start;
    text-align: left;
}

.pc-text-align-center {
    align-items: center;
    text-align: center;
}

.pc-text-align-right {
    align-items: flex-end;
    text-align: right;
}

.pc-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 600px; /* Altura máxima para a seção hero */
}

.pc-carousel-item {
    position: relative; /* Necessário para o posicionamento absoluto do texto */
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.pc-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.pc-carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.pc-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    max-height: 600px; /* Limita a altura da imagem */
}



/* Controles de Navegação (Setas) */
.pc-prev-btn, .pc-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    font-size: 1.5em;
    line-height: 1;
    transition: background-color 0.3s;
}

.pc-prev-btn:hover, .pc-next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pc-prev-btn {
    left: 10px;
    border-radius: 0 5px 5px 0;
}

.pc-next-btn {
    right: 10px;
    border-radius: 5px 0 0 5px;
}

/* Indicadores (Pontos) */
.pc-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.pc-indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.pc-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .pc-carousel {
        max-height: 400px;
    }
    .pc-carousel-item img {
        max-height: 400px;
    }
    .pc-prev-btn, .pc-next-btn {
        padding: 5px 10px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .pc-carousel {
        max-height: 300px;
    }
    .pc-carousel-item img {
        max-height: 300px;
    }
    .pc-optional-text {
        font-size: 1em;
        padding: 10px;
    }
}
