/*
Theme Name: hello-elementor child
Template: hello-elementor
*/

body {
    font-family: "polymath", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "polymath", serif;
}
button.botao-comercial {
    padding: 12px 24px;
    background: linear-gradient(180deg, #DE0917, #F52230);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: polymath, sans-serif;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    button.botao-comercial {
        font-size: 17px;
        padding: 10px 18px;
    }
}

/* ===== BLOG – CARD MODERNO ===== */
/* ===============================
   BLOG CARDS – LEFT SIDEBAR
=============================== */

.blog-section {
  width: 25vw;                 /* 1/4 da tela */
  max-width: 420px;            /* limite elegante */
  min-width: 320px;            /* não quebra */
  margin: 0 auto;                   /* remove centralização */
  padding: 40px 0;
  font-family: polymath, sans-serif;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* CARD */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);

  transform: translateY(40px);
  opacity: 1;
  transition: transform .6s ease, opacity .6s ease;
}

/* fallback: se JS não rodar, mostra o card */
.blog-card:not(.is-visible):not(.is-animated) {
  opacity: 1;
  transform: none;
}

/* só esconde quando JS assumir controle */
.blog-card.is-animated {
  opacity: 0;
  transform: translateY(40px);
}


/* ANIMAÇÃO */
.blog-card.is-visible {
  transform: translateY(0);
}

/* IMAGEM */
.blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* CONTEÚDO */
.blog-content {
  padding: 20px;
}

/* DATA */
.blog-date {
  font-size: 13px;
  opacity: .6;
  margin-bottom: 6px;
}

/* TÍTULO */
.blog-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.blog-title a {
  text-decoration: none;
  color: #111;
}

/* EXCERPT */
.blog-excerpt {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 16px;
}

/* LINK */
.blog-link {
  font-weight: 600;
  color: #02286b;
  text-decoration: none;
}

/* HOME – força 1 linha horizontal */
body.home .blog-grid,
body.front-page .blog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 32%;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
}

body.home .blog-section,
body.front-page .blog-section {
  width: 100%;
  max-width: none;
  padding-left: 0;
}


/* opcional: barra de scroll mais discreta */
body.home .blog-grid::-webkit-scrollbar {
  height: 6px;
}
body.home .blog-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.2);
  border-radius: 10px;
}

/* BLOG PAGE – 3 cards por linha */
.blog-custom .blog-section {
  width: 100%;
  max-width: 1200px;
}

.blog-custom .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-section.small-cards {
  width: 200px;
  min-width: 0;
  max-width: none;
}



/* ===============================
   RESPONSIVO
=============================== */

/* tablets */
@media (max-width: 1024px) {
  .blog-section {
    width: 40vw;
  }
}

/* mobile */
@media (max-width: 600px) {
  .blog-section {
    width: 100%;
    max-width: none;
    padding: 24px 0;
  }

  body.home .blog-grid,
  body.front-page .blog-grid {
    grid-auto-flow: row;        /* volta para coluna normal */
    grid-auto-columns: unset;
    overflow-x: visible;
  }

  .blog-custom .blog-grid {
  grid-template-columns: 1fr;
}

}

  .blog-thumb img {
    height: 180px;
  }

  .blog-content {
    padding: 16px;
  }

  .blog-title {
    font-size: 18px;
  }

  .blog-excerpt {
    font-size: 14px;
  }

  
/* ===============================
   CASES EDITORIAL
================================ */
/* ===============================
   CASES EDITORIAL
================================ */

.cases-editorial {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 24px;

  font-family: polymath, sans-serif;
}

.case-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: block;
   background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0)
   );
}

.case-item.grande {
  grid-column: span 2;
  grid-row: span 2;
}

.case-item.horizontal {
  grid-column: span 2;
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}


.case-item:hover img {
  transform: scale(1.08);
}

.cases-editorial .case-item img {
  height: 100% !important;
  object-fit: cover;
}

/* gradiente base */
.case-item::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2) 55%,
    rgba(0,0,0,0)
  );

  z-index: 1;
}


/* overlay de hover */
.case-item::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0)
  );

  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}


.case-item:hover::after {
  opacity: 1;
}

