/* modal-styles.css - Estilos unificados para todos os modais do site */

:root {
    --modal-bg: rgba(0, 0, 0, 0.8);
    --modal-content-bg: #ffffff;
    --modal-border-radius: 10px;
    --modal-padding: 2rem;
    --modal-max-width: 1000px;
    --carousel-height: 500px;
    --carousel-height-mobile: 300px;
}

/* Estilo base do modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    overflow-y: auto;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

/* Conteúdo do modal */
.modal-content {
    background-color: var(--modal-content-bg);
    margin: 0 auto;
    padding: var(--modal-padding);
    border-radius: var(--modal-border-radius);
    max-width: var(--modal-max-width);
    position: relative;
    animation: modalFadeIn 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo do botão de fechar */
.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

.close-modal:hover {
    color: #000;
}

/* Estilos do carrossel */
.carousel {
    position: relative;
    width: 100%;
    height: var(--carousel-height);
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Controles de navegação */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel {
        height: var(--carousel-height-mobile);
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Estilos específicos para o conteúdo do modal */
.modal h2 {
    color: #2C5F2D;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal h3 {
    color: #2C5F2D;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.modal p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal ul li {
    margin-bottom: 0.5rem;
    color: #555;
}
