.carrossel-texto,
.carrossel-principal,
.carrossel-item img {
    max-width: 100vw;
}

/* Carrossel Principal */
.carrossel-principal {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 70vw;
    max-height: 500px;
    overflow: hidden;
    margin: 0 auto 40px auto;
}
.carrossel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.1,.1,.2,.1);
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.carrossel-item.ativo {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.carrossel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carrossel-texto {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    color: #fff;
    background-color: #2675bb83;
    padding: 14px 6vw;
    border-radius: 8px;
    max-width: 96vw;
    min-width: 80vw;
    z-index: 3;
    box-sizing: border-box;
    text-align: center;
    font-size: 1em;
}
.carrossel-principal .carrossel-nav {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.carrossel-principal .carrossel-nav span {
    width: 35%;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
    background: transparent;
}
.btn {
    background: var(--laranja);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    display: inline-block;
    margin-top: 12px;
    pointer-events: auto;
}
.btn:hover, .btn:focus {
    background: #c94d23;
    color: #fff;
    box-shadow: 0 4px 16px rgba(241,97,56,0.18);
    text-decoration: none;
}
@media (max-width: 900px) {
    .carrossel-principal {
        height: 75vh;
    }
    .carrossel-texto {
        font-size: 0.98em;
        padding: 12px 4vw;
        max-width: 99vw;
    }
}
@media (max-width: 600px) {
    .carrossel-texto {
        font-size: 0.93em;
        padding: 8px 2vw;
        max-width: 99vw;
    }
}

section {
    padding-left: 4%;
    padding-bottom: 4%;
    margin-left: 12%;
    margin-right: 12%;
    box-sizing: border-box;
    border-radius: 20px;
}

@media (max-width: 600px) {
    section {
    margin-left: 2%;
    margin-right: 2%;
    }
}

.conteudo-principal {
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .conteudo-principal p,
    .conteudo-principal h2,
    .conteudo-principal h1 {

        padding: 0 10vw;
    }
    
}

.conteudo-principal section h1,
.conteudo-principal section h2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 3;
    color: var(--azul);
}
.conteudo-principal section h1::after,
.conteudo-principal section h2::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--laranja);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(.4,0,.2,1), left 0.35s cubic-bezier(.4,0,.2,1);
}
.conteudo-principal section h1:hover::after,
.conteudo-principal section h2:hover::after {
    width: 120%;
    left: -10%;
}
main {
    position: relative;
    /* Garante referência para posicionamento absoluto do fragmento */
}

.fragmento1 {
    position: fixed;
    left: 0;
    top: 0; /* será ajustado via JS */
    width: 12.9%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    background: none;
    filter: drop-shadow(0 6px 24px rgba(38,118,187,0.13));
}
@media (max-width: 600px) {
    .fragmento1 {
        width: 20.1%;
    }
}

.servicos-index > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 24px 0;
}
.servicos-index a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(38,118,187,0.08);
    padding: 18px 22px 12px 22px;
    min-width: 160px;
    max-width: 220px;
    font-weight: 600;
    color: #2676bb;
    text-decoration: none;
    font-size: 1.08em;
    transition: box-shadow 0.3s, transform 0.2s, background 0.3s, color 0.3s;
    gap: 12px;
}
.servicos-index a img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(38,118,187,0.10));
    transition: filter 0.3s, transform 0.2s;
}
.servicos-index a:hover, .servicos-index a:focus {
    background: #f16138;
    color: #fff;
    box-shadow: 0 6px 24px rgba(241,97,56,0.13);
    transform: translateY(-4px) scale(1.04);
}
.servicos-index a:hover img, .servicos-index a:focus img {
    filter: drop-shadow(0 4px 16px rgba(241,97,56,0.18));
    transform: scale(1.08);
}

.clientes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 40px;
    margin: 32px 0 0 0;
}
.clientes > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f8fc;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(38,118,187,0.06);
    padding: 18px 18px 10px 18px;
    min-width: 120px;
    max-width: 180px;
    font-weight: 500;
    color: #2676bb;
    font-size: 1em;
    transition: box-shadow 0.3s, transform 0.2s, background 0.3s, color 0.3s;
    gap: 10px;
}
.clientes > div img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 8px rgba(38,118,187,0.10));
    transition: filter 0.3s, transform 0.2s;
}
.clientes > div:hover, .clientes > div:focus {
    background: #2676bb;
    color: #fff;
    box-shadow: 0 6px 24px rgba(38,118,187,0.13);
    transform: translateY(-3px) scale(1.04);
}
.clientes > div:hover img, .clientes > div:focus img {
    filter: drop-shadow(0 4px 16px rgba(38,118,187,0.18));
    transform: scale(1.10);
}

@media (max-width: 900px) {
    .servicos-index > div, .clientes {
        gap: 18px 18px;
    }
    .servicos-index a, .clientes > div {
        min-width: 120px;
        max-width: 180px;
        font-size: 0.98em;
        padding: 12px 8px 8px 8px;
    }
    .servicos-index a img, .clientes > div img {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 600px) {
    .servicos-index > div, .clientes {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .servicos-index a, .clientes > div {
        width: 60vw;
        min-width: unset;
        max-width: unset;
        font-size: 1em;
        padding: 10px 4vw 8px 4vw;
    }
}

.banner-index {
    background: linear-gradient(#ffffffa8 80%, #ffffffc9 100%), url(/elementos/Imgs/Elementos/fundo_predios.jpg);
    color: var(--laranja);
    border-radius: 0px;
    box-shadow: 0 2px 16px rgba(38,118,187,0.10);
    padding: 36px 32px 28px 32px;
    width: 100%;
    margin: 40px auto 32px auto;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-weight: 600;
}

.banner-index h2 {
    font-size: 2.1em;
    margin-bottom: 16px;
    letter-spacing: 1px;
}