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

:root {
  --navy:        #0D1C30;
  --navy-mid:    #152540;
  --navy-lite:   #1C3050;
  --accent:        #ff4000;
  --accent-bg:     rgba(255,64,0,.10);
  --green:       #2EA44F;
  --green-bg:    rgba(46,164,79,.10);
  --orange:      #D4730F;
  --orange-bg:   rgba(212,115,15,.10);
  --blue-link:   #2563EB;
  --bg:          #F4F5F9;
  --white:       #FFFFFF;
  --tx1:         #111827;
  --tx2:         #4B5563;
  --tx3:         #9CA3AF;
  --border:      #E5E7EB;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 14px rgba(0,0,0,.08);
  --r:           12px;
  --r-sm:        8px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--tx1);
}

/* ═══════════════════════════════
   SIDEBAR
═══════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 210px;
  height: 100vh;
  background: #EEF2FF;
  border-right: 1px solid #C7D2FE;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}

/* Logo */
.sidebar-logo {
  padding: 18px 16px 16px;
  flex-shrink: 0;
}
.sidebar-logo img {
  width: 160px;
  display: block;
  margin: 0 auto;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.logo-text {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Nav */
.sidebar-nav {
  padding: 6px 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  transition: background .14s, color .14s;
  cursor: pointer;
}
.nav-item:hover { background: rgba(99,102,241,.08); color: var(--navy); }
.nav-item.active {
  background: var(--navy);
  color: white;
  font-weight: 600;
}
.ni {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .6;
}
.nav-item.active .ni { opacity: 1; }
.nav-label {
  margin-top: 6px;
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx2);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-top: 1px solid var(--border);
}

/* Footer */
.sidebar-footer {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-promo {
  background: rgba(99,102,241,.08);
  border: 1px solid #C7D2FE;
  border-radius: var(--r-sm);
  padding: 12px;
}
.promo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.promo-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.promo-icon svg { width: 14px; height: 14px; color: white; }
.promo-desc {
  font-size: 12.5px;
  color: var(--tx2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.promo-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.promo-cta:hover { text-decoration: underline; }

.sidebar-help { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.help-label { font-size: 13px; color: var(--tx2); line-height: 1.4; }
.help-icons { display: flex; gap: 10px; }
.help-icons svg { width: 15px; height: 15px; color: var(--tx3); cursor: pointer; transition: color .14s; }
.help-icons svg:hover { color: var(--navy); }
.sidebar-copy { font-size: 9.5px; color: var(--tx3); line-height: 1.4; }

/* ═══════════════════════════════
   SIDEBAR REVISTA WIDGET
═══════════════════════════════ */
.sidebar-revista {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* --- capa (imagem real) --- */
.rev-cover-img {
  width: 88%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  box-shadow: 2px 4px 14px rgba(0,0,0,.22);
}

/* --- capa CSS (fallback) --- */
.rev-cover {
  width: 76px;
  height: 104px;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  box-shadow: -3px 0 0 rgba(0,0,0,.25), 3px 4px 14px rgba(0,0,0,.28);
}
.rev-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to right, rgba(0,0,0,.30), rgba(0,0,0,.06) 70%, transparent);
  z-index: 2;
}
.rev-hdr {
  background: #F06C00;
  padding: 5px 7px 4px 9px;
  flex-shrink: 0;
}
.rev-label {
  display: block;
  font-size: 5.5px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.75);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1px;
}
.rev-brand {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: white;
  font-family: 'Poppins', sans-serif;
  line-height: 1.05;
  letter-spacing: -.2px;
}
.rev-body {
  flex: 1;
  background: linear-gradient(150deg, #0D5A72 0%, #0A3A52 55%, #071D2D 100%);
  padding: 7px 7px 5px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.rev-photo-sim {
  background: linear-gradient(135deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  height: 26px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.rev-photo-sim::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(240,108,0,.3), transparent);
}
.rev-headline {
  font-size: 9px;
  font-weight: 800;
  color: white;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  flex: 1;
}
.rev-bar { display: block; height: 2px; border-radius: 1px; }
.rev-bar-1 { background: #F06C00; width: 65%; }
.rev-bar-2 { background: rgba(255,255,255,.18); width: 45%; }
.rev-foot {
  background: white;
  padding: 4px 7px 4px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.rev-foot-ed   { font-size: 6.5px; font-weight: 700; color: #1B2D4F; font-family: 'Poppins', sans-serif; letter-spacing: .04em; }
.rev-foot-date { font-size: 6.5px; color: #888; font-family: 'Poppins', sans-serif; }

/* --- texto ao lado --- */
.rev-info-name {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.rev-info-desc {
  font-size: 14.5px;
  color: var(--tx2);
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}
.rev-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.rev-cta:hover { text-decoration: underline; }

/* ═══════════════════════════════
   MAIN
═══════════════════════════════ */
.main-content {
  margin-left: 210px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  flex: 1;
  max-width: 400px;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search-wrap svg { width: 14px; height: 14px; color: var(--tx3); flex-shrink: 0; }
.search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--tx1);
  width: 100%;
}
.search-wrap input::placeholder { color: var(--tx3); }
/* Páginas logadas que também carregam cadastro.css (ex: /upgrade/) herdam
   o estilo genérico de input[type="text"] de lá — neutraliza na busca. */
.search-wrap input[type="text"],
.search-wrap input[type="text"]:focus {
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }
.bell-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}
.bell-btn:hover { border-color: var(--accent); }
.bell-btn svg { width: 16px; height: 16px; color: var(--tx2); }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; position: relative; }
.user-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4b91f7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-greet { font-size: 10.5px; color: var(--tx3); }
.user-name  { font-size: 13px; font-weight: 600; color: var(--tx1); }
.user-chevron {
  width: 14px;
  height: 14px;
  color: var(--tx3);
  flex-shrink: 0;
  transition: transform .2s, color .15s;
}
.user-chip:hover .user-chevron { color: var(--tx1); }
.user-chip.open .user-chevron { transform: rotate(180deg); color: var(--tx1); }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
}
.user-chip.open .user-dropdown { display: block; }
.ud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--tx1);
  text-decoration: none;
  transition: background .15s;
}
.ud-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--tx3); }
.ud-item:hover { background: var(--bg); }
.ud-item:hover svg { color: var(--tx1); }
.ud-divider { height: 1px; background: var(--border); margin: 5px 0; }
.ud-upgrade { color: var(--accent); font-weight: 600; }
.ud-upgrade svg,
.ud-upgrade:hover svg { color: var(--accent); }
.ud-upgrade:hover { background: var(--accent-bg); }

/* Page body */
.page-body {
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE  (index.html)
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  background:
    linear-gradient(to right, rgba(13,28,48,.92) 0%, rgba(13,28,48,.75) 55%, rgba(13,28,48,.35) 100%),
    url('../img/hero-inicio.webp') top center / cover no-repeat;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 210px;
  overflow: hidden;
  position: relative;
  margin: 24px 32px 0;
  border-radius: var(--r);
}
.hero-copy { position: relative; z-index: 1; max-width: 460px; }
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: white;
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero-gold { color: var(--accent); }
.hero-lead {
  font-size: 13.5px;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
}


/* ═══════════════════════════════
   SECTION BLOCKS
═══════════════════════════════ */
.bloco {
  padding: 24px 32px;
}
.clube-bloco { background: var(--white); }

.bloco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bloco-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--tx1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bloco-title svg {
  width: 18px;
  height: 18px;
  color: var(--tx2);
  flex-shrink: 0;
  margin-top: 2px;
}
.bloco-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue-link);
  text-decoration: none;
}
.bloco-link:hover { text-decoration: underline; }

