/*
Theme Name: BemEstareCia Child
Theme URI: https://bemestarecia.com.br
Description: Child theme editorial BemEstareCia — rose gold, Playfair + Lato (Lovable v1).
Author: Inovar Media Group
Template: astra
Version: 1.3.7
Text Domain: astra-bemestarecia-child
*/

.be-feed-col {
  min-width: 0;
  width: 100%;
}

.be-grid-3 > *,
.be-grid-2 > *,
.be-post-grid > * {
  min-width: 0 !important;
  width: 100% !important;
}

.be-card {
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.be-post-title,
.be-post-title a,
p.be-post-title {
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  width: 100% !important;
  min-width: 0 !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
}

:root {
  --be-rose: #b76e79;
  --be-gold: #c9a96e;
  --be-cream: #f5f0e8;
  --be-blush: #f2e8e9;
  --be-bg: #fafaf8;
  --be-ink: #2c2c2c;
  --be-muted: #6b6b6b;
  --be-footer-bg: #2c2c2c;
  --be-border: #e8e0dc;
  --be-card-bg: #fff;
  --be-radius: 8px;
  --be-font-title: "Playfair Display", Georgia, serif;
  --be-font-body: "Lato", system-ui, sans-serif;
  --be-font-ui: "Montserrat", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--be-font-body);
  color: var(--be-ink);
  background: var(--be-bg);
  overflow-x: hidden;
  max-width: 100%;
}

img.wp-post-image,
img.attachment-medium,
img.attachment-medium_large {
  display: block;
  min-height: 180px;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--be-blush) 0%, var(--be-rose) 100%);
}

#masthead,
#colophon,
.ast-primary-header-bar,
.site-header:not(.be-custom-header),
.site-footer:not(.be-custom-footer) {
  display: none !important;
}

.be-title-font {
  font-family: var(--be-font-title);
  font-weight: 600;
  line-height: 1.25;
}

.be-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2.5rem;
  box-sizing: border-box;
}

.be-custom-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 2px solid var(--be-blush);
  box-shadow: 0 1px 0 rgba(183, 110, 121, 0.08);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.be-custom-header.is-shrunk {
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.08);
}

.be-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.be-brand {
  text-decoration: none;
  color: var(--be-ink);
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  gap: 0.35rem;
}

.be-brand__name {
  font-family: var(--be-font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.be-brand__tag {
  font-family: var(--be-font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--be-rose);
}

.be-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.be-nav a {
  font-family: var(--be-font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--be-ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.be-nav a:hover,
.be-nav .current-menu-item > a {
  color: var(--be-rose);
  border-bottom-color: var(--be-rose);
}

.be-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.be-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--be-ink);
  margin: 4px 0;
}

.be-ticker {
  background: linear-gradient(90deg, var(--be-rose), #a85d68);
  color: #fff;
  overflow: hidden;
}

.be-ticker__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
}

.be-ticker__label {
  font-family: var(--be-font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0.95;
}

.be-ticker__track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.be-ticker__marquee {
  display: flex;
  gap: 2rem;
  animation: be-marquee 40s linear infinite;
  white-space: nowrap;
}

.be-ticker__marquee a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
}

.be-ticker__marquee a:hover {
  text-decoration: underline;
}

@keyframes be-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.be-front-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.be-hero {
  position: relative;
  border-radius: var(--be-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  min-height: 260px;
}

.be-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.be-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.85) 0%, rgba(44, 44, 44, 0.15) 55%, transparent 100%);
}

.be-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  color: #fff;
}

