/********** Template CSS **********/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.logo-navbar {
    height: 60px;    /* Ajuste essa altura conforme o seu gosto */
    width: auto;     /* Mantém a proporção da imagem */
    display: block;
}

/* Opcional: Remover preenchimentos extras que o Bootstrap coloca no brand */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Amiri", serif;
    font-size: 18px;
    font-weight: Regular;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark); /***lista de infos***/
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Albert Sans", sans-serif;
    font-weight: Regular;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white); /***menu***/
    background: var(--bs-primary);
    font-weight: bold;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary); /***fundo do carrossel***/
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white); /***blocos laterais do carrossel***/
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white); /***blocos laterais do carrossel***/
}

.header-carousel .img {
    width: 100%;       /* Ocupa a largura total da coluna */
    height: 470px;     /* Define a altura que você desejar */
    object-fit: cover; /* Corta a imagem para preencher o espaço sem distorcer */
}

/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}

.img-custom-tamanho {
    max-width: 70%; /* Ajuste a porcentagem como desejar */
    height: auto;   /* Mantém a proporção da imagem */
    display: block; 
    margin: 0 auto; /* Centraliza a imagem se ela for menor que a coluna */
}

/*** Project ***/
.project-item img {
    transition: .5s;
}

.project-item:hover img {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important; /***bloco de fotos***/
}

.service-item.bg-primary p {
    color: var(--bs-light);/***bloco de fotos***/
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);/***bloco de fotos***/
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important; /***bloco de fotos***/
}

.service-item.bg-light p {
    color: var(--bs-secondary); /***bloco de fotos***/
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light); /***bloco de fotos***/
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white); /***bloco de fotos***/
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light); /***bloco de fotos***/
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light); /***bloco de fotos***/
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary); /***bloco de fotos***/
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Albert Sans", sans-serif;
    font-weight: Regular;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

h5{
    color: rgb(255, 255, 255);
}

.sobre-container {
    background-color: #2c213a; /* fundo escuro */
    padding: 40px 20px;
    text-align: center;
}

.sobre-container h2 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-style: italic;
}

.sobre-container p {
    font-style: italic;
    color: #fff;
    font-size: 18px;
    margin: 0;
}

/* Bloco de conteúdo centralizado */
.centralizado {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Albert Sans', sans-serif;
    color: rgba(0, 0, 0, 0.75);
    background-color: #7BCA76;
    text-align: left;
}

.centralizado h2 {
    font-style: italic;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 24px;
    color: #222;
    text-align: center;
}

.centralizado p {
    font-style: italic;
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 40px;
    color: #333;
}

.missao-centralizada {
    max-width: 1200px;   /* largura máxima em telas grandes */
    width: 100%;         /* ocupa 100% em telas menores */
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Albert Sans', sans-serif;
    color: rgba(0, 0, 0, 0.85);
    background-color: #7BCA76;
    text-align: center;
    border-radius: 10px;
}

/* Ajustes para tablets */
@media (max-width: 768px) {
    .titulo-missao {
        font-size: 1.5rem;
    }
    .paragrafo-missao {
        font-size: 1rem;
        line-height: 1.5;
    }
    .missao-centralizada .btn {
        display: block;       /* Faz o botão ocupar a linha toda */
        width: 100%;          /* Garante 100% da largura do container */
        max-width: 280px;     /* Impede que ele fique largo demais */
        margin: 0 auto;       /* Centraliza horizontalmente */
        white-space: normal;  /* Permite que o texto do botão quebre linha se for muito grande */
        font-size: 0.9rem;    /* Ajuste leve para caber melhor em telas pequenas */
        padding: 12px 10px;   /* Aumenta a área de toque */
    }
}

/* Ajustes para celulares */
@media (max-width: 480px) {
    .titulo-missao {
        font-size: 1.2rem;
    }
    .paragrafo-missao {
        font-size: 0.95rem;
    }
    .btn {
        display: block;
        margin: 20px auto 0;
        width: 100%;
        max-width: 250px;
    }
}

.form-control {
    background-color: white !important; /* ou use 'transparent' se quiser fundo invisível */
    color: #000 !important;             /* cor do texto preto */
    border: 1px solid #ccc !important;  /* borda leve */
}

