/* ============================================================
   BAROLETO — style.css
   Design System exclusivo. Consulte DESIGNER.md antes de editar.
   ============================================================ */

/* === VARIÁVEIS === */
:root {
  /* Cores — Tema Claro */
  --bg:            #FFF8F2;
  --bg-alt:        #F5EEE6;
  --bg-card:       #FFFFFF;
  --bg-dark-card:  #1C1C1C;
  --text:          #1A1814;
  --text-muted:    #6B6355;
  --text-subtle:   #9B9080;
  --brand:         #C5A059;
  --brand-dark:    #A38043;
  --brand-light:   #DFC594;
  --border:        rgba(26, 24, 20, 0.1);
  --border-strong: rgba(26, 24, 20, 0.2);

  /* Cores — Superfícies escuras (usadas em seções dark independente do tema) */
  --dark-bg:       #0D0D0D;
  --dark-surface:  #161616;
  --dark-card:     #1C1C1C;
  --dark-text:     #F0EBE3;
  --dark-muted:    #9B9080;
  --dark-border:   rgba(255, 255, 255, 0.08);

  /* Tipografia */
  --font-sans:     'Inter', sans-serif;
  --font-serif:    'Playfair Display', serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Espaçamentos */
  --space-xs:      0.25rem;
  --space-sm:      0.5rem;
  --space-md:      1rem;
  --space-lg:      2rem;
  --space-xl:      4rem;
  --space-2xl:     6rem;

  /* Layout */
  --header-h:      80px;
  --max-w:         1280px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;

  /* Transições */
  --ease:          cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:      200ms;
  --dur-mid:       400ms;
  --dur-slow:      600ms;
  --dur-xslow:     1000ms;
}

/* === TEMA ESCURO === */
html.dark {
  --bg:            #0D0D0D;
  --bg-alt:        #141414;
  --bg-card:       #1C1C1C;
  --text:          #F0EBE3;
  --text-muted:    #9B9080;
  --text-subtle:   #6B6355;
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--dur-slow) ease, color var(--dur-slow) ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(197, 160, 89, 0.35); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(197, 160, 89, 0.65); }

/* === TIPOGRAFIA === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.label-caps {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: var(--space-md);
}

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur-slow) ease, border-color var(--dur-slow) ease;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  height: 64px;
}

.header-logo {
  height: 56px;
  width: auto;
}

.header-logo-dark { display: none; }
html.dark .header-logo-light { display: none; }
html.dark .header-logo-dark { display: block; }

/* Navegação desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  transition: color var(--dur-fast);
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

/* Controles do header */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-area-logada {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0D0D0D;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
  box-shadow: 0 1px 4px rgba(197, 160, 89, 0.25);
}

.btn-area-logada:hover { background: var(--brand-dark); }

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-icon:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-icon svg { width: 16px; height: 16px; }

.btn-menu-mobile {
  display: none;
}

/* === MENU MOBILE === */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  transition: background-color var(--dur-slow) ease;
}

.mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: color var(--dur-fast);
}

.mobile-nav-link:first-child { color: var(--brand); font-weight: 700; }
.mobile-nav-link:hover { color: var(--brand); }

.btn-mobile-area-logada {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: var(--space-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0D0D0D;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.btn-mobile-area-logada:hover { background: var(--brand-dark); }

/* === LAYOUT HORIZONTAL DESKTOP === */
.desktop-main {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.horizontal-stage {
  display: flex;
  width: 600vw;
  transition: transform var(--dur-xslow) var(--ease);
}

.desktop-section {
  width: 100vw;
  height: calc(100vh - var(--header-h));
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* === SEÇÃO 0: HERO === */
.section-hero {
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  padding: 10px 24px;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  color: var(--dark-text);
}

.hero-title em {
  font-style: italic;
  color: var(--brand);
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--brand);
  margin: var(--space-lg) auto;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.6);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn-primary {
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0D0D0D;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-primary:hover {
  background: #fff;
  color: #0D0D0D;
}

.btn-outline-light {
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--dark-text);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-outline-light:hover {
  background: #fff;
  color: #0D0D0D;
}

/* === SEÇÃO 1: LEGADO === */
.section-legado {
  background: var(--bg);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-slow) ease;
}

.legado-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  align-items: center;
}

.legado-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.legado-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legado-content p:last-of-type { margin-bottom: var(--space-lg); }

.btn-outline-dark {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--text);
  color: var(--text);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--bg);
}

.legado-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
}

.legado-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 3000ms ease;
}

.legado-img-wrap:hover img { transform: scale(1.04); }

.legado-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  mix-blend-mode: multiply;
}

