/*
Theme Name: Di20 Child
Template: generatepress
Version: 7.0
*/

/* ══════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════ */
:root {
  --black:      #111111;
  --white:      #FFFFFF;
  --off:        #F5F3F0;
  --gold:       #C8A96E;
  --gray:       #6B6B6B;
  --gray-lt:    #E5E3E0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --max:        1320px;
  --pad:        clamp(1.5rem, 5vw, 5rem);
  --r:          3px;
}

/* ══════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════
   OCULTAR ELEMENTOS GP — APENAS em templates custom Di20
   Páginas padrão WP mantêm header/footer do GP
══════════════════════════════════════════════════ */
body.di20-home-template .site-header,
body.di20-home-template .site-footer,
body.di20-home-template .navigation-branding,
body.di20-home-template .page-header,
body.di20-home-template .breadcrumb-trail,
body.di20-home-template .entry-header { display: none !important; }

body.di20-projetos-template .site-header,
body.di20-projetos-template .site-footer,
body.di20-projetos-template .navigation-branding,
body.di20-projetos-template .page-header,
body.di20-projetos-template .breadcrumb-trail,
body.di20-projetos-template .entry-header { display: none !important; }

/* Zero padding no container para templates full-width */
body.di20-home-template .site-content,
body.di20-home-template .content-area,
body.di20-home-template .site-main,
body.di20-home-template .entry-content,
body.di20-projetos-template .site-content,
body.di20-projetos-template .content-area,
body.di20-projetos-template .site-main,
body.di20-projetos-template .entry-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* Archive de projetos: esconder apenas breadcrumb e page-header do GP */
body.post-type-archive-projeto .page-header,
body.post-type-archive-projeto .breadcrumb-trail { display: none !important; }
body.post-type-archive-projeto .site-content,
body.post-type-archive-projeto .content-area,
body.post-type-archive-projeto .site-main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* Single projeto: sem padding e sem title redundante do GP */
body.single-projeto .entry-header { display: none !important; }
body.single-projeto .site-content,
body.single-projeto .content-area,
body.single-projeto .site-main,
body.single-projeto .entry-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* ══════════════════════════════════════════════════
   HEADER GP — estilo para páginas padrão
══════════════════════════════════════════════════ */
body:not(.di20-home-template):not(.di20-projetos-template) .site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--gray-lt);
}
body:not(.di20-home-template):not(.di20-projetos-template) .site-header .site-branding .main-title { display: none; }
body:not(.di20-home-template):not(.di20-projetos-template) .site-header .site-logo img {
  max-height: 44px; width: auto; height: auto; /* sem distorção */
}
body:not(.di20-home-template):not(.di20-projetos-template) .site-header .menu li a {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--black); transition: color .2s;
}
body:not(.di20-home-template):not(.di20-projetos-template) .site-header .menu li a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   TIPOGRAFIA
══════════════════════════════════════════════════ */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
p  { line-height: 1.7; color: var(--gray); }

/* ══════════════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: var(--r); /* 3px — NÃO circular */
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-dark    { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-gold    { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--black); color: var(--white); }
.btn--sm     { padding: .5rem 1.2rem; font-size: .75rem; }

/* ══════════════════════════════════════════════════
   LAYOUT HELPER
══════════════════════════════════════════════════ */
.di20-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ══════════════════════════════════════════════════
   DI20 HEADER (templates home/projetos)
══════════════════════════════════════════════════ */
.di20-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--pad);
  transition: background .3s, box-shadow .3s;
}
.di20-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 20px rgba(0,0,0,.08);
}
.di20-header__logo img { height: 36px; width: auto; }
.di20-nav { display: flex; gap: 2.5rem; list-style: none; }
.di20-nav a {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); transition: color .2s;
}
.di20-header.scrolled .di20-nav a { color: var(--black); }
.di20-nav a:hover { color: var(--gold) !important; }
.di20-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px; background: none; border: none; padding: 0;
  border-radius: 0; /* FIX: evitar herança de border-radius circular */
}
.di20-burger span {
  display: block; height: 2px; background: var(--white);
  transition: transform .3s, opacity .3s;
}
.di20-header.scrolled .di20-burger span { background: var(--black); }
.di20-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.di20-burger.open span:nth-child(2) { opacity: 0; }
.di20-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.di20-mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--white); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.di20-mobile-nav.open { display: flex; }
.di20-mobile-nav a { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; }
.di20-mobile-nav a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   HERO CARROSSEL — FIX botões não circulares
══════════════════════════════════════════════════ */
.di20-hero {
  position: relative; width: 100%; height: 100vh; min-height: 560px;
  overflow: hidden; background: var(--black);
}
.di20-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.di20-slide.active { opacity: 1; }
.di20-slide img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.di20-slide__content {
  position: absolute; bottom: 12%; left: var(--pad); max-width: 680px; color: var(--white);
}
.di20-slide__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.di20-slide__title {
  font-family: var(--font-serif); font-size: clamp(2.4rem,5vw,4.2rem);
  line-height: 1.08; margin-bottom: 1.2rem; color: var(--white);
}
.di20-slide__desc { font-size: .95rem; opacity: .85; max-width: 480px; line-height: 1.7; color: var(--white); }

