/* =========================================================
   RESET & BASE
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
}


/* =========================================================
   LAYOUT
========================================================= */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* =========================================================
   HEADER (PÁGINAS INTERNAS)
========================================================= */
.site-header {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* Esconde header na Home */
.home .site-header {
  display: none;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('../img/hero-bg.jpg') center / cover no-repeat;
  width: 100%;
  padding: 120px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 60px;
}

.hero-logo {
  width: 76px;
  height: auto;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  color: #fefefe;
}

.hero-content p {
  max-width: 520px;
  color: #f5f5f5;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-image img {
  width: 100%;
  max-width: 399px;
  border-radius: 16px;
  justify-self: end;
}

/* =========================================================
   BOTÕES
========================================================= */
.btn {
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: #1e90ff;
  color: #fff;
}

.btn.outline {
  border: 1px solid #1e90ff;
  color: #fff;
}

.btn.small {
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 999px;
  border: 1px solid #1e90ff;
  color: #1e90ff;
  background: transparent;
}

.btn.small:hover {
  background: rgba(30,144,255,0.1);
}

.post-text p + .btn.small {
  display: inline-block;
  margin-top: 16px;
}

/* =========================================================
   POSTS (HOME)
========================================================= */
.post-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  margin: 100px 0;
  position: relative;
  padding-bottom: 60px;
  margin-bottom: 60px;
}

.post-block::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 100vw;          /* ESTOURA O CONTAINER */
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #8a8a8a,
    transparent
);

  transform: translateX(-50%);
}

.post-block:last-child::after {
  display: none;
}

.post-block.reverse {
  grid-template-columns: 1.4fr 1fr;
}

.post-block.reverse .post-image {
  order: -1;
}

.post-image {
  display: flex;
  justify-content: center;
}

.post-block:not(.reverse) .post-image {
  justify-content: flex-end;
}

.post-block.reverse .post-image {
  justify-content: flex-start;
}

.post-image img {
  width: 100%;
  max-width: 580px;
  height: 240px;          /* CONTROLA A ALTURA AQUI */
  object-fit: cover;
  border-radius: 20px;
}

/* =========================================================
   FOOTER
========================================================= */

/* =========================================================
   FOOTER MINIMAL
========================================================= */
.site-footer-minimal {
  background: #000;
  padding: 48px 0;
  color: #f5f5f5;
}

.footer-minimal-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-minimal-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 620px;
}

.footer-minimal-brand img {
  width: 56px;
  flex-shrink: 0;
}

.footer-minimal-brand p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #ccc;
}

/* Ações */
.footer-minimal-actions {
  display: flex;
  gap: 16px;
}

/* =========================================================
   SINGLE POST – HERO
========================================================= */
.post-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

.post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
}

.post-hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 720px;
}

/* =========================================================
   SINGLE POST – CONTENT
========================================================= */
.post-content {
  padding: 50px 0 10px
}

.post-content-inner {
  max-width: 720px;
}

.post-content-inner p {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.post-content-inner h2,
.post-content-inner h3 {
  margin: 48px 0 16px;
}

.post-content-inner ul {
  margin: 24px 0;
  padding-left: 20px;
}

.post-content-inner li {
  margin-bottom: 12px;
}

.post-content-inner img {
  width: 100%;
  border-radius: 16px;
  margin: 40px 0;
}

/* =========================================================
   RELATED POSTS
========================================================= */
.related-posts {
  padding: 10px 0 100px;
  background: #fff;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.related-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.related-header p {
  color: #666;
  max-width: 420px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eee;
  border-radius: 8px;
  margin-bottom: 16px;
}

.related-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
}

.read-more {
  font-size: 0.875rem;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* =========================================================
   POST META (SHARE + TAGS)
========================================================= */
.post-meta {
  border-bottom: 1px solid #f5f5f5;
  padding: 0px 0 32px;
}

.post-meta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.post-meta-label {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-share-links {
  display: flex;
  gap: 16px;
}

.post-share-links a {
  font-weight: 600;
  font-size: 1.575rem;
  color: #111;
  text-decoration: none;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 0.75rem;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  color: #111;
}

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

/* ======================
   TABLET / MOBILE LARGE
====================== */
@media (max-width: 900px) {

  /* HERO */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image img {
    justify-self: center;
    margin-top: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* RELATED POSTS */
  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {

  /* POSTS HOME */
  .post-image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* SINGLE POST */
  .post-hero {
    height: 50vh;
  }

  .post-content {
    padding: 64px 0;
  }

  /* SHARE + TAGS */
  .post-meta-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* FOOTER */
  .footer-minimal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-minimal-brand {
    flex-direction: column;
  }

  .footer-minimal-actions {
    justify-content: center;
  }
}
