@import url(custom.css);
@import url(../aos/aos.css);
@import url(../fonts/poppins/style.css);
@import url(../fonts/trajan/style.css);

a{
    transition: all .3s ease-in-out !important;
    color: #000;
    text-decoration: none !important;
}

strong{
    font-weight: bold !important;
    font-family: 'Poppins Light' !important;
}
p{
    line-height: 1.8rem !important;    
}

.trajan{
    font-family: 'Trajan Pro Regular' !important;
}

#preloader {
    position: fixed;
    z-index: 999999;
    background-color: var(--primary-color) !important;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease;
    animation: changeBackground 4s infinite;
}

#preloader img { 
    width: 250px; 
    animation: preloader .5s infinite alternate; 
}

#content {
    transition: visibility 0s 1s; /* Mostra o conteúdo após o preloader desaparecer */
}

.news img{
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
}
@keyframes preloader {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.7);
    }
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-green) !important;
    color: #fff !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

header{
    position: sticky !important;
    top: 0;
    z-index: 999;
}

header a img{
    width: 150px;
}

header ul a{
    color: #fff !important;
    font-weight: bold !important;
    padding: 0.5rem 0.5rem !important;
    font-family: 'Poppins ExtraLight' !important;
    transition: all .3s ease-in-out !important;
    border-radius: 10px;
    margin-right: 2px;
    font-size: 14.5px !important;
    font-weight: bold !important;
}
header ul li:last-child a{
    margin-right: 0;
}
header ul ul a{
    color: #000 !important;
    font-weight: normal !important;
    padding: 0.5rem 1rem !important;
    border: thin solid #fff;
}
header a:hover{
    color: #fff !important;
    background-color: #037435 !important;
}

header .active{
    color: #fff !important;
    font-weight: bold !important;
    background-color: #037435 !important;
}

header ul ul .active{
    background-color: #037435 !important;
    font-weight: bold !important;
    color: #fff !important;
}

.banner{
    position: relative;
    height: 80vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
}
.banner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--primary-color) 60%, var(--secundary-color) 100%);
}
.banner .fundo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, #00843b9d 2%, #0000003f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.banner-banner{
    height: 40vh !important;
    background-image: linear-gradient(to bottom, #00843b9d 2%, #0000003f 100%) !important;
}

.banner h1{
    font-size: 3rem !important;
    font-weight: bold !important;
    font-family: 'Poppins Bold' !important;
    text-transform: uppercase;
}
.swiper .btn{
    background-color: #007649 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-family: 'Poppins Medium' !important;
    padding: 1rem 2rem !important;
    border-radius: 30px !important;
    transition: all .3s ease-in-out !important;
}
.swiper .btn:hover{
    background-color: #fff !important;
    color: #007649 !important;
    font-weight: bold !important;
    font-family: 'Poppins Medium' !important;
    padding: 1rem 2rem !important;
    border-radius: 30px !important;
}
.banner-page .banner{
    height: 100vh !important;
}

.banner-page .banner::after{
    height: 0 !important;
}

.banner .fundo .container{
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 5rem;
}

.banner .fundo .container p{    
    font-size: 1.2rem;
    font-family: 'Poppins Medium' !important;
}

.banner .fundo .left{    
    justify-content: end !important;
    align-items: start !important;
    text-align: left !important;
}

.banner .fundo .right{    
    justify-content: end !important;
    align-items: end !important;
    text-align: left !important;
}

