
html, body {
    overflow-x: hidden;
}
/* Home Page Styles - UltraEnvios */

/* ==========================================
   SEÇÃO 1: CARROSSEL HERO
   ========================================== */


.hero-carousel {
    margin: 0 auto;
    padding-top: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-carousel .carousel-inner {
    max-height: none;
}

.hero-carousel .carousel-item {
    position: relative;
    height: 700px;
}

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

/* Overlay escuro para melhor legibilidade do texto */
.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Container de conteúdo do hero */
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    text-align: center;
}


.banner-final img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    max-width: none;
    max-height: 350px;
}

.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

/* Botão CTA Hero */
.btn-hero {
    background-color: var(--primary-red, #d32f2f);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 7, 27, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 7, 27, 0.6);
    color: #fff;
}

/* Controles do carrossel */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
    opacity: 0.8;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 1.5rem;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    opacity: 1;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--primary-red, #d32f2f);
    border-color: var(--primary-red, #d32f2f);
}

/* ==========================================
   SEÇÃO 2: COMO FUNCIONA (DESIGN CORRIGIDO)
   ========================================== */

.como-funciona-section {
    background-color: #f4f6f9;
    position: relative;
    padding-bottom: 5rem !important;
}

.section-title {
    color: var(--primary-blue, #0d2e4e);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red, #d32f2f);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Container do Card */
.step-card {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* overflow: visible é crucial aqui para sombras não cortarem */
    overflow: visible; 
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Wrapper da Imagem */
.step-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Define a altura da imagem (Aspect Ratio) */
    overflow: hidden; /* Mantém o zoom da imagem contido aqui dentro */
    background-color: #eee;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.step-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.step-card:hover .step-image {
    transform: scale(1.1);
}

/* Conteúdo de Texto */
.step-content {
    position: relative;
    /* Padding TOP de 45px cria o espaço vazio para o badge flutuar */
    padding: 45px 25px 25px 25px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    border-radius: 0 0 16px 16px;
    z-index: 2; /* Garante que fique acima da borda inferior da imagem */
}

/* Badge do Número (Ajuste Final) */
.step-badge {
    position: absolute;
    top: -25px; /* Puxa o badge para cima (metade da altura dele) */
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red, #d32f2f), #b71c1c);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10; /* Garante prioridade máxima */
}

/* Ícone */
.step-icon {
    font-size: 1.8rem;
    color: var(--primary-blue, #0d2e4e);
    margin-bottom: 1rem;
    background: rgba(13, 46, 78, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.step-card:hover .step-icon {
    background: var(--primary-red, #d32f2f);
    color: #fff;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue, #0d2e4e);
    margin-bottom: 0.75rem;
}

.step-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* ==========================================
   SEÇÃO 3: BANNER PROMOCIONAL FINAL
   ========================================== */


.banner-final {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.banner-final img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 991px) {
    .hero-carousel .carousel-item {
        height: 550px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .btn-hero {
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
    }
    
    .step-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .hero-carousel .carousel-item {
        height: 500px;
    }
    .hero-title {
        margin-bottom: 0.75rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 0.65rem 1.75rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .step-image-wrapper {
        padding-top: 60%;
    }
    
        @media (max-width: 767px) {
            .banner-final img {
                max-height: 500px;
            }
        }
    @media (max-width: 480px) {
        .banner-final img {
            max-height: 360px;
        }
    }
}

@media (max-width: 480px) {
    .hero-carousel .carousel-item {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}