
/* ================================================
    CARROSSEL DE IMAGENS DO INSTAGRAM - CORRIGIDO
   ================================================ */

/* Subtítulo da seção */
.depoimentos-subtitulo {
    text-align: center;
    color: var(--cor-cinza-escuro);
    font-size: var(--fs-normal);
    margin-bottom: var(--espacamento-md);
}

/* Container principal do carrossel - TAMANHO REDUZIDO */
.instagram-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Wrapper para overflow */
.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--sombra-forte);
    background: var(--cor-branca);
    position: relative;
    /* ALTURA MÁXIMA DEFINIDA */
    max-height: 500px;
}

/* Track que contém os slides */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Slide individual */
.instagram-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cor-cinza-claro);
    padding: 20px;
}

/* Imagem do slide - AJUSTE PARA NÃO CORTAR */
.instagram-slide img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: contain; /* Mostra imagem completa sem cortar */
    display: block;
    border-radius: 8px;
}

/* Controles do carrossel - ESPAÇAMENTO REDUZIDO */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--espacamento-md);
    margin-top: var(--espacamento-md);
}

/* Botões de navegação (setas) */
.carousel-btn {
    background: var(--cor-destaque);
    color: var(--cor-branca);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-leve);
}

.carousel-btn:hover {
    background: var(--cor-primaria);
    transform: scale(1.1);
    box-shadow: var(--sombra-media);
}

.carousel-btn:disabled {
    background: var(--cor-cinza-medio);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Dots de navegação */
.carousel-dots {
    display: flex;
    gap: var(--espacamento-xs);
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cor-cinza-medio);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.carousel-dots .dot:hover {
    background: var(--cor-destaque);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: var(--cor-destaque);
    width: 30px;
    border-radius: 6px;
}

/* Botão Instagram - ESPAÇAMENTO REDUZIDO */
.instagram-cta {
    text-align: center;
    margin-top: var(--espacamento-md);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--cor-branca);
    border: none;
    padding: 14px 32px;
    font-size: var(--fs-normal);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
    color: var(--cor-branca);
}

.btn-instagram i {
    font-size: 1.3rem;
}

/* ================================================
   RESPONSIVIDADE
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .instagram-carousel {
        max-width: 700px;
    }
    
    .carousel-wrapper {
        max-height: 450px;
    }
    
    .instagram-slide img {
        max-height: 410px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .instagram-carousel {
        max-width: 100%;
    }
    
    .carousel-wrapper {
        max-height: 400px;
        border-radius: var(--border-radius-md);
    }
    
    .instagram-slide {
        padding: 15px;
    }
    
    .instagram-slide img {
        max-height: 370px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .carousel-controls {
        gap: var(--espacamento-sm);
        margin-top: var(--espacamento-sm);
    }
    
    .btn-instagram {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .depoimentos-subtitulo {
        font-size: 14px;
        padding: 0 15px;
        margin-bottom: var(--espacamento-sm);
    }
    
    .instagram-cta {
        margin-top: var(--espacamento-sm);
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .carousel-wrapper {
        max-height: 350px;
    }
    
    .instagram-slide {
        padding: 10px;
    }
    
    .instagram-slide img {
        max-height: 330px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dots .dot.active {
        width: 25px;
    }
}

/* Landscape mobile - ALTURA AINDA MENOR */
@media (max-height: 600px) and (orientation: landscape) {
    .carousel-wrapper {
        max-height: 300px;
    }
    
    .instagram-slide img {
        max-height: 270px;
    }
}