/* ═══════════════════════════════
   EVENT CARDS
═══════════════════════════════ */
.events-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.events-panel .bloco-header {
  padding: 16px 20px;
  margin-bottom: 0;
}
.events-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.event-card {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: background .15s;
}
/* linha horizontal segmentada: um trecho por coluna, com recuo lateral */
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
}
/* divisória vertical entre eventos, com recuo no topo e na base */
.event-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--border);
}


.ev-icon-col {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ev-icon-col svg { width: 20px; height: 20px; color: white; }
.ev-icon-online     { background: var(--navy); }
.ev-icon-presencial { background: var(--accent); }
.ev-icon-green      { background: var(--navy); }
.ev-icon-orange     { background: var(--navy); }
.ev-icon-blue       { background: var(--navy); }

.ev-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ev-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  align-self: flex-start;
}
.ev-icon-navy { background: var(--navy); }

/* Badge de tipo — usado no início (dinâmico) e na agenda */
.ev-badge-tipo {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.ev-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx1);
  line-height: 1.35;
  margin: 8px 0 6px;
  flex: 1;
}
.ev-name a {
  color: inherit;
  text-decoration: none;
}
.ev-name a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.ev-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ev-meta-row svg { width: 13px; height: 13px; color: var(--tx3); flex-shrink: 0; }
.ev-when { font-size: 12.5px; color: var(--tx2); font-weight: 500; }
.ev-format {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.fmt-online { background: var(--navy);   color: #fff; }
.fmt-pres   { background: var(--accent); color: #fff; }

/* ═══════════════════════════════
   ARTICLE CARDS
═══════════════════════════════ */
.articles-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.articles-panel .bloco-header {
  padding: 16px 20px;
  margin-bottom: 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px 16px;
}
.art-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.art-thumb {
  width: 110px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  align-self: stretch;
}
.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-t1 { background: linear-gradient(140deg, #1A3052 0%, #2554A8 100%); }
.art-t2 { background: linear-gradient(140deg, #0F3D22 0%, #2E8A4A 100%); }
.art-t3 { background: linear-gradient(140deg, #3A1505 0%, #C05517 100%); }
.art-t4 { background: linear-gradient(140deg, #29135A 0%, #6D28D9 100%); }

.art-body {
  padding: 14px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.art-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 7px;
  align-self: flex-start;
  background: var(--accent-bg);
  color: var(--accent);
}

.art-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx1);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.art-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.art-author { font-size: 12.5px; color: var(--tx2); }
.art-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--tx2);
}
.art-time svg { width: 11px; height: 11px; }
.art-cta {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-link);
  text-decoration: none;
  white-space: nowrap;
}
.art-cta:hover { text-decoration: underline; }

/* ═══════════════════════════════
   CLUBE DE LEITURA
═══════════════════════════════ */
.clube-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.livro-single-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.livro-resenha {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.resenha-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx1);
  margin-bottom: 16px;
}
.resenha-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tx2);
  max-width: 720px;
}
.resenha-content p { margin-bottom: 1em; }

.book-wrap { flex-shrink: 0; position: relative; }
.book-cover-img {
  display: block;
  width: 160px;
  height: 224px;
  border-radius: 4px;
  box-shadow: 6px 6px 24px rgba(0,0,0,.22);
  overflow: hidden;
}
.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover {
  display: flex;
  width: 160px;
  height: 224px;
  border-radius: 4px;
  box-shadow: 6px 6px 24px rgba(0,0,0,.22), inset -3px 0 6px rgba(0,0,0,.12);
  overflow: hidden;
}
.book-spine {
  width: 12px;
  background: linear-gradient(180deg, #9A6800 0%, #7A5000 100%);
  flex-shrink: 0;
}
.book-face {
  flex: 1;
  background: linear-gradient(160deg, #E8B020 0%, #C8900A 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 10px;
  gap: 10px;
}
.book-face-title {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(0,0,0,.72);
  line-height: 1.3;
  text-align: center;
}
.book-face-author {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(0,0,0,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}

.clube-info { flex: 1; }
.clube-title { margin-bottom: 10px; }
.clube-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.clube-book-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--tx1);
  line-height: 1.2;
  margin-bottom: 10px;
}
.clube-book-desc {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.clube-btn {
  display: inline-block;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.clube-btn:hover { background: var(--navy-lite); }

.clube-review {
  flex-shrink: 0;
  width: 152px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.review-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tx3);
}
.review-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4845f, #e11d48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.review-name  { font-size: 13px; font-weight: 600; color: var(--tx1); }
.review-role  { font-size: 11px; color: var(--tx3); line-height: 1.4; }
.review-placeholder { font-size: 13px; color: var(--tx2); line-height: 1.6; text-align: center; }


/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero          { animation: fadeUp .45s ease both; }
.events-row    { animation: fadeUp .45s .08s ease both; }
.articles-grid { animation: fadeUp .45s .14s ease both; }
.clube-inner   { animation: fadeUp .45s .18s ease both; }

/* ═══════════════════════════════
   MENU TOGGLE (hamburger)
═══════════════════════════════ */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tx1);
  flex-shrink: 0;
  border-radius: var(--r-sm);
  transition: background .14s;
}
.menu-toggle:hover { background: var(--bg); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ═══════════════════════════════
   SIDEBAR BACKDROP (mobile)
═══════════════════════════════ */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ════════════════════════════════════════════════════════════
   PÁGINAS INTERNAS — Cabeçalho e filtros (agenda, conteúdos…)
   ════════════════════════════════════════════════════════════ */
.inner-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inner-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tx1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.inner-page-title svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.inner-page-subtitle  { font-size: 16px; font-weight: 500; color: var(--tx2); line-height: 1.4; }

.filter-tabs { display: flex; gap: 6px; align-items: center; }
.filter-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--tx1); }
.filter-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ════════════════════════════════════════════════════════════
   AGENDA — Lista e cards de eventos
   ════════════════════════════════════════════════════════════ */
.agenda-list { display: flex; flex-direction: column; gap: 12px; }

.ag-event {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--r);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
}
.ag-event.color-online     { border-left-color: var(--navy); }
.ag-event.color-presencial { border-left-color: var(--accent); }
.ag-event .ev-icon-col { margin-top: 2px; flex-shrink: 0; }

.ag-body { flex: 1; min-width: 0; }
.ag-top  { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ag-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--tx1);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.ag-badges { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.ag-meta   { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ag-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--tx2); }
.ag-meta-item svg { width: 13px; height: 13px; color: var(--tx3); flex-shrink: 0; }
.ag-desc  { font-size: 14.5px; color: var(--tx2); line-height: 1.6; margin-bottom: 14px; }
.ag-desc p { margin: 0 0 10px; }
.ag-desc p:last-child { margin-bottom: 0; }
.ag-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ag-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.ag-cta:hover { background: var(--navy-mid); }
.ag-cta.secondary { background: transparent; color: var(--tx2); border: 1px solid var(--border); }
.ag-cta.secondary:hover { background: var(--bg); color: var(--tx1); }

.badge-realizado {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--tx1);
  border: 1px solid var(--border);
}
.agenda-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 4px;
  margin-top: 8px;
}
.agenda-section-divider span {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tx2);
  white-space: nowrap;
}
.agenda-section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Página individual do evento ("Veja como foi") ── */
.evento-single { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.evento-single-top { align-items: center; margin-top: 8px; }
.evento-single-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tx1);
  line-height: 1.3;
  flex: 1;
}
.evento-single-meta { margin-top: 4px; }
.evento-single-desc { font-size: 15px; border: none; padding: 0; margin-top: 4px; }
.evento-single-footer { justify-content: flex-start; margin-top: 18px; }

.evento-galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.evento-galeria-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg);
}
.evento-galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.evento-galeria-item:hover img { transform: scale(1.04); }
.evento-galeria-item[hidden] { display: none; }
.evento-galeria-pagination[hidden] { display: none; }

.evento-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.evento-lightbox.open { display: flex; }
.evento-lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; display: block; }
.evento-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════════
   CONTEÚDOS — Magazine hero e grids
   ════════════════════════════════════════════════════════════ */

/* Layout portrait + grade lateral */
.mag-featured {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 16px;
  align-items: start;
}

/* Destaque portrait (proporção 350×450) */
.mag-portrait-hero {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  aspect-ratio: 350 / 450;
  background: var(--navy);
}
.mag-portrait-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.mag-portrait-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-portrait-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.32) 55%, rgba(0,0,0,.04) 100%);
}
.mag-portrait-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 20px; z-index: 1; }
.mag-portrait-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin: 10px 0 12px;
}

/* Badge de tipo (compartilhado hero + cards) */
.mag-hero-type {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
}
.mag-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mag-hero-meta span { font-size: 12px; color: rgba(255,255,255,.8); }
.mag-hero-meta .sep { color: rgba(255,255,255,.35); }
.mag-hero-cta {
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
  margin-left: auto;
}

/* Grade 2×2 lateral — cards verticais */
.mag-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Grade geral "Todos os Conteúdos" */
.content-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ════════════════════════════════════════════════════════════
   CLUBE DE LEITURA — Edições anteriores
   ════════════════════════════════════════════════════════════ */
