/* ============================================================
   Bruno Chamochumbi & Consultores Criativos — clone estático
   Tema base: Perth (WordPress) | Cor primária: #2aab96
   ============================================================ */

:root {
  --teal: #2aab96;
  --teal-dark: #1e8c7a;
  --dark: #39424e;
  --darker: #252b33;
  --gray: #8d949c;
  --bg: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  color: #6b7280;
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4, h5 { font-family: 'Open Sans', Arial, sans-serif; color: var(--dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: opacity .4s;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader span {
  width: 14px; height: 14px; border-radius: 50%; background: var(--teal);
  animation: pre-bounce .7s infinite alternate;
}
.preloader span:nth-child(2) { animation-delay: .2s; }
.preloader span:nth-child(3) { animation-delay: .4s; }
@keyframes pre-bounce { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* ---------- Header ---------- */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
#masthead .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.header-clone { height: 90px; }
.site-branding img { max-height: 52px; width: auto; }
.site-title a { font-family: 'Open Sans'; font-weight: 800; font-size: 22px; color: var(--dark); }

.main-navigation ul { list-style: none; display: flex; gap: 26px; }
.main-navigation a {
  font-family: 'Open Sans'; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: #9aa0a6;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current a { color: var(--teal); }

.main-navigation .nav-cta { margin-left: 8px; display: flex; align-items: center; }
.main-navigation a.btn-livro {
  background: #F0057B; color: #fff;
  padding: 10px 40px; border-radius: 22px;
  min-width: 130px; text-align: center;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.main-navigation a.btn-livro:hover {
  background: #c80465; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,5,123,.35);
}

.nav-toggle, .mobile-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span, .mobile-toggle span {
  display: block; width: 24px; height: 3px; background: var(--dark);
  margin: 4px 0; border-radius: 2px;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/2019/03/Ativo-9.png') center/cover no-repeat,
    var(--teal);
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 16px;
}
.hero h1 {
  color: #fff; font-size: 52px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 34px; text-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.hero-buttons { display: flex; flex-direction: row-reverse; gap: 40px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* dimensões idênticas para os três botões do hero */
.hero-buttons a {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  width: 190px; height: 54px; padding: 0 20px;
  font-family: 'Open Sans'; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* entrada escalonada dos botões no carregamento */
.hero-buttons > * {
  opacity: 0;
  animation: heroBtnIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-buttons > *:nth-child(1) { animation-delay: .15s; }
.hero-buttons > *:nth-child(2) { animation-delay: .30s; }
.hero-buttons > *:nth-child(3) { animation-delay: .45s; }
@keyframes heroBtnIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Biografia (primário) */
.hero-buttons a.btn-filled-hero {
  background: var(--teal); color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero-buttons a.btn-filled-hero:hover {
  background: var(--teal-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.26);
}

/* Serviços (claro) */
.hero-buttons a.btn-light-hero {
  background: #fff; color: var(--teal);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.hero-buttons a.btn-light-hero:hover {
  background: var(--teal); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.26);
}

/* Livro (CTA) */
.hero-buttons a.btn-livro-hero {
  background: #F0057B; color: #fff;
  box-shadow: 0 6px 18px rgba(240,5,123,.28);
}
.hero-buttons a.btn-livro-hero:hover {
  background: #c80465; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(240,5,123,.42);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block; padding: 12px 30px;
  font-family: 'Open Sans'; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--teal); color: var(--teal); background: transparent;
  cursor: pointer; transition: all .25s;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn-filled, .btn-teal { background: var(--teal); color: #fff; }
.btn-filled:hover, .btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-white { border-color: #fff; color: #fff; }
.btn-white:hover { background: #fff; color: var(--teal); }

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-white { background: #fff; }
.section-gray {
  background: var(--bg);
  position: relative;
}

/* Divisores diagonais (estilo do site original) */
#servicos { overflow: hidden; }
#servicos > .container { position: relative; z-index: 2; }
.svg-divider {
  position: absolute; left: 0; width: 100%; height: 80px;
  pointer-events: none; z-index: 1; line-height: 0;
}
.svg-divider svg { display: block; width: 100%; height: 100%; }
.svg-divider svg path { fill: #fff; }
.svg-divider-top { top: 0; }
.svg-divider-bottom { bottom: 0; }
.section-heading {
  font-size: 26px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--dark); margin-bottom: 14px;
}
.divider {
  width: 42px; height: 3px; background: var(--teal);
  margin: 0 auto 50px;
}
.divider-left { margin: 0 0 30px; }

/* ---------- Home: Tudo com CH ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start;
}
.about-left h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.about-left .divider { margin: 0 0 36px; }

/* Composição em escada — biografia */
.about-collage {
  position: relative;
  max-width: 330px;
  padding-bottom: 8px;
}
.about-collage .about-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.about-collage .about-photo-1 {
  position: relative;
  z-index: 1;
  max-width: 270px;
  aspect-ratio: 3 / 4;
}
.about-collage .about-photo-2 {
  position: relative;
  z-index: 2;
  max-width: 245px;
  margin: -72px 0 0 38%;
  aspect-ratio: 3 / 4;
}
.about-collage .about-photo-3 {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin-top: -8px;
  aspect-ratio: 3 / 4;
}

.about-right p { font-size: 14px; margin-bottom: 16px; }
.about-right strong { color: var(--dark); }

/* ---------- Home: Serviços ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px; max-width: 1000px; margin: 0 auto;
}
.service { text-align: center; }
.hexagon {
  width: 64px; height: 56px; margin: 0 auto 22px;
  background: var(--teal);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .7s ease;
}
.hexagon i { color: #fff; font-size: 22px; }
.service:hover .hexagon { background: var(--teal-dark); transform: rotate(360deg); }
.service h3 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 14px;
}
.service p { font-size: 13px; line-height: 1.8; }
.services-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-top: 50px; }

/* ---------- Portfólio grid ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 50px;
}
.pf-item { position: relative; overflow: hidden; display: block; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pf-item:hover img { transform: scale(1.06); }
.pf-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(42,171,150,.85); opacity: 0; transition: opacity .3s; padding: 10px;
}
.pf-item:hover .pf-overlay,
.pf-item:focus .pf-overlay,
.pf-item:active .pf-overlay { opacity: 1; }
.pf-overlay span {
  color: #fff; font-family: 'Open Sans'; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; text-align: center;
}

/* ---------- Depoimentos ---------- */
.testimonials {
  background:
    linear-gradient(rgba(8,12,16,.82), rgba(8,12,16,.82)),
    url('../images/2017/11/MS-7180130.jpg') center/cover no-repeat fixed #11161b;
  padding: 90px 0; text-align: center; color: #e7e9eb;
}
.testimonials .section-heading { color: #fff; }
.testimonial-slide { max-width: 760px; margin: 0 auto; display: none; }
.testimonial-slide.active { display: block; animation: t-slide-in .55s ease both; }
.testimonial-slide.active.reverse { animation-name: t-slide-in-rev; }
@keyframes t-slide-in {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes t-slide-in-rev {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.testimonial-slide p { font-size: 14px; line-height: 2; margin-bottom: 22px; }
.testimonial-author { font-size: 12px; color: #aab2ba; text-transform: uppercase; letter-spacing: 1px; }
.testimonial-client { margin-top: 26px; }
.testimonial-client img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; border: 2px solid var(--teal);
}
.testimonial-client h4 {
  color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.testimonial-client span { font-size: 12px; color: #aab2ba; }
.testimonial-dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin: 40px auto; max-width: 420px;
}
.testimonial-dots button {
  width: 16px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: var(--teal); opacity: .35; transition: opacity .25s;
}
.testimonial-dots button.active,
.testimonial-dots button:hover { opacity: 1; }

/* ---------- Blog (home) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 50px; }
.blog-card { text-align: left; }
.blog-card .post-thumb { margin-bottom: 18px; }
.blog-card h3 {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 14px; line-height: 1.5;
}
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 13px; line-height: 1.9; }

/* ---------- Clientes ---------- */
.clients-panel { background: #fff; padding: 70px 50px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px 50px; align-items: center; justify-items: center;
}
.clients-grid img {
  max-height: 90px; width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1); opacity: .8; transition: all .3s;
}
.clients-grid img:hover { filter: none; opacity: 1; }

/* ---------- Social ---------- */
.social-row { display: flex; justify-content: center; padding: 60px 0; }
.social-row a {
  width: 56px; height: 56px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 1px solid rgba(255,255,255,.35);
}
.social-row a:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Banner interno ---------- */
.page-header-banner {
  background: var(--teal) url('../images/2019/03/HEADER-BC.jpg') center/cover no-repeat;
  padding: 70px 16px; text-align: center;
}
.page-header-banner h2 {
  color: #fff; font-size: 34px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ---------- Layout com sidebar ---------- */
.page-wrap, .page-content { padding: 60px 0; }
.content-with-sidebar, .content-sidebar-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}

/* ---------- Posts (listagem) ---------- */
.post-entry {
  background: #fff; padding: 34px 38px; margin-bottom: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.post-thumb { margin-bottom: 22px; }
.post-thumb img { width: 100%; }
.post-meta { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.post-meta i { color: var(--teal); margin-right: 4px; }
.post-meta a { color: var(--gray); }
.post-meta a:hover { color: var(--teal); }
.post-entry h2 { margin-bottom: 14px; line-height: 1.45; }
.post-title {
  font-size: 22px; font-weight: 700; color: var(--dark);
  text-transform: uppercase; letter-spacing: .5px;
}
a.post-title:hover { color: var(--teal); }
.post-excerpt { font-size: 14px; }

.pagination { text-align: center; padding: 10px 0 30px; }
.pagination a {
  font-family: 'Open Sans'; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ---------- Post único / item de portfólio ---------- */
.single-wrap, .single-post-content {
  background: #fff; padding: 38px 42px; margin-bottom: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.single-featured, .single-featured-img { margin: -38px -42px 26px; }
.single-featured img, .single-featured-img img { width: 100%; }
.single-title {
  font-size: 28px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; line-height: 1.4; margin: 6px 0 22px;
}
.single-body p { font-size: 14px; margin-bottom: 16px; }
.single-body h3 { margin: 24px 0 12px; }
.single-body img { margin: 10px 0; }
.single-body img[loading="lazy"] { content-visibility: auto; }
.single-body ul, .single-body ol { margin: 0 0 16px 22px; font-size: 14px; }

/* Galeria de imagens dos itens de portfólio */
.pf-gallery-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--dark); margin: 28px 0 14px;
}
.pf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.pf-gallery a { display: block; overflow: hidden; border-radius: 4px; line-height: 0; }
.pf-gallery img { width: 100%; height: 170px; object-fit: cover; margin: 0; transition: transform .4s; }
.pf-gallery a:hover img { transform: scale(1.06); }
@media (max-width: 600px) { .pf-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Vídeos e áudios embutidos */
.pf-embeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 12px 0 6px; }
.pf-embeds.cols-1 { grid-template-columns: 1fr; }
.pf-video { position: relative; width: 100%; padding-top: 56.25%; border-radius: 4px; overflow: hidden; background: #000; }
.pf-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.pf-audio iframe { width: 100%; border: 0; }
@media (max-width: 600px) { .pf-embeds { grid-template-columns: 1fr; } }

/* Botões de links externos (issuu, sites, redes) */
.pf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.pf-links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  background: #2aab96; color: #fff; text-decoration: none; font-size: 13px;
  font-weight: 600; border-radius: 3px; transition: background .2s;
}
.pf-links a:hover { background: #1e8c7a; }
.pf-social-inline { display: flex; gap: 12px; margin: 4px 0 16px; }
.pf-social-inline a { font-size: 22px; color: var(--gray); transition: color .2s; }
.pf-social-inline a:hover { color: #2aab96; }
.pf-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 8px; align-items: start; }
.pf-covers figure { margin: 0; }
.pf-covers img { width: 100%; height: auto; margin: 0; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pf-covers figcaption { font-size: 12px; color: var(--gray); margin-top: 8px; text-align: center; }
@media (max-width: 600px) { .pf-covers { grid-template-columns: repeat(2, 1fr); } }

.post-tag, .tag {
  display: inline-block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; border: 1px solid #dde0e3; color: var(--gray);
  padding: 5px 12px; margin: 0 6px 6px 0;
}
.post-tag:hover, .tag:hover { border-color: var(--teal); color: var(--teal); }
.post-tags { margin-top: 16px; }

/* navegação anterior/próximo (portfólio) */
.pf-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin: 32px 0 8px; gap: 12px;
}
.pf-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; background: #2aab96; color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600;
  border-radius: 3px; transition: background .2s;
}
.pf-nav a:hover { background: #1e8c7a; color: #fff; }
.pf-nav a.disabled { background: #ccc; pointer-events: none; color: #fff; }
.pf-nav-label { font-size: 11px; font-weight: 400; opacity: .85; display: block; }

/* ---------- Comentários ---------- */
.comments-wrap, .comments-area {
  background: #fff; padding: 34px 42px; margin-bottom: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.comments-wrap h2, .comments-area h2 {
  font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}
.comment-notice { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
.comment-row, .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comment-field, .field { margin-bottom: 14px; }
.comment-field label, .field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 6px;
}
.comment-field em, .field em { color: #d9534f; font-style: normal; }
.comment-field input, .comment-field textarea,
.field input, .field textarea, .comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid #dde0e3; padding: 10px 12px;
  font-family: inherit; font-size: 14px; color: var(--dark);
  background: #fff; outline: none; transition: border-color .2s;
}
.comment-field input:focus, .comment-field textarea:focus,
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.comment-field textarea, .field textarea { min-height: 130px; resize: vertical; }

/* ---------- Sidebar ---------- */
.sidebar .widget, .sidebar > div {
  background: #fff; padding: 28px 30px; margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.widget-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid #e8eaec; position: relative;
}
.widget-title::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 50px; height: 2px; background: var(--teal);
}
.w-about-photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 6px auto 18px;
}
.w-about-text { font-size: 13px; text-align: center; line-height: 1.9; }
.w-about-text strong { color: var(--dark); }
.w-social { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.w-social a { color: #9aa0a6; font-size: 16px; }
.w-social a:hover { color: var(--teal); }

.w-search form, .widget-search form { display: flex; }
.w-search input, .widget-search input {
  flex: 1; border: 1px solid #dde0e3; padding: 9px 12px; font-size: 13px; outline: none;
}
.w-search button, .widget-search button {
  border: 0; background: var(--teal); color: #fff; padding: 0 14px; cursor: pointer;
}
.w-ad, .widget-ad { text-align: center; }
.w-recent { list-style: none; }
.w-recent li {
  padding: 10px 0; border-bottom: 1px solid #f0f1f2;
  font-size: 13px; line-height: 1.6;
}
.w-recent li:last-child { border-bottom: 0; }
.w-recent a { color: #6b7280; }
.w-recent a:hover { color: var(--teal); }
.w-recent li::before { content: '\f040'; font-family: FontAwesome; color: var(--teal); margin-right: 8px; font-size: 11px; }

/* ---------- Formulário de contato ---------- */
.contact-card {
  background: #fff; padding: 38px 42px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.contact-card h1 {
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 20px;
}
.contact-card > p { font-size: 14px; margin-bottom: 14px; }
.contact-form { margin-top: 28px; }
.contact-form .form-row { grid-template-columns: 1fr 1fr; }
.form-msg { padding: 12px 16px; font-size: 13px; margin-bottom: 20px; display: none; }
.form-msg.ok { display: block; background: #e8f8f5; border-left: 3px solid var(--teal); color: var(--teal-dark); }
.form-msg.err { display: block; background: #fdeeee; border-left: 3px solid #d9534f; color: #b94a48; }

/* ---------- Footer ---------- */
#colophon, .footer-area { background: var(--darker); color: #9aa3ad; }
.footer-main {
  display: grid; grid-template-columns: 280px 1fr 1fr; min-height: 240px;
}
.footer-brand, .footer-branding {
  background: var(--teal); display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.footer-brand-name a, .footer-branding a {
  color: #fff; font-family: 'Open Sans'; font-size: 28px; font-weight: 800;
  text-align: center; line-height: 1.3;
}
.footer-col, .footer-widget { padding: 44px 40px 30px; }
.footer-col h3, .footer-widget h3 {
  color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 22px; position: relative; padding-top: 14px;
}
.footer-col h3::before, .footer-widget h3::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 38px; height: 3px; background: var(--teal);
}
.footer-col p, .footer-widget p { font-size: 13px; line-height: 1.9; }
.footer-col strong { color: #d7dce1; }
.footer-col a { color: #9aa3ad; }
.footer-col a:hover { color: var(--teal); }

.contact-line, .footer-contact-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-icon, .footer-contact-icon {
  flex: 0 0 34px; height: 34px; border: 1px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon i, .footer-contact-icon i { color: var(--teal); font-size: 13px; }
.contact-line p { margin: 0; padding-top: 5px; }

.footer-bottom, .site-info {
  background: var(--teal); color: #fff; text-align: center;
  font-size: 11.5px; padding: 14px 16px;
}
.footer-bottom a, .site-info a { color: #fff; text-decoration: underline; }

/* ---------- Voltar ao topo ---------- */
.go-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 42px; height: 42px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.go-top.visible { opacity: 1; pointer-events: auto; }
.go-top:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Galeria (Quem é o CH) ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-gallery img { width: 100%; height: 300px; object-fit: cover; }

/* ---------- Responsivo ---------- */

/* Evita overflow horizontal e quebra palavras longas (URLs, e-mails) */
html, body { overflow-x: hidden; }
p, h1, h2, h3, h4, h5, a { overflow-wrap: break-word; word-break: break-word; }

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .main-navigation {
    display: none; position: absolute; top: 90px; left: 0; right: 0;
    background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.1); padding: 14px 0;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation li { padding: 11px 24px; border-bottom: 1px solid #f0f1f2; }
  .main-navigation .nav-cta { margin-left: 0; border-bottom: none; padding: 16px 24px; justify-content: flex-start; }
  .main-navigation a.btn-livro { display: inline-block; }
  .nav-toggle, .mobile-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-collage { max-width: 100%; margin: 0 auto; }
  .about-collage .about-photo-1 { max-width: min(270px, 78vw); margin-left: auto; margin-right: auto; }
  .about-collage .about-photo-2,
  .about-collage .about-photo-3 { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 30px; }
  .content-with-sidebar, .content-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero h1 { font-size: 60px; }
  .testimonials { background-attachment: scroll; }

  .section { padding: 60px 0; }
  .testimonials { padding: 64px 0; }
  .clients-panel { padding: 50px 30px; }
}

/* Mobile landscape / smartphones grandes (≤ 768px) */
@media (max-width: 768px) {
  #masthead .container { height: 70px; }
  .header-clone { height: 70px; }
  .site-branding img { max-height: 40px; }
  .main-navigation { top: 70px; max-height: calc(100vh - 70px); }
  
  .hero { min-height: 300px; padding: 48px 16px; background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/2019/03/Ativo-9.png') center/cover no-repeat,
    var(--teal); }
  .hero h1 { font-size: 60px; margin-bottom: 26px; }

  .section { padding: 48px 0; }
  .section-heading { font-size: 22px; }
  .divider { margin-bottom: 36px; }
  .testimonials { padding: 52px 0; }

  /* Divisores diagonais menores para não cobrirem o conteúdo */
  .svg-divider { height: 42px; }
  #servicos { padding: 70px 0; }

  .footer-col, .footer-widget { padding: 32px 24px 24px; }
  .footer-brand, .footer-branding { padding: 32px 20px; min-height: 160px; }
  .footer-main { min-height: 0; }
}

/* Smartphones (≤ 600px) */
@media (max-width: 600px) {
  .services-grid, .services-row-2 { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .comment-row, .form-row, .contact-form .form-row { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr; }
  .single-wrap, .single-post-content, .post-entry { padding: 26px 22px; }
  .single-featured, .single-featured-img { margin: -26px -22px 22px; }
  .contact-card, .comments-wrap, .comments-area { padding: 26px 22px; }
  .clients-panel { padding: 36px 18px; }

  .hero { min-height: 350px; padding: 40px 16px; background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/2019/03/Ativo-9.png') center/cover no-repeat,
    var(--teal);}
  .hero h1 { font-size: 34px; margin-bottom: 26px; }
  .hero-buttons { width: 100%; flex-direction: column; align-items: center; gap: 16px; }
  .hero-buttons a { width: 100%; max-width: 240px; }

  .svg-divider { height: 30px; }
  #servicos { padding: 56px 0; }
  .hexagon { margin-bottom: 18px; }

  .pf-nav { flex-direction: column; gap: 14px; }
  .pf-nav a { max-width: 100%; }
}

/* Mobile pequeno (≤ 400px) */
@media (max-width: 400px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .section-heading { font-size: 20px; }
  .clients-grid { grid-template-columns: 1fr; }
  .btn { padding: 11px 20px; }
  .go-top { right: 14px; bottom: 14px; }
}
