:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --panel: #111111;
  --panel-2: #151515;
  --line: #2a2a2a;
  --text: #f2efe9;
  --muted: #c6c0b6;
  --dim: #918a81;
  --red: #d30203;
  --red-soft: rgba(211, 2, 3, .22);
  --max: 1120px;
  --radius: 2px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: var(--text);
  color: #000;
  padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, .94);
  border-bottom: 1px solid rgba(211, 2, 3, .42);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.13; }
.brand-title { font-size: .98rem; letter-spacing: .035em; white-space: nowrap; }
.brand-subtitle { color: var(--red); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.desktop-nav { display: none; }
.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle span { margin: 5px 0; }
.menu-toggle[aria-expanded='true'] span { opacity: 0; }
.menu-toggle[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 73px 0 0;
  padding: 2.4rem 1.4rem 3rem;
  background: rgba(3, 3, 3, .985);
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid #252525; }
.mobile-nav a {
  display: block;
  padding: 1.25rem .2rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 1.08rem;
}
.mobile-nav a[aria-current='page'] { color: var(--red); }
body.nav-open { overflow: hidden; }

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4.2rem 1.2rem 4.8rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(211, 2, 3, .095), transparent 33%),
    linear-gradient(180deg, #030303 0%, #070707 100%);
  border-bottom: 1px solid #1f1f1f;
}
.hero-inner { max-width: 850px; }
.hero-logo { width: clamp(190px, 44vw, 290px); margin: 0 auto 2rem; filter: drop-shadow(0 0 28px rgba(211,2,3,.08)); }
.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  margin: 0 0 .85rem;
}
.hero h1,
.page-hero h1 {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .045em;
  line-height: 1.08;
}
.hero h1 { font-size: clamp(2.05rem, 8vw, 4.25rem); }
.hero-subtitle {
  margin: .75rem 0 0;
  color: var(--red);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 4vw, 1.3rem);
}
.ornament {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 1.45rem auto;
  position: relative;
}
.ornament::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  color: var(--red);
  background: #050505;
  padding: 0 .45rem;
  font-size: .62rem;
}
.hero-tagline {
  color: var(--muted);
  font-style: italic;
  font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  margin: 0 auto 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 1px solid var(--red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #f7dede;
  background: transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red); color: white; transform: translateY(-1px); }

.section {
  padding: 4rem 1.2rem;
  border-bottom: 1px solid #242424;
}
.section:nth-of-type(even) { background: var(--panel); }
.section:nth-of-type(odd) { background: var(--bg-2); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 780px; margin: 0 auto; }
.section-grid { display: grid; gap: 2rem; align-items: start; }
.section-kicker { color: var(--red); letter-spacing: .16em; text-transform: uppercase; font-size: .73rem; margin-bottom: .6rem; }
h2, h3 { font-weight: 400; }
.section h2 {
  font-size: clamp(1.85rem, 7vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.section h2::after, .page-hero h1::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--red);
  margin-top: .8rem;
}
.section p { color: var(--muted); margin: 0 0 1rem; }
.section strong { color: var(--text); font-weight: 400; }
.text-link { color: #f34a4a; text-decoration: none; border-bottom: 1px solid transparent; }
.text-link:hover, .text-link:focus-visible { border-bottom-color: currentColor; }
.quote-line {
  margin: 1.6rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
  color: #ef5959 !important;
  font-style: italic;
  font-size: 1.08rem;
}
.year-mark {
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(211,2,3,.7);
  text-stroke: 1px rgba(211,2,3,.7);
  letter-spacing: -.04em;
  user-select: none;
}

.hero-motto {
  margin: .55rem 0 0;
  color: #d7d0c7;
  font-size: .95rem;
  font-style: italic;
  letter-spacing: .09em;
}
.rite-motto {
  margin: .8rem 0 1.2rem !important;
  color: #ef5959 !important;
  font-size: clamp(1.1rem, 4.5vw, 1.45rem) !important;
  font-style: italic;
  letter-spacing: .06em;
}
.history-note {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-left: 2px solid var(--red);
  background: #090909;
}
.history-note-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
}
.history-note p { margin: 0; color: #d0cac1; }

.page-hero {
  padding: 5rem 1.2rem 3.2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(211,2,3,.08), transparent 36%),
    #070707;
  border-bottom: 1px solid #242424;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 9vw, 4.25rem); max-width: 850px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card {
  padding: 1.5rem;
  background: #0c0c0c;
  border: 1px solid #262626;
  border-top-color: rgba(211,2,3,.55);
}
.card h3 { margin: 0 0 .6rem; color: var(--text); font-size: 1.25rem; }
.card p { margin: 0; font-size: .98rem; }

