.hero-section {
    background-image: url('images/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 34px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7%;
}

.header-right {
    display: flex;
    align-items: center; 
    gap: 3.2vw;
}

.main-header .logo img {
    width: 20vh;
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 2vw;
    margin-top: 11px;
}
.main-nav a {
    text-decoration: none;
    padding: 10px 15px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    font-size: 1vw; /* Tamanho da fonte ligeiramente reduzido */
    transition: color 0.3s ease-in-out;
}

.main-nav a span {
    position: relative;
    z-index: 3;
}

.main-nav a::before {
    content: "";
    display: none; /* Remove o efeito de fundo */
}

.main-nav a:hover {
    color: var(--color-accent-green); /* Muda a cor do texto no hover */
    border-color: var(--color-accent-green); /* Muda a cor da borda no hover */
}

.main-nav a::after {
    content: "";
    display: none; /* Garante que a animação de sublinhado seja removida */
}

.btn-client-area {
    /* Resetando estilos de botão para um ícone */
    background-color: transparent;
    border: 2px solid var(--color-text-light); /* Borda sutil para definir a área */
    color: var(--color-text-light); /* Cor do ícone SVG */
    padding: 8px; /* Padding para criar espaço ao redor do ícone */
    border-radius: 50%; /* Deixa o botão circular */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: flex; /* Para centralizar o SVG dentro */
    align-items: center;
    justify-content: center;
}

.btn-client-area:hover {
    background-color: var(--color-text-light); /* Fundo branco no hover */
    color: var(--color-primary); /* Ícone na cor primária no hover */
}
.hamburger-menu {
    display: none;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1003; /* Aumentado para ficar acima do menu ativo */
}
.hamburger-menu span {
    position: absolute;
    left: 0;
    top: 9px;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    transition: opacity 0.3s ease;
}
.hamburger-menu::before,
.hamburger-menu::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.hamburger-menu::before { top: 0; }
.hamburger-menu::after { 
    top: 18px; 
    /* Usar bottom em vez de top para a animação do X ficar mais limpa */
    top: auto;
    bottom: 0;
}



.hero-content {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.hero-text {
    flex-grow: 0;         /* Não cresce além da base */
    flex-shrink: 0;       /* Impede que o container do texto encolha */
    flex-basis: 580px;    /* Define a largura base ideal para o texto */
    max-width: 580px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: white;
}

.btn-hero-action {
    display: inline-block;
    background-color: var(--color-accent-green);
    color: var(--color-text-light);
    padding: 12px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-bottom: 40px;
}

.btn-hero-action:hover {
    background-color: #4a8c6a; /* Um tom mais escuro de verde */
}

.info-cards-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 150px;
    text-decoration: none;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.info-card-icon {
    width: 32px;
    height: 32px;
}

.social-icons-hero {
    display: flex;
    gap: 20px;
}

.social-icons-hero a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons-hero a:hover {
    transform: scale(1.2);
}

.social-icons-hero img {
    width: 35px;
    height: 35px;
}

.hero-image {
    flex-grow: 1.2; /* Permite que a imagem cresça para ocupar o espaço disponível */
    overflow: hidden; /* Impede que a imagem escalada crie uma barra de rolagem */
}


/* CSS for section section:about */
.about-section {
    background: #ffffff;
    padding-top: 120px;
    position: relative;
    padding-bottom: 120px;
    overflow: visible;
    z-index: 1;
}

@media (max-width: 768px) {
    .about-section {
        background: var(--color-primary) !important;
        padding: 30px 0;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-map-container {
        width: 100%;
        grid-column: 1;
        padding: 0;
        height: 300px;
        position: relative;
        margin: 0;
    }
    .about-map {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .about-map img {
        width: 90%;
        height: 90%;
        object-fit: contain;
        opacity: 0.25;
    }
    .map-overlay-content {
        position: absolute;
        bottom: 0;
        right: 0;
        text-align: right;
        padding: 15px;
        z-index: 2;
        width: auto;
    }
    .map-overlay-content h3 {
        font-size: 16px;
        margin-bottom: 4px;
        color: #000000;
    }
    .map-overlay-content p {
        font-size: 13px;
        margin-bottom: 0;
        color: #000000;
    }
    .about-text-wrapper {
        width: 100%;
        grid-column: 1;
        padding: 20px;
        background-color: var(--color-primary);
    }
    .btn-about-action {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-weight: 600 !important;
        padding: 12px 25px !important;
        border-radius: 5px !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    .about-title-container h2 {
        font-size: 22px;
        color: #ffffff;
    }
    .about-text-content p {
        font-size: 14px;
        color: #ffffff !important;
    }
    .map-icons {
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        gap: 10px;
        z-index: 2;
        padding: 15px;
    }
    .map-icons img {
        width: 20px;
        height: 20px;
    }
    .about-map {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .about-map img {
        opacity: 0.8;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
.about-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; /* Centraliza verticalmente */
    min-height: 550px; /* Altura reduzida para acomodar os cards */
}
.about-map-container {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    background-color: #f0f0f0; /* Um cinza mais claro e suave */
    justify-self: start; /* Alinha o card do mapa à esquerda */
    width: 45%; /* Reduz a largura do mapa para dar mais destaque ao texto */
    height: 90%;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 90px 100%, 0 calc(100% - 90px)); /* Corte reduzido */
    padding: 40px 50px; /* Ajusta o padding para o novo conteúdo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: flex; /* Adicionado para controle do conteúdo interno */
    flex-direction: column; /* Organiza o conteúdo em coluna */
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    position: relative; /* Para o posicionamento absoluto do mapa */
}

.map-overlay-content {
    position: relative;
    z-index: 3; /* Garante que o conteúdo fique sobre o mapa */
    color: var(--color-text-dark);
}

.map-overlay-content h3 {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-overlay-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 300px; /* Limita a largura do texto */
    margin-bottom: 25px;
}

.map-icons {
    display: flex;
    gap: 25px;
}

.about-map {
    position: absolute; /* Posiciona o mapa no fundo do container */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.map-icons img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
}

.about-map img {
    width: 85%;
    height: 90%;
    object-fit: contain;
    opacity: 0.20; /* Deixa o mapa bem sutil no fundo */
    position: absolute;
    right: 21%; /* Puxa o mapa mais para a esquerda */
    top: 50%;
    transform: translateY(-50%);
}

.about-text-wrapper {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 50px 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 2; /* Coloca o card de texto na frente */
    width: 120%; /* Aumenta a largura para estender mais à direita */
    /* Corte no canto superior direito, mais pronunciado */
    clip-path: polygon(0 0, calc(100% - 90px) 0, 100% 90px, 100% 100%, 0 100%); /* Corte reduzido */
    justify-self: end; /* Alinha o card de texto à direita */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-light);
    /* Efeito de corte no canto superior direito */
    clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 80px, 100% 100%, 0 100%);
    z-index: 1;
}

.title-decorator {
    width: 50px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
    margin-bottom: 15px;
}

/* Hero-specific decorator and subtitle tweaks */
.hero-text .title-decorator {
    /* small gap between decorative bar and hero title - keep tight by default */
    margin-bottom: 2px;
}

.hero-subtitle-2 {
    color: #ffffff;
}

.hero-subtitle {
    /* Garantir subtítulo branco em todos os contextos */
    color: #ffffff;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    /* Melhorias no agrupamento do hero no mobile */
    .hero-section {
        padding-top: 18px; /* aumenta o espaçamento no topo para afastar o título da logo no mobile */
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding-top: 15px;
    }

    .hero-text {
        text-align: center;
        padding: 0 18px; /* evitar colisão com as bordas */
        margin-top: 12px; /* garante que o bloco de texto desça um pouco em relação ao topo */
    }

    .hero-section .title-decorator {
        margin-top: 8px; /* afasta o tracinho do logo apenas um pouco */
        margin-bottom: 6px;
        width: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 10px;
  
    }

    .hero-subtitle-2{
        margin-bottom: 55px;
    }

    .hero-text p {
        margin-top: 6px;
        font-size: 15px;
        color: #f1f1f1;
        text-align: justify; /* justificar o texto conforme solicitado */
    }

    /* também justificar o subtítulo secundário se presente */
    .hero-subtitle-2 {
        text-align: justify;
        margin-left: 6px;
        margin-right: 6px;
    }

    .btn-hero-action {
        margin-bottom: 20px;
    }

    .hero-image img {
        max-width: 95%;
        height: auto;
    }
}
.about-paragraph {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.paragraph-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Impede que o ícone encolha */
}
.about-text-content p {
    margin: 0; /* Reseta margens para evitar espaçamento extra */
}
.about-title-container h2 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.5;
    color: var(--color-text-light);
}
.about-text-content p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.67;
    color: #e0e0e0;
    text-align: justify;
    margin-bottom: 20px;
}

.btn-about-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-text-light); /* Fundo branco para destaque */
    color: var(--color-primary); /* Texto na cor primária */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start; /* Alinha o botão à esquerda */
}
.btn-about-action:hover {
    background-color: #f0f0f0; /* Leve escurecida no hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ajusta a cor do ícone do WhatsApp dentro do botão */
.btn-about-action img {
    filter: invert(25%) sepia(58%) saturate(1558%) hue-rotate(145deg) brightness(94%) contrast(96%);
}

/* Specific sizing for the small attendant icon inside the about button */
.btn-about-action .btn-about-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Slightly larger on mobile to aid tap targets */
@media (max-width: 600px) {
    .btn-about-action .btn-about-icon {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr; /* Coluna única */
        gap: 0;
        min-height: auto;
    }
    .about-map-container, .about-text-wrapper {
        grid-column: 1 / 2;
        width: 100%;
        height: auto;
        justify-self: center; /* Centraliza os cards no mobile */
    }
    .about-map-container {
        clip-path: none; /* Remove o corte no mobile para um layout mais simples */
        border-radius: 20px;
        z-index: 1;
        padding: 30px;
    }
    .about-text-wrapper {
        clip-path: none; /* Remove o corte no mobile */
        border-radius: 20px; /* Adiciona um leve arredondamento no mobile */
        margin-top: -50px; /* Efeito de sobreposição */
        padding: 60px 30px 30px;
    }

    .about-text-wrapper {
        display: contents; /* Faz o wrapper "desaparecer" para o layout flex */
    }
    .about-title-container {
        order: 1; /* Título primeiro */
        text-align: center;
        margin-bottom: 5px; /* Espaçamento abaixo do título */
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 0;
        background: #f3f3f3 !important;
        overflow: hidden;
    }
    .about-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-map-container {
        width: 100%;
        background-color: transparent;
        padding: 20px;
        position: relative;
        height: auto;
    }
    .map-overlay-content {
        position: relative;
        text-align: left;
        margin-bottom: 20px;
    }
    .map-overlay-content h3 {
        font-size: 20px;
        margin-bottom: 5px;
        color: var(--color-text-light);
    }
    .map-overlay-content p {
        font-size: 14px;
        margin-bottom: 10px;
        color: var(--color-text-light);
    }
    .about-map img {
        opacity: 0.3;
    }
    .about-text-wrapper {
        width: 100%;
        background-color: var(--color-primary);
        padding: 25px;
        margin-top: 20px;
    }
    .btn-about-action {
        background-color: var(--color-text-light);
        color: var(--color-primary);
        font-weight: 600;
    }
    .about-title-container h2 {
        font-size: 24px;
        line-height: 1.3;
        color: rgb(0, 0, 0) !important;
    }
    .about-text-content p {
        color: rgb(0, 0, 0) !important;
        font-size: 16px;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    .map-overlay-content h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .map-overlay-content p {
        font-size: 16px;
        margin-bottom: 15px;
        color: var(--color-text-dark);
    }
    .map-icons {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }
    .map-icons img {
        width: 35px;
        height: 35px;
    }
    .about-map img {
        opacity: 0.25;
    }
    
}

/* CSS for section section:showcase */
.company-showcase-container {
    width: 100%;
    margin: auto;
    background-color: transparent;
    overflow: hidden; /* Correção definitiva: Contém os blurs que estavam "vazando" da tela */
    position: relative; /* Essencial para ser a referência de posicionamento dos blurs */
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}

.blur-effect {
    content: '';
    position: absolute;
    width: 800px;
    height: 1200px;
    background: radial-gradient(circle, rgba(204, 245, 238, 0.7), rgba(204, 245, 238, 0) 70%);
    filter: blur(100px);
    opacity: 0.9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .blur-effect {
        display: none !important;
    }
}

.blur-1 {
    right: -250px;
    top: 50%;
    transform: translateY(-50%);
}

.blur-2 {
    left: -300px;
    bottom: -400px;
    width: 1000px;
    height: 1000px;
    opacity: 0.6;
}

.blur-3 {
    top: -650px; /* Movido mais para cima para suavizar a borda */
    left: 50%;
    transform: translateX(-30%);
    width: 1000px;
    height: 1200px;
    opacity: 0.7;
}

.blur-4 {
    left: 50%;
    bottom: -600px; /* Posicionado na base da seção 'about' */
    transform: translateX(-50%);
    width: 1200px;
    height: 1000px;
    opacity: 0.7;
}

.blur-5 {
    bottom: -700px; /* Aumenta a sobreposição para baixo */
    left: 50%;
    transform: translateX(-30%);
    width: 1200px; /* Aumenta a largura para cobrir mais */
    height: 1300px; /* Aumenta a altura para um gradiente mais suave */
    opacity: 0.8; /* Aumenta a intensidade para garantir a cobertura */
    z-index: 3; /* Garante que fique sobre o conteúdo da seção de baixo */
}

.vertical-text {
    position: absolute;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    white-space: nowrap;
    font-size: 16px;
    color: #056669;
    letter-spacing: 2px;
}

.vertical-text.left {
    left: 50px;
    top: 15%;
}

.vertical-text.right {
    right: 50px;
    top: 62%;
}

.showcase-section {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 120px;
    position: relative;
    z-index: 2;
}

.text-content {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.text-box {
    padding: 12px 24px;
    font-size: 18px;
    text-align: center;
}

.text-box-dark {
    background-color: #000;
    color: #fff;
    transform: translateX(20px);
}

.text-box-light {
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    transform: translateX(-20px);
}

.bottom-section .text-box-dark {
    transform: translateX(-20px);
}

.bottom-section .text-box-light {
    transform: translateX(20px);
}

.text-paragraph {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-top: 20vh;
}

.logo-container {
    flex-shrink: 0;
}

.logo-dpst {
    width: 300px;
    height: 300px;
}

.logo-bt {
    width: 320px;
    height: 320px;
}

.top-section .logo-container { order: 2; }
.top-section .text-content { order: 1; }

.bottom-section .logo-container { order: 1; }
.bottom-section .text-content { order: 2; }

.bottom-section {
    margin-top: 50px;
}

.arrow {
    position: absolute;
    width: 50px;
    height: 50px;
}

.arrow-top-left {
    left: 8%;
    top: 37%;
}

.arrow-bottom-right {
    right: 10%;
    bottom: 5%;
}

@media (max-width: 1200px) {
    .company-showcase-container {
        height: auto;
    }
}

@media (max-width: 1024px) {
    .showcase-section {
        flex-direction: column;
        padding: 60px 40px;
        gap: 50px;
    }
    .top-section .logo-container,
    .top-section .text-content,
    .bottom-section .logo-container,
    .bottom-section .text-content {
        order: 0; /* Reseta a ordem para o fluxo normal */
    }
    .text-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        gap: 15px; /* Diminui o espaço entre os text-box */
    }
    .text-box-dark,
    .text-box-light,
    .bottom-section .text-box-dark,
    .bottom-section .text-box-light {
        transform: translateX(0); /* Remove o deslocamento lateral no mobile */
    }
    .arrow {
        display: none;
    }
    .vertical-text.left { left: 20px; }
    .vertical-text.right { right: 20px; }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 40px 20px; /* Padding menor para mobile */
        gap: 30px; /* Espaço menor entre logo e texto */
    }
    .vertical-text { 
        display: none; /* Oculta os textos verticais em telas pequenas */
    }
    .text-paragraph {
        margin-top: 15px; /* Diminui o espaço acima do parágrafo */
    }

    .logo-dpst, .logo-bt {
        width: 250px;
        height: 250px;
    }
    .text-box {
        font-size: 16px;
    }
    .text-paragraph {
        font-size: 14px; 
    }
}

/* CSS for section section:services */
.services-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 80px 0;
    overflow: hidden;
}
.services-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.services-section .section-header h2 {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 0;
}
.services-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.services-diagram {
    flex: 0 0 55%; /* Aumenta o espaço para o diagrama */
    position: relative;
    max-width: 55%;
    margin-left: -30px; /* Move o diagrama um pouco para a esquerda */
}

