* {
    font-family: 'Roboto', sans-serif;
}

html {
    font-size: 18px;
}

h2, h6{
    font-family: 'Exo', sans-serif;
}

footer{
    font-size: 14px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.font{
    font-family: 'Exo', sans-serif;
}

.navbar {
    background: #005CA9 !important;
    margin: 0 auto !important;
    max-width: 1150px !important;
    min-width: 0 !important;
    font-size: 16px;
    position: relative;
    z-index: 1050;
}

.margin{
    margin-right: 4rem;
}

.topbar {
    background: #ffc107;
    color: white;
    padding: 0.1rem 1rem;
    font-size: 16px;
}

.header-home {
    min-height: 800px;
    position: relative;
    color: white;
}

.quem-somos{
    display: flex;
    align-items: center;
}

.noticias, .sobre{
    background-color: #005CA9;
}

.noticia-section img {
    object-fit: fill;
    margin: 10px 0;
    border-radius: 8px;
}

.text-multiline-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-container {
    position: absolute;
    z-index: 2;
    margin: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    min-height: 800px;

}

.logo-box {
    display: flex;
    align-items: center;
    border-radius: 0 0 50px 0;
    padding: 25px 30px;
    background-color: #fff;
}

.btn-eletro {
    align-self: flex-start;
    background-color: #005CA9;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    font-weight: 500;
    transition: background 0.3s;
}
.btn-eletro:hover {
    background-color: #003f8a;
    color: #ffffff;
}

.nav-item .btn{
    font-size: 16px;
}

.btn-header:hover {
    background-color: #003f8a;
}

.navbar .nav-link:hover {
    text-decoration: underline;
}

.text-container {
    text-align: start !important;
    margin: 0 10% !important;
}

/* Hamburguer padrão Bootstrap */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.label {
    font-family: 'Exo', sans-serif;
    margin-bottom: 1rem;
}

.traco {
    width: 40px;
    height: 2px;
    margin: 0 0.5rem;
}

.border-end {
    border-right: 1px solid rgba(255,255,255,0.3) !important;
}

.text-primary.d-block::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #0d6efd;
    margin: 0 auto 8px;
}

.circle-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.circle-icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sobre .row > div:last-child {
    border-right: none !important;
}

.sobre .row > div {
    display: flex;
}

.sobre .d-flex {
    flex-direction: row;
    align-items: flex-start;
}

#sobre{
    margin: 0 auto;
}

.card-home img {
    height: 410px;
    width: 100%;
    object-fit: cover;
}

