.color1 {
    color: #809fa4 !important;
    /* R128 G159 B164 */
}

.color2 {
    color: #bdceda !important;
    /* R190 G207 B218 */
}

.color3 {
    color: #eac65c !important;
    /* R234 G198 B92 */
}

.color4 {
    color: #809fa4 !important;
    /* R129 G162 B200 */
}

.color5 {
    color: #e2d7cb !important;
    /* R226 G215 B20 */
}

.color6 {
    color: #040503 !important;
    /* R69 G67 B66 */
}

.top-bar select {
    max-width: 150px;
}

.drop-down-lang {
    display: none;
    min-width: min-content !important;
    border-radius: 48px !important;
    padding: 0 0 0 1rem !important;
    background-color: #7fffd400;
    border: #7fffd400 !important;
}

.drop-down-lang.show {
    display: block;
}

.drop-down-item-lang {
    min-width: min-content !important;
    padding: 0px !important;
}

.drop-down-nav {
    min-width: max-content;
}

.donateBtn {
    position: fixed;
    top: 0;
    right: 100px;
    margin: 10px;
    z-index: 1050;
    /* para ficar acima de outros elementos */
}

.slider {
    position: relative;
    /* height: 100vh; */
}

.slider__slides {
    z-index: 1;
    position: relative;
    height: 100%;
}

.slider__control {
    z-index: 2;
    position: absolute;
    top: 34%;
    left: 5%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    border-radius: 50%;
    background: #ffffff00;
    transition: background-color 0.3s;
    cursor: pointer;
}

.slider__control--right {
    left: 95%;
}

.slider__control:hover {
        background-color: #e5e5da24;
}

.slider__control-line {
    position: absolute;
    left: 23px;
    top: 50%;
    width: 3px;
    height: 14px;
    transform-origin: 50% 0;
    transform: rotate(-45deg);
}

.slider__control-line:nth-child(2) {
    transform: translateY(1px) rotate(-135deg);
}

.slider__control--right .slider__control-line {
    left: 37px;
    transform-origin: 1px 0;
    transform: rotate(45deg);
}

.slider__control--right .slider__control-line:nth-child(2) {
    transform: translateY(1px) rotate(135deg);
}

.slider__control-line:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e2e2;
    transition: background-color 0.3s;
}

.slider__control:hover .slider__control-line:after {
    background-color: #fff;
}

.slider__control.a--rotation .slider__control-line:after {
    -webkit-animation: arrowLineRotation 0.49s;
    animation: arrowLineRotation 0.49s;
}

.slider__control.a--rotation .slider__control-line:nth-child(1):after {
    -webkit-animation: arrowLineRotationRev 0.49s;
    animation: arrowLineRotationRev 0.49s;
}

@-webkit-keyframes arrowLineRotation {
    to {
        transform: rotate(180deg);
    }
}

@keyframes arrowLineRotation {
    to {
        transform: rotate(180deg);
    }
}

@-webkit-keyframes arrowLineRotationRev {
    to {
        transform: rotate(-180deg);
    }
}

@keyframes arrowLineRotationRev {
    to {
        transform: rotate(-180deg);
    }
}
/* --- 1. Configuração Base do Slider --- */
.carousel-inner .item {
  display: none; /* <--- CRUCIAL: Esconde os slides inativos */
  height: 100vh; /* A altura fixa que definiu (Perfeito) */
  
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  
  /* Adiciona suavidade na troca (opcional, mas recomendado) */
  -webkit-transition: 0.6s ease-in-out left;
  -o-transition: 0.6s ease-in-out left;
  transition: 0.6s ease-in-out left;
}

/* --- 2. Regra para mostrar o slide atual --- */
/* Sem isto, o ecrã fica branco ou preto */
.carousel-inner .item.active {
  display: block; /* <--- CRUCIAL: Mostra apenas o slide ativo */
}
.carousel-inner .item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* filtro escuro */
  z-index: 1;
}

.carousel-inner .item > * {
  position: relative;
  z-index: 2;
}
/* --- Mantenha o resto do seu CSS igual abaixo --- */