#services-svg {
    width: 100%;
    height: auto;
}

#service-line-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Garante que o canvas não interfira com os cliques no SVG */
}

.service-display-area {
    flex: 1;
    height: 650px; /* Altura fixa para evitar "saltos" */
    max-width: 45%;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px); /* Efeito sutil de subida */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    display: flex; /* Centraliza a imagem verticalmente */
    align-items: center;
    justify-content: center;
}

.service-display-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-display-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 1200px) {
    .services-content {
        flex-direction: column;
    }
    .services-diagram, .service-display-area {
        max-width: 80%;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0; /* Reduz o padding da seção */
    }
    .services-section .section-header h2 {
        font-size: 36px;
        margin-bottom: 0;
    }
    .services-content {
        gap: 30px; /* Reduz o espaço entre o diagrama e a área de display */
    }
    .services-diagram, .service-display-area {
        max-width: 95%; /* Permite que os elementos ocupem mais a largura da tela */
    }
    .service-display-area {
        height: 450px; /* Reduz drasticamente a altura da área de display no mobile */
    }
}

/* CSS for section section:testimonials */
.testimonials-section {
    background-color: #ffffff;
    overflow: hidden; /* Adicionado para conter os cards e evitar a barra de rolagem horizontal */
}
.testimonials-section h2 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 40px;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 80px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
}