.legado-img-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

/* === SEÇÃO 2: FOODS === */
.section-foods {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-slow) ease;
}

html.dark .section-foods { background: var(--dark-bg); }

.foods-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.foods-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.foods-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
}

.foods-header-quote {
  max-width: 360px;
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

.foods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 440px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow var(--dur-mid);
}

.food-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

html.dark .food-card {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.food-card--dark {
  background: #1A1814;
  color: var(--dark-text);
  border-color: rgba(255,255,255,0.06);
}

.food-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: var(--space-sm);
}

.food-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.food-card--dark h3 { color: var(--dark-text); }

.food-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.food-card--dark p { color: var(--dark-muted); }

.food-card-img {
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  margin-top: auto;
}

.food-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--dur-slow);
}

.food-card-img img:hover { filter: grayscale(0%); }

.food-card-stat {
  margin-top: auto;
}

.food-card-stat-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-style: italic;
  color: var(--brand);
  line-height: 1;
}

.food-card-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-top: var(--space-sm);
}

/* === SEÇÃO 3: SERVIÇOS === */
.section-servicos {
  background: #111111;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  position: relative;
}

.servicos-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 33%;
  height: 100%;
  opacity: 0.07;
  pointer-events: none;
}

.servicos-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.servicos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.servicos-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.servicos-content > p {
  color: rgba(240,235,227,0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.servico-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.servico-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(197,160,89,0.08);
  border: 1px solid rgba(197,160,89,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand);
}

.servico-info h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
}

.servico-info p {
  font-size: 0.8rem;
  color: rgba(240,235,227,0.5);
  line-height: 1.7;
}

/* === SEÇÃO 4: EDITORIAL === */
.section-editorial {
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
  transition: background-color var(--dur-slow) ease;
}

html.dark .section-editorial { background: #141414; }

.editorial-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.editorial-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.editorial-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 4px;
}

.editorial-filters {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-wrap {
  position: relative;
  width: 220px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast);
}

.search-input:focus { border-color: var(--brand); }

html.dark .search-input { background: var(--dark-card); }

.filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-tab {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--dur-fast);
}

html.dark .filter-tab {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--brand);
  color: #0D0D0D;
  border-color: var(--brand);
  font-weight: 700;
}

.editorial-scroll {
  flex: 1;
  overflow-y: auto;
  height: calc(100vh - 280px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-xs);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--dur-mid), box-shadow var(--dur-mid);
}

.article-card:hover {
  border-color: rgba(197,160,89,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

html.dark .article-card {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.article-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(197,160,89,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.article-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-subtle);
}

.article-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: color var(--dur-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-title { color: var(--brand); }

.article-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: auto;
}

.article-author {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.btn-read:hover {
  color: var(--brand);
  background: rgba(197,160,89,0.08);
}

.btn-read svg { width: 14px; height: 14px; }

.no-articles {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.no-articles.visible { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }

.no-articles svg { width: 48px; height: 48px; color: var(--border-strong); }
.no-articles p { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-subtle); }

/* === SEÇÃO 5: CONTATO === */
.section-contato {
  background: var(--bg-card);
  display: flex;
  align-items: stretch;
  transition: background-color var(--dur-slow) ease;
}

html.dark .section-contato { background: #141414; }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.contato-img-col {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
}

.contato-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: grayscale(25%);
}

.contato-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  mix-blend-mode: multiply;
}

.contato-img-info {
  position: absolute;
  bottom: 64px;
  left: 64px;
  color: #fff;
  max-width: 320px;
}

.contato-img-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.contato-img-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.contato-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contato-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.contato-info-item svg { width: 16px; height: 16px; color: var(--brand); }

.contato-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) calc(var(--space-xl) * 1.5);
  background: var(--bg);
  transition: background-color var(--dur-slow) ease;
}

html.dark .contato-form-col { background: var(--dark-surface); }

.contato-form-col h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.contact-success {
  display: none;
  padding: var(--space-lg);
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.contact-success.visible { display: block; }

.contact-success svg { width: 36px; height: 36px; color: #10b981; margin: 0 auto var(--space-sm); }
.contact-success p { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-success span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-subtle); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-md); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

html.dark .form-input,
html.dark .form-textarea {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0D0D0D;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.btn-submit:hover { background: var(--brand-dark); }

/* === FOOTER === */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  transition: background-color var(--dur-slow) ease;
}

html.dark .site-footer { background: var(--dark-bg); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-logo-dark { display: none; }
html.dark .footer-logo-light { display: none; }
html.dark .footer-logo-dark { display: block; }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color var(--dur-fast);
}

.footer-copy:hover { color: var(--brand); }

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  transition: color var(--dur-fast);
  background: none;
  border: none;
}