.form-control::placeholder {
    color: #777;
}

.form-floating > label {
    color: #666; /* cor do texto do label flutuante */
}

.minha-galeria-instagram {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* quebra em telas menores */
    margin-top: 20px;
    width: 300px;       /* Reduz a largura da imagem */
    height: 300px;      /* Reduz a altura da imagem */
    display: block;
    border-radius: 8px; 
    overflow: hidden;   
    box-shadow: 0 20px 100px rgba(0,0,0,0.1); /* Sombra leve (opcional) */
}

.testimonial-item {
    display: flex;
    align-items: center;
    gap: 0px; /* espaço fixo entre imagem e texto */
}

.testimonial-img img {
    max-width: 90%;   /* controla o tamanho da imagem */
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.testimonial-text {
    flex: 1; /* garante que o texto ocupe o resto do espaço */
}

.testimonial-text p {
    font-size: 15px;   /* corpo do texto */
    line-height: 1.0;  /* espaço entre linhas */
}

/* Container externo para centralizar */
.calendar-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 10px;
}

    /* Card do calendário */
    .calendar-card {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }

    /* Cabeçalho estilizado */
    .calendar-header {
    background-color: #7BCA76;
    color: white;
    text-align: center;
    padding: 15px;
    font-family: 'Albert Sans', sans-serif;
}

    .calendar-header h2 {
    margin: 0;
    font-size: 1.6em;
}

    /* Iframe do calendário */
    .calendar-iframe {
    border: none;
    width: 100%;
    height: 600px; /* altura maior para o modo mês */
    display: block;
}
    
    /* Responsividade */
@media (max-width: 768px) {
    .calendar-iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .calendar-iframe {
        height: 400px;
    }
    .calendar-header h2 {
        font-size: 1.2em;
    }
}

/* Estilo para os dados bancários dentro do Hero */
.card-bancario-contido {
    color: #254530;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
    line-height: 1.2;

    background: rgba(255, 255, 255, 0.7); /* Fundo branco levemente transparente */
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #7BCA76; /* Detalhe em verde na lateral */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: inline-block;
}

@media (max-width: 991px) {
    .card-bancario-contido {
        margin-top: 30px;
        text-align: center;
        border-left: none;
        border-bottom: 5px solid #7BCA76; /* No mobile, a borda fica embaixo */
        width: 100%; /* Ocupa a largura disponível no celular */
        max-width: 350px; /* Mas não fica largo demais */
    }
    .display-1 {
        font-size: 3.5rem; /* O "Contribua" está muito grande no mobile */
    }
}

.detalhes-conta-menor p {
    margin: 2px 0;
    font-size: 0.85rem; /* Fonte menor para os dados */
    opacity: 0.9; /* Deixa um pouco mais suave */
}

.pix-info-menor {
    margin-top: 8px !important;
    font-weight: bold;
}

/* Ajuste para telas pequenas */
@media (max-width: 991px) {
    .card-bancario-contido {
        margin-top: 20px;
        text-align: center;
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Albert Sans', sans-serif;
    margin: 20px 0;
}

.countdown-item {
    background: #ffffff;
    border-bottom: 4px solid #7BCA76; /* Verde do seu cabeçalho */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 10px;
    flex: 0 1 120px;
    min-width: 100px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.countdown-item p {
    margin: 0;
    font-size: 0.7em;
    color: #777;
    text-transform: uppercase;
}

.countdown-section {
    text-align: center;
    margin-bottom: 30px;
}

.countdown-title {
    font-family: 'Amiri Sans', sans-serif;
    color: #254530; /* O mesmo verde do calendário */
    font-size: 2m;
    font-weight: Regular;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary {
    background-color: #254530 !important; /* Verde escuro da IPJA */
    border-color: #254530 !important;
    transition: 0.5s;
}

.btn-primary:hover {
    background-color: #7BCA76 !important; /* Verde claro no hover */
    color: #fff;
}

.form-control:focus {
    border-color: #7BCA76;
    box-shadow: 0 0 0 0.25rem rgba(123, 202, 118, 0.25);
}