.clube-inner-header { padding-bottom: 20px; }
.clube-page-tagline { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--tx2); margin-left: 4px; }

.books-prev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.book-prev-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}

.book-prev-cover {
  display: flex;
  width: 100px;
  height: 140px;
  border-radius: 3px;
  box-shadow: 4px 4px 14px rgba(0,0,0,.2), inset -2px 0 4px rgba(0,0,0,.12);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.book-prev-spine { width: 9px; flex-shrink: 0; }
.book-prev-face  { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 8px; gap: 8px; }
.book-prev-face-title  { font-family: 'Poppins', sans-serif; font-size: 8px; font-weight: 800; color: rgba(0,0,0,.72); line-height: 1.3; text-align: center; }
.book-prev-face-author { font-size: 7px; font-weight: 700; color: rgba(0,0,0,.5); letter-spacing: .05em; text-transform: uppercase; text-align: center; }

.book-c-gold  .book-prev-spine { background: linear-gradient(180deg, #9A6800, #7A5000); }
.book-c-gold  .book-prev-face  { background: linear-gradient(160deg, #E8B020, #C8900A); }
.book-c-blue  .book-prev-spine { background: linear-gradient(180deg, #1a3a6e, #122857); }
.book-c-blue  .book-prev-face  { background: linear-gradient(160deg, #2563EB, #1a4fcc); }
.book-c-blue  .book-prev-face-title,
.book-c-blue  .book-prev-face-author { color: rgba(255,255,255,.85); }
.book-c-green .book-prev-spine { background: linear-gradient(180deg, #145228, #0d3a1c); }
.book-c-green .book-prev-face  { background: linear-gradient(160deg, #22c55e, #16a34a); }
.book-c-green .book-prev-face-title,
.book-c-green .book-prev-face-author { color: rgba(0,0,0,.65); }
.book-c-red   .book-prev-spine { background: linear-gradient(180deg, #7f1d1d, #5c1515); }
.book-c-red   .book-prev-face  { background: linear-gradient(160deg, #ef4444, #dc2626); }
.book-c-red   .book-prev-face-title,
.book-c-red   .book-prev-face-author { color: rgba(255,255,255,.9); }

.book-prev-info   { width: 100%; text-align: center; }
.book-prev-period { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.book-prev-title  { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: var(--tx1); line-height: 1.3; margin-bottom: 3px; }
.book-prev-author { font-size: 11.5px; color: var(--tx3); margin-bottom: 12px; }
.book-prev-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
  text-decoration: none;
  width: 100%;
}
.book-prev-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.book-prev-btn--locked, .clube-btn--locked, .ag-cta--locked {
  background: var(--bg) !important;
  color: var(--tx3) !important;
  border-color: var(--border) !important;
  cursor: default;
}
.book-prev-btn--locked:hover, .clube-btn--locked:hover, .ag-cta--locked:hover { background: var(--bg) !important; color: var(--tx3) !important; }

/* ════════════════════════════════════════════════════════════
   E-BOOKS
   ════════════════════════════════════════════════════════════ */
.ebooks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ebook-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
}
.ebook-card:hover { box-shadow: var(--shadow-md); }

.ebook-cover {
  display: flex;
  width: 100px;
  height: 140px;
  border-radius: 3px;
  box-shadow: 4px 4px 14px rgba(0,0,0,.2), inset -2px 0 4px rgba(0,0,0,.12);
  overflow: hidden;
  flex-shrink: 0;
}
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ebook-info   { width: 100%; text-align: center; }
.ebook-title  { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: var(--tx1); line-height: 1.3; margin-bottom: 3px; }
.ebook-author { font-size: 13px; color: var(--tx2); margin-bottom: 8px; }
.ebook-desc   { font-size: 14.5px; color: var(--tx2); line-height: 1.5; margin-bottom: 14px; }
.ebook-btn {
  display: inline-block;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  width: 100%;
}
.ebook-btn:hover { background: var(--navy-mid); }

/* ════════════════════════════════════════════════════════════
   CURSOS
   ════════════════════════════════════════════════════════════ */
.cursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.curso-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.curso-card:hover { box-shadow: var(--shadow-md); }

.curso-cover, .curso-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
}
.curso-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.curso-cover-placeholder {
  background: linear-gradient(140deg, #1A3052 0%, #2554A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.curso-cover-placeholder svg { width: 32px; height: 32px; color: rgba(255,255,255,.5); }

.curso-info  { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.curso-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--tx1); line-height: 1.35; }
.curso-desc  { font-size: 14px; color: var(--tx2); line-height: 1.55; flex: 1; margin-bottom: 4px; }
.curso-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.curso-btn:hover { background: var(--navy-mid); }

/* ════════════════════════════════════════════════════════════
   CONSELHEIROS — Apresentação e grid de cards
   ════════════════════════════════════════════════════════════ */
.conselheiros-apresentacao {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin: 0 32px 16px;
  padding: 24px;
}
.conselheiros-intro { font-size: 14px; color: var(--tx2); line-height: 1.8; margin-bottom: 10px; text-align: justify; hyphens: auto; }
.conselheiros-intro:last-of-type { margin-bottom: 0; }

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

.conselheiro-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.conselheiro-av {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* Foto real (Imagem Destacada) — mesma lógica de .consultor-photo/.embaixador-photo */
.conselheiro-photo {
  width: 140px;
  height: 175px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.conselheiro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.av-navy   { background: linear-gradient(135deg, #0D1C30, #1C3050); }
.av-gold   { background: linear-gradient(135deg, #be8b3d, #9a6800); }
.av-blue   { background: linear-gradient(135deg, #2563EB, #1a4fcc); }
.av-green  { background: linear-gradient(135deg, #16a34a, #0d6b32); }
.av-red    { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.av-teal   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.av-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.conselheiro-name { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--tx1); line-height: 1.25; }
.conselheiro-role { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; margin-top: -6px; }
.conselheiro-org  { font-size: 12px; color: var(--tx3); margin-top: -6px; }
.conselheiro-bio  { font-size: 12.5px; color: var(--tx2); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 12px; text-align: left; width: 100%; }

/* ════════════════════════════════════════════════════════════
   EMBAIXADORES
   ════════════════════════════════════════════════════════════ */
.embaixadores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.embaixador-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.embaixador-photo {
  width: 140px;
  height: 175px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.embaixador-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.embaixador-photo-ph {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.embaixador-photo-ph svg { width: 48px; height: 48px; color: var(--tx3); }

.embaixador-name  { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--tx1); line-height: 1.25; }
.embaixador-local {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: -4px;
}
.embaixador-local svg { width: 13px; height: 13px; flex-shrink: 0; }
.embaixador-bio {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  text-align: left;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   CONSULTORES
   ════════════════════════════════════════════════════════════ */
.consultores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.consultor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.consultor-photo {
  width: 140px;
  height: 175px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.consultor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.consultor-photo-ph {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.consultor-photo-ph svg { width: 48px; height: 48px; color: var(--tx3); }

.consultor-name { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--tx1); line-height: 1.25; }
.consultor-area {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: -4px;
}
.consultor-email {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-link);
  text-decoration: none;
  margin-top: -2px;
  word-break: break-all;
}
.consultor-email:hover { text-decoration: underline; }
.consultor-bio {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  text-align: left;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   ESCOLAS MANTENEDORAS
   ════════════════════════════════════════════════════════════ */
.escolas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.escola-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.escola-logo {
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.escola-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.escola-logo svg { width: 40px; height: 40px; color: var(--tx3); }

.escola-info  { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; flex: 1; }
.escola-name  { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--tx1); line-height: 1.3; }
.escola-local {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.escola-local svg { width: 13px; height: 13px; flex-shrink: 0; }
.escola-btn {
  display: inline-block;
  align-self: center;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  margin-top: auto;
}
.escola-btn:hover { background: var(--navy-mid); }


/* ════════════════════════════════════════════════════════════
   SINGLE LIVRO — Página editorial de resenha
   ════════════════════════════════════════════════════════════ */

/* Hero — fundo navy full-width */
.resenha-hero {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px 32px;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 24px;
}
.resenha-hero-cover { flex-shrink: 0; }
.resenha-hero-cover .book-cover,
.resenha-hero-cover .book-cover-img {
  width: 140px;
  height: 196px;
  border-radius: 6px;
  box-shadow: 6px 10px 24px rgba(0,0,0,.18), inset -3px 0 6px rgba(0,0,0,.12);
}
.resenha-hero-cover .book-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }

.resenha-hero-meta { flex: 1; }
.resenha-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,64,0,.08);
  border: 1px solid rgba(255,64,0,.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.resenha-book-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.resenha-book-autor {
  font-size: 14px;
  color: var(--tx2);
  margin-bottom: 12px;
  font-style: italic;
}
.resenha-hero-desc {
  font-size: 14.5px;
  color: var(--tx2);
  line-height: 1.65;
  max-width: 520px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}
.resenha-periodo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tx3);
  margin-bottom: 10px;
  letter-spacing: .04em;
}

/* Byline + corpo do artigo */

/* Artigo da resenha */
.resenha-artigo {
  background: var(--white);
  border-radius: var(--r);
  padding: 36px 40px 44px;
  margin: 16px 24px 0;
  border-top: 1px solid var(--border);
}
.resenha-artigo-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.resenha-secao-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.resenha-byline {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.6;
}
.resenha-byline-nome {
  font-weight: 700;
  color: var(--tx1);
}
.resenha-byline-cargo { color: var(--tx2); }
.resenha-byline-data  { color: var(--tx3); }
.resenha-byline-leitura { color: var(--tx3); }
.resenha-byline-sep {
  margin: 0 5px;
  color: var(--border);
}

/* Layout artigo: share bar à esquerda + corpo do texto */
.resenha-artigo-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.resenha-share {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: sticky;
  top: 80px;
}
.resenha-share-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 6px;
}
.resenha-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--tx3);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.resenha-share-btn:hover { background: var(--accent); color: #fff; }
.resenha-share-btn svg { width: 16px; height: 16px; }
.resenha-share-btn.copied { background: var(--navy); color: #fff; }

.resenha-body {
  flex: 1;
  font-size: 16px;
  line-height: 1.9;
  color: var(--tx1);
  max-width: 680px;
}

/* Drop cap na primeira letra do primeiro parágrafo */
.resenha-body > p:first-child::first-letter {
  float: left;
  font-family: 'Poppins', sans-serif;
  font-size: 4.2em;
  font-weight: 800;
  line-height: .82;
  color: var(--navy);
  margin: 4px 10px 0 0;
  padding: 0;
}
.resenha-body > p:first-child {
  font-size: 17px;
  color: var(--tx1);
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.resenha-body p { margin-bottom: 1.4em; }
.resenha-body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--tx1);
  margin: 2em 0 .6em;
}
.resenha-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx1);
  margin: 1.6em 0 .5em;
}
.resenha-body blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 16px;
  font-style: italic;
  color: var(--tx1);
  line-height: 1.65;
}
.resenha-body img {
  max-width: 100%;
  border-radius: var(--r);
  margin: 1.4em 0;
  box-shadow: var(--shadow-md);
}
/* End mark — símbolo do logo ao final dos textos editoriais */
.resenha-body > p:last-child::after,
.conselheiros-intro:last-of-type::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='6' height='6' fill='%23ff4000'/%3E%3Crect x='3' y='3' width='6' height='6' fill='%23ff4000'/%3E%3Crect x='3' y='3' width='3' height='3' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 5px;
  vertical-align: middle;
  margin-bottom: 2px;
}

.resenha-pendente {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--r-sm);
  color: var(--tx2);
  font-size: 14px;
}

/* Rodapé — outras edições */
/* ── Leia também (rodapé genérico de conteúdo) ─────────────── */
.leia-tambem {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px 40px 36px;
  margin: 16px 24px 0;
  border-top: 1px solid var(--border);
}
.leia-tambem-header { margin-bottom: 20px; }
.leia-tambem-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--tx1);
}
.leia-tambem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lt-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.lt-card-thumb {
  width: 60px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.lt-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-card-thumb .book-prev-cover,
.lt-card-thumb-placeholder {
  width: 60px;
  height: 84px;
  border-radius: 4px;
}
.lt-card-thumb-placeholder { background: var(--border); }
.lt-card-info { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; flex: 1; }
.lt-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lt-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx1);
  line-height: 1.35;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 32px 32px 0;
}
.footer-top {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
}
.footer-top-left  { display: flex; flex-direction: column; align-items: center; }
.footer-sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}
.footer-sponsor-item {
  flex-shrink: 0;
  width: 128px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}
.footer-sponsor-item img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.footer-links-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12vw;
  border-top: 1px solid var(--border);
  padding: 22px 0 26px;
}
.footer-top-center {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}
.footer-top-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-inst-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-inst-list a {
  font-size: 12.5px;
  color: var(--tx1);
  text-decoration: none;
  transition: color .14s;
}
.footer-inst-list a:hover { color: var(--accent); }
.footer-heading {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx2);
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--tx1);
  transition: background .15s, color .15s, border-color .15s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }
.footer-link-list {
  list-style: none;
  display: flex;
  gap: 20px;
}
.footer-link-list a {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .14s;
}
.footer-link-list a:hover { color: #fff; }
/* ── Apoio: faixa de logos com rolagem infinita ── */
.footer-apoio {
  border-top: 1px solid var(--border);
  padding: 22px 0 26px;
  text-align: center;
}
.footer-apoio .footer-heading { margin-bottom: 16px; }
.footer-apoio-track-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.footer-apoio-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: footerApoioScroll 34s linear infinite;
}
.footer-apoio-track-wrap:hover .footer-apoio-track { animation-play-state: paused; }
.footer-apoio-item {
  flex-shrink: 0;
  width: 128px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}
.footer-apoio-item img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@keyframes footerApoioScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-apoio-track { animation: none; }
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  text-align: center;
}
.footer-copy {
  font-size: 11.5px;
  color: var(--tx2);
}

/* ═══════════════════════════════
   DARK MODE
═══════════════════════════════ */

html.dark {
  color-scheme: dark;
  --bg:        #0D1117;
  --white:     #161D2E;
  --tx1:       #F1F5F9;
  --tx2:       #94A3B8;
  --tx3:       #64748B;
  --border:    #1E293B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,.55);
  --accent-bg: rgba(255,64,0,.16);
  --green-bg:  rgba(46,164,79,.16);
  --orange-bg: rgba(212,115,15,.16);
}

/* Logo dark/light swap */
.sidebar-logo .logo-dark            { display: none; }
html.dark .sidebar-logo .logo-light { display: none; }
html.dark .sidebar-logo .logo-dark  { display: block; }

/* Sidebar */
html.dark .sidebar {
  background: #131B2E;
  border-right-color: rgba(255,255,255,.07);
}
html.dark .nav-item            { color: #94A3B8; }
html.dark .nav-item:hover      { background: rgba(255,255,255,.05); color: #E2E8F0; }
html.dark .nav-item.active     { background: rgba(255,64,0,.14); color: var(--accent); }
html.dark .nav-item.active .ni { opacity: 1; }
html.dark .nav-label          { color: #94A3B8; border-top-color: rgba(255,255,255,.08); }
html.dark .sidebar-promo       { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
html.dark .promo-title         { color: #E2E8F0; }
html.dark .rev-info-name       { color: #E2E8F0; }
html.dark .rev-foot            { background: #1E293B; }
html.dark .rev-foot-ed         { color: #CBD5E1; }

/* Agenda — borda navy fica visível em dark */
html.dark .ag-event.color-online   { border-left-color: #60A5FA; }
html.dark .ev-icon-online          { background: #1E40AF; }
html.dark .fmt-online              { background: #1E40AF; }

/* Botão "Ver resenha" — edições anteriores */
html.dark .book-prev-btn       { color: var(--tx1); }
html.dark .book-prev-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Resenha hero */
html.dark .resenha-hero          { border-bottom-color: var(--border); }
html.dark .resenha-book-title    { color: var(--tx1); }
html.dark .resenha-body > p:first-child::first-letter { color: var(--accent); }

/* Dark mode toggle — troca ícone via CSS */
.dark-mode-btn               { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s; }
.dark-mode-btn:hover         { border-color: var(--accent); }
.dark-mode-btn svg           { width: 16px; height: 16px; color: var(--tx2); }
.dark-mode-btn .icon-sun     { display: none; }
.dark-mode-btn .icon-moon    { display: block; }
html.dark .dark-mode-btn .icon-sun  { display: block; }
html.dark .dark-mode-btn .icon-moon { display: none; }
.lt-card-sub { font-size: 12px; color: var(--tx3); }

/* Paginação — Mais Conteúdos */
.conteudos-pagination { margin-top: 24px; }
.conteudos-pagination .page-numbers { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.conteudos-pagination .page-numbers li a,
.conteudos-pagination .page-numbers li span {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 6px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border);
  color: var(--tx1); background: var(--white); transition: background .15s, color .15s;
}
.conteudos-pagination .page-numbers li a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.conteudos-pagination .page-numbers li span.current { background: var(--accent); color: #fff; border-color: var(--accent); }
html.dark .conteudos-pagination .page-numbers li a,
html.dark .conteudos-pagination .page-numbers li span { background: #1E293B; border-color: #334155; color: #CBD5E1; }
html.dark .conteudos-pagination .page-numbers li a:hover,
html.dark .conteudos-pagination .page-numbers li span.current { background: var(--accent); color: #fff; border-color: var(--accent); }


/* ─────────────────────────────────────────────
   BANNER DE UPGRADE (conteúdo restrito por plano)
───────────────────────────────────────────── */
.al-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-bg);
  border: 1px solid rgba(255,64,0,.25);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 20px 32px 8px;
}
.al-upgrade-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.al-upgrade-icon svg { width: 22px; height: 22px; }
.al-upgrade-text { flex: 1; min-width: 0; }
.al-upgrade-title { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--tx1); margin-bottom: 2px; }
.al-upgrade-desc { font-size: 13px; color: var(--tx2); line-height: 1.5; }
.al-upgrade-cta {
  display: inline-block;
  flex-shrink: 0;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s;
}
.al-upgrade-cta:hover { background: var(--navy-lite); }

/* Card informativo neutro (ex: "Clube volta em 2027") */
.al-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 20px 32px 8px;
  box-shadow: var(--shadow-sm);
}
.al-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.al-info-icon svg { width: 22px; height: 22px; }
.al-info-text { flex: 1; min-width: 0; }
.al-info-title { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--tx1); margin-bottom: 2px; }
.al-info-desc { font-size: 13px; color: var(--tx2); line-height: 1.5; }
.al-info-desc strong { color: var(--tx1); font-weight: 600; }

/* ─────────────────────────────────────────────
   PÁGINA REVISTA — GRADE DE EDIÇÕES
───────────────────────────────────────────── */
.edicoes-section {
  padding: 20px 32px 40px;
}

.edicoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.edicao-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--tx1);
  transition: transform .2s;
}
.edicao-card:hover { transform: translateY(-3px); }

.ed-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  aspect-ratio: 5/7;
  background: var(--bg2);
}
.ed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ed-cover-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: rgba(255,255,255,.25);
}
.ed-cover-ph svg { width: 48px; height: 48px; }

.ed-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.edicao-card--locked { cursor: default; }
.edicao-card--locked:hover { transform: none; }
.al-lock-badge {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13,17,23,.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-lock-badge svg { width: 14px; height: 14px; }

.edicao-card--current .ed-cover { box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.ed-info { display: flex; flex-direction: column; gap: 4px; }
.ed-title { font-size: 13px; font-weight: 600; color: var(--tx1); line-height: 1.3; }
.ed-cta { font-size: 12px; color: var(--accent); font-weight: 600; }
.ed-na  { font-size: 12px; color: var(--tx3); }
.ed-exclusivo { font-size: 12px; font-weight: 600; color: var(--tx2); }

/* ─────────────────────────────────────────────
   VIEWER DE EDIÇÃO (single-edicao.php)
───────────────────────────────────────────── */
.edicao-viewer-wrap { display: flex; flex-direction: column; padding: 28px 32px 32px; min-height: 100%; }

.edicao-viewer-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.viewer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.viewer-back:hover { color: var(--accent); }
.viewer-back svg { width: 16px; height: 16px; flex-shrink: 0; }

.viewer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--tx1);
  line-height: 1.2;
}

.edicao-viewer {
  flex: 1;
  min-height: 600px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.edicao-viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* Banner de upgrade nos singles (conteúdo/livro/edição) — alinha com os
   blocos vizinhos em vez da margem padrão das páginas de listagem */
.resenha-hero + .al-upgrade-banner { margin: 16px 24px 0; }
.edicao-viewer-wrap .al-upgrade-banner { margin: 0; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1040px) {
  .events-row { grid-template-columns: 1fr 1fr; }
  .hero-media { display: none; }
}

@media (max-width: 860px) {
  /* ── Sidebar drawer ── */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    z-index: 200;
    box-shadow: 4px 0 32px rgba(0,0,0,.2);
  }
  body.sidebar-open .sidebar          { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }

  /* ── Layout base ── */
  .main-content  { margin-left: 0; }
  .menu-toggle   { display: flex; }
  .search-wrap   { display: none; }
  .bloco         { padding: 14px 16px; }
  .hero          { margin: 16px 16px 0; padding: 28px 20px; }

  /* ── inner-header empilhado ── */
  .inner-header  { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px 0; }
  .filter-tabs   { width: 100%; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-tab    { white-space: nowrap; flex-shrink: 0; }

  /* ── REGRA GLOBAL MOBILE: 1 item por linha, card 100% da largura ── */
  .events-row,
  .articles-grid,
  .content-grid-3,
  .mag-featured,
  .mag-secondary-grid,
  .books-prev-grid,
  .ebooks-grid,
  .cursos-grid,
  .conselheiros-grid,
  .embaixadores-grid,
  .consultores-grid,
  .escolas-grid { grid-template-columns: 1fr; }
  .evento-galeria-grid { grid-template-columns: repeat(2, 1fr); }

  /* Todos os art-cards: imagem em cima, texto embaixo */
  .art-card          { flex-direction: column; }
  .art-thumb         { width: 100%; height: 180px; flex-shrink: 0; }
  .art-thumb-placeholder { width: 100%; height: 180px; }
  .art-body          { padding: 14px 16px 16px; }

  /* ── Conteúdos ── */
  .mag-portrait-hero { aspect-ratio: 3/2; }

  /* ── Clube ── */
  .clube-inner        { flex-direction: column; }
  .clube-review       { width: 100%; flex-direction: row; justify-content: flex-start; text-align: left; }
  .clube-page-tagline { display: none; }

  /* ── Conselheiros ── */
  .conselheiros-apresentacao { margin: 0 0 16px; }

  /* ── Agenda / Início ── */
  .ag-event                           { padding: 14px 16px; }
  .event-card:not(:last-child)::after { display: none; }

  /* ── Revista ── */
  .edicoes-section    { padding: 14px 16px 28px; }
  .edicao-viewer-wrap { padding: 16px; }
  .al-upgrade-banner   { margin: 16px 16px 8px; flex-wrap: wrap; }
  .al-info-card        { margin: 16px 16px 8px; }
  .al-upgrade-cta      { width: 100%; text-align: center; }
  .resenha-hero + .al-upgrade-banner { margin: 12px 16px 0; }

  /* ── Resenhas ── */
  .resenha-hero        { flex-direction: column; margin: 0 0 0; padding: 20px 16px; }
  .resenha-artigo      { padding: 20px 16px; margin: 12px 0 0; }
  .resenha-artigo-inner { flex-direction: column; }
  .resenha-share       { flex-direction: row; width: auto; position: static; }
  .resenha-share-label { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 640px) {
  /* ── Ajustes finos para phones ── */
  .hero       { padding: 22px 16px; }
  .hero-title { font-size: 30px; }

  /* ── User chip simplificado ── */
  .user-meta    { display: none; }
  .user-chevron { display: none; }

  /* ── Footer empilhado ── */
  .site-footer        { padding: 28px 16px 0; }
  .footer-top         { padding-bottom: 24px; }
  .footer-links-row   { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer-top-left,
  .footer-top-center,
  .footer-top-right   { width: 100%; }
  .footer-inst-list   { align-items: center; }
  .footer-link-list   { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ════════════════════════════════════════════════════════════
   APOIO AO ASSOCIADO — Formulário de contato
   ════════════════════════════════════════════════════════════ */
.apoio-form { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--tx1); line-height: 1.4; }
.field input[type="text"],
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--tx1);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
.field input[type="text"] { height: 44px; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx3); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,64,0,.20); }
.field-msg { font-size: 12.5px; color: #dc2626; line-height: 1.4; }
.field--error input, .field--error textarea { border-color: #dc2626; }

.form-error-banner {
  background: rgba(220,38,38,.08);
  border: 1.5px solid rgba(220,38,38,.30);
  color: #b91c1c;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.form-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-bg);
  border: 1.5px solid rgba(46,164,79,.30);
  color: var(--green);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 32px 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.form-success-banner svg { width: 20px; height: 20px; flex-shrink: 0; }

.apoio-submit { align-self: flex-start; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
