 * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
        }

        /* ===== ANTI-FLASH DO MENU =====
         * O #header-placeholder recebe a cor e altura do <nav> enquanto
         * o js_base.js ainda não terminou de injetar o HTML do menu.
         * Isso elimina o "flash branco" na troca de páginas.
         */
        #header-placeholder {
            height: 80px; /* igual ao h-20 (5rem) do <nav> */
            background-color: rgba(10, 28, 46, 0.95); /* bg-navy/95 */
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
        }

        #p0,#p1,#p2,#p3,#p4,#p5,#p6 {
            text-align: justify;
        }
        .carousel-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .carousel-dot {
            width: 10px; height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        .carousel-dot.active {
            background: #E8A817;
            width: 28px;
            border-radius: 5px;
        }

        .method-card {
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .method-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px -4px rgba(0,0,0,0.15);
        }
        .method-card:hover .method-img {
            transform: scale(1.05);
        }
        .method-img {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .pill-btn { transition: all 0.2s ease; }
        .pill-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px -2px rgba(0,0,0,0.15);
        }
        .pill-btn.active-pill {
            background: #E8A817;
            color: #0A1C2E;
            font-weight: 600;
        }

        .client-logo {
            filter: grayscale(100%);
            opacity: 0.55;
            transition: all 0.4s ease;
        }
        .client-logo:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.05);
            border-color: rgba(232, 168, 23, 0.3);
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .fade-up { animation: fadeUp 0.7s ease-out forwards; }
        .fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
        .fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }

        html { scroll-behavior: smooth; }

        .mobile-menu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        .mobile-menu.open { max-height:600px; }

        .saiba-btn { position: relative; overflow: hidden; }
        .saiba-btn::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0;
            width: 0; height: 2px;
            background: #E8A817;
            transition: width 0.3s ease;
        }
        .saiba-btn:hover::after { width: 100%; }

        .toast {
            position: fixed;
            bottom: 24px; right: 24px;
            background: #0A1C2E;
            color: white;
            padding: 14px 24px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 1000;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            border-left: 4px solid #E8A817;
        }
        .toast.show { transform: translateY(0); opacity: 1; }

        #empresa{   
            font-size: 26px;
            font-style: bold;
            margin: 0;
            padding: 0;
            color: #FFF;
        }
         
        #consultoria{
            font-size: 12px;
            margin: 0;
            padding: 0;
            color: #FFF;
        }
        /* NOVO: Animação de transição do texto do carrossel */
        #carouselTextContainer {
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        #carouselTextContainer.text-hidden {
            opacity: 0;
            transform: translateY(15px);
        }

                /* No Desktop (Telas Grandes) */
        @media (min-width: 768px) {
            .logo_tpmanager {
                position: absolute;
                left: 120px;
                top: 10%;
                width: 400px; /* Tamanho destacado */
                z-index: 10;
            }
        } 

        /* No Mobile (Celular) */
        @media (max-width: 767px) {
            .logo_tpmanager {
                display: none;
                margin: 15px auto; /* Centraliza acima da foto no celular */
                width: 90px; /* Reduz um pouco para não sumir com a tela */
            }
        }

                    /* No Desktop (Telas Grandes) */
        @media (min-width: 768px) {
            .selo-grande {
                position: absolute;
                left: 120px;
                top: 10%;
                width: 150px; /* Tamanho destacado */
                z-index: 10;
            }
        } 

        /* No Mobile (Celular) */
        @media (max-width: 767px) {
            .selo-grande {
                display: none;
                margin: 15px auto; /* Centraliza acima da foto no celular */
                width: 90px; /* Reduz um pouco para não sumir com a tela */
            }
        }

        /* Mobile: preenche sem barras, corte lateral suave */
        @media (max-width: 767px) {
            #carousel-inferior {
                aspect-ratio: 16 / 9;
                max-height: 400px;
            }
            .inf-slide {
                width: 100vw;
            }
            .inf-slide img {
                object-fit: cover;
            }
        }

        /* MODELOS DE GESTÃO – CARDS ELEGANTES */
.modelo-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modelo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(10, 28, 46, 0.2);
}

.modelo-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.modelo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modelo-card:hover .modelo-img {
    transform: scale(1.08);
}

.modelo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 28, 46, 0.6), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modelo-card:hover .modelo-overlay {
    opacity: 1;
}

.modelo-body {
    padding: 1rem 1.25rem 1.25rem;
    position: relative;
}

.modelo-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8A817;
    background: rgba(232, 168, 23, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.modelo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0A1C2E;
    margin: 0;
    line-height: 1.3;
}

.modelo-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.1rem 0 0;
    line-height: 1.4;
}

.modelo-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(to right, #E8A817, rgba(232, 168, 23, 0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modelo-card:hover .modelo-body::before {
    transform: scaleX(1);
}

/* CARROSSEL CONTÍNUO INFERIOR (841x360) */
@keyframes infScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#carousel-inferior {
    aspect-ratio: 841 / 360;
    max-height: 360px;
}

.inf-carousel-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.inf-carousel-track {
    display: flex;
    gap: 0;
    animation: infScroll 30s linear infinite;
    height: 100%;
}

.inf-carousel-track:hover {
    animation-play-state: paused;
}

.inf-slide {
    flex: 0 0 auto;
    height: 100%;
    width: 841px;
    max-width: 100vw;
}

.inf-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CARROSSEL CONTÍNUO DE CLIENTES */
        @keyframes scrollX {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .clients-carousel-wrapper {
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            width: 100%;
        }

        .clients-carousel-track {
            display: inline-flex;
            gap: 1.5rem;
            padding-right: 1.5rem; /* Essencial para a matemática do loop perfeito (50%) */
            animation: scrollX 40s linear infinite;
        }

        .clients-carousel-track:hover {
            animation-play-state: paused;
        }


        .video-card {
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .video-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px -4px rgba(0,0,0,0.15);
        }
        .video-thumb {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem 0.75rem 0 0;
        }
        .video-thumb img,
        .video-thumb video {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .video-card:hover .video-thumb img,
        .video-card:hover .video-thumb video {
            transform: scale(1.05);
        }
        .play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(10, 28, 46, 0.35);
            opacity: 1;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }
        .play-overlay:hover {
            background: rgba(10, 28, 46, 0.50);
        }
        .play-overlay.hidden-play {
            opacity: 0;
            pointer-events: none;
        }
        .play-icon {
            width: 56px;
            height: 56px;
            background: rgba(232, 168, 23, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }
        .play-overlay:hover .play-icon {
            transform: scale(1.1);
        }
        .filter-btn {
            transition: all 0.2s ease;
        }
        .filter-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px -2px rgba(0,0,0,0.15);
        }
        .filter-btn.active-filter {
            background: #E8A817;
            color: #0A1C2E;
            font-weight: 600;
        }
        .lightbox-overlay {
            position: fixed;
            inset: 0;
            background: rgba(10, 28, 46, 0.92);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .lightbox-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        .lightbox-content {
            width: 90%;
            max-width: 900px;
            position: relative;
        }
        .lightbox-content iframe,
        .lightbox-content video {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 0.5rem;
        }
        .lightbox-close {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            cursor: pointer;
            font-size: 28px;
            line-height: 1;
            transition: color 0.2s;
        }
        .lightbox-close:hover {
            color: #E8A817;
        }