/* Testimonials title styling: reuse the 'about' title look but adapt colors */
.testimonials-title {
    text-align: center;
    margin-bottom: 30px;
}
.testimonials-title .title-decorator {
    margin: 0 auto 12px;
    width: 50px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
}
.testimonials-title h2 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    color: var(--color-text-dark);
    margin: 0;
}

/* Footer CTA title with decorator on the right */
.footer-title-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.footer-title-right h2 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-text-light);
    margin: 0;
}
.footer-decorator-right {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
    display: inline-block;
}

/* Only show the footer decorator on small screens (hide in desktop) */
.footer-decorator-right { display: none; }

/* On light footer background keep the title dark and decorator visible */
.footer-section .footer-title-right h2 { color: var(--color-text-light); }

@media (max-width: 768px) {
    .footer-title-right {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .footer-title-right h2 { font-size: 20px; }
    .footer-decorator-right { display: inline-block; }
}
.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #eef0f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 550px; /* Limita a largura máxima dos cards */
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.author-name {
    font-weight: 600;
    color: var(--color-text-dark);
}

.author-title {
    font-size: 14px;
    color: var(--color-text-medium);
}

.testimonial-quote-icon {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--color-text-medium);
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

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

/* --- Seção Carrossel de Parceiros --- */
.partners-carousel-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    overflow: hidden; /* Correção definitiva: Contém as setas do carrossel que estavam vazando */
}