.timeline { margin-top: 2rem; border-left: 1px solid rgba(211,2,3,.45); padding-left: 1.3rem; }
.timeline-item { position: relative; padding: 0 0 1.6rem .4rem; }
.timeline-item::before { content:''; position:absolute; left:-1.69rem; top:.55rem; width:8px; height:8px; border:1px solid var(--red); background: #0b0b0b; transform:rotate(45deg); }
.timeline-year { color: var(--red); letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; }
.timeline-item h3 { margin: .2rem 0 .45rem; font-size: 1.25rem; }
.timeline-item p { margin: 0; }

.contact-wrap { display: grid; gap: 2.2rem; }
.contact-note { color: var(--muted); }
.form-row { display: grid; gap: 1rem; }
label { display: block; margin-bottom: .35rem; color: var(--text); }
input, textarea, select {
  width: 100%;
  border: 1px solid #343434;
  background: #090909;
  color: var(--text);
  padding: .85rem .9rem;
  border-radius: var(--radius);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { min-height: 180px; resize: vertical; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: .35rem; }
button.btn { cursor: pointer; font-family: Georgia, 'Times New Roman', serif; }
.form-hint { color: var(--dim); font-size: .86rem; }

.notice {
  padding: 1.2rem 1.3rem;
  border: 1px solid #302323;
  background: #0c0808;
  color: var(--muted);
}
.notice strong { color: #f2caca; }

.site-footer {
  background: #030303;
  padding: 2.8rem 1.2rem 2.2rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 72px; height: 72px; }
.footer-name { line-height: 1.25; }
.footer-name strong { display: block; font-weight: 400; letter-spacing: .035em; }
.footer-name span { color: var(--red); font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; }
.footer-links { display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { color: #777; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .header-inner { padding: .75rem 1.6rem; }
  .brand img { width: 56px; height: 56px; }
  .brand-title { font-size: 1.08rem; }
  .hero { min-height: 760px; padding-top: 5.5rem; }
  .section { padding: 5.5rem 1.6rem; }
  .section-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 4rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: .85fr 1.3fr; gap: 4rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .copyright { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .menu-toggle, .mobile-nav { display: none !important; }
  .desktop-nav { display: block; }
  .desktop-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
  .desktop-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .055em; font-size: .83rem; color: var(--muted); padding: .6rem 0; border-bottom: 1px solid transparent; }
  .desktop-nav a:hover, .desktop-nav a:focus-visible, .desktop-nav a[aria-current='page'] { color: var(--text); border-bottom-color: var(--red); }
  .page-hero { padding-top: 7rem; padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.thanks-hero { min-height: 65vh; display: grid; align-items: center; }

/* --- V3: Pranchas e publicação editorial --- */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.latest-pranchas { margin: 1.7rem 0 1.4rem; }
.prancha-list { display: grid; gap: 1rem; margin-top: 2rem; }
.prancha-card {
  padding: 1.45rem;
  background: #0a0a0a;
  border: 1px solid #252525;
  border-left: 2px solid rgba(211, 2, 3, .72);
}
.prancha-card h3 {
  margin: .45rem 0 .55rem;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  line-height: 1.25;
}
.prancha-card h3 a { text-decoration: none; }
.prancha-card h3 a:hover,
.prancha-card h3 a:focus-visible { color: #ef5959; }
.prancha-card p { margin: 0 0 .8rem; color: var(--muted); }
.prancha-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  color: var(--dim);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prancha-meta span + span::before {
  content: '◆';
  color: var(--red);
  font-size: .5rem;
  margin-right: .85rem;
  vertical-align: .15em;
}
.prancha-author { color: #b9b2a9; font-style: italic; font-size: .95rem; }
.prancha-author strong { color: var(--text); font-weight: 400; }
.prancha-empty {
  padding: 1.15rem 1.25rem;
  border-left: 2px solid #3a3a3a;
  background: #090909;
  color: var(--dim) !important;
}

.prancha-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: 1.35rem;
  color: var(--dim);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prancha-hero-meta span + span::before {
  content: '◆';
  color: var(--red);
  font-size: .5rem;
  margin-right: .85rem;
  vertical-align: .15em;
}
.prancha-byline {
  margin-top: .65rem !important;
  color: #d0c9bf !important;
  font-style: italic;
}
.prancha-article { max-width: 790px; margin: 0 auto; }
.prancha-article > p:first-of-type { font-size: 1.08rem; }
.prancha-body { margin-top: 2.2rem; }
.prancha-body p,
.prancha-body li { color: var(--muted); }
.prancha-body p { margin: 0 0 1.25rem; }
.prancha-body h2,
.prancha-body h3,
.prancha-body h4 {
  text-transform: none;
  letter-spacing: .01em;
  line-height: 1.25;
  margin: 2.2rem 0 .8rem;
}
.prancha-body h2 { font-size: clamp(1.65rem, 6vw, 2.15rem); }
.prancha-body h3 { font-size: clamp(1.35rem, 5vw, 1.7rem); }
.prancha-body h4 { font-size: 1.15rem; color: #ddd7ce; }
.prancha-body h2::after { width: 34px; height: 1px; }
.prancha-body ul,
.prancha-body ol { padding-left: 1.3rem; margin: 0 0 1.35rem; }
.prancha-body blockquote {
  margin: 1.8rem 0;
  padding: .25rem 0 .25rem 1.2rem;
  border-left: 2px solid var(--red);
}
.prancha-body blockquote p { color: #d5cec4; font-style: italic; }
.prancha-body a { color: #ef5959; text-underline-offset: .18em; }
.prancha-body code {
  padding: .12em .32em;
  border: 1px solid #303030;
  background: #090909;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}
.prancha-body hr {
  width: 90px;
  height: 1px;
  margin: 2.3rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.prancha-body img,
.prancha-featured {
  width: 100%;
  margin: 1.8rem 0;
  border: 1px solid #252525;
}
.prancha-disclaimer {
  margin-top: 3rem;
  padding: 1.2rem 1.3rem;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #2b2b2b;
  color: var(--dim);
  font-size: .9rem;
}
.prancha-back { margin-top: 2rem; }

@media (min-width: 700px) {
  .prancha-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-pranchas .prancha-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .prancha-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .latest-pranchas .prancha-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- V4: idiomas e traduções --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: .09em;
}
.lang-switch a {
  color: var(--dim);
  text-decoration: none;
  padding: .35rem .1rem;
}
.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current='true'] { color: var(--red); }
.lang-switch span { color: #555; }
.translation-note {
  display: inline-block;
  margin-top: 1rem;
  padding: .45rem .7rem;
  border-left: 1px solid var(--red);
  color: var(--dim);
  font-size: .82rem;
  font-style: italic;
}
@media (max-width: 430px) {
  .brand-title { font-size: .84rem; }
  .brand-subtitle { font-size: .62rem; letter-spacing: .08em; }
  .brand img { width: 42px; height: 42px; }
  .header-inner { gap: .55rem; }
  .header-actions { gap: .35rem; }
  .lang-switch { font-size: .66rem; gap: .26rem; }
  .menu-toggle { width: 40px; height: 42px; }
}
@media (min-width: 1040px) and (max-width: 1179px) {
  .desktop-nav { display: none !important; }
  .menu-toggle { display: grid !important; }
}
@media (min-width: 1180px) {
  .menu-toggle, .mobile-nav { display: none !important; }
  .desktop-nav { display: block; }
  .desktop-nav ul { gap: 1.35rem; }
}
@media (min-width: 1040px) and (max-width: 1179px) {
  .mobile-nav.open { display: block !important; }
}

/* --- V4.1: iPhone / iOS / Safari --- */
a, button, input, textarea, select { -webkit-tap-highlight-color: rgba(211, 2, 3, .22); }
a, button { touch-action: manipulation; }
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.header-inner {
  padding-left: max(1.15rem, calc(env(safe-area-inset-left, 0px) + .65rem));
  padding-right: max(1.15rem, calc(env(safe-area-inset-right, 0px) + .65rem));
}
.hero, .section, .page-hero, .site-footer {
  padding-left: max(1.2rem, calc(env(safe-area-inset-left, 0px) + .75rem));
  padding-right: max(1.2rem, calc(env(safe-area-inset-right, 0px) + .75rem));
}
.site-footer { padding-bottom: max(2.2rem, calc(env(safe-area-inset-bottom, 0px) + 1.4rem)); }
.mobile-nav {
  inset: calc(73px + env(safe-area-inset-top, 0px)) 0 0;
  padding-left: max(1.4rem, calc(env(safe-area-inset-left, 0px) + .8rem));
  padding-right: max(1.4rem, calc(env(safe-area-inset-right, 0px) + .8rem));
  padding-bottom: max(3rem, calc(env(safe-area-inset-bottom, 0px) + 2rem));
}
.lang-switch a {
  min-width: 30px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.policy-updated { color: var(--dim) !important; font-size: .9rem !important; margin-top: 1rem !important; }
@media (max-width: 699px) {
  input, textarea, select { font-size: 16px; }
}
@media (min-width: 700px) {
  .header-inner {
    padding-left: max(1.6rem, calc(env(safe-area-inset-left, 0px) + .8rem));
    padding-right: max(1.6rem, calc(env(safe-area-inset-right, 0px) + .8rem));
  }
  .section {
    padding-left: max(1.6rem, calc(env(safe-area-inset-left, 0px) + .8rem));
    padding-right: max(1.6rem, calc(env(safe-area-inset-right, 0px) + .8rem));
  }
}