.be-hero__cat {
  display: inline-block;
  font-family: var(--be-font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--be-rose);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.be-hero__meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.be-editoriais {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.be-editorial-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.85rem;
  border-radius: var(--be-radius);
  color: #fff !important;
  font-family: var(--be-font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.be-editorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 44, 44, 0.12);
}

.be-editorial-card--saude { background: linear-gradient(135deg, #b76e79, #9a5560); }
.be-editorial-card--beleza { background: linear-gradient(135deg, #c9a96e, #a8894f); }
.be-editorial-card--fitness { background: linear-gradient(135deg, #7d9b8a, #5c7a69); }
.be-editorial-card--nutricao { background: linear-gradient(135deg, #8fbc8f, #6a9a6a); }
.be-editorial-card--mente { background: linear-gradient(135deg, #9b8fb8, #7a6f96); }
.be-editorial-card--skincare { background: linear-gradient(135deg, #d4a5a5, #b76e79); }
.be-editorial-card--dermatologia { background: linear-gradient(135deg, #c4a484, #a88464); }
.be-editorial-card--estetica { background: linear-gradient(135deg, #e8b4b8, #c9888e); }
.be-editorial-card--cosmetologia { background: linear-gradient(135deg, #ddb892, #c49a6c); }
.be-editorial-card--bemestar { background: linear-gradient(135deg, #a8c5da, #7fa3bc); }
.be-editorial-card--relacionamentos { background: linear-gradient(135deg, #e07a8f, #c45a6f); }
.be-editorial-card--receitas { background: linear-gradient(135deg, #90b77d, #6f965c); }

.be-section-kicker {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--be-ink);
  border-left: 4px solid var(--be-rose);
  padding-left: 0.75rem;
}

.be-grid-3,
.be-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.be-card {
  background: var(--be-card-bg);
  border-radius: var(--be-radius);
  overflow: hidden;
  border: 1px solid var(--be-border);
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.04);
}

.be-post-thumb {
  display: block;
  overflow: hidden;
}

.be-post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.be-card:hover .be-post-thumb img {
  transform: scale(1.03);
}

.be-post-thumb--empty {
  display: block;
  min-height: 160px;
  background: linear-gradient(135deg, var(--be-blush), var(--be-cream));
}

.be-card__body {
  padding: 0.85rem 1rem 1rem;
}

.be-card__cat {
  font-family: var(--be-font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--be-rose);
  font-weight: 600;
}

.be-sidebar {
  min-width: 0;
  width: 100%;
}

.be-sidebar-widget {
  background: var(--be-card-bg);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.be-sidebar-widget h3,
.be-rail-heading {
  font-family: var(--be-font-title);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--be-ink);
}

.be-side-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--be-border);
}

.be-side-row:last-child {
  border-bottom: none;
}

.be-side-row__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
}

.be-side-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.be-side-row__thumb--empty {
  background: var(--be-blush);
}

.be-side-row__body {
  flex: 1;
  min-width: 0;
}

.be-side-row__cat {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--be-rose);
}

.be-side-row__title {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.be-side-row__title a {
  color: inherit;
  text-decoration: none;
}

.be-side-row__date {
  font-size: 0.75rem;
  color: var(--be-muted);
}

.be-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.be-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--be-cream);
  color: var(--be-ink);
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid var(--be-border);
}

.be-category-pill:hover {
  border-color: var(--be-rose);
  color: var(--be-rose);
}

.be-category-pill__count {
  color: var(--be-muted);
  font-size: 0.75rem;
}

.be-custom-footer {
  background: var(--be-footer-bg);
  color: #fff;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}

.be-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.be-footer-inner .be-footer-col__title {
  font-family: var(--be-font-title);
  margin: 0 0 0.75rem;
  color: var(--be-gold);
}

.be-footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.be-footer-inner li {
  margin-bottom: 0.45rem;
}

.be-footer-inner a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
}

.be-footer-inner a:hover {
  color: var(--be-gold);
}

.be-footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  opacity: 0.75;
  text-align: center;
}

.be-single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2.5rem;
}

.be-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.be-single-content {
  min-width: 0;
}

.be-breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  color: var(--be-muted);
}

.be-breadcrumb a {
  color: var(--be-rose);
  text-decoration: none;
}

.entry-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.entry-meta {
  color: var(--be-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.entry-content {
  line-height: 1.75;
  font-size: 1.02rem;
}

.entry-content p {
  margin-bottom: 1.1rem;
}

.be-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--be-border);
}

.be-legal-wrap {
  padding: 1rem 0 2rem;
}

.be-legal-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--be-card-bg);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius);
  padding: 1.5rem;
}

.be-legal-breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  color: var(--be-muted);
}

.be-legal-breadcrumb a {
  color: var(--be-rose);
}

@media (min-width: 560px) {
  .be-grid-3,
  .be-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 600px) {
  .be-editoriais {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .be-grid-3,
  .be-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .be-editoriais {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .be-front-split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.75rem;
  }

  .be-single-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  }

  .be-footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .be-shell {
    padding: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 1023px) {
  .be-header-inner {
    flex-wrap: wrap;
  }

  .be-brand__tag {
    display: none;
  }
}

@media (max-width: 640px) {
  .be-ticker__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .be-category-pills {
    flex-direction: column;
  }

  .be-category-pill {
    width: 100%;
    justify-content: space-between;
  }

  .be-editoriais {
    grid-template-columns: 1fr;
  }
}
