:root {
    /* cor padrão dos elementos .btn-primary, .text-primary, .bg-primary etc. */
    --bs-primary: #2E3092;

    /* cor de foco/hover automática baseada no novo tom */
    --bs-primary-rgb: 46, 48, 146;

    --bs-nav-link-font-size: 1.2em;
}

/* Hero */
.hero {
    height: clamp(260px, 45vw, 460px);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .35));
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* Título da seção */
.section-title {
    letter-spacing: .06rem;
}

/* Cards da seção "Nosso Espaço" */
.space-card {
    aspect-ratio: 16 / 10;
    background: #eef1f6;
}

.object-cover {
    object-fit: cover;
}

.space-badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: .5rem .9rem;
    font-weight: 600;
    letter-spacing: .02rem;
    box-shadow: 0 4px 12px rgba(20, 20, 20, .25);
}

/* Indicadores (bolinhas) mais visíveis como no mock */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1d1f70;
    opacity: .35;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Navbar: deixa a marca em uma linha só em telas pequenas */
@media (max-width: 380px) {
    .navbar-brand span {
        display: none;
    }
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.nav-link {
    color: #2E3092 !important;
}

.nav-link:focus,
.nav-link:hover {
    color: #ED1B23 !important;
    ;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2E3092;
    --bs-btn-border-color: #2E3092;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1d1f70;
    --bs-btn-hover-border-color: #1d1f70;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d1f70;
    --bs-btn-active-border-color: #1d1f70;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2E3092;
    --bs-btn-disabled-border-color: #2E3092;
}

.border-6 {
    border-width: 6px !important;
}

/* Faixa azul superior */
.top-bar {
    background-color: #2E3092;
    /* seu azul principal */
    position: relative;
    z-index: 1051;
    /* para ficar acima do conteúdo */
}

.top-bar .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: background-color .2s ease;
}

.top-bar .btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Ajuste do botão em telas pequenas */
@media (max-width: 576px) {
    .top-bar .btn {
        width: 100%;
        text-align: center;
    }
}

.hero-img {
    height: clamp(260px, 45vw, 500px);
    object-fit: cover;
    filter: brightness(0.95);
}

.hero-overlay1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
}

.text-shadow {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Indicadores (bolinhas) */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2E3092;
    opacity: .4;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Controles (setas) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, .4));
}

/* Mega menu centralizado e alinhado com o container */
.dropdown-mega { 
  position: static;
}

/* Estilo do menu dropdown */
.mega-menu {
  top: 100%;
  border-radius: 0 0 1rem 1rem;
  background: #fff;
  width: 80%;
  margin-top: 0.25rem;
  margin-left: 10%;
  transition: all 0.2s ease-in-out;
}

@media (min-width: 992px) {
    /* Não forçar display via CSS para evitar conflito com o controle via JS.
         Mantemos apenas a transição do caret para feedback visual. */
    .dropdown-mega .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    .dropdown-mega.open .dropdown-toggle::after,
    .dropdown-mega.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Corrige o alinhamento interno */
.mega-menu > .container {
  max-width: 1140px; /* mesmo limite do container principal */
}

/* Cartões do mega menu */
.object-cover { object-fit: cover; }

.mega-menu .card {
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}

.mega-menu .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.mega-menu .card:hover .fw-semibold {
  color: #2E3092;
}

/* Em telas pequenas, o menu ocupa 100% e empilha */
@media (max-width: 991.98px) {
  .mega-menu {
    border-radius: 0 0 1rem 1rem;
  }
}

/* Hero 'border' full-bleed (colado nas extremidades) com cantos arredondados
     superior-esquerdo e inferior-direito */
#heroBorder {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    padding-top: 2rem; /* mantém espaçamento interno superior */
    padding-bottom: 2rem; /* mantém espaçamento interno inferior */
}

#heroBorder > .container {
    max-width: 1140px;
}

/* Forçar o container interno do hero a ocupar toda a largura
     para que a borda fique colada nas extremidades da viewport. */
#heroBorder > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#heroBorder .hero-border-box {
    width: 100%;
    box-sizing: border-box;
}

#heroBorder .hero-border-box {
    overflow: hidden;
    /* removida a borda azul solicitada */
    border: none !important;
    border-radius: 1.25rem 0 1.25rem 0; /* top-left and bottom-right */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    /* aumentar altura do hero */
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    min-height: 420px;
}

/* Em telas pequenas, não forçar o full-bleed (evita scroll lateral) */
@media (max-width: 991.98px) {
    #heroBorder {
        width: 100%;
        left: 0;
        margin-left: 0;
        margin-right: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    #heroBorder .hero-border-box {
        border-radius: .75rem;
        /* reduzir min-height em mobile para evitar excesso */
        min-height: 320px;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

.unidade-imagem {
    min-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.unidade-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.unidade-imagem:hover img {
    transform: scale(1.05);
}

.unidade-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 48, 146, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
    padding: 20px;
}

.unidade-imagem:hover .unidade-overlay-hover {
    opacity: 1;
}

.overlay-info {
    text-align: center;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.overlay-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    width: 100%;
}

.overlay-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    text-align: left;
}