#logoCarousel {
    width: 90%;
    max-width: 1200px; /* Alinha com o conteúdo principal do site */
    margin: 0 auto; /* Centraliza o carrossel na página */
    position: relative; /* Necessário para o posicionamento das setas */
}

#logoCarousel .carousel-inner {
    display: flex;
    align-items: center;
    height: 150px; /* Altura do carrossel */
    /* Ajuste para centralização perfeita com 5 itens */
    left: 1%; 
    transition: transform 0.5s ease-in-out; /* Animação do slide */
}

/* Renomeei para evitar conflitos com Bootstrap */
.logo-carousel-item {
    flex: 0 0 20%; /* Garante que cada item ocupe 20% para mostrar 5 */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0.4;
    transform: scale(0.7);
    padding: 0 15px;
    /* Adicionado para centralizar a imagem dentro do seu contêiner */
    display: flex;
    justify-content: center;
}

.logo-carousel-item img {
    max-width: 150px; /* Tamanho máximo para os logos */
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(50%); /* Deixa os logos um pouco acinzentados */
}

/* Estilo do item central (destaque) */
.logo-carousel-item.active {
    opacity: 1;
    transform: scale(1.2);
}

.logo-carousel-item.active img {
    filter: grayscale(0%);
}

/* Estilos para os controles (setas) */
.carousel-control-prev,
.carousel-control-next {
    width: auto; /* Ajusta a largura ao ícone */
}