/* Camada escura por cima da imagem */
.carousel-inner .item:after {
  content: "";

  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* O texto tem de estar acima do overlay */
.carousel-caption {
  z-index: 2; 
}

/* --- DEFINIÇÃO DAS IMAGENS (Mantenha igual) --- */
.carousel-inner .item {
  position: relative;
  background-size: cover;
  background-position: center;
}

/* filtro */
.carousel-inner .item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ajusta a intensidade aqui */
}

/* garante que texto/botões ficam visíveis */
.carousel-inner .item > * {
  position: absolute;
  z-index: 1;
}

/* imagens */
.carousel-inner .item:nth-child(1) { background-image: url('../../images/supervisao.jpg'); }
.carousel-inner .item:nth-child(2) { background-image: url('../../images/consulta.jpg'); }
.carousel-inner .item:nth-child(3) { background-image: url('../../images/Banner_grupo.jpeg'); }
.carousel-inner .item:nth-child(4) { background-image: url('../../images/banner_formacao.jpg'); }
.carousel-inner .item:nth-child(5) { background-image: url('../../images/consultoria.jpg'); }
.carousel-inner .item:nth-child(6) { background-image: url('../../images/intervencao_crise.jpg'); }

/* --- Estilos dos Controlos (Setas) - REVISADO --- */

.carousel-control {
  width: 10%; /* Largura da área clicável nas laterais */
  z-index: 10;
  opacity: 1; /* Garante que estão sempre visíveis */
  
  /* Remove o fundo sombreado padrão do Bootstrap para um look mais limpo */
  background-image: none !important;
  filter: none !important;
}

/* Estilo base para ambos os ícones das setas */
.carousel-control .fa {
  position: absolute;
  top: 50%; /* Centra verticalmente */
  z-index: 5;
  display: inline-block;
  
  /* Tamanho e cor das setas */
  font-size: 30px; /* Ajuste este valor se quiser as setas maiores ou menores */
  color: #fff; /* Cor branca */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para melhor leitura */
  
  /* Ajuste para o centro vertical exato (metade da altura do ícone) */
  margin-top: -15px; 
}

/* --- Posicionamento nas Margens --- */

/* Encostar a seta ESQUERDA à margem */
.carousel-control .fa-chevron-left {
  left: 20px; /* 20px de distância da margem esquerda do ecrã */
  margin-left: 0 !important; /* Remove a centralização antiga */
}

/* Encostar a seta DIREITA à margem */
.carousel-control .fa.fa-chevron-right {
  right: 20px; /* 20px de distância da margem direita do ecrã */
  left: auto; /* Garante que o 'left' não interfere */
  margin-right: 0 !important; /* Remove a centralização antiga */
}