/* CONTROLES DO CARROSSEL — FIX: botões quadrados/oval, não círculos */
.di20-hero__controls {
  position: absolute; bottom: 2.5rem; right: var(--pad);
  display: flex; gap: .6rem; align-items: center;
}
.di20-hero__controls button {
  width: 28px; height: 4px;           /* oval horizontal */
  border-radius: 2px;                  /* quase reto */
  border: none; cursor: pointer;
  background: rgba(255,255,255,.35);
  transition: background .2s, width .25s;
  padding: 0;                          /* sem padding herdado */
  flex-shrink: 0;
}
.di20-hero__controls button.active {
  background: var(--gold);
  width: 48px;                         /* ativo fica maior */
}
.di20-hero__controls button:hover { background: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════════ */
.di20-intro {
  padding: 7rem var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: var(--max); margin: 0 auto;
}
.di20-intro__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.di20-intro__title { margin-bottom: 1.5rem; color: var(--black); }
.di20-intro__desc  { margin-bottom: 2rem; }
.di20-intro__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.di20-stat__num    { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--black); }
.di20-stat__label  { font-size: .78rem; color: var(--gray); margin-top: .3rem; }
.di20-intro__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ══════════════════════════════════════════════════
   SERVIÇOS
══════════════════════════════════════════════════ */
.di20-services { background: var(--black); padding: 7rem var(--pad); }
.di20-services h2 { color: var(--white); text-align: center; margin-bottom: .8rem; }
.di20-services__sub { color: rgba(255,255,255,.6); margin-bottom: 4rem; max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
.di20-services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: var(--max); margin: 0 auto; }
.di20-sitem { padding: 3.5rem 2.5rem; background: #1A1A1A; transition: background .3s; }
.di20-sitem:hover { background: #222; }
.di20-sitem__icon { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--gold); }
.di20-sitem__title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: .8rem; }
.di20-sitem__desc { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.di20-sitem__link { display: inline-block; margin-top: 1.5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ══════════════════════════════════════════════════
   SEÇÃO GENÉRICA
══════════════════════════════════════════════════ */
.di20-section { padding: 7rem var(--pad); max-width: var(--max); margin: 0 auto; }
.di20-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; }
.di20-section__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}

/* ══════════════════════════════════════════════════
   PROJETOS GRID
══════════════════════════════════════════════════ */
.di20-pgrid, .di20-pgrid--3 {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2px;
  max-width: var(--max); margin: 0 auto;
}
.di20-pgrid--3 { grid-template-columns: repeat(3,1fr); }
.di20-pcard {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--gray-lt); display: block;
}
.di20-pcard::before { content: ''; display: block; padding-top: 75%; }
.di20-pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.di20-pcard:hover img { transform: scale(1.04); }
.di20-pcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 2rem; flex-direction: column; justify-content: flex-end;
}
.di20-pcard:hover .di20-pcard__overlay { opacity: 1; }
.di20-pcard__cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.di20-pcard__title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); }