.carousel-control-prev {
    left: -100px; /* Move a seta esquerda para fora */
}

.carousel-control-next {
    right: -100px; /* Move a seta direita para fora */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3); /* Cor de fundo das setas */
    background-size: 50% 50%;
    border-radius: 50%;
    padding: 20px;
}

/* Estilos para os indicadores (bolinhas) */
.carousel-indicators {
    bottom: -40px; /* Posiciona os indicadores abaixo do carrossel */
}

.carousel-indicators [data-bs-target] {
    background-color: #056669; /* Cor dos indicadores */
}

/* Ajustes para telas menores */
@media (max-width: 992px) {
    /* Aproxima as setas em telas menores */
    .carousel-control-prev {
        left: -20px;
    }
    .carousel-control-next {
        right: -20px;
    }

    .logo-carousel-item { 
        flex: 0 0 33.333%; /* Mostra 3 itens */
    }
}

@media (max-width: 576px) {
    #logoCarousel .carousel-inner {
        left: 0; /* Reseta o posicionamento no mobile */
    }
    .logo-carousel-item { 
        flex: 0 0 100%; /* Mostra 1 item por vez */
        transform: scale(0.9);
        opacity: 1; /* Deixa o item único sempre visível */
    }
    .logo-carousel-item.active {
        transform: scale(1); /* Item ativo não precisa de destaque extra se for o único */
    }
    .logo-carousel-item img {
        filter: grayscale(0%); /* Remove o grayscale no mobile */
    }
}