.footer-link:hover { color: var(--brand); }

/* === MODAL DE LOGIN === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  color: var(--dark-text);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: translateY(16px);
  transition: transform var(--dur-mid) var(--ease-out);
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-close svg { width: 16px; height: 16px; }

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197,160,89,0.08);
  border: 1px solid rgba(197,160,89,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--brand);
}

.modal-icon svg { width: 20px; height: 20px; }

.modal-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.modal-subtitle {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: var(--space-lg);
}

.modal-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #f87171;
  text-align: center;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.modal-error.visible { display: block; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}

.btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.modal-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-top: var(--space-md);
}

/* === LEITOR DE ARTIGOS === */
.reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid);
}

.reader-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.reader-box {
  width: 100%;
  max-width: 720px;
  height: 85vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color var(--dur-slow) ease;
}

html.dark .reader-box {
  background: var(--dark-bg);
  border-color: var(--dark-border);
}

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

html.dark .reader-header { border-color: var(--dark-border); }

.reader-meta { display: flex; align-items: center; gap: var(--space-md); }

.reader-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
}

.reader-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.reader-controls { display: flex; align-items: center; gap: 8px; }

.reader-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  padding: 0 8px;
  width: auto;
  min-width: 32px;
}

html.dark .reader-btn {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.reader-btn:hover { border-color: var(--brand); color: var(--brand); }
.reader-btn svg { width: 14px; height: 14px; }

.reader-btn.active {
  background: var(--brand);
  color: #0D0D0D;
  border-color: var(--brand);
}

.reader-btn--close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  user-select: text;
}

.reader-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.reader-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.reader-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(197,160,89,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--brand);
}

.reader-author-info {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.reader-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.reader-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-lg) 0 var(--space-sm);
  font-family: var(--font-serif);
}

.reader-content p { margin-bottom: var(--space-md); }

.reader-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.reader-content ul li { margin-bottom: var(--space-sm); }

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.reader-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--text-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

html.dark .reader-tag {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

html.dark .reader-footer { border-color: var(--dark-border); }

.reader-footer-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-subtle);
}

.reader-footer-close {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: none;
  border: none;
  transition: opacity var(--dur-fast);
}

.reader-footer-close:hover { opacity: 0.7; }

/* === LAYOUT MOBILE === */
.mobile-main { display: none; }

.mobile-section {
  padding: var(--space-xl) var(--space-lg);
}

.mobile-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-lg) var(--space-md) 0;
}

.mobile-hero canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.mobile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(197,160,89,0.2);
  padding: 6px 16px;
  border-radius: 9999px;
  display: inline-block;
}

.mobile-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-text);
}

.mobile-hero h1 em { font-style: italic; color: var(--brand); }

.mobile-hero p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.65;
  letter-spacing: 0.1em;
}

.mobile-actions { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); }

.btn-primary-mobile {
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0D0D0D;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.btn-primary-mobile:hover { background: var(--brand-dark); }

.btn-outline-mobile {
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--dark-text);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

html.dark .mobile-card {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.mobile-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.mobile-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mobile-card--dark {
  background: #1A1814;
  border-color: rgba(255,255,255,0.06);
}

.mobile-card--dark h3 { color: var(--brand); }
.mobile-card--dark p { color: var(--dark-muted); }

.mobile-section-dark {
  background: #1A1814;
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: 0 var(--space-md);
}

.mobile-section-dark h2 { color: #fff; font-size: 1.8rem; }
.mobile-section-dark p { color: var(--dark-muted); font-size: 0.8rem; }

.mobile-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(240,235,227,0.8);
  padding: 6px 0;
}

.mobile-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.mobile-section-light {
  padding: var(--space-lg) var(--space-md);
}

.mobile-form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  outline: none;
  margin-bottom: var(--space-md);
  transition: border-color var(--dur-fast);
}

html.dark .mobile-form-input {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.mobile-form-input:focus { border-color: var(--brand); }

/* === ÍCONES SVG INLINE === */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* === RESPONSIVO === */
@media (max-width: 900px) {
  :root { --space-xl: 1.5rem; }

  .desktop-main { display: none; }
  .mobile-main { display: block; padding-bottom: var(--space-2xl); }

  .nav-desktop { display: none; }
  .btn-area-logada { display: none; }
  .btn-menu-mobile { display: flex; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 var(--space-md); }
  .mobile-main { padding: 0 0 var(--space-2xl); }
}

/* === ACESSIBILIDADE === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .horizontal-stage { transition: none !important; }
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