/* ══════════════════════════════════════════════════
   ARQUIVO DE PROJETOS (archive-projeto.php)
══════════════════════════════════════════════════ */
.di20-cases-page { width: 100%; }
.di20-cases-hero {
  padding: 10rem var(--pad) 5rem; background: var(--black);
  text-align: center; color: var(--white);
}
.di20-cases-hero h1 {
  font-family: var(--font-serif); font-size: clamp(2.5rem,5vw,4.5rem);
  margin-bottom: 1rem; color: var(--white);
}
.di20-cases-hero p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }
.di20-cases-filters {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 2.5rem var(--pad); border-bottom: 1px solid var(--gray-lt);
}
.di20-filter-btn {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .5rem 1.5rem;
  border-radius: var(--r); border: 1.5px solid var(--gray-lt);
  background: transparent; cursor: pointer; transition: all .2s;
}
.di20-filter-btn.active, .di20-filter-btn:hover {
  background: var(--black); color: var(--white); border-color: var(--black);
}
.di20-cases-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; margin: 2px 0;
}
.di20-pitem {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--gray-lt); display: block;
}
.di20-pitem::before { content: ''; display: block; padding-top: 75%; }
.di20-pitem img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s;
}
.di20-pitem:hover img { transform: scale(1.04); }
.di20-pitem__placeholder {
  position: absolute; inset: 0; background: var(--gray-lt);
}
.di20-pitem__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; padding: 2rem;
}
.di20-pitem:hover .di20-pitem__overlay { opacity: 1; }
.di20-pitem__cat { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.di20-pitem__title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); }
.di20-no-posts { padding: 4rem; text-align: center; grid-column: 1/-1; color: var(--gray); }

/* ══════════════════════════════════════════════════
   CLIENTES MARQUEE
══════════════════════════════════════════════════ */
.di20-clients {
  overflow: hidden; padding: 4rem 0;
  border-top: 1px solid var(--gray-lt); border-bottom: 1px solid var(--gray-lt);
}
.di20-clients__track {
  display: flex; gap: 5rem; align-items: center;
  animation: di20-marquee 30s linear infinite; width: max-content;
}
.di20-clients__track img { height: 36px; width: auto; filter: grayscale(1) opacity(.5); transition: filter .3s; }
.di20-clients__track img:hover { filter: none; }
@keyframes di20-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════
   PREMIAÇÕES
══════════════════════════════════════════════════ */
.di20-awards { background: var(--off); padding: 7rem var(--pad); }
.di20-awards__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem; max-width: var(--max); margin: 3.5rem auto 0; }
.di20-award { padding: 2.5rem; background: var(--white); border-left: 3px solid var(--gold); }
.di20-award__year { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.di20-award__title { font-family: var(--font-serif); font-size: 1.3rem; margin: .5rem 0; }
.di20-award__body { font-size: .85rem; }

/* ══════════════════════════════════════════════════
   DEPOIMENTOS
══════════════════════════════════════════════════ */
.di20-testimonials { padding: 7rem var(--pad); background: var(--black); }
.di20-testimonials h2 { color: var(--white); text-align: center; margin-bottom: 3.5rem; }
.di20-tgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem; max-width: var(--max); margin: 0 auto; }
.di20-titem { background: #1A1A1A; padding: 2.5rem; }
.di20-titem__text { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); line-height: 1.6; margin-bottom: 2rem; }
.di20-titem__author { display: flex; align-items: center; gap: 1rem; }
.di20-titem__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.di20-titem__name { font-size: .85rem; font-weight: 700; color: var(--white); }
.di20-titem__role { font-size: .78rem; color: var(--gold); }

/* ══════════════════════════════════════════════════
   BLOG POSTS NA HOME (3 colunas)
══════════════════════════════════════════════════ */
.di20-home-blog { padding: 7rem var(--pad); background: var(--off); }
.di20-home-blog__head { text-align: center; margin-bottom: 3.5rem; }
.di20-home-blog__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .8rem;
}
.di20-home-blog__title { font-family: var(--font-serif); font-size: clamp(1.8rem,3vw,2.6rem); color: var(--black); }
.di20-home-blog__grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem;
  max-width: var(--max); margin: 0 auto;
}
.di20-blog-card { background: var(--white); }
.di20-blog-card__img { overflow: hidden; }
.di20-blog-card__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.di20-blog-card:hover .di20-blog-card__img img { transform: scale(1.04); }
.di20-blog-card__body { padding: 1.8rem; }
.di20-blog-card__cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.di20-blog-card__title {
  display: block; font-family: var(--font-serif); font-size: 1.25rem;
  line-height: 1.3; margin-bottom: .8rem; color: var(--black);
}
.di20-blog-card__title:hover { color: var(--gold); }
.di20-blog-card__date { font-size: .78rem; color: var(--gray); }
.di20-home-blog__cta { text-align: center; margin-top: 3rem; }