.case-nome {
  position: absolute;
  left: 20px;
  bottom: 20px;

  z-index: 2;

  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .cases-editorial {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .case-item.grande,
  .case-item.horizontal {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .cases-editorial {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .case-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* estado normal */
.case-item {
  opacity: 1;
  transform: none;
}

/* só anima se existir JS */
.js .cases-editorial .case-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .cases-editorial .case-item.aparecer {
  opacity: 1;
  transform: translateY(0);
}

/* ==== GALERIA CASE INDIVIDUAL ==== */ 
.galeria-card {
  position: relative;
  max-width: 560px;
  aspect-ratio: 3 / 4;
  overflow: visible;
  background: #f2f2f2;
}

/* variação específica */
.galeria-card.galeria-trabalhe-conosco {
  position: relative;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  overflow: visible;
  background: #f2f2f2;
}

/* ============================
   GALERIA CARD – HORIZONTAL
   ISOLADO E SEGURO
============================ */
.sec-galeria-horizontal > .elementor-widget-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.sec-galeria-horizontal {
  position: relative;
  z-index: 0;           /* 🔥 sobe TODO o bloco da galeria */
  isolation: isolate;    /* 🔥 mata stacking-context externo */
}

.sec-galeria-horizontal .elementor-widget-image {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.galeria-card .nav {
    position: absolute;      /* absoluto em relação ao container */
    top: 50%;                /* centraliza verticalmente */
    transform: translateY(-50%);
    z-index: 9999;           /* sobe acima do widget de imagem */
    pointer-events: auto;    /* clique funciona */
}

.sec-galeria-horizontal .elementor-widget-image {
  transform: none !important;
}


.sec-galeria-horizontal .galeria-card {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;

  position: relative;
  margin-left: auto;
  margin-right: auto;

  overflow: visible;
  background: #f2f2f2;
  z-index: 10;
}


/* wrapper ocupa TODO o card */
.img-wrapper {
  position: absolute;
  inset: 0;
}

/* imagens */
.img-layer {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;     /* 🔴 força altura */

  max-width: none !important; /* 🔴 mata regra do Elementor */
  max-height: none !important;

  object-fit: cover;
  object-position: center;

  opacity: 0;
  transition: opacity .6s ease;
}

.img-layer.active {
  opacity: 1;
}


/* ===== NAV PREMIUM GLOBAL ===== */
/* CONTROLES DO SLIDER (galeria) */
.galeria-card .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;

  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #DE0917;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  color: #ffffff;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: transform .2s ease;
}

.galeria-card .nav.prev { left: -20px; }
.galeria-card .nav.next { right: -20px; }

@media (max-width: 767px) {
  .galeria-card .nav.next {
    right: 0 !important;
  }
  .galeria-card .nav.prev {
    left: 0 !important;
  }
}

.galeria-card .nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.galeria-card .nav:focus {
  outline: none;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
}

.lb-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  transition: opacity .35s ease, transform .35s ease;
}

.lb-nav {
  position: absolute;
  z-index: 3;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Secção expandida conteiner filho (usado no conteiner abaixo da galeria de cases individuais */ 
/* ==============================
   SECTION FULL WIDTH REAL
   (seguro e isolado)
============================== */

.sec-expandida-full {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sec-expandida-full > .elementor-container {
  max-width: 100% !important;
  width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* garante que widgets não criem margem fantasma */
.sec-expandida-full .elementor-widget-wrap {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* === TITULO COM MARCA TEXTO === */
.titulo-destaque {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

/* TEXTO DESTACADO */
.hl-titulo {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 0;
}

.hl-titulo::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15em;
  width: 100%;
  height: 0.9em;

  background: linear-gradient(
    90deg,
    rgba(200, 0, 0, 1) 0%,
    rgba(224, 0, 0, 0.9) 45%,
    rgba(224, 0, 0, 0.35) 70%,
    rgba(224, 0, 0, 0) 100%
  );

  z-index: -1;
  border-radius: 3px;

  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s ease-out;
}

/* ativa animação */
.hl-titulo.is-visible::before {
  transform: scaleX(1);
}

@media (max-width: 1024px) {
 .titulo-destaque {
  font-size: clamp(40px, 6vw, 64px);
 }
}

/* Veja nossos clientes */
.highlight-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 16px;
  font-family: polymath, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;

  color: #010227;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;

  transition: color 0.25s ease;
}

.highlight-line--white {
  color: #ffffff;
}

/* FUNDO VERMELHO */
.highlight-line::before {
  content: "";
  position: absolute;
  inset: 0;

  background: #DE0917;
  border-radius: 8px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);

  z-index: 0;
}

/* TEXTO */
.highlight-line span {
  position: relative;
  z-index: 1;
}

/* ÍCONE */
.highlight-line i {
  position: relative;
  z-index: 1;

  font-size: 18px;
  line-height: 1;

  transition: transform 0.3s ease;
}

/* HOVER */
.highlight-line:hover {
  color: #ffffff;
}

.highlight-line:hover::before {
  transform: scaleX(1);
}

.highlight-line:hover i {
  transform: translate(3px, -1px);
}
	
	
/* Logo carrosel */ 
	
.logo-carousel {
  position: relative;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
}

.logo-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.logo-track {
  display: flex;
  transition: transform 0.4s ease;
}

.logo-item {
  flex: 0 0 220px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 110px;
  overflow: visible;
}

.logo-item img {
  max-height: 70px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.12);
}

.carousel-btn {
  background: #DE0917;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: 0.3s ease;
}

.carousel-btn:hover {
  background: #b70712;
}

@media (max-width: 768px) {
  .logo-carousel {
    padding: 20px;
  }

  .logo-item {
    flex: 0 0 160px;
  }

  .logo-item img {
    max-height: 50px;
  }
}

/* FIX APENAS SAFARI IOS */
@supports (-webkit-touch-callout: none) {

    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
        overscroll-behavior-y: none;
    }

    /* estabiliza containers do elementor */
    .elementor-section,
    .elementor-container {
        transform: translateZ(0);
    }

    /* corrige bug de viewport do safari */
    .elementor-section {
        min-height: 100vh;
        height: auto;
    }

    /* evita zoom automático */
    input,
    textarea,
    select {
        font-size: 16px;
    }

	.elementor-element-ac9a4eb {
        width:100vw !important;
        margin-left:calc(50% - 50vw);
    }

    .elementor-element-ac9a4eb .e-con-inner {
        max-width: 100% !important;
        width: 100% !important;
    }
/*botão tabela na cor correta */
	   button[data-img] {
        -webkit-appearance: none;
        appearance: none;

        color: inherit;
        background-color: inherit;

        -webkit-tap-highlight-color: transparent;
    }

    button[data-img]:focus {
        outline: none;
    }

    /* ESTADO ATIVO FUNCIONA NORMAL */
    button[data-img].ativo {
        color: #fff;           /* coloque aqui a cor do seu botão ativo */
        background-color: #111;  /* coloque aqui a cor do seu botão ativo */
    }
	
	 /*corrigir barra horizontal iphone */
	html,
    body {
        overflow-x: hidden;
    }
}