/* Ajustes do CMS preservando o visual original do site. */

.cms-content p {
    text-align: justify;
}

.footer-social-links {
    display: flex;
    gap: 18px;
}

.footer-social-links a {
    color: #fff;
    font-size: 22px;
}

.footer-contact,
.footer-contact a {
    color: #fff;
}

.contact-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 8px;
}

.contact-alert.success {
    color: #176b34;
    background: #e8f6ec;
}

.contact-alert.error {
    color: #922;
    background: #fdeaea;
}

.cms-honeypot {
    position: absolute;
    left: -10000px;
}

.breadcumb-wrapper {
    background-position: center;
    background-size: cover;
}

.header-logo img,
.mobile-logo img {
    width: auto;
    max-height: 76px;
}

.about-logo img {
    width: auto;
    max-height: 115px;
}

/* Telefone do topo no mesmo padrão visual do site original. */
.header-default .menu-top .info-card-wrap {
    align-items: center;
}

.header-default .menu-top .info-card-wrap .info-card:last-child {
    min-height: 66px;
    padding-left: 40px;
    border-left: 2px solid var(--th-border-color);
}

.header-default .menu-top .info-card .box-text {
    margin-bottom: 8px;
    color: var(--body-color);
    font-size: 16px;
    line-height: 1.2;
}

.header-default .menu-top .info-card .box-title {
    margin: 0;
    color: var(--title-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.header-default .menu-top .info-card .box-title a {
    color: inherit;
}

/* Subtítulo do banner principal centralizado e verde. */
.hero-style1 .sub-title {
    width: 100%;
    justify-content: center;
    color: var(--theme-color2);
    text-align: center;
}

.hero-style1 .sub-title::before,
.hero-style1 .sub-title::after {
    background: var(--theme-color2);
}

/* Moldura azul e detalhe verde da seção Quem Somos. */
.img-box1 .img1 {
    position: relative;
    z-index: 2;
}

.img-box1::after {
    z-index: 0;
}

.img-box1::before {
    z-index: 3;
}

.img-box1 .about-shape1-1 {
    z-index: 1;
}

/* Notícias da página principal: carrossel com cinco notícias cadastradas. */
.home-news-slider .swiper-wrapper {
    flex-wrap: nowrap;
}

.home-news-slider .swiper-slide {
    height: auto;
}

.home-news-slider .blog-card {
    height: 100%;
}

.home-news-more {
    margin-top: 38px;
    text-align: center;
}

/* Mantém os recortes decorativos mesmo quando o JS do tema demora a carregar. */
.blog-card .blog-img-shape1 {
    -webkit-mask-image: url('../img/blog/blog-card-bg-shape1-2.png');
    mask-image: url('../img/blog/blog-card-bg-shape1-2.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.blog-card .blog-card-shape {
    -webkit-mask-image: url('../img/blog/blog-card-bg-shape1-1.png');
    mask-image: url('../img/blog/blog-card-bg-shape1-1.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Página de notícias: três cards por linha, sem carrossel. */
.news-grid > [class*='col-'] {
    display: flex;
}

.news-grid .blog-card {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.news-grid .blog-img img,
.home-news-slider .blog-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
}

.news-grid .blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.news-grid .blog-card .box-title {
    margin-top: 9px;
    margin-bottom: 0;
    color: var(--title-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.42;
}

.news-grid .blog-card .box-title a {
    color: inherit;
}

.news-grid .blog-card .box-title a:hover {
    color: var(--theme-color);
}

.news-grid .blog-content .th-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 16px 30px;
}

.news-grid .blog-card:hover .blog-img img,
.home-news-slider .blog-card:hover .blog-img img {
    filter: none;
    transform: scale(1.05);
}

/* Equipamentos. */
.equipment-item {
    margin-bottom: 55px;
}

.equipment-item > img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

/* Formulário de contato sempre com os campos visíveis. */
.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    color: var(--body-color);
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(1, 30, 98, 0.08);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    padding: 10px 25px;
    color: #fff;
    font-weight: 700;
    background: #011e62;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0b2e8a;
}

.contact-form .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1500px) {
    .header-default .menu-top .info-card .box-title {
        font-size: 20px;
    }
}

@media (max-width: 1299px) {
    .news-grid .blog-card .box-title {
        font-size: 22px;
    }
}

@media (max-width: 1199px) {
    .header-default .menu-top .info-card-wrap .info-card:last-child {
        padding-left: 0;
        border-left: 0;
    }

    .header-default .menu-top .info-card .box-title {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .news-grid .blog-card .box-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .news-grid .blog-img img,
    .home-news-slider .blog-img img {
        height: 220px;
    }

    .news-grid .blog-card .box-title {
        font-size: 22px;
    }

    .header-logo img,
    .mobile-logo img {
        max-height: 58px;
    }
}

@media (max-width: 575px) {
    .news-grid .blog-card .box-title {
        font-size: 20px;
    }
}

/* Remove o recorte/mancha branca sobre as imagens das notícias. */
.blog-card .blog-img .blog-img-shape1 {
    display: none;
}

/* Banner Fale Conosco com a mesma luminosidade dos demais banners. */
.contact-banner::before {
    background-color: var(--theme-color2);
    mix-blend-mode: multiply;
}

.contact-details-column {
    height: 100%;
    padding-right: 10px;
}

.contact-right-column {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.contact-form-block {
    padding-bottom: 34px;
    border-bottom: 1px solid #e3e3e3;
}

.contact-form-block h6 {
    margin-bottom: 18px;
    font-size: 24px;
}

.contact-map-color iframe {
    height: 420px;
    filter: none;
    -webkit-filter: none;
}

/* Logo do rodapé maior, mantendo a proporção original. */
.th-widget-about {
    max-width: 380px;
}

.th-widget-about .about-logo img {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 92px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .contact-details-column {
        padding-right: 0;
    }

    .contact-map-color iframe {
        height: 380px;
    }
}

@media (max-width: 575px) {
    .th-widget-about .about-logo img {
        max-width: 220px;
        max-height: 82px;
    }

    .contact-map-color iframe {
        height: 330px;
    }
}


/* Preloader centralizado com a mesma logo configurada no topo. */
.preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
}

.preloader .preloader-inner {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: min(420px, 100%);
    text-align: center;
}

.preloader-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(330px, 82vw);
    max-height: 125px;
    margin: 0 auto 22px;
    object-fit: contain;
}

.preloader-message {
    margin: 0 0 18px;
    color: #082b73;
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.preloader-spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 4px solid rgba(8, 43, 115, 0.18);
    border-top-color: #a9c879;
    border-radius: 50%;
    animation: myra-preloader-spin 0.8s linear infinite;
}

@keyframes myra-preloader-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
    .preloader-logo {
        max-width: min(270px, 78vw);
        max-height: 100px;
    }

    .preloader-message {
        font-size: 16px;
    }
}

/* Menu mobile: mantém a logo à esquerda e o botão sanduíche alinhado à direita. */
@media (max-width: 991px) {
    .header-default .menu-area .menu-area-wrap {
        align-items: center;
        width: 100%;
    }

    .header-default .menu-area .menu-area-wrap > .th-menu-toggle {
        flex: 0 0 56px;
        margin-left: auto;
    }
}

/* Confirmação centralizada do formulário de contato. */
.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    background: rgba(0, 18, 50, 0.62);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-success-modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.contact-success-modal__card {
    position: relative;
    width: min(430px, 100%);
    padding: 42px 34px 36px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 18, 50, 0.28);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.25s ease;
}

.contact-success-modal.is-visible .contact-success-modal__card {
    transform: translateY(0) scale(1);
}

.contact-success-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    color: #fff;
    font-size: 31px;
    background: #a8c879;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(168, 200, 121, 0.38);
}

.contact-success-modal__card h3 {
    margin: 0 0 10px;
    color: #011e62;
    font-size: 28px;
}

.contact-success-modal__card p {
    margin: 0;
    color: #667085;
    font-size: 17px;
}

.contact-success-modal__close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #667085;
    font-size: 29px;
    font-weight: 400;
    line-height: 36px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.contact-success-modal__close:hover {
    color: #011e62;
    background: #f1f4f8;
}

@media (max-width: 575px) {
    .contact-success-modal__card {
        padding: 38px 24px 30px;
        border-radius: 16px;
    }

    .contact-success-modal__card h3 {
        font-size: 24px;
    }
}
