/* Carrossel */
.carousel-wrapper {
    background: #2c3e50;
    padding: 2rem 0;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem;
    text-align: center;
    z-index: 3;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

.carousel-nav-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* Dots/indicadores */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    width: 25px;
    border-radius: 5px;
}

.carousel-btn-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.carousel-btn-link:hover {
    background: #2980b9;
}

/* Corpo do site */
.site-body {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
}

.items-grid {
    display: grid;
    gap: 2rem;
}

.items-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.items-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.items-grid.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
}

/* Estilos para imagens do card */
.item-card .card-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Imagem normal (redimensionada para caber no card) */
.item-card img.card-image-normal {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Imagem sem redimensionamento (para QR Codes) */
.item-card img.card-image-original {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.item-card-content {
    padding: 1.5rem;
}

.item-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.item-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-card .btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.item-card .btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
        border-radius: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .items-grid.col-2,
    .items-grid.col-3,
    .items-grid.col-4 {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Ajuste para QR codes em mobile */
    .item-card img.card-image-original {
        max-height: 150px;
    }
}