/* Efeito Hover quando passa o rato nas setas */
.carousel-control:hover .fa {
  color: #ddd; /* Fica ligeiramente cinzento ao passar o rato */
  transform: scale(1.1); /* Aumenta ligeiramente */
  transition: all 0.3s ease;
}
.carousel-caption { bottom: 36%; padding-bottom: 30px; }
.carousel-caption h2 { color: #fff; font-size: 40px; margin-bottom: 20px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.carousel-caption p { font-weight: 300; font-size: 20px; margin-bottom: 50px; color: #f0f0f0; }

@media screen and (min-width: 768px) {
  .carousel-caption { right: 20%; left: 20%; bottom: 15%!important}
}

/* --- Botões --- */
.btn-transparent {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}

.btn-transparent:hover {
  background-color: #fff;
  color: #333; /* Adicionei cor de texto ao hover para contraste */
  text-decoration: none;
}

.btn-rounded {
  border-radius: 70px;
}

.btn-large {
  padding: 11px 45px;
  font-size: 18px;
}

/* --- Animações --- */
.animated {
  -webkit-animation-duration: 1.5s;
  animation-duration: 1.5s;
}
.drop-down-lang {
    display: none;
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 4px;
    z-index: 1000;
}

.drop-down-lang.show {
    display: block;
}

.drop-down-item-lang {
    padding: 4px;
    cursor: pointer;
}

.button {
    -webkit-font-smoothing: antialiased;
    background-color: #222;
    border: none;
    color: #fff;
    display: inline-block;
    /* font-family: "Montserrat", sans-serif; */
    font-size: 14px;
    font-weight: 100;
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    letter-spacing: 1px;
    color: white;
    padding: 20px 40px;
    text-transform: uppercase;
    transition: all 0.1s ease-out;
}

.button:hover {
    background-color: #90feb5;
    color: #fff;
}

.button:active {
    transform: scale(0.95);
}

.button--bubble {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    color: white;
    background: none;
}

.button--bubble:hover {
    background: none;
}

.button--bubble:hover+.button--bubble__effect-container .circle {
    background: #809fa4;
}

.button--bubble:hover+.button--bubble__effect-container .button {
    background: #809fa4;
}

.button--bubble:active+.button--bubble__effect-container {
    transform: scale(0.95);
}

.button--bubble__container {
    position: relative;
    display: inline-block;
    border-radius: 20px;
}

.button--bubble__container .effect-button {
    position: absolute;
    width: 50%;
    height: 25%;
    top: 50%;
    left: 25%;
    z-index: 1;
    transform: translateY(-50%);
    background: #222;
    transition: background 0.1s ease-out;
}

.button--bubble__effect-container {
    position: absolute;
    display: block;
    width: 200%;
    height: 400%;
    top: -150%;
    left: -50%;
    filter: url("#goo");
    transition: all 0.1s ease-out;
    pointer-events: none;
}

.button--bubble__effect-container .circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 15px;
    background: #222;
    transition: background 0.1s ease-out;
}

.button--bubble__effect-container .circle.top-left {
    top: 40%;
    left: 27%;
}

.button--bubble__effect-container .circle.bottom-right {
    bottom: 40%;
    right: 27%;
}

.goo {
    position: absolute;
    visibility: hidden;
    width: 1px;
    height: 1px;
}

html,
body {
    width: 100%;
    height: 100%;
    /* text-align: center; */
}

.button--bubble__container {
    top: 50%;
    margin-top: -25px;
}

@-webkit-keyframes hue-rotate {
    from {
        -moz-filter: hue-rotate(0);
        -ms-filter: hue-rotate(0);
        filter: hue-rotate(0);
    }
    to {
        -moz-filter: hue-rotate(360deg);
        -ms-filter: hue-rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

@keyframes hue-rotate {
    from {
        -moz-filter: hue-rotate(0);
        -ms-filter: hue-rotate(0);
        filter: hue-rotate(0);
    }
    to {
        -moz-filter: hue-rotate(360deg);
        -ms-filter: hue-rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.custom-checkbox {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    margin-bottom: 9px;
    border: 2px solid #809fa4;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: #28a745;
    /* Cor verde ao clicar */
    border-color: #28a745;
}

.custom-checkbox input[type="checkbox"]::after {
    content: "✔";
    font-size: 14px;
    color: white;
    position: absolute;
    left: 0px;
    top: -6px;
    display: none;
}

.custom-checkbox input[type="checkbox"]:checked::after {
    display: block;
}

.custom-checkbox a {
    color: #60777a;
    text-decoration: underline;
}

.custom-checkbox a:hover {
    color: #4f6164;
}


/*======= carroussel-partners =======*/

@-webkit-keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 8));
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 8));
    }
}

.slider-partners {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 1240px;
}

.slider-partners::before,
.slider-partners::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider-partners::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider-partners::before {
    left: 0;
    top: 0;
}

.slider-partners .slide-track-partners {
    -webkit-animation: scroll 40s linear infinite;
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 16);
}

.slider-partners .slide-partners {
    height: 100px;
    width: 250px;
}


/* Modal base */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.image-container .image:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

.breadcrumb {
    display: -ms-flexbox!important;
    display: flex!important;
    -ms-flex-wrap: wrap!important;
    flex-wrap: wrap!important;
    padding: .75rem 1rem!important;
    /* margin-bottom: 1rem!important; */
    list-style: none!important;
    background-color: #e9ecef!important;
    border-radius: .25rem!important;
}
@media (max-width: 400px) {
    .breadcrumb {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .breadcrumb-item {
        white-space: nowrap !important;
    }
}