/* ══════════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════════ */
.di20-cta { padding: 7rem var(--pad); text-align: center; }
.di20-cta h2 { margin-bottom: 1rem; }
.di20-cta p { margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════
   FOOTER DI20 (gerado via wp_footer hook + page-home.php)
══════════════════════════════════════════════════ */
.di20-footer {
  background: var(--black); color: rgba(255,255,255,.6);
  padding: 5rem var(--pad) 2.5rem;
}
.di20-footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem;
  max-width: var(--max); margin: 0 auto 4rem;
}
/* FIX logo footer: preservar proporção, não forçar height fixo */
.di20-footer__logo { margin-bottom: 1.2rem; }
.di20-footer__logo img,
.di20-footer__logo .attachment-full {
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;       /* FIX distorção: deixar auto, não forçar px */
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.di20-footer__desc { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.di20-footer__col h4 {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1.2rem;
}
.di20-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.di20-footer__col a { font-size: .88rem; transition: color .2s; }
.di20-footer__col a:hover { color: var(--gold); }
.di20-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem;
  max-width: var(--max); margin: 0 auto; font-size: .8rem;
}
.di20-footer__social { display: flex; gap: 1.2rem; }
.di20-footer__social a { font-size: .9rem; font-weight: 700; transition: color .2s; letter-spacing: .05em; }
.di20-footer__social a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   SINGLE PROJETO
══════════════════════════════════════════════════ */
.di20-pitem-full__hero {
  position: relative; height: 90vh; min-height: 500px; overflow: hidden; background: var(--black);
}
.di20-pitem-full__hero--dark { height: 50vh; min-height: 300px; }
.di20-pitem-full__hero img { width: 100%; height: 100%; object-fit: cover; }
.di20-pitem-full__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 4rem var(--pad);
}
.di20-pitem-full__hero-content { color: var(--white); max-width: 800px; }
.di20-pitem-full__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.di20-pitem-full__hero-title {
  font-family: var(--font-serif); font-size: clamp(2.5rem,5vw,4.5rem); color: var(--white);
}
.di20-pitem-full__meta {
  padding: 1.2rem var(--pad); border-bottom: 1px solid var(--gray-lt);
  display: flex; gap: 3rem; align-items: center; flex-wrap: wrap;
}
.di20-pitem-full__meta-item { font-size: .85rem; }
.di20-pitem-full__meta-item strong {
  font-weight: 700; display: block; font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: .2rem;
}
.di20-pitem-full__content {
  max-width: 760px; margin: 5rem auto; padding: 0 var(--pad);
}
.di20-pitem-full__content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--gray); }

/* Galeria fullscreen */
.di20-gallery-full { width: 100%; margin: 3px 0; }
.di20-gallery-full img { width: 100%; height: auto; display: block; }

/* Galeria 2 colunas — sem corte de imagens verticais */
.di20-gallery-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 3px 0;
}
.di20-gallery-two img {
  width: 100%; height: auto; display: block;
  /* sem aspect-ratio forçado — respeita proporção original */
}

/* Projetos relacionados */
.di20-related { padding: 6rem var(--pad); background: var(--off); }
.di20-related h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 3rem; text-align: center; }
.di20-related__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: var(--max); margin: 0 auto; }
.di20-related__item { position: relative; overflow: hidden; display: block; }
.di20-related__item::before { content: ''; display: block; padding-top: 70%; }
.di20-related__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.di20-related__item:hover img { transform: scale(1.04); }
.di20-related__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 60%);
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 1.5rem;
}
.di20-related__item:hover .di20-related__overlay { opacity: 1; }
.di20-related__overlay-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }

/* ══════════════════════════════════════════════════
   BLOG / ARQUIVO WP (usa GP header/footer)
══════════════════════════════════════════════════ */
body.blog .site-main,
body.archive:not(.post-type-archive-projeto) .site-main,
body.single-post .site-main {
  max-width: var(--max); margin: 4rem auto; padding: 0 var(--pad);
}
body.blog article,
body.archive:not(.post-type-archive-projeto) article {
  margin-bottom: 3rem; border-bottom: 1px solid var(--gray-lt); padding-bottom: 3rem;
}
/* O que fazemos / Contato / FAQ — espaço adequado */
body.page:not(.di20-home-template):not(.di20-projetos-template) .entry-content {
  max-width: var(--max); margin: 4rem auto; padding: 0 var(--pad);
}