/* CSS for section section:footer */
.footer-section {
    background-color: var(--color-primary); /* Retorna à cor original para contraste */
    color: var(--color-text-light);
    padding-top: 80px;
    padding-bottom: 40px;
    text-align: center; /* Centraliza todo o conteúdo do footer */
}

.footer-cta {
    text-align: center;
    margin-bottom: 40px;
}
.footer-cta h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text-light); /* Cor clara para contrastar com o fundo */
    line-height: 1.5;
    margin-bottom: 40px;
}
.btn-saiba-mais {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff; /* simple white base as requested */
    color: var(--color-primary); /* text/icon use the primary color */
    padding: 10px 18px;
    border-radius: 8px; /* slightly rounded */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.06); /* subtle neutral border by default */
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1), box-shadow 0.32s cubic-bezier(.2,.8,.2,1);
    position: relative; /* for stripe pseudo-element */
    overflow: hidden;
}
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 60px; /* Aumenta o espaço abaixo dos ícones */
}
.footer-social img {
    width: 60px; /* Tamanho dos ícones reduzido */
    height: 60px;
    transition: transform 0.3s ease;
}

/* New styles for improved footer button icon */
.btn-saiba-mais .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.btn-saiba-mais .btn-icon img {
    width: 20px;
    height: 20px;
    display: block;
    filter: none; /* fallback if a bitmap is used */
}

/* Inline SVG inside the button should inherit the button color (currentColor) */
.btn-saiba-mais .btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    color: inherit; /* ensures stroke="currentColor" uses the button color */
}

.btn-saiba-mais:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    opacity: 1;
}


/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-saiba-mais::before { transition: none; transform: none; opacity: 0.0; }
    .btn-saiba-mais { transition: none; }
}

/* Keep button content above the stripe */
.btn-saiba-mais .btn-text,
.btn-saiba-mais .btn-icon { position: relative; z-index: 1; }

