/* ==========================================================
   GRUPO CADISBEL - Folha de estilo principal
   ========================================================== */

/* 1. Reset e Globais */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #333; padding-top: 80px; line-height: 1.6; background-color: #fff; }

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 5%; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. Header - Limpeza e Checkbox Oculto */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 5%; background-color: #000; position: fixed;
  top: 0; left: 0; right: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo { font-size: 24px; font-weight: 700; color: #FF8C00; text-transform: uppercase; text-decoration: none; letter-spacing: 0.5px; }

/* Esconde o checkbox do menu */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* Hamburger: oculto no desktop, exibido no mobile (ver media query) */
.hamburger { display: none; }

nav a { color: #fff; margin-left: 20px; text-decoration: none; font-weight: 600; font-size: 13px; text-transform: uppercase; transition: 0.3s; }
nav a:hover, nav a:focus-visible { color: #FF8C00; }

/* Link "pular para o conteúdo" (acessibilidade / teclado) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #FF8C00; color: #000; padding: 12px 20px;
  font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Foco visível consistente em todo o site */
a:focus-visible, button:focus-visible, label:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #FF8C00;
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Hero e Botão Destacado */
.hero { position: relative; min-height: 100vh; background: url('assets/bg.jpg') no-repeat center center/cover; display: flex; align-items: center; color: #fff; }
.overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85), transparent); }
.hero-content { position: relative; max-width: 700px; padding-left: 5%; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 30px; }

.btn-hero {
  display: inline-block;
  text-decoration: none;
  background-color: #FF8C00;
  color: #fff;
  border: none;
  padding: 22px 55px; /* Tamanho ampliado */
  font-weight: 700; 
  font-size: 1.2rem; 
  cursor: pointer; 
  transition: 0.3s; 
  border-radius: 50px; 
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(255,140,0,0.4);
}
.btn-hero:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(255,140,0,0.6); background-color: #e67e00; }

/* 4. Empresa (Quem Somos Centralizado) */
.sobre, .historia { padding: 100px 0; width: 100%; }
.sobre { background-color: #f9f9f9; }
.sobre .container, .historia .container { flex-direction: row; justify-content: center; align-items: center; gap: 80px; }

.texto { flex: 1; max-width: 550px; text-align: left; }
.texto h2 { font-size: 2.5rem; margin-bottom: 25px; color: #000; }
.texto h2::after { content: ''; display: block; width: 60px; height: 5px; background: #FF8C00; margin-top: 10px; }

.imagem { flex: 1; max-width: 500px; display: flex; justify-content: center; }
.imagem img { width: 100%; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* 5. Marcas - Links e Hover */
.marcas { padding: 100px 0; text-align: center; background-color: #fff; }
.marcas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 50px; width: 100%; }

.marca-item { background-color: #f9f9f9; height: 180px; border-radius: 15px; border: 1px solid #eee; transition: 0.4s; overflow: hidden; }
.marca-item a { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px; }
.marca-item img { height: 70px; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: 0.4s; }

.marca-item:hover { border-color: #FF8C00; transform: translateY(-8px); background-color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.marca-item:hover img { filter: grayscale(0%); opacity: 1; }

.marca-desc { font-size: 11px; font-weight: 700; color: #FF8C00; margin-top: 12px; opacity: 0; transition: 0.4s; text-transform: uppercase; }
.marca-item:hover .marca-desc { opacity: 1; }

/* 6. Atuação, Trabalhe Conosco e Rodapé */
.atuacao { background-color: #000; color: #fff; padding: 80px 0; text-align: center; }
.atuacao h2 { color: #FF8C00; margin-bottom: 50px; }
.numeros { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.numero h3 { font-size: 3.5rem; color: #FF8C00; margin-bottom: 25px; }

.trabalhe { background-color: #111; color: #fff; text-align: center; padding: 50px 0; }
.email-link { color: #FF8C00; font-size: 1.6rem; font-weight: 700; text-decoration: none; margin-top: 20px; display: block; }

footer { background-color: #000; color: #666; text-align: center; padding: 40px; font-size: 14px; border-top: 1px solid #222; }

/* ===== FORMULÁRIO TRABALHE CONOSCO ===== */
/* ===== SEÇÃO TRABALHE CONOSCO (GOOGLE FORMS) ===== */
.trabalhe {
  padding: 80px 0;
  background-color: #111; /* Mantendo o tom escuro do seu footer */
  color: #fff;
  text-align: center;
}

.trabalhe h2 {
  color: #FF8C00;
  margin-bottom: 20px;
}

.google-forms-container {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  background: #fff; /* Fundo branco para o formulário se destacar */
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* Ajuste de altura para mobile */
@media (max-width: 768px) {
  .google-forms-container iframe {
    height: 1000px; /* Formulários no mobile costumam ficar mais "compridos" */
  }
}

.backup-link {
  margin-top: 20px;
  font-size: 14px;
}

.backup-link a {
  color: #FF8C00;
  text-decoration: none;
  font-weight: 600;
}

.backup-link a:hover {
  text-decoration: underline;
}

/* Estilo do Bloco de E-mail do RH */
.rh-contato-direto {
  margin-top: 40px;
  padding-bottom: 20px;
}

.rh-contato-direto p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 15px;
}

.email-rh-box {
  display: inline-flex;
  align-items: center;
  background-color: #222;
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid #FF8C00;
  transition: 0.3s;
}

.email-rh-box:hover {
  background-color: #FF8C00;
  transform: translateY(-3px);
}

.icon-email {
  font-size: 20px;
  margin-right: 10px;
}

.email-link-rh {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.email-rh-box:hover .email-link-rh {
  color: #000; /* Inverte a cor no hover para dar contraste */
}

.backup-link {
  margin-top: 25px;
  opacity: 0.7;
}

/* ===== CARROSSEL DA GALERIA (DENTRO DA NOTÍCIA) ===== */
.galeria-secao {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden; /* Esconde o que sai da área visível */
}

.galeria-wrapper {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease-in-out;
}

.galeria-wrapper img {
    min-width: calc((100% - 30px) / 3); /* Mostra 3 fotos por vez */
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Setas da Galeria - Estilo Compacto */
.seta-galeria {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.seta-galeria:hover { background: #e67e00; transform: translateY(-50%) scale(1.1); }
.seta-galeria.esq { left: 10px; }
.seta-galeria.dir { right: 10px; }

/* Responsivo para Celular */
@media (max-width: 768px) {
    .galeria-wrapper img {
        min-width: 85%; /* No celular mostra quase uma foto inteira */
    }
}

/* 7. Animações */
.reveal { transform: translateY(40px); opacity: 0; transition: 1s ease; }
.reveal.active { transform: translateY(0); opacity: 1; }

/* WhatsApp */
.whatsapp { position: fixed; bottom: 30px; right: 30px; background: #25D366; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; text-decoration: none; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Mobile */
@media (max-width: 992px) {
  .sobre .container, .historia .container { flex-direction: column; text-align: center; gap: 40px; }
  .texto h2::after { margin: 10px auto; }

  /* Hamburger visível */
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 6px; z-index: 110;
  }
  .hamburger span {
    display: block; width: 26px; height: 3px; background: #fff;
    border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
  }

  /* Menu recolhido por padrão */
  header nav {
    position: fixed;
    top: 0; right: 0;
    width: min(78vw, 320px);
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  header nav a {
    margin-left: 0;
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #1e1e1e;
  }

  /* Menu aberto quando o checkbox está marcado */
  .menu-toggle:checked ~ nav { transform: translateX(0); }

  /* Hamburger vira "X" quando aberto */
  .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Foco no teclado alcança o hamburger via checkbox */
  .menu-toggle:focus-visible ~ .hamburger { outline: 3px solid #FF8C00; outline-offset: 3px; }
}

/* ===== MISSÃO, VISÃO E VALORES ===== */
.mvv { padding: 100px 0; width: 100%; background-color: #fff; }
.mvv h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; color: #000; }
.mvv h2::after { content: ''; display: block; width: 60px; height: 5px; background: #FF8C00; margin: 12px auto 0; }

.mvv .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
}

.mvv .card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 40px 30px;
  border-top: 5px solid #FF8C00;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.mvv .card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(0,0,0,0.1); }
.mvv .card h3 { font-size: 1.4rem; color: #000; margin-bottom: 15px; }
.mvv .card p { color: #555; }

/* ===== CONTATO ===== */
.contato { padding: 90px 0; background-color: #fff; text-align: center; }
.contato h2 { font-size: 2.5rem; margin-bottom: 10px; color: #000; }
.contato h2::after { content: ''; display: block; width: 60px; height: 5px; background: #FF8C00; margin: 12px auto 30px; }

.contato-lista { list-style: none; padding: 0; display: grid; gap: 14px; }
.contato-lista li { font-size: 1.05rem; color: #555; }
.contato-lista a { color: #000; font-weight: 600; text-decoration: none; border-bottom: 2px solid #FF8C00; transition: 0.3s; }
.contato-lista a:hover { color: #FF8C00; }

/* ===== RODAPÉ ===== */
footer p { margin-bottom: 8px; }
footer .aviso-legal { color: #FF8C00; font-weight: 600; margin-top: 16px; }

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { transform: none; opacity: 1; }
}
/* NOTÍCIAS */
/* ===== SEÇÃO NOTÍCIAS ===== */

.noticias {
  padding: 60px 20px;
  background: #f5f5f5;
}

.noticias h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

/* CONTAINER COM SETAS */
.noticias-container {
  display: flex;
  align-items: center;
  position: relative;
}

/* GRID */
.noticias-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

/* REMOVE SCROLL BAR */
.noticias-grid::-webkit-scrollbar {
  display: none;
}

/* CARD */
.noticia-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* HOVER */
.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* IMAGEM */
.noticia-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* CONTEÚDO */
.noticia-conteudo {
  padding: 15px;
}

.noticia-conteudo h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.noticia-conteudo p {
  font-size: 14px;
  color: #555;
}

.conteudo-noticia img {
  width: 60%;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* WRAPPER */
.galeria-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 30px;
}

/* GALERIA */
.galeria {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

/* REMOVE SCROLL BAR */
.galeria::-webkit-scrollbar {
  display: none;
}

/* IMAGENS */
.galeria img {
  min-width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.4s;
  cursor: pointer;
}

/* 🔥 HOVER ZOOM */
.galeria img:hover {
  transform: scale(1.1);
}

/* SETAS */
.seta {
  position: absolute;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: 0.3s;
}

.seta:hover {
  background: #FF8C00;
}

/* POSIÇÃO */
.esquerda {
  left: 0;
}

.direita {
  right: 0;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .galeria img {
    min-width: 180px;
    height: 120px;
  }
}

/* BOTÕES (SETAS) */
.noticias-container button {
  background: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  margin: 0 5px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.noticias-container button:hover {
  background: #ddd;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .noticia-card {
    min-width: 240px;
  }

  .noticia-card img {
    height: 140px;
  }
}

/* ===== CARROSSEL NOTÍCIAS ===== */
/* ===== CARROSSEL DE NOTÍCIAS ===== */
.noticias {
  padding: 80px 0;
  background-color: #f9f9f9;
  overflow: hidden; /* Garante que nada escape da seção */
}

.carrossel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
}

/* Esconde as notícias que estão "fora" da tela */
.noticias-overflow {
  width: 100%;
  overflow: hidden;
  padding: 15px 5px;
}

/* O "trilho" que desliza */
.noticias-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Configuração para mostrar 3 cards (considerando os gaps de 20px) */
.noticia-card {
  min-width: calc((100% - 40px) / 3); 
  max-width: calc((100% - 40px) / 3);
  background: #fff;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
  flex-shrink: 0; /* Impede que o card esmague */
  display: flex;
  flex-direction: column;
}

.noticia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.noticia-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.noticia-conteudo {
  padding: 20px;
}

.noticia-conteudo h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #000;
}

/* Setas Fixas nas laterais */
.noticias .seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF8C00;
  border: none;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,140,0,0.3);
  transition: 0.3s;
}

.noticias .seta:hover {
  background-color: #e67e00;
  transform: translateY(-50%) scale(1.1);
}

.noticias .esquerda { left: -22px; }
.noticias .direita { right: -22px; }

/* Responsividade Mobile */
@media (max-width: 992px) {
  .noticia-card {
    min-width: calc((100% - 20px) / 2); /* 2 cards em tablets */
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .noticia-card {
    min-width: 100%; /* 1 card em celulares */
    max-width: 100%;
  }
  .noticias .esquerda { left: 5px; }
  .noticias .direita { right: 5px; }
}
/* ==========================================================
   PÁGINA DE DETALHE DA NOTÍCIA (noticia.html)
   ========================================================== */
.noticia-detalhe { padding: 60px 0 80px; background: #fff; }
.noticia-detalhe .container { align-items: stretch; text-align: left; max-width: 900px; }

.noticia-detalhe h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: #000;
  margin-bottom: 10px;
}

.data-noticia {
  color: #FF8C00;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.capa-detalhe {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.texto-noticia p { margin-bottom: 18px; color: #444; font-size: 1.05rem; }

.voltar-noticias { margin-top: 40px; }
.voltar-noticias a {
  display: inline-block;
  padding: 12px 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
}
.voltar-noticias a:hover { background: #FF8C00; }

.carregando, .aviso-vazio {
  padding: 40px 0;
  color: #888;
  text-align: center;
  font-style: italic;
  width: 100%;
}

/* Data no card do carrossel */
.noticia-data {
  font-size: 12px !important;
  color: #FF8C00 !important;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Setas escondidas quando não há o que rolar */
.seta[hidden], .seta-galeria[hidden] { display: none !important; }

/* ==========================================================================
   RESPONSIVIDADE — camada de ajuste (mobile primeiro, depois desktop)
   Escrita por último de propósito: sobrescreve as regras antigas
   sem precisar mexer no CSS legado acima.
   ========================================================================== */

:root {
  --laranja: #FF8C00;
  --laranja-escuro: #e67e00;
  --preto: #000;
  --cinza-texto: #555;

  --h-header: 58px;                              /* altura real do cabeçalho */
  --pad-secao: clamp(48px, 9vw, 100px);          /* respiro vertical das seções */
  --pad-lateral: clamp(20px, 5vw, 60px);         /* respiro lateral */

  --t-h1: clamp(1.85rem, 7.5vw, 3.8rem);
  --t-h2: clamp(1.6rem, 5.5vw, 2.5rem);
  --t-h3: clamp(1.15rem, 3.5vw, 1.4rem);
  --t-numero: clamp(2.4rem, 9vw, 3.5rem);
  --t-corpo: clamp(0.98rem, 2.6vw, 1.05rem);
}

@media (min-width: 993px) {
  :root { --h-header: 70px; }
}

/* ---------- Base ---------- */
html {
  scroll-padding-top: calc(var(--h-header) + 16px); /* âncora não fica sob o header */
  -webkit-text-size-adjust: 100%;
}

body {
  padding-top: var(--h-header);
  overflow-x: hidden;              /* trava rolagem lateral acidental */
  font-size: var(--t-corpo);
}

/* Nada pode estourar a largura da tela */
img, iframe, video, svg { max-width: 100%; }
h1, h2, h3, p, a, li { overflow-wrap: break-word; }

.container { padding-left: var(--pad-lateral); padding-right: var(--pad-lateral); }

/* ---------- Cabeçalho ---------- */
header { padding: 10px var(--pad-lateral); }
.logo { font-size: clamp(17px, 4.6vw, 24px); }

/* ---------- Hero ---------- */
.hero {
  /* desconta o header fixo: a dobra termina exatamente no fim da tela */
  min-height: calc(100vh - var(--h-header));
  min-height: calc(100svh - var(--h-header));  /* svh ignora a barra de URL do celular */
  padding: 40px 0;
}
.hero-content {
  padding-left: var(--pad-lateral);
  padding-right: var(--pad-lateral);   /* antes o texto encostava na borda direita */
  width: 100%;
}
.hero h1 { font-size: var(--t-h1); margin-bottom: 20px; }
.hero-content p { font-size: clamp(1rem, 3.2vw, 1.15rem); margin-bottom: 32px; max-width: 55ch; }

.btn-hero {
  padding: clamp(15px, 3.5vw, 22px) clamp(28px, 8vw, 55px);
  font-size: clamp(0.92rem, 2.8vw, 1.2rem);
}

@media (max-width: 768px) {
  /* Em tela estreita o degradê lateral não cobre o texto: vira vertical */
  .overlay { background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.55) 55%, rgba(0,0,0,.8)); }
}

/* ---------- Títulos padronizados ---------- */
.texto h2, .mvv h2, .atuacao h2, .marcas h2, .noticias h2,
.contato h2, .trabalhe h2 { font-size: var(--t-h2); line-height: 1.2; }
.mvv .card h3 { font-size: var(--t-h3); }

/* ---------- Seções: respiro proporcional à tela ---------- */
.sobre, .historia, .mvv, .marcas, .noticias, .contato, .trabalhe { padding: var(--pad-secao) 0; }
.atuacao { padding: calc(var(--pad-secao) * 0.85) 0; }

.sobre .container, .historia .container { gap: clamp(32px, 6vw, 80px); }
.texto p { font-size: var(--t-corpo); }

@media (max-width: 992px) {
  /* Título centralizado, texto corrido alinhado à esquerda (mais legível) */
  .texto { text-align: left; max-width: 100%; }
  .texto h2 { text-align: center; }
  .imagem { max-width: 100%; }
}

/* ---------- Nossa Essência ---------- */
.mvv .cards { gap: clamp(18px, 4vw, 30px); }
.mvv .card { padding: clamp(26px, 6vw, 40px) clamp(20px, 5vw, 30px); }
.mvv h2 { margin-bottom: clamp(28px, 6vw, 50px); }

/* ---------- Nosso Impacto: 2x2 no celular em vez de coluna gigante ---------- */
.numeros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
}
.numero h3 { font-size: var(--t-numero); margin-bottom: 4px; line-height: 1; }
.numero p { font-size: clamp(0.8rem, 2.4vw, 1rem); color: #ccc; }
.atuacao h2 { margin-bottom: clamp(30px, 6vw, 50px); }

@media (max-width: 860px) { .numeros { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Marcas ---------- */
.marcas-grid {
  /* 10 marcas: 2 colunas no celular (5 linhas), 4 no tablet, 5 no PC (2 linhas cheias) */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 3vw, 25px);
  margin-top: clamp(28px, 6vw, 50px);
}
@media (min-width: 600px)  { .marcas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .marcas-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 993px)  { .marcas-grid { grid-template-columns: repeat(5, 1fr); } }
.marca-item { height: clamp(130px, 34vw, 180px); }
.marca-item img { height: clamp(46px, 13vw, 70px); }

/* Celular/tablet não tem hover: mostra tudo colorido e com a descrição visível */
@media (hover: none) {
  .marca-item img { filter: none; opacity: 1; }
  .marca-desc { opacity: 1; }
  .marca-item:hover { transform: none; }   /* evita "travar" no estado de hover após o toque */
  .noticia-card:hover, .mvv .card:hover, .btn-hero:hover, .email-rh-box:hover { transform: none; }
}

/* ---------- Carrossel de notícias ---------- */
.carrossel-container { padding: 0 clamp(0px, 5vw, 60px); }
.noticias .esquerda { left: 0; }
.noticias .direita  { right: 0; }

@media (max-width: 992px) {
  /* Sem espaço nas laterais: as setas passam a flutuar sobre os cards */
  .noticias .seta {
    width: 42px; height: 42px;
    background: rgba(255,140,0,.94);
    backdrop-filter: blur(2px);
  }
  .noticias .esquerda { left: 4px; }
  .noticias .direita  { right: 4px; }
}

.noticia-card img { height: clamp(150px, 40vw, 200px); }
.noticia-conteudo { padding: clamp(14px, 4vw, 20px); }
.noticia-conteudo h3 { font-size: clamp(1rem, 3vw, 1.1rem); }
.noticias > .container > p { text-align: center; }

/* ---------- Página da notícia ---------- */
.noticia-detalhe { padding: clamp(28px, 6vw, 60px) 0 var(--pad-secao); }
.noticia-detalhe h1 { font-size: clamp(1.55rem, 6vw, 2.6rem); }

.capa-detalhe {
  max-height: min(58vh, 480px);
  margin-bottom: clamp(20px, 5vw, 30px);
}

.texto-noticia p {
  font-size: var(--t-corpo);
  margin-bottom: clamp(14px, 3.5vw, 18px);
  line-height: 1.75;
}
/* Primeiro parágrafo em destaque, como abertura da matéria */
.texto-noticia p:first-child { font-size: clamp(1.05rem, 3.2vw, 1.2rem); color: #222; font-weight: 600; }

/* Galeria: proporção fixa em vez de altura fixa (não corta fotos em pé) */
.galeria-secao { margin: clamp(26px, 6vw, 40px) auto; }
.galeria-wrapper img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 768px) {
  .galeria-wrapper img { min-width: 82%; aspect-ratio: 3 / 4; }
  .seta-galeria { width: 44px; height: 44px; }
}

/* ---------- Contato ---------- */
.contato-lista { text-align: center; }
.contato-lista li { font-size: var(--t-corpo); }
.contato-lista a { display: inline-block; padding: 4px 2px; }  /* área de toque maior */

/* ---------- Trabalhe Conosco ---------- */
.google-forms-container { margin: clamp(24px, 6vw, 40px) auto; padding: clamp(6px, 2vw, 10px); }
.google-forms-container iframe { display: block; height: 640px; border-radius: 10px; }

@media (max-width: 768px) {
  .google-forms-container iframe { height: 900px; }
  .email-rh-box { padding: 14px 22px; max-width: 100%; }
  .email-link-rh { font-size: clamp(0.9rem, 3.6vw, 1.2rem); word-break: break-word; }
}

/* ---------- Rodapé + WhatsApp ---------- */
footer { padding: clamp(28px, 6vw, 40px) var(--pad-lateral); }

.whatsapp {
  width: 58px; height: 58px; font-size: 30px;
  bottom: 18px; right: 18px;
}
@media (max-width: 600px) {
  .whatsapp { width: 52px; height: 52px; font-size: 26px; bottom: 14px; right: 14px; }
  /* espaço extra no fim da página para o botão não tapar o rodapé */
  footer { padding-bottom: 84px; }
}

/* ==========================================================================
   CAPA (HERO) — nova foto da revenda
   Duas versões: panorâmica no PC, recorte na placa no celular.
   ========================================================================== */

.hero {
  background-image: url('assets/hero-wide.jpg');
  /* 62% desloca a placa para a faixa escura do véu e traz a entrada e o
     escritório para o lado claro, longe do texto */
  background-position: 62% 58%;
  background-color: #0d5c8a;            /* cor enquanto a foto carrega */
}

@media (max-width: 768px) {
  /* No celular a panorâmica ficaria cortada demais: usa o recorte vertical */
  .hero {
    background-image: url('assets/hero-mobile.jpg');
    background-position: center 42%;
  }
}

/* A foto nova é clara (céu azul, prédio branco): o véu precisa segurar
   mais contraste para o texto branco continuar legível. */
/* Valores calibrados: contraste do título sobe de 3,2:1 para 5,6:1 (WCAG exige 3:1
   em texto grande e 4,5:1 no corpo), sem escurecer a foto mais que o necessário. */
.overlay {
  background: linear-gradient(to right,
    rgba(0,0,0,.86) 0%,
    rgba(0,0,0,.72) 38%,
    rgba(0,0,0,.42) 70%,
    rgba(0,0,0,.06) 100%);
}

@media (max-width: 768px) {
  .overlay {
    background: linear-gradient(to bottom,
      rgba(0,0,0,.70) 0%,
      rgba(0,0,0,.52) 42%,
      rgba(0,0,0,.72) 100%);
  }
}

.hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-content p { text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ==========================================================================
   CORREÇÃO — imagens esticadas em "Quem Somos" e "Nossa História"

   Causa: .imagem é display:flex e o padrão align-items:stretch estica o
   <img> verticalmente, porque .imagem img definia só width, sem height.
   Resultado: a logo aparecia alongada.
   ========================================================================== */

.imagem {
  align-items: center;      /* impede o flex de esticar a imagem */
}

.imagem img {
  height: auto;             /* a altura sempre segue a proporção real */
  object-fit: contain;      /* nunca corta nem deforma */
  max-height: 420px;
  width: auto;
  max-width: 100%;
}