/* ══════════════════════════════════════════════════
   MEDIA QUERIES
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .di20-services__grid,
  .di20-intro,
  .di20-tgrid,
  .di20-awards__grid,
  .di20-footer__top { grid-template-columns: 1fr; }
  .di20-home-blog__grid { grid-template-columns: repeat(2,1fr); }
  .di20-cases-grid { grid-template-columns: 1fr; }
  .di20-gallery-two { grid-template-columns: 1fr; }
  .di20-related__grid { grid-template-columns: 1fr 1fr; }
  .di20-pgrid, .di20-pgrid--3 { grid-template-columns: 1fr; }
  .di20-burger { display: flex; }
  .di20-nav { display: none; }
}
@media (max-width: 600px) {
  .di20-home-blog__grid { grid-template-columns: 1fr; }
  .di20-related__grid { grid-template-columns: 1fr; }
  .di20-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   FIX LARGURA — igualar ao padrão da home (max 1320px)
   O GP usa 1200px; aqui forçamos 1320px em todos os containers
══════════════════════════════════════════════════════════════ */
.grid-container {
  max-width: 1320px !important;
}
.inside-header,
.inside-header.grid-container {
  max-width: 1320px !important;
  padding-left:  clamp(1.5rem, 5vw, 5rem) !important;
  padding-right: clamp(1.5rem, 5vw, 5rem) !important;
}

/* Remover sidebar — conteúdo full width */
body:not(.di20-home-template) .widget-area.sidebar,
body:not(.di20-home-template) #right-sidebar,
body:not(.di20-home-template) #left-sidebar {
  display: none !important;
}
body:not(.di20-home-template) .content-area {
  width: 100% !important;
}
body:not(.di20-home-template) .site-main {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 4rem clamp(1.5rem, 5vw, 5rem) !important;
}
body:not(.di20-home-template) .inside-article {
  padding: 0 !important;
}

/* Footer Di20 — largura consistente */
.di20-footer__top,
.di20-footer__bottom {
  max-width: 1320px;
  margin-left:  auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════
   FIX MENU GP — mesmo visual do menu da home Di20
   Home: branco sobre hero escuro (custom header)
   GP pages: preto sobre header branco sticky
   → Mesma fonte, tamanho, tracking, uppercase
══════════════════════════════════════════════════════════════ */

/* Header sticky */
body:not(.di20-home-template) .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #E5E3E0 !important;
  box-shadow: none !important;
}

/* Inside-header: flex, alinhado, padding da home */
body:not(.di20-home-template) .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top:    1.25rem !important;
  padding-bottom: 1.25rem !important;
}

/* Logo sem distorção */
body:not(.di20-home-template) .site-header .site-logo img,
body:not(.di20-home-template) .site-header .custom-logo {
  max-height: 44px !important;
  width:  auto !important;
  height: auto !important;
}

/* Esconder site title / description quando há logo */
body:not(.di20-home-template) .site-header .main-title,
body:not(.di20-home-template) .site-header .site-description {
  display: none !important;
}

/* Links do menu GP — idêntico ao di20-nav da home */
body:not(.di20-home-template) .main-navigation .menu > li > a,
body:not(.di20-home-template) .main-navigation .menu > li > .menu-link {
  font-family:     'DM Sans', system-ui, sans-serif !important;
  font-size:       0.8rem !important;
  font-weight:     500 !important;
  letter-spacing:  0.08em !important;
  text-transform:  uppercase !important;
  color:           #111111 !important;
  padding:         0.5rem 1rem !important;
  text-decoration: none !important;
  transition:      color 0.2s !important;
}
body:not(.di20-home-template) .main-navigation .menu > li > a:hover,
body:not(.di20-home-template) .main-navigation .menu > li > .menu-link:hover {
  color: #C8A96E !important;
}

/* Remover background/borda do item ativo que o GP coloca */
body:not(.di20-home-template) .main-navigation .menu > li.current-menu-item > a,
body:not(.di20-home-template) .main-navigation .menu > li.current_page_item > a {
  color:      #C8A96E !important;
  background: transparent !important;
  border:     none !important;
}

/* Dropdown: esconder sub-menu arrows do GP */
body:not(.di20-home-template) .main-navigation .menu > li > a .dropdown-menu-toggle {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   FIX HEADER HEIGHT — igualar altura ao header da home (91px)
   Home: logo 36px, padding 1.25rem top/bottom
   Outras: logo estava 44px → corrigir para 36px
══════════════════════════════════════════════════════════════ */
body:not(.di20-home-template) .inside-header {
  padding-top:    1.25rem !important;
  padding-bottom: 1.25rem !important;
}
body:not(.di20-home-template) .site-header .site-logo img,
body:not(.di20-home-template) .site-header .custom-logo {
  max-height: 36px !important;
  width:  auto !important;
  height: auto !important;
}