/* Make the footer CTA button full-width on small screens */
@media (max-width: 768px) {
    .btn-saiba-mais {
        /* keep natural width on mobile but improve tap area */
        width: auto;
        justify-content: center;
        padding: 14px 22px;
        font-size: 16px;
    }
}
.footer-divider-top {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* Linha branca com transparência */
    margin: 0 auto 60px;
    max-width: 900px; /* Linha mais larga */
}
.footer-divider-bottom {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* Linha branca com transparência */
    margin: 60px 0;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Define 3 colunas de tamanho igual */
    gap: 40px;
    text-align: left; /* Alinha o texto das colunas à esquerda */
}
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Garante que o conteúdo da coluna comece pela esquerda */
}
.footer-column h4 {
    font-size: 22px;
    font-weight: 600; /* Título mais forte */
    color: var(--color-text-light); /* Cor clara para contrastar */
    margin-bottom: 15px;
    text-transform: uppercase; /* Deixa os títulos em maiúsculo */
    letter-spacing: 1px;
}
.footer-column a {
    color: var(--color-text-light); /* Cor clara para contrastar */
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.3s ease; /* Efeito de transição suave */
}
.footer-column a:hover {
    color: #fff; /* Destaque mais forte no hover */
}
.contact-info {
    font-style: normal; /* Remove o itálico padrão da tag <address> */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os itens de contato */
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-item img {
    width: 20px; /* Tamanho dos ícones de contato */
    height: 20px;
}
.contact-item a, .contact-item span {
    font-size: 16px;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; /* Necessário para a transformação funcionar corretamente */
}
.footer-legal {
    display: flex;
    justify-content: flex-start; /* Alinha itens à esquerda */
    align-items: center;
    gap: 80px;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text-light); /* Cor clara para contrastar */
}
.footer-legal-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-legal a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-social a:hover img {
    transform: scale(1.15); /* Efeito de aumentar no hover */
}
.contact-item a:hover {
    transform: scale(1.05);
    color: #fff;
}
.footer-legal a:hover {
    text-decoration: underline;
}
.footer-legal .copyright {
    margin-left: auto;
}
@media (max-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    .footer-legal .copyright {
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    .footer-section {
        padding-top: 60px;
    }
    .footer-cta h2 {
        font-size: 28px; /* Reduz o tamanho da fonte para caber em duas linhas */
        line-height: 1.4;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr); /* Duas colunas no mobile */
        text-align: left;
        gap: 40px;
    }
    .footer-legal {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* Alinha itens à esquerda no mobile */
        align-items: center; /* Centraliza os itens legais */
    }
    .footer-column {
        text-align: left; /* Garante alinhamento à esquerda */
    }
    .footer-legal .copyright {
        margin-left: 0;
    }
}

/* --- Deixa as áreas do SVG clicáveis com a mãozinha --- */
/* Use os IDs que você definiu no seu SVG */
#nr09-btn, #nr10-btn, #nr12-btn, #nr13-btn, #nr17-btn, #nr20-btn, #nr35-btn {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

#nr09-btn:hover, #nr10-btn:hover, #nr12-btn:hover, #nr13-btn:hover, #nr17-btn:hover, #nr20-btn:hover, #nr35-btn:hover {
    opacity: 0.8; /* Efeito visual ao passar o mouse */
}