.catalogo, .clientes{
    background-color: #FBBB21;
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.iframe-video{
    border-radius: 15px;
}

.mobile-footer{
    display: none !important;
}

.redes-socias-mobile{
    display: none !important;
}

/* ===== MENU MOBILE ===== */
@media (max-width: 990px) {

    /* Container interno */
    .container-nav {
        display: flex;
        flex-wrap: wrap-reverse !important;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    /* Logo */
    .navbar-brand img {
        height: 45px;
        margin-left: 10px;
    }

    /* Ícone hamburguer estilizado */
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        background-color: transparent;
        position: relative;
        z-index: 2;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 40px;
        height: 40px;
        background-color: #69A3DA; /* azul claro */
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .navbar-redes-icon{
        width: 40px;
        height: 40px;
        background-color: #69A3DA;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Linhas do hambúrguer */
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        content: "";
        position: absolute;
        width: 18px;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        left: 50%;
        transform: translateX(-50%);
        transition: 0.3s ease;
    }

    .navbar-toggler-icon::before {
        top: 13px;
    }

    .navbar-toggler-icon::after {
        bottom: 13px;
    }

    .navbar-toggler-icon span {
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.banner-home{
    min-height:800px !important;
    position:relative;
}

/* Ajustes mobile */
@media (max-width: 990px) {
    .header-container {
        margin: 0 auto;
        text-align: center;
    }

    .header-home {
        height: auto;
        background-position: 20% 10%;
        background-repeat: no-repeat;
        min-height: 365px;
    }

    .banner-home {
        min-height: 365px !important;
    }

    .text-container {
        text-align: center !important;
        margin: 0 !important;
    }

    /* Menu dropdown */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
        background: #005CA9;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar {
        max-width: 100%;
        min-width: 0 !important;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .topbar {
        gap: 0.25rem;
        text-align: center;
    }

    .logo-box {
        padding: 10px 30px;
    }

    .container-nav {
        position: relative;
    }

    .video-container {
        padding: 0;
    }

    .iframe-video {
        height: 100%;
        border-radius: 0 !important;
    }

    .border-end {
        border: none;
    }

    #logo-parceiros {
        display: none;
    }

    .margin {
        margin-right: 0;
    }

    .img-noticia {
        max-height: 200px;
    }

    .card-noticia {
        padding: 0 !important;
    }

    .noticia-section img{
        height: 280px !important;
    }

    .card-home img {
        height: 200px;
    }

    .text-slider .slick-prev,
    .text-slider .slick-next {
        display: none !important;
    }

    .circle-icon {
        width: 40px;
        height: 40px;
    }

    .sobre-font {
        font-size: 15px !important;
    }

    .sobre-titulo {
        font-size: 20px !important;
    }

    .sobre .row > div:nth-child(2n) {
        border-right: none !important;
    }

    .solucoes-font {
        font-size: 14px !important;
    }

    .desktop-footer {
        display: none !important;
    }

    .mobile-footer {
        display: flex !important;
        flex-wrap: nowrap;
        margin: 0;
        padding: 15px 0;
    }

    /* remove comportamento de colunas empilhadas */
    .mobile-footer .col-3,
    .mobile-footer .col-md-2 {
        flex: 1;
        max-width: 25%; /* 4 itens = 25% cada */
        padding: 0;
        margin: 0;
    }

    .mobile-footer span {
        margin-top: 5px;
        color: #fff;
    }

    .redes-sociais-topo {
        display: none !important;
    }

    .redes-socias-mobile {
        display: flex !important;
    }

    .filiais-mobile {
        border-radius: 0 !important;
    }

    .text-slider {
        color: #fff;

        & .slick-slide {
            padding-top: 125px !important;
        }
    }
}

/* ESTILOS COM FUNDO SUAVEMENTE VISÍVEL */
.text-slider .slick-prev,
.text-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-slider .slick-prev:hover,
.text-slider .slick-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.text-slider .slick-prev {
    left: 25px;
}

.text-slider .slick-next {
    right: 25px;
}

.text-slider .slick-prev::before {
    font-size: 22px;
    color: #ffffff;
    font-weight: bold;
}

.text-slider .slick-next::before {
    font-size: 22px;
    color: #ffffff;
    font-weight: bold;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .text-slider .slick-prev,
    .text-slider .slick-next {
        width: 40px;
        height: 40px;
    }

    .text-slider .slick-prev {
        left: 15px;
    }

    .text-slider .slick-next {
        right: 15px;
    }

    .text-slider .slick-prev::before,
    .text-slider .slick-next::before {
        font-size: 22px;
    }
}

.text-slider {
    position: relative;
}

.text-slider {
    color: #fff;
    & .slick-slide{
        padding-top: 380px;
        background-position: center 0;
        background-size: cover ;
        background-repeat: no-repeat;
    }
}

.parceiros-slider .parceiro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}
.parceiros-slider img {
    max-width: 90%;
    height: auto;
    display: inline-block;
}

.slick-track{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* telas maiores que 1400px */
@media (min-width: 1400px) {
    html {
        font-size: 20px;
    }
    .navbar{
        max-width: 100px;
    }
    .margin{
        margin-right: 2rem;
    }
}

/*TELA QUEM SOMOS*/
.container-img{
    height: 400px;
    background-color: darkgray;
    border-radius: 0.8rem;
}
.container-imagem{
    height: 200px;
    background-color: darkgray;
    border-radius: 0.8rem;
}
/*TELA FILIAIS*/
.bg-section-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centraliza no meio da seção */
    max-width: 90%;  /* evita que ultrapasse */
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.section-matriz,
.section-filial {
    position: relative;
    z-index: 1;
}

.section-matriz .container,
.section-filial .container {
    position: relative;
    z-index: 2;
}


/*TELA NOSSOS PRODUTOS*/
.header-produtos {
    position: relative;
}

.header-background {
    position: absolute;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay correto */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2; /* Entre o background (1) e o conteúdo (3) */
}

.produtos-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}
.produtos .card img {
    height: 255px;
    object-fit: cover;
}

@media (max-width: 1024px) { /* tablets */
    footer .row > div {
        flex: 0 0 50%; /* duas colunas por linha */
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) { /* celulares */
    footer .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/*TELA RECURSOS*/
.header-recursos {
    position: relative;
    color: white;
}

.btn-recursos{
    align-self: flex-start;
    background-color: #FBBB21;
    color: #005CA9;
    border: none;
    border-radius: 3px;
    transition: background 0.3s;
}
.btn-recursos:hover {
    background-color:#ffca2c;
    color: #005CA9;
}

/* Somente os cards do meio de cada linha (3 colunas por linha) */
.recursos-section .col-md-4:nth-child(3n+2) .card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
            98deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(238, 240, 244, 0.1) 25%,
            rgba(0, 0, 0, 0.23) 100%);
}

/* Triângulo no canto superior direito */
.recursos-section .col-md-4:nth-child(3n+2) .card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: #FBBB21;
    clip-path: polygon(100% 0, 0 0, 0% 75%);
}

.bg-text-img {
    position: absolute;
    top: 70px;
    left: 0;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}


/*TELA NOTÍCIA*/
.img-crop {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}
.btn-pesquisa{
    position: relative !important;
    z-index: 0 !important;
}

/*TELA FALE CONOSCO*/
.header-contato{
    display: grid;
    place-items: center;
    background: url('../images/contato-topo.png') center/cover no-repeat;
    position: relative;
    color: white;
}

.form-flat {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* espaçamento entre campos */
}

.form-flat .form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 8px 2px;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.form-flat .form-input::placeholder {
    color: #666;
    font-size: 0.9rem;
}

.form-flat .form-input:focus {
    border-bottom: 2px solid #0056b3; /* azul destaque no foco */
}

.form-flat textarea.form-input {
    border: 1px solid #ddd;   /* caixa cinza para mensagem */
    border-radius: 6px;
    padding: 10px;
    resize: vertical;
}

.btn-enviar {
    align-self: flex-start;
    background-color: #005CA9;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background-color: #003d80;
}

/*TELA QUERO SER CLIENTE*/

.header-cliente{
    display: grid;
    place-items: center;
    background: url('../images/quero-ser-cliente.png') center/cover no-repeat;
    position: relative;
    color: white;
}

@media (min-width: 768px) and (max-width: 960px) {
    .sobre .d-flex {
        flex-direction: column !important;
        text-align: center;
        margin: 0 !important;
        gap: 8px !important;
    }
}

/* CSS para o modo de edição - MANTENHA ESTE */
.tip .tiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 0.875rem;
    filter: opacity(0.8);
    left: 0;
    top: 0;
    position: absolute;
    z-index: 999;
    text-transform: uppercase;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

.tip {
    position: relative;
}

.tip:hover > .tiptext {
    visibility: visible;
}

.edit-mode .tip {
    outline: 2px dashed darkred;
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

.edit-mode .tip:hover {
    cursor: pointer;
}

#adminBar {
    color: white;
    padding: 8px 20px;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 98;
}
.admin-bar-content {
    display: flex;
    justify-content: start;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
    gap: 1rem;
}
.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.admin-edit-btn {
    background: white;
    border: 1px solid #B08129;
    color: #B08129;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-edit-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-close-btn {
    background: white;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-close-btn:hover {
    background: #fff5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-refresh-btn {
    background: white;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-refresh-btn:hover {
    background: #f0f8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