.banner .fundo-left{
    background-image: linear-gradient(to right, #00843b9d 2%, #0000003f 100%) !important;
}

.banner .fundo-right{    
    background-image: linear-gradient(to left, #00843b9d 2%, #0000003f 100%) !important;
}

.banner-img{    
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    flex-grow: 1;
    z-index: 9999; 
}
.banner-img .color{
    flex-grow: 1;
    position: relative;
    top: 0;
}
.banner-img img{
    width: 100px !important;
    height: 100px;
    z-index: 9999; 
}

.opacity{
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999 !important;
    visibility: hidden;
}

.opacity .row{
    padding: 5rem;
}

.left .opacity{
    left: 0;
    border-radius: 0 50px 50px 0;
}

.right .opacity{
    right: 0;
    border-radius: 50px 0 0 50px;
}

.actividade-mineira h1{
    font-weight: bold !important;
    font-size: 15rem !important;
    text-shadow: 10px 0 20px #0000007a;
}

.actividade-mineira .modal{
    color: #000 !important;
}

.actividade-mineira .modal .modal-header{
    text-align: center;
    text-transform: uppercase;
    font-weight: bold !important;
    font-family: 'Poppins Bold' !important;
}

.responsabilidade-ambiental h1{ 
    font-weight: bold !important;
    font-family: 'Poppins Bold' !important;
}

.responsabilidade-ambiental-section-02 .card{
    height: 50vh;
}

.responsabilidade-ambiental-section-02 .card img{
    width: 100% !important;
    height: 100% !important;
    /*object-fit: cover !important;
    object-position: 0vh -40vh !important;*/
}

.responsabilidade-ambiental .section-03 .card{
    border-radius: 10px;
    text-transform: uppercase;
}

/*.color{
    position: relative;
    
    z-index: 999 !important;
}
.text-banner-top{
    top: 0;
    position: absolute;
    display: flex;
    transition: display .5s ease-in-out;
    color: #fff !important;
    font-size: 1.2rem;
    padding: 0 ;
    background: #007649;
    text-align: center;
    border-radius: 5px;
    height: 0;
    overflow-y: hidden;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999 !important;
    transition: .5s ease-in-out;
}
.color:hover .text-banner-top {    
    padding: 30px 10px ;
    height: auto;
    transition: .5s ease-in-out;
    cursor: pointer;
} */


.endiama-numeros{
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 30%;
    position: relative;
    height: 100vh;
    transition: background 0.5s ease-in-out;
}

.endiama-numeros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Cor preta semi-transparente */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.endiama-numeros.hover::before {
    opacity: 1;
}

/* Ajustar os cards para ficarem alinhados */
.banner-img {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espaçamento entre os cards */
}

/* Garantir que os elementos internos fiquem centralizados */
.color {
    background: rgba(255, 255, 255, 0.2); /* Fundo translúcido */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Imagem dentro do card */
.img img {
    width: 60px; /* Ajuste conforme necessário */
}

.text-banner-top {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Mostrar quando a classe 'active' for adicionada */
.text-banner-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

/* Criar efeito de escada */
.color:nth-child(1) .text-banner-top { transform: translateY(0px); }
.color:nth-child(2) .text-banner-top { transform: translateY(10px); }
.color:nth-child(3) .text-banner-top { transform: translateY(20px); }
.color:nth-child(4) .text-banner-top { transform: translateY(30px); }
.color:nth-child(5) .text-banner-top { transform: translateY(40px); }


[data-aos="fade-up"], [data-aos="fade-down"], [data-aos="fade-left"], [data-aos="fade-right"] {
    transform: none !important;
}

.modal.aos-animate {
    transform: none !important;
}

.main-about img{
    position: relative;
    z-index: 9 !important;
    width: 400px;
    margin-top: -160px;
}

/*
    =========== VALORES ============
*/

.value{
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    height: 40vh;
}
.value .text-value{
    background-color: #3f3f3fa8;
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.fundo-value{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.594);
    color: #fff;
    padding: 2rem;
}
.fundo-value h4{
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.594);
    font-size: 2rem;
}

.value img{
    width: 100px;
    transition: opacity 0.3s ease-in-out;
}

/*
    ==================== O GRUPO ===========================
*/
.grupo .icone{
    background-color: #006634;
    border-radius: 50%;
    width: 100px;
    height: 100px;    
    display: block;
    margin-bottom: 0.5rem;
}

.grupo .icone img{
    width: 100% !important;
}

.grupo .base-icone h6{
    text-transform: uppercase;
    font-weight: bold !important;    
}

.grupo .base-icone{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    flex-grow: 1;
    text-align: center;
}

.grupo .seccao-imagem{
    position: relative;
    height: 80vh !important;
    background-size: cover;
    background-repeat: no-repeat;
}
.grupo .fundo-seccao{
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, #007649b0, #00af0096);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.seccao-imagem img{
    width: 900px !important;
}
/*
    ================ CAPITAL =================
*/
.info-card {
    background-image: linear-gradient(to left, var(--primary-color) 70%, var(--secundary-color) 100%) !important;
    border-radius: 30px;
    color: white !important;
    padding: 30px;
    border-radius: 50px !important;
    font-family: 'Poppins Bold' !important;    
  }

  .info-card h1 {
    font-size: 4rem;
    font-weight: 800;
  }

  .info-card p{
    font-size: 1.5rem;
  }

  .info-card .bar-bg {
    background-color: #bbb;
    border-radius: 0 10px 10px 0;
    height: 50px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
  }

  .info-card .bar-white {    
    border-radius: 0;
    height: 3px !important;
    margin: 2rem 0;
  }

  .info-card .bar-fill {
    background-color: #D7DF23;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }

  .info-card .padding-x{
    padding-left: 5rem;
  }

  .info-card .bar-fill-white {
    background-color: #fff;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }

  .info-icon {
    position: absolute;
    left: -60px;
    top: 70px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 10px solid #fff;
    background: linear-gradient(to right, #D7DF23 1%, #00843C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
  }

  .info-card h1{
    font-family: 'Poppins Bold' !important;
    color: #fff;
  }

  @media (max-width: 768px) {
    .info-card h1 {
      font-size: 2.5rem;
    }
  }

  @media (max-width: 576px) {
    .info-card h1 {
      font-size: 2rem;
    }

    .info-icon {
      width: 60px;
      height: 60px;
      font-size: 30px;
    }
  }

/*
    ================ Footer ==================
*/

footer{
    background-image: linear-gradient(to right, var(--primary-color) 60%, var(--secundary-color) 100%);
    color: #fff !important;
}

footer{
    padding-top: 5rem;
    padding-bottom: 5rem;
}

footer a{
    text-decoration: none;
    color: #ffffffe0 !important;
}

footer a:hover{
    color: #fff !important;
}

.mvv .image{
    background-color: #007648;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mvv .image img{
    width: 50px;
    height: 50px;
}
.mvv .card{
    border: thin solid #00764960;
    border-top: thick solid #007648;
}
.mvv .card h1{
    color: #007648;
    font-size: 1.8rem;
}
.mvv .card i{
    color: #007648;
    font-size: 3rem;
}

/*
    ========= CONSELHO ===========
*/

.conselho .card-body, .modal-verde{
    color: #fff !important;
    background-image: linear-gradient(to right, var(--primary-color), #00af00);
    border-radius: 0 0 10px 10px;
    font-weight: bold !important;
    font-family: 'Poppins Medium' !important;
}

.conselho img{
    width: 100%; 
    height: 330px; 
    object-fit: cover;
    object-position: top;
}

.img-cima{
    object-position: center -35px !important;
}

.conselho .card:hover{
    transform: scale(1.1) !important;
    transition: all .3s ease-in-out;
}

@media (max-width: 1400px) {
    .main-about img{
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 1200px) {
    body{
        overflow-x: hidden !important;
    }
    .main-about > .pb-0{
        margin-bottom: 3rem !important;
    }
    .main-about img{
        width: 100%; 
    }
}

@media (max-width: 992px){
    .value{
        height: 100vh;
    }
        
}

@media (max-width: 992px){
    .value{
        height: 100vh;
    }       
}

@media (max-width: 991px){
    .numeros-home  {
        display: none;
    }
    .swiper-slide {
        border-radius: 0 !important;
    }
    header{
        padding: 1rem;
    }
    header img{
        width: 200px !important;
    }
    .navbar-toggler{
        background-color: #fff !important;
        color: #fff !important;
    }
    header .navbar-nav{
        padding: 1rem 0 !important;
    }
    header .navbar-nav > li a{
        padding: 1rem !important;
    }
    .overlay h1 {
        padding-top: 10rem !important;
    }
    .icone-area .d-flex{
        flex-direction: column !important;
    }

    .mapa-endiama .fundo{
        width: 70% !important;
        height: 70% !important;
    }

    .seccao-imagem{
        display: none;
    }

    .seccao-imagem-2{
        display: block !important;
        padding: 3rem;
    }
    .seccao-imagem-2 a{
        display: block;
        background-color: #007649;
        border-radius: 10px;
        text-align: center;
    }
    .seccao-imagem-2 img{
        padding: 1rem;
        width: 250px !important;
        height: auto !important;
    }

}
.timeline-container-2{
    display: none;
}
.seccao-imagem-2{
    display: none;
}

@media (max-width: 1005px) {
    .timeline-container{
        display: none !important;
    }

    .timeline-container-2{
        display: block !important;
    }

    .historia .d-flex{
        display: block !important;    
    }
    .historia .py-5{
        padding: 3rem !important;
    }
    
    .accordion-item{
        margin-bottom: 1rem !important;
        border-top: thick solid #007649 !important;
        border-radius: 10px;
    }

    .accordion-button:not(.collapsed){
        background-color: #007649 !important;
        color: #fff !important;
    }
}

@media (max-width: 880px){
    .carousel{ 
        display: block !important;
    }

    footer{
        text-align: center !important;
    }
}

@media (max-width: 575px){

    .swiper h1, .banner h1{
        font-size: 2rem !important;
    }
    .inicio section{
        padding: 1rem;
    }
    .actividade-mineira h1{
        font-size: 5rem !important;
    }
    .actividade-mineira img{
        width: 150px !important;
    }

    .actividade-mineira ul li{
        display: block;
    }
}

.endiama-numeros .banner-top{
    height: 100vh;
    padding-top: 4rem;
    transition: background-color 0.5s ease, background-image 0.5s ease !important;
}

.endiama-numeros .banner-top li{
    flex-grow: 1;
    background-color: transparent;
    list-style: none !important;
    font-family: 'Poppins Medium' !important;
    overflow-y: hidden;
    height: 190px;
}
.endiama-numeros .banner-top li:hover{
    height: auto !important;
}
.endiama-numeros .banner-top li:hover > div{
    height: auto !important;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    background-color: rgba(121, 121, 121, 0.466) !important;
}

.endiama-numeros .banner-top li:hover > div strong{
    color: #fff !important;
    font-weight: bold !important;
    font-family: 'Poppins Bold' !important;
}

.endiama-numeros .banner-top li > div h1{
    font-weight: bold !important;
    font-family: 'Poppins Bold' !important;
}

.endiama-numeros .banner-top li > div{
    background-color: transparent !important;
    color: #fff !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 3rem 0.5rem; 
    width: 100%;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}
.text-banner-top{
    visibility: hidden;
    transition: all .5s ease-in-out;
}
.endiama-numeros .banner-top .img{
    display: flex;
    align-items: center;
    justify-content: center;
}
.endiama-numeros .banner-top .img img{
    width: 100px;
    height: 100px;
    transition: all .5s ease-in-out;
}
.endiama-numeros .banner-top strong{
    font-family: 'Poppins Medium' !important;
    color: #000000a3;
    margin-top: 1rem;
}

.mapa-endiama {
  position: relative;
  width: 1000px;
  height: 700px;
  margin: auto;
}

.mapa-endiama .fundo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.logotipo {
  position: absolute;
  z-index: 2;
  transition: transform 0.3s, filter 0.3s;
}

.logotipo img {
  width: 150px !important;
}

.logotipo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

/* Coração central */
.central {
  top: 45%;
  left: 45%;
  width: 90px;
}

.item0 { top: 0%; left: 49%; } /* Laboratório de Diamentes */

/* Logotipos ao redor (exemplo de posições aproximadas) */
.item1 { top: 12%; right: 15%; } /*ENDIAGRO*/

.item2 { top: 26%; right: 6%; } /*ENDITRADE*/

.item3 { bottom: 35%; right: 13%; } /*GEOANGOL*/
.item3 img { width: 180px !important; }

.item4 { bottom: 17%; right: 28%; } /* Centro de formação */
.item4 img { width: 180px !important; }

.item5 { bottom: 0%; left: 36%; } /* ALFA S */
.item5 img { width: 180px !important; }

.item6 { bottom: 13%; left: 20%; } /* Sagrada Esperança*/
.item6 img { width: 180px !important; }

.item7 { bottom: 34%; left: 8%; } /* Hotel Diamante */
.item7 img { width: 180px !important; }

.item8 { top: 26%; left: -5%; } /* Clínica Sagrada  Esperança*/
.item8 img { width: 180px !important; }

.item9 { top: 8%; left: 8%; } /* Fundação Brilhante */

.item10 { top: 0%; left: 28%; } /* Laboratório de Diamentes */

.timeline {
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e7e7e7;
  z-index: 1;
}

.timeline-item {
  position: relative;
  text-align: center;
  width: 120px;
  z-index: 2;
}

.timeline-item .dot {
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: thick solid #00843C;
  border-radius: 50%;
  margin: 8px auto;
  cursor: pointer;
}

.timeline-item .dot:hover {
  background-color: #00843C;
  border-color: #fff;
  transition: all 0.3s ease-in-out;  
}

.timeline-item strong {
  display: block;
  margin-top: 10px;
  font-weight: bold !important;
  color: #00843C;
}

.timeline-item .dot:hover::after {
  display: block;
  opacity: 1;
  z-index: 10;
}

.timeline-content{
    position: absolute;
    bottom: 75px;
    left: 207px;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: max-content;*/
    width: 300px !important;
    border-left: thick solid #00843C;
    text-align: left !important;
    opacity: 0;
     overflow-wrap: break-word;     /* Quebra palavras longas */
    word-wrap: break-word;         /* Compatibilidade */
    white-space: normal;           /* Permite quebras de linha */
    overflow: hidden;              /* Garante que nada transborde */
    box-sizing: border-box; 
    z-index: 9999 !important;
}

.timeline-content h5 {
    font-weight: bold !important;
    color: #00843C;
    margin-bottom: 5px;    
}
.timeline-content h5::after {
    content: "";
    display: block;
    width: 10%;
    height: 4px;
    border-radius: 5px;
    background-color: #00843C;
    margin-top: 3px;
}

.timeline-item .dot:hover .timeline-content {    
    opacity: 1;
}