@media (max-width: 600px) {
    .about-content {
        display: flex; /* use flex column to be able to reorder */
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        min-height: auto;
        padding: 0 16px;
    }

    /* Put the text (title + paragraphs) first, map after */
    .about-text-wrapper {
        order: 0;
        width: 100%;
        padding: 18px 16px;
        box-shadow: none; /* remove heavy desktop shadow */
        background: transparent; /* keep overall site background consistent */
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .about-title-container {
        order: 0;
        text-align: center;
        margin: 0 auto 6px;
        width: 100%;
    }

    .about-map-container {
        order: 1;
        width: 100%;
        height: auto;
        padding: 10px 0 0 0;
        clip-path: none;
        background: transparent;
        box-shadow: none;
        display: block;
        position: relative;
    }

    /* Make the map itself a normal image block below the text */
    .about-map {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px 18px;
    }

    .about-map img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        opacity: 0.95; /* make it more visible on mobile */
        transform: none;
        right: auto;
        top: auto;
    }

    /* Turn overlay content into a readable block above the map image */
    .map-overlay-content {
        position: relative;
        z-index: 3;
        color: var(--color-text-dark, #000);
        background: rgba(255,255,255,0.96);
        padding: 12px;
        border-radius: 10px;
        max-width: 100%;
        margin: 8px auto 12px;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    /* Hide the original overlay text on small screens to save space */
    .map-overlay-content { display: none !important; }

    .map-overlay-content h3 { font-size: 20px; margin-bottom:6px; }
    .map-overlay-content p  { font-size: 14px; margin:0; }

    /* Make the small map icons flow horizontally and not overlap text */
    .map-icons {
        position: relative;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .map-icons img {
        width: 28px;
        height: 28px;
        opacity: 1;
    }

    /* Paragraphs become stacked balloons */
    .about-paragraph {
        background: rgba(255,255,255,0.06);
        border-radius: 12px;
        padding: 12px 14px;
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        border: 1px solid rgba(255,255,255,0.06);
    }

    .about-paragraph p { margin: 0; color: var(--color-text-light); font-size: 15px; }

    .paragraph-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    /* Make the action button centered and easier to tap */
    .btn-about-action {
        align-self: center;
        margin-top: 6px;
        padding: 12px 20px;
    }

    /* Small tweaks for typography on phones */
    .about-title-container h2 { font-size: 22px; line-height: 1.3; }
    .map-overlay-content h3 { font-size: 18px; }

    /* Ensure nothing floats over the map */
    .about-map img, .about-map-container, .map-overlay-content { pointer-events: auto; }

    /* Hide the map completely on very small screens to save space */
    .about-map-container, .about-map { display: none !important; }

    /* Restore hamburger menu visibility on mobile and hide full nav to avoid overlap */
    .hamburger-menu {
        display: block !important;
        position: relative;
        z-index: 1005;
    }

    /* Hide the desktop nav on small screens to make room for the hamburger */
    .main-nav {
        display: none !important;
    }

    /* Prevent horizontal overflow caused by wide elements */
    html, body, .page-wrapper {
        overflow-x: hidden !important;
    }

    /* Mobile menu behavior: header-right is hidden by default and shown when .active is toggled by JS */
    .header-right {
        display: none !important;
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;
        background: rgba(0,0,0,0.85);
        padding: 12px;
        border-radius: 10px;
        position: absolute;
        top: 68px; /* below header */
        right: 12px;
        z-index: 1006;
        min-width: 180px;
    }

    .header-right.active {
        display: flex !important;
    }

    /* When menu is open show nav links stacked */
    .header-right .main-nav {
        display: block !important;
        width: 100%;
    }
    .header-right .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 6px 0;
    }
    .header-right .main-nav a {
        display: block;
        padding: 8px 10px;
        font-size: 14px;
    }

    /* Keep the client-area icon visible inside the dropdown but ensure it doesn't overflow */
    .header-right .btn-client-area {
        margin-left: 0;
        align-self: flex-end;
        border-radius: 8px;
        padding: 8px;
    }

    /* Hamburger visual tweaks */
    .hamburger-menu { right: 12px; }
    .hamburger-menu.active span { opacity: 0; }
    .hamburger-menu.active::before { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger-menu.active::after { transform: rotate(-45deg) translate(6px, -6px); }

    /* Make hero content stack cleanly and let subtitle wrap */
    .hero-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero-text { flex-basis: auto; max-width: 100%; }
    .hero-subtitle { font-size: 20px; white-space: normal; word-break: break-word; }
    .hero-image { display: none; }

    /* Make smaller titles for sub-sections like 'Palestras / Cursos' so they fit */
    .about-text-wrapper h3,
    .about-text-wrapper h4,
    .about-text-wrapper .section-subtitle,
    .about-text-wrapper .small-heading {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    /* Slightly reduce paragraph font-size and spacing to fit more content */
    .about-paragraph p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
}