/* SiteUp Studio - ajustes leves para projeto estático independente. */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Película escura sobre os slides da home para legibilidade do texto */
.section-slider .flexslider .slides > li {
    position: relative;
}
.section-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}
.section-slider .overlay-content {
    z-index: 2;
}

/* Overlay escuro para seções com imagem de fundo */
.section-bg-image { position: relative; }
.section-bg-image .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.69);
}
.section-bg-image .container.content {
    position: relative;
    z-index: 2;
}

/* Padronizar altura dos cards dentro dos carrosséis */
.flexslider.carousel .slides {
    display: flex !important;
    align-items: stretch !important;
}
.flexslider.carousel .slides > li {
    display: flex !important;
    height: auto !important;
}
.flexslider.carousel .slides > li > div,
.flexslider.carousel .slides > li .advs-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}
.flexslider.carousel .slides > li .advs-box-content {
    flex: 1 1 auto;
}

/* Cards de Nossos trabalhos: mesmo tamanho e imagens ajustadas */
.advs-box-multiple.boxed-inverse .img-box,
.advs-box-multiple.boxed .img-box {
    height: 220px !important;
    max-height: 220px !important;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}
.advs-box-multiple.boxed-inverse .img-box img,
.advs-box-multiple.boxed .img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}
.advs-box-multiple .advs-box-content {
    min-height: 180px;
}

/* ===== Galeria de fotos: molduras padronizadas ===== */
.grid-list.gallery .grid-item {
    margin-bottom: 30px;
}
.grid-list.gallery .img-box.inner {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    background-color: #f5f5f5;
}
.grid-list.gallery .img-box.inner > span:first-child {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.grid-list.gallery .img-box.inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transition: transform 0.4s ease;
}
.grid-list.gallery .img-box.inner:hover img {
    transform: scale(1.06);
}
.grid-list.gallery .img-box.inner .caption-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
.grid-list.gallery .img-box.inner .caption {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
    line-height: 1.4;
}
@media (max-width: 768px) {
    .grid-list.gallery .img-box.inner {
        aspect-ratio: 4 / 3;
    }
}

/* Alinhamento da seção Fale conosco: card e carrossel com mesma altura */
.section-empty:has(.boxed.white.row-17) > .container > .row {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}
.section-empty:has(.boxed.white.row-17) > .container > .row > [class*="col-md-"] {
    display: flex;
    flex-direction: column;
}
.section-empty:has(.boxed.white.row-17) > .container > .row > .boxed.white.row-17 {
    height: auto !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section-empty:has(.boxed.white.row-17) > .container > .row > .col-md-8 .flexslider.carousel.outer-navs {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .section-empty:has(.boxed.white.row-17) > .container > .row {
        flex-wrap: wrap;
    }
    .section-empty:has(.boxed.white.row-17) > .container > .row > .boxed.white.row-17,
    .section-empty:has(.boxed.white.row-17) > .container > .row > .col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .section-empty:has(.boxed.white.row-17) > .container > .row > .boxed.white.row-17 {
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 25px;
    }
    .section-empty:has(.boxed.white.row-17) > .container > .row > .col-md-8 .flexslider.carousel.outer-navs {
        min-height: auto !important;
    }
}

/* Ajustes mobile para a segunda seção (serviços) */
@media (max-width: 768px) {
    .section-empty.section-over .row > .col-md-4.col-slm-6.col-sm-12.boxed.white,
    .section-empty.section-over .row > .col-md-8.col-slm-6.col-sm-12,
    .section-empty.section-over .row > .col-md-8,
    .section-empty.section-over .row > .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
    .section-empty.section-over .row > .col-md-4.col-slm-6.col-sm-12.boxed.white {
        margin: 20px 0 !important;
    }
    .section-empty.section-over .flexslider.carousel .slides > li .advs-box-top-icon-img .img-box {
        height: 200px !important;
        max-height: 200px !important;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .section-empty.section-over .flexslider.carousel .slides > li .advs-box-top-icon-img .img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Cards da seção Fale conosco (carrossel) */
.section-empty .flexslider.carousel.outer-navs {
    padding-top: 25px;
}
.section-empty .flexslider.carousel.outer-navs .flex-viewport {
    padding-top: 70px;
    box-sizing: content-box;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 {
    height: auto !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 0 20px 28px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f0f0f0;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 .icon {
    position: static;
    margin: -45px auto 0;
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 28px;
    border-radius: 50%;
    background: #E53935;
    color: #fff;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 18px 0 8px;
    text-align: center;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 .extra-content {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.4;
    text-align: center;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 p {
    flex: 1 1 auto;
    height: auto !important;
    overflow: visible;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-size: 14px;
    color: #555;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 .btn {
    background: transparent;
    border: 2px solid #E53935;
    color: #333;
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    align-self: center;
    margin-top: auto;
}
.flexslider.carousel .slides > li .advs-box-top-icon.row-17 .btn:hover {
    background: #E53935;
    color: #fff;
}
@media (max-width: 992px) {
    .section-empty .flexslider.carousel.outer-navs {
        padding-top: 0;
    }
    .section-empty .flexslider.carousel.outer-navs .flex-viewport {
        padding-top: 80px;
    }
    .flexslider.carousel .slides > li .advs-box-top-icon.row-17 {
        min-height: 340px;
        padding: 0 20px 28px !important;
    }
}

/* Ajusta logomarca no header e footer mantendo proporção */
.navbar-brand .logo-default,
.navbar-brand .logo-retina {
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}
.footer-base img.logo {
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Ajuste do footer: reduzir espaçamento excessivo */
.footer-base > .container.content {
    padding-top: 35px !important;
    padding-bottom: 20px !important;
}
.footer-base .copy-row {
    margin-top: 15px;
}

/* Botões vermelhos com texto preto */
.btn-yellow, .btn.btn-yellow {
    color: #000 !important;
}
.btn-yellow:hover, .btn.btn-yellow:hover {
    color: #000 !important;
}

/* ===== Película escura sobre o background do header-title (descarte-de-entulho) ===== */
.header-title.with-dark-overlay {
    position: relative;
}
.header-title.with-dark-overlay:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
    pointer-events: none;
}
.header-title.with-dark-overlay > .container {
    position: relative;
    z-index: 2;
}

/* ===== Botões da chamada principal (hero) - texto completo visível ===== */
.overlay-content .hero-btn {
 display: inline-block !important;
 width: auto !important;
 min-width: 100% !important;
 white-space: nowrap !important;
 overflow: visible !important;
 text-align: center;
 box-sizing: border-box;
}
.overlay-content .row > [class*= col-md-6\]:has(.hero-btn) {
 display: flex;
 align-items: center;
 justify-content: center;
}
@media (max-width: 768px) {
 .overlay-content .hero-btn {
 min-width: 100% !important;
 margin-bottom: 10px;
 }
}

/* ===== Fix hero-btn: largura igual, texto visivel ===== */
.overlay-content .hero-btn {
 display: block !important;
 width: 100% !important;
 min-width: 0 !important;
 white-space: nowrap !important;
 overflow: visible !important;
 text-align: center !important;
 box-sizing: border-box !important;
}
.overlay-content .row > div:has(> .hero-btn) {
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
}
@media (max-width: 768px) {
 .overlay-content .row > div:has(> .hero-btn) {
 width: 100% !important;
 margin-bottom: 10px !important;
 }
}