.overlay-list li strong {
    color: #ffc107;
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.unidade-info-content h3 {
    color: #2E3092;
    margin-bottom: 1.5rem;
}

.unidade-info-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.unidade-info-content ul li {
    color: #333;
    font-weight: 500;
    line-height: 1.8;
}

.unidade-info-content i {
    color: #DC3545;
    width: 20px;
}

/* Estilos para botões primários e outline */
.btn-primary {
    background-color: #2E3092;
    border-color: #2E3092;
}

.btn-primary:hover {
    background-color: #1f1f5f;
    border-color: #1f1f5f;
}

.btn-outline-primary {
    color: #2E3092;
    border-color: #2E3092;
}

.btn-outline-primary:hover {
    background-color: #2E3092;
    border-color: #2E3092;
    color: white;
}

/* Responsividade para Carousel */
@media (max-width: 768px) {
    .unidades-banner {
        min-height: 250px;
    }

    .unidade-imagem {
        min-height: 250px;
    }

    .unidade-info-content h3 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .d-flex.gap-2 {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .unidades-banner {
        min-height: 200px;
    }

    .unidade-imagem {
        min-height: 200px;
    }

    .unidade-info-content h3 {
        font-size: 1.3rem;
    }

    .unidade-info-content p,
    .unidade-info-content ul li {
        font-size: 0.9rem;
    }

    .overlay-title {
        font-size: 1.5rem;
    }

    .overlay-list {
        font-size: 0.85rem;
        gap: 10px;
    }

    .overlay-list li {
        padding: 8px;
    }
}

/* Carousel de Unidades - Indicadores */
.carousel-indicators-unidades {
    position: static;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.carousel-indicators-unidades [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1954d4;
    opacity: 0.5;
    margin: 0 4px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.carousel-indicators-unidades .active {
    background-color: #ED1B23;
    opacity: 1;
}

/* Carousel de Unidades - Controles */
#unidadesCarousel .carousel-control-prev,
#unidadesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(46, 48, 146, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#unidadesCarousel .carousel-control-prev {
    left: -70px;
}

#unidadesCarousel .carousel-control-next {
    right: -70px;
}

#unidadesCarousel .carousel-control-prev:hover,
#unidadesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(237, 27, 35, 0.8);
}

#unidadesCarousel .carousel-control-prev-icon,
#unidadesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ===== SEGMENTOS CARDS CSS ===== */

/* Segmentos Cards */
.segmentos-banner {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.segmentos-banner .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Seção de fundo da página de segmentos */
.segmentos-section {
    border-radius: 0px 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 22.61%, rgba(0, 60, 113, 0.6) 88.13%);
    background-color: #003C71;
    padding: 80px 0 100px;
    position: relative;
}

/* Pseudo-elemento para a imagem PNG sem fundo */
.segmentos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Garantir que o conteúdo fica acima da imagem */
.segmentos-section > * {
    position: relative;
    z-index: 1;
}

/* Grid Layout - 4 colunas */
.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* Estilo base do card */
.segmento-card {
    
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image wrapper - ALTURA AUMENTADA */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

/* ZOOM NA IMAGEM AO HOVER */
.segmento-card:hover .card-image {
    transform: scale(1.20);
}

/* Overlay da imagem - EXPANSÃO DE BAIXO PARA CIMA */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    z-index: 2;
    padding: 16px;
    box-sizing: border-box;
}

/* EXPANSÃO DO OVERLAY AO HOVER - DE BAIXO PARA CIMA E MUDA COR PARA AZUL */
.segmento-card:hover .card-overlay {
    height: 40%;
    align-items: center;
    background: rgba(46, 48, 146, 0.95);
}

.card-overlay-content {
    text-align: center;
    color: #2E3092;
    width: 100%;
    transition: color 0.3s ease-in-out;
}

/* MUDA COR DO TEXTO PARA BRANCO AO HOVER */
.segmento-card:hover .card-overlay-content {
    color: white;
}

.overlay-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2E3092;
    transition: all 0.6s ease-in-out;
}

.segmento-card:hover .overlay-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: white;
}

.overlay-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

.segmento-card:hover .overlay-text {
    opacity: 1;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Botão Saiba Mais - aparece ao expandir */
.overlay-btn {
    display: none;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #2E3092 0%, #e20808 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;
}

.segmento-card:hover .overlay-btn {
    display: inline-flex;
    align-items: center;
    animation: slideUp 0.6s ease-in-out;
}

.overlay-btn:hover {
    background: linear-gradient(135deg, #e20808 0%, #2E3092 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 48, 146, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Content */
.card-content {
    padding: 20px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.segmento-card.active .card-content {
    background: linear-gradient(135deg, #2E3092 0%, #1f1f5f 100%);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2E3092;
    transition: color 0.6s ease;
}

.segmento-card.active .card-title {
    color: white;
}

.segmento-card:hover .card-title {
    color: #2E3092;
}

/* BADGE COM EFEITO DE ZOOM AO HOVER */
.card-badge {
    display: inline-block;
    background-color: #fdb913;
    color: #2E3092;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

.segmento-card:hover .card-badge {
    transform: scale(1.1);
    background-color: #2E3092;
    color: white;
}

.segmento-card.active .card-badge {
    background-color: #2E3092;
    color: white;
    transform: scale(1);
}

.segmento-card.active:hover .card-badge {
    background-color: #2E3092;
    color: #fdb913;
    transform: scale(1.1);
}

/* Efeito de seleção - Card com destaque */
.segmento-card.active {
    box-shadow: 0 12px 32px rgba(46, 48, 146, 0.25);
    transform: translateY(-4px);
}

.segmento-card:hover {
    box-shadow: 0 8px 24px rgba(46, 48, 146, 0.15);
}

/* Responsividade */
@media (max-width: 1200px) {
    .segmentos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .card-image-wrapper {
        padding-top: 150%;
    }

    .card-image {
        transition: transform 0.6s ease-in-out;
    }

    .segmento-card:hover .card-image {
        transform: scale(1.20);
    }

    .card-overlay {
        height: 30%;
        background: rgba(255, 255, 255, 0.95);
    }

    .segmento-card:hover .card-overlay {
        height: 40%;
        background: rgba(46, 48, 146, 0.95);
    }
}

@media (max-width: 768px) {
    .segmentos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .card-image-wrapper {
        padding-top: 130%;
    }

    .card-image {
        transition: transform 0.6s ease-in-out;
    }

    .segmento-card:hover .card-image {
        transform: scale(1.20);
    }

    .card-overlay {
        height: 30%;
        background: rgba(255, 255, 255, 0.95);
    }

    .segmento-card:hover .card-overlay {
        height: 40%;
        background: rgba(46, 48, 146, 0.95);
    }

    .card-title {
        font-size: 1.1rem;
    }

    .overlay-title {
        font-size: 1.1rem;
    }

    .card-content {
        padding: 16px;
    }

    .card-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .segmentos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image-wrapper {
        padding-top: 120%;
    }

    .card-image {
        transition: transform 0.6s ease-in-out;
    }

    .segmento-card:hover .card-image {
        transform: scale(1.20);
    }

    .card-overlay {
        height: 30%;
        background: rgba(255, 255, 255, 0.95);
    }

    .segmento-card:hover .card-overlay {
        height: 40%;
        background: rgba(46, 48, 146, 0.95);
    }

    .overlay-title {
        font-size: 1rem;
    }

    .overlay-text {
        font-size: 0.8rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .card-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .card-content {
        padding: 12px;
    }

    .segmento-card.active {
        transform: none;
    }
}

/* ============================================
   Proposta de Valor - Estilos Específicos
   ============================================ */

/* Seção de Proposta de Valor */
.proposta-section {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

/* Hack das Abas "Fundidas" (Inverted Radius) */
.nav-custom-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    position: relative;
    border-radius: 20px 20px 0 0;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-custom-btn:hover {
    color: white;
}

.nav-custom-btn.active {
    background-color: white;
    color: var(--bs-primary);
    z-index: 10;
}

/* Curvas laterais (pseudo-elementos) */
.nav-custom-btn.active::before,
.nav-custom-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Curva esquerda */
.nav-custom-btn.active:not(:first-child)::before {
    left: -20px;
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 5px white;
}

/* Curva direita */
.nav-custom-btn.active::after {
    right: -20px;
    border-bottom-left-radius: 20px;
    box-shadow: -5px 5px 0 5px white;
}

/* Estilo do Card Principal */
.content-card {
    border-radius: 2.5rem;
    transition: border-top-left-radius 0.3s ease;
}

/* Animações */
.animate-fade-up {
    animation: fadeUp 0.5s ease-out forwards;
}

.spin-slow {
    animation: spin 30s linear infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ajuste da imagem */
.img-container {
    overflow: hidden;
    border-radius: 2.5rem;
}

.img-zoom {
    transition: transform 0.7s ease;
}

.img-container:hover .img-zoom {
    transform: scale(1.1);
}

/* Abas com scroll horizontal */
#tabs-container {
    scrollbar-width: none;
    overflow-x: auto;
}

#tabs-container::-webkit-scrollbar {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .proposta-section {
        padding: 40px 0;
    }

    .nav-custom-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .content-card {
        border-radius: 1.5rem;
    }

    .animate-fade-up {
        animation: fadeUp 0.3s ease-out forwards;
    }

    .img-container {
        border-radius: 1.5rem;
    }
}




