
/*
  OMMI — Casa de Leto
  Site institucional estático — versão 2

  Direção visual:
  - Base azul profundo, não bege.
  - Dourado como cor cerimonial.
  - Superfícies sólidas e linhas institucionais, sem cards flutuantes.
  - Navegação mais clara em páginas internas.
*/

:root {
  --font-serif: "ITC Berkeley Oldstyle", "Berkeley Oldstyle", "Berkeley Old Style", "Calisto MT", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Segoe UI", Arial, sans-serif;
  --azul-0: #050b18;
  --azul-1: #08152b;
  --azul-2: #102447;
  --azul-3: #18345f;
  --azul-4: #214775;
  --dourado: #b9954c;
  --dourado-2: #d9bf7a;
  --dourado-3: #f0ddaa;
  --texto: #f6f1e5;
  --texto-suave: #c7c0ad;
  --texto-escuro: #172033;
  --linha: rgba(217, 191, 122, .34);
  --linha-fraca: rgba(217, 191, 122, .16);
  --vidro: rgba(255, 255, 255, .045);
  --vidro-2: rgba(255, 255, 255, .075);
  --sombra: none;
  --radius: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--texto);
  background:
    radial-gradient(circle at 18% 0%, rgba(185,149,76,.20), transparent 28rem),
    radial-gradient(circle at 100% 20%, rgba(33,71,117,.55), transparent 30rem),
    linear-gradient(180deg, var(--azul-1), var(--azul-0) 45%, var(--azul-1));
  font-family: var(--font-sans);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(90deg, rgba(217,191,122,.22) 1px, transparent 1px),
    linear-gradient(rgba(217,191,122,.18) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

p { margin: 0 0 1rem; }

h1, h2, h3 {
  color: var(--texto);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.45rem; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 24, .88);
  border-bottom: 1px solid var(--linha-fraca);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--texto);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--dourado);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--dourado-3);
  background: rgba(217,191,122,.08);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: .08em;
}

.brand small {
  color: var(--texto-suave);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: .55rem .7rem;
  border-radius: 999px;
  color: var(--texto-suave);
  font-size: .88rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--dourado-3);
  background: rgba(217,191,122,.10);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 38px;
  border: 1px solid var(--linha);
  background: transparent;
  border-radius: 12px;
  padding: .45rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--dourado-3);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-home {
  background:
    linear-gradient(90deg, rgba(5,11,24,.99) 0%, rgba(8,21,43,.94) 42%, rgba(16,36,71,.72) 70%, rgba(5,11,24,.54) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-home::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 50%;
  width: clamp(420px, 58vw, 900px);
  height: clamp(420px, 58vw, 900px);
  transform: translateY(-50%);
  background-image: url("../img/selo-ommi.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .24;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.34));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 6rem 0;
}

.hero-text {
  color: var(--texto-suave);
  max-width: 780px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.eyebrow {
  color: var(--dourado-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

.btn,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .92rem;
}

.btn-primary {
  background: var(--dourado);
  color: var(--azul-0);
}

.btn-primary:hover {
  background: var(--dourado-2);
}

.btn-secondary {
  border-color: rgba(217,191,122,.52);
  color: var(--dourado-3);
}

.btn-secondary:hover {
  background: rgba(217,191,122,.10);
}

.btn-secondary.light {
  border-color: rgba(217,191,122,.7);
}

.back-link {
  min-height: 40px;
  margin-bottom: 1.3rem;
  border-color: var(--linha);
  color: var(--dourado-3);
  background: rgba(217,191,122,.06);
}

.back-link::before {
  content: "←";
  margin-right: .55rem;
}

.back-link:hover {
  background: rgba(217,191,122,.12);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(16,36,71,.58), rgba(5,11,24,.22));
  border-top: 1px solid var(--linha-fraca);
  border-bottom: 1px solid var(--linha-fraca);
}

.section-deep {
  background:
    radial-gradient(circle at top right, rgba(217,191,122,.16), transparent 28rem),
    linear-gradient(135deg, var(--azul-2), var(--azul-0));
  color: var(--texto-suave);
  border-top: 1px solid var(--linha-fraca);
  border-bottom: 1px solid var(--linha-fraca);
}

.two-columns {
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.lead,
.section-heading p,
.card p,
.order-card p,
.doc-card p,
.news-card p,
.timeline-mini small,
.page-hero p:last-child {
  color: var(--texto-suave);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.institutional-index {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.index-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--linha-fraca);
}

.index-line:last-child {
  border-bottom: 0;
}

.index-line:hover {
  background: linear-gradient(90deg, rgba(217,191,122,.08), transparent);
}

.index-line.disabled {
  opacity: .62;
}

.index-number {
  display: none;
}

.index-text {
  display: grid;
  gap: .25rem;
}

.index-text strong {
  color: var(--texto);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
}

.index-text small {
  color: var(--texto-suave);
  font-size: .98rem;
  line-height: 1.45;
}

.index-arrow {
  color: var(--dourado-3);
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  white-space: nowrap;
}

.content-back {
  margin-bottom: 1.5rem;
}

/* Nova listagem institucional: substitui a ideia de cards flutuantes */
.order-list,
.card-grid,
.card-grid.large {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.order-row,
.card,
.order-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 132px;
  padding: 1.35rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linha-fraca);
  border-radius: 0;
  box-shadow: none;
}

.order-row:last-child,
.card:last-child,
.order-card:last-child {
  border-bottom: 0;
}

.card-symbol,
.order-symbol {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217,191,122,.09);
  border: 1px solid var(--linha);
  color: var(--dourado-3);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.card h3,
.order-card h2 {
  margin-bottom: .4rem;
}

.card a,
.order-card a,
.doc-card a,
.news-card a {
  color: var(--dourado-3);
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  width: fit-content;
}

.order-card a,
.card a {
  white-space: nowrap;
}

.memory-teaser {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.timeline-mini {
  position: relative;
  border-left: 1px solid var(--dourado);
  padding-left: 1.4rem;
}

.timeline-mini div {
  position: relative;
  padding: 0 0 1.5rem;
}

.timeline-mini span {
  position: absolute;
  left: -1.78rem;
  top: .15rem;
  width: .75rem;
  height: .75rem;
  background: var(--dourado);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(217,191,122,.13);
}

.timeline-mini strong,
.timeline-mini small {
  display: block;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at top right, rgba(217,191,122,.16), transparent 28rem),
    linear-gradient(180deg, var(--azul-2), var(--azul-1));
  border-bottom: 1px solid var(--linha-fraca);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(280px, 42vw, 560px);
  height: clamp(280px, 42vw, 560px);
  transform: translate(-50%, -50%);
  background-image: url("../img/selo-ommi.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .15;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,.28));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-page {
  max-width: 820px;
}

.text-page h2 {
  margin-top: 2.5rem;
}

.text-page h2:first-child {
  margin-top: 0;
}

.text-page p,
.text-page li {
  color: var(--texto-suave);
}

.text-page ul {
  padding-left: 1.2rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.principle-grid div,
.history-note,
.order-aside,
.doc-card,
.news-card,
.contact-card,
.contact-form,
.memory-list article,
.listing-item,
.person-card {
  border: 1px solid var(--linha-fraca);
  background: var(--vidro);
  border-radius: var(--radius);
}

.principle-grid div {
  padding: 1.2rem;
}

.history-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.history-note {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 1.4rem;
}

.history-note p {
  color: var(--texto-suave);
}

.timeline {
  border-left: 1px solid var(--dourado);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 3.5rem;
}

.timeline-item p {
  color: var(--texto-suave);
}

.timeline-dot {
  position: absolute;
  left: -2.43rem;
  top: .35rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--dourado);
  box-shadow: 0 0 0 8px rgba(217,191,122,.14);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.person-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
}

.person-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: 220px 1fr;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--linha-fraca);
  background: var(--azul-2);
}

.person-card p {
  color: var(--texto-suave);
}

.listing {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.listing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--linha-fraca);
}

.listing-item:last-child {
  border-bottom: 0;
}

.listing-item.muted {
  opacity: .76;
}

.listing-item p {
  color: var(--texto-suave);
}

.doc-grid,
.news-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.news-grid,
.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.doc-card,
.news-card,
.contact-card,
.contact-form {
  padding: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-placeholder {
  min-height: 230px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--texto-suave);
  border: 1px solid var(--linha-fraca);
  background:
    linear-gradient(135deg, rgba(33,71,117,.32), rgba(185,149,76,.12)),
    rgba(255,255,255,.03);
}

.contact-form {
  display: grid;
  gap: .9rem;
}

label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  color: var(--dourado-3);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--linha-fraca);
  border-radius: 14px;
  padding: .85rem;
  background: rgba(255,255,255,.08);
  font: inherit;
  color: var(--texto);
}

.form-note {
  font-size: .88rem;
  color: var(--texto-suave);
}

.memory-list {
  display: grid;
  gap: 1rem;
}

.memory-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.2rem;
  padding: 1.5rem;
}

.memory-list p {
  color: var(--texto-suave);
}

.memory-list span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217,191,122,.09);
  border: 1px solid var(--linha);
  color: var(--dourado-3);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.order-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.order-aside {
  align-self: start;
  position: sticky;
  top: 110px;
  padding: 1.4rem;
}

.order-aside p {
  color: var(--texto-suave);
}

.site-footer {
  background: var(--azul-0);
  color: var(--texto-suave);
  padding-top: 3.5rem;
  border-top: 1px solid var(--linha-fraca);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  color: var(--texto);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin-bottom: .8rem;
}

.site-footer a {
  color: var(--dourado-2);
}

.footer-bottom {
  border-top: 1px solid var(--linha-fraca);
  margin-top: 2.5rem;
  padding: 1.1rem;
  text-align: center;
  font-size: .88rem;
}

code {
  background: rgba(217,191,122,.10);
  padding: .12rem .35rem;
  border-radius: 6px;
  color: var(--dourado-3);
}



/* Estrutura institucional */

.structure-page {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.structure-intro,
.structure-teaser {
  display: grid;
  grid-template-columns: .95fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.structure-teaser.clean {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.structure-intro p,
.structure-teaser p {
  color: var(--texto-suave);
}

.structure-diagram {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.structure-top {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 1.6rem;
  border: 1px solid var(--linha);
  background: linear-gradient(180deg, rgba(217,191,122,.11), rgba(255,255,255,.035));
}

.structure-top span {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--dourado-2);
  letter-spacing: .18em;
  font-weight: 800;
}

.structure-top strong,
.structure-top small {
  display: block;
}

.structure-top strong {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
}

.structure-top small {
  margin-top: .4rem;
  color: var(--texto-suave);
}

.structure-line {
  width: 1px;
  height: 60px;
  margin: 0 auto;
  background: var(--dourado);
}

.structure-orders {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.structure-orders::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -30px;
  height: 1px;
  background: var(--dourado);
}

.structure-orders a {
  position: relative;
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--linha-fraca);
  background: rgba(255,255,255,.035);
}

.structure-orders a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 1px;
  height: 30px;
  background: var(--dourado);
}

.structure-orders a:hover {
  border-color: var(--linha);
  background: rgba(217,191,122,.07);
}

.structure-orders span {
  color: var(--dourado-2);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.structure-orders strong,
.structure-orders small {
  display: block;
}

.structure-orders strong {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.structure-orders small {
  margin-top: .55rem;
  color: var(--texto-suave);
}

.structure-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.structure-notes article {
  padding: 1.4rem;
  border-right: 1px solid var(--linha-fraca);
}

.structure-notes article:last-child {
  border-right: 0;
}

.structure-notes p {
  color: var(--texto-suave);
}

.mini-structure {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  padding: 1.4rem 0;
}

.mini-top {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--linha-fraca);
  color: var(--dourado-3);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.mini-branches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-top: 1.2rem;
}

.mini-branches span {
  min-height: 72px;
  display: grid;
  place-items: center;
  text-align: center;
  border-left: 1px solid var(--linha-fraca);
  border-right: 1px solid var(--linha-fraca);
  color: var(--texto-suave);
  font-size: .9rem;
}

/* Administração: composição hierárquica com fotos redondas */

.administration-layout {
  display: grid;
  gap: 2.5rem;
}

.admin-hierarchy {
  max-width: 1040px;
  margin: 0 auto;
}

.chief-officer {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 1.3rem;
}

.chief-officer img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--linha);
  background: rgba(255,255,255,.04);
  margin-bottom: 1.1rem;
}

.chief-officer h2,
.officer-profile h2 {
  margin-bottom: .65rem;
}

.chief-officer p,
.officer-profile p {
  color: var(--texto-suave);
}

.admin-branch-line {
  position: relative;
  width: 1px;
  height: 54px;
  margin: 0 auto 2rem;
  background: var(--dourado);
}

.admin-branch-line::after {
  content: "";
  position: absolute;
  left: -380px;
  right: -380px;
  bottom: 0;
  height: 1px;
  background: var(--dourado);
}

.officer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.3rem, 3vw, 2.5rem);
}

.officer-profile {
  position: relative;
  text-align: center;
  padding-top: 2rem;
}

.officer-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.4rem;
  background: var(--dourado);
}

.officer-profile img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--linha);
  background: rgba(255,255,255,.04);
  margin-bottom: 1rem;
}

.officer-profile .eyebrow {
  margin-bottom: .55rem;
}



/* Tratados de Amizade */

.treaty-page {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.treaty-intro {
  display: grid;
  grid-template-columns: .95fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-bottom: 1px solid var(--linha);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.treaty-intro p,
.treaty-section .section-heading p,
.treaty-line p {
  color: var(--texto-suave);
}

.treaty-section {
  display: grid;
  gap: 1.4rem;
}

.treaty-list {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.treaty-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--linha-fraca);
}

.treaty-line:last-child {
  border-bottom: 0;
}

.treaty-line h3 {
  margin-bottom: .4rem;
}

.treaty-line a {
  color: var(--dourado-3);
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  white-space: nowrap;
}

.treaty-line.empty {
  opacity: .65;
}

/* Conselheiros das Ordens Internas */

.internal-councilors {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--linha);
}

.councilor-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.councilor-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linha-fraca);
}

.councilor-line:nth-last-child(1),
.councilor-line:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.councilor-line img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--linha);
  background: rgba(255,255,255,.04);
}

.councilor-line h3 {
  margin-bottom: .35rem;
  font-size: 1.25rem;
}

.councilor-line p {
  color: var(--texto-suave);
  margin-bottom: 0;
}



/* Tratados abertos na mesma página */

.treaty-detail {
  justify-self: end;
  min-width: 150px;
}

.treaty-detail summary {
  cursor: pointer;
  color: var(--dourado-3);
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  width: fit-content;
  list-style: none;
}

.treaty-detail summary::-webkit-details-marker {
  display: none;
}

.treaty-detail summary::after {
  content: " +";
  color: var(--dourado-2);
}

.treaty-detail[open] summary::after {
  content: " −";
}

.treaty-inline {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--linha-fraca);
  background: rgba(255,255,255,.035);
}

.treaty-inline p {
  color: var(--texto-suave);
}

.treaty-inline iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--linha-fraca);
  background: rgba(255,255,255,.06);
  margin-top: 1rem;
}

/* Links nos dados gerais */

.order-aside a {
  color: var(--dourado-3);
  border-bottom: 1px solid var(--dourado);
  word-break: break-word;
}



/* Princípios em lista institucional, sem cards */

.principle-list {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.principle-line {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linha-fraca);
}

.principle-line:last-child {
  border-bottom: 0;
}

.principle-line strong {
  color: var(--dourado-3);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
}

.principle-line p {
  margin: 0;
  color: var(--texto-suave);
}

/* Controle explícito de abrir/fechar tratados */

.treaty-detail summary {
  min-width: 145px;
}

.treaty-detail .summary-close {
  display: none;
}

.treaty-detail[open] .summary-open {
  display: none;
}

.treaty-detail[open] .summary-close {
  display: inline;
}

.treaty-detail summary::after {
  content: "";
}

.treaty-detail[open] summary::after {
  content: "";
}

.treaty-help {
  color: var(--dourado-2) !important;
  font-size: .92rem;
  border-left: 1px solid var(--dourado);
  padding-left: .85rem;
  margin-bottom: 1rem;
}



/* Selos institucionais */

.brand-seal {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
}


.page-seal {
  display: none;
}

.entity-seal-wrap {
  text-align: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--linha-fraca);
}

.entity-seal {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: block;
  margin: 0 auto .7rem;
  border-radius: 50%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.22));
}

.entity-seal-wrap small {
  display: block;
  color: var(--texto-suave);
  font-size: .78rem;
  line-height: 1.35;
}

.order-aside h2 {
  margin-top: 0;
}

.brand-mark {
  display: none;
}



/* Alternância explícita da Home */

.home-band-a {
  background:
    radial-gradient(circle at 88% 0%, rgba(217,191,122,.10), transparent 24rem),
    linear-gradient(180deg, rgba(16,36,71,.72), rgba(8,21,43,.48)) !important;
  border-top: 1px solid var(--linha-fraca);
  border-bottom: 1px solid var(--linha-fraca);
}

.home-band-b {
  background:
    radial-gradient(circle at 12% 0%, rgba(217,191,122,.08), transparent 22rem),
    linear-gradient(180deg, rgba(5,11,24,.96), rgba(8,21,43,.78)) !important;
  border-top: 1px solid var(--linha-fraca);
  border-bottom: 1px solid var(--linha-fraca);
}

.home-admin-band {
  background:
    radial-gradient(circle at top right, rgba(217,191,122,.14), transparent 28rem),
    linear-gradient(135deg, rgba(8,21,43,.96), rgba(5,11,24,.98)) !important;
}

.home-band-a + .home-band-b,
.home-band-b + .home-band-a {
  border-top: 0;
}

.home-band-a p,
.home-band-b p {
  color: var(--texto-suave);
}

.home-band-a .structure-teaser.clean,
.home-band-b .structure-teaser.clean {
  border-top-color: var(--linha);
  border-bottom-color: var(--linha);
}



/* Navegação de Lojas e Corpos por Ordem Interna */

.internal-order-browser {
  display: grid;
  gap: 1.6rem;
  padding-top: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--linha);
}

.browser-heading {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(1.2rem, 3vw, 2rem);
}

.browser-heading p {
  color: var(--texto-suave);
}

.order-browser-list {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.order-browser-item {
  border-bottom: 1px solid var(--linha-fraca);
  background:
    linear-gradient(90deg, rgba(217,191,122,.055), transparent 24rem);
}

.order-browser-item:last-child {
  border-bottom: 0;
}

.order-browser-item summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.45rem 0;
  list-style: none;
}

.order-browser-item summary::-webkit-details-marker {
  display: none;
}

.order-browser-title {
  display: grid;
  gap: .3rem;
}

.order-browser-title strong {
  color: var(--texto);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.12;
}

.order-browser-title small {
  color: var(--texto-suave);
}

.order-browser-action {
  color: var(--dourado-3);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--dourado);
}

.order-browser-action::after {
  content: " +";
  color: var(--dourado-2);
}

.order-browser-item[open] .order-browser-action {
  font-size: 0;
  color: var(--dourado-2);
}

.order-browser-item[open] .order-browser-action::before {
  content: "Fechar";
  font-size: .92rem;
}

.order-browser-item[open] .order-browser-action::after {
  content: " −";
  font-size: .92rem;
}

.order-browser-content {
  display: grid;
  gap: 1.4rem;
  padding: 0 0 1.8rem clamp(1rem, 3vw, 2.2rem);
  border-left: 1px solid rgba(217,191,122,.28);
}

.corps-type {
  display: grid;
  gap: .75rem;
}

.corps-type-heading {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding-top: .25rem;
}

.corps-type-heading h3 {
  margin: 0;
  color: var(--dourado-2);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
}

.corps-type-heading p {
  margin: 0;
  color: var(--texto-suave);
}

.order-browser-content .institutional-index.compact {
  border-top: 1px solid var(--linha-fraca);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--linha);
    border-radius: 18px;
    background: rgba(5,11,24,.97);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: .85rem 1rem;
  }

  .doc-grid,
  .news-grid,
  .gallery-grid,
  .contact-grid,
  .admin-grid,
  .two-columns,
  .memory-teaser,
  .history-layout,
  .order-layout,
  .footer-grid,
  .structure-intro,
  .structure-teaser,
  .structure-orders,
  .structure-notes,
  .regent-panel,
  .admin-register-head,
  .admin-register-row,
  .treaty-intro,
  .treaty-line,
  .councilor-list {
    grid-template-columns: 1fr;
  }

  .councilor-line:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--linha-fraca);
  }

  .structure-orders::before,
  .structure-orders a::before,
  .structure-line {
    display: none;
  }

  .structure-orders a {
    min-height: auto;
  }

  .structure-notes article {
    border-right: 0;
    border-bottom: 1px solid var(--linha-fraca);
  }

  .structure-notes article:last-child {
    border-bottom: 0;
  }

  .mini-branches {
    grid-template-columns: 1fr;
  }

  .regent-photo img {
    max-width: 220px;
  }

  .history-note,
  .order-aside {
    position: static;
  }

  .person-card.featured,
  .person-card {
    grid-template-columns: 110px 1fr;
  }

  .order-row,
  .card,
  .order-card {
    grid-template-columns: 70px 1fr;
  }

  .order-row a,
  .card a,
  .order-card a {
    grid-column: 2;
  }

  .index-line,
  .treaty-line,
  .principle-line {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .treaty-detail {
    justify-self: start;
  }

  .treaty-inline iframe {
    min-height: 420px;
  }

  .index-arrow {
    grid-column: auto;
    width: fit-content;
  }

  .officer-row {
    grid-template-columns: 1fr;
  }

  .admin-branch-line,
  .admin-branch-line::after,
  .officer-profile::before {
    display: none;
  }

  .officer-profile {
    padding-top: 0;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--linha-fraca);
  }

  .officer-profile:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {

  .hero-home::after {
    right: -28vw;
    width: 520px;
    height: 520px;
    opacity: .16;
  }

  .page-hero::after {
    width: 360px;
    height: 360px;
    opacity: .12;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-home {
    background:
      linear-gradient(180deg, rgba(5,11,24,.98), rgba(8,21,43,.88)),
      url("../img/hero.jpg");
  }

  .person-card.featured,
  .person-card,
  .listing-item,
  .memory-list article,
  .order-row,
  .card,
  .order-card {
    grid-template-columns: 1fr;
  }

  .listing-item {
    align-items: flex-start;
  }

  .person-card img {
    max-width: 180px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .order-row a,
  .card a,
  .order-card a {
    grid-column: auto;
  }

  .index-line {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .index-arrow {
    grid-column: auto;
  }

  .chief-officer img {
    width: 145px;
    height: 145px;
  }

  .entity-seal {
    width: 112px;
    height: 112px;
  }

  .officer-profile img {
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 980px) {
  .browser-heading,
  .order-browser-item summary,
  .corps-type-heading { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .order-browser-item summary { gap: .55rem; }
  .order-browser-action { width: fit-content; }
  .order-browser-content { padding-left: 1rem; }
}

.corps-above-section {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 88% 0%, rgba(217,191,122,.10), transparent 24rem),
    linear-gradient(180deg, rgba(16,36,71,.72), rgba(8,21,43,.48));
  border-top: 2px solid var(--linha);
}

.index-contact {
  justify-self: end;
  align-self: center;
  color: var(--dourado-3);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--dourado);
  white-space: nowrap;
}

.index-contact:hover {
  color: var(--dourado-2);
}

.index-contact {
  justify-self: end;
  align-self: center;
  color: var(--dourado-3);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--dourado);
  white-space: nowrap;
}

.index-contact:hover {
  color: var(--dourado-2);
}

.corps-type-details {
  border-top: 1px solid var(--linha-fraca);
}

.corps-type-details:first-child {
  border-top: 0;
}

.corps-type-details summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
  list-style: none;
}

.corps-type-details summary::-webkit-details-marker {
  display: none;
}

.corps-type-details summary span {
  display: grid;
  gap: .25rem;
}

.corps-type-details summary strong {
  color: var(--dourado-2);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
}

.corps-type-details summary small {
  color: var(--texto-suave);
}

.corps-type-details summary em {
  color: var(--dourado-3);
  font-style: normal;
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  white-space: nowrap;
}

.corps-type-details summary em::after {
  content: " +";
  color: var(--dourado-2);
}

.corps-type-details[open] summary em {
  font-size: 0;
}

.corps-type-details[open] summary em::before {
  content: "Fechar lista";
  font-size: .92rem;
}

.corps-type-details[open] summary em::after {
  content: " −";
  font-size: .92rem;
}

.corps-type-details .institutional-index.compact {
  margin-bottom: 1.15rem;
}

@media (max-width: 720px) {
  .corps-type-details summary {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .corps-type-details summary em {
    width: fit-content;
  }
}

.corps-counter {
  display: inline-block;
  width: fit-content;
  margin-top: .35rem;
  padding: .18rem .55rem;
  border: 1px solid rgba(217,191,122,.45);
  border-radius: 999px;
  color: var(--dourado-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(217,191,122,.08);
}

/* Estrutura — organograma mobile corrigido */

.mobile-scroll-hint {
  display: none;
}

.structure-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .page-hero,
  .section,
  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .structure-page,
  .structure-intro,
  .structure-diagram,
  .structure-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .structure-intro {
    grid-template-columns: 1fr !important;
  }

  .structure-intro h2,
  .structure-intro p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .mobile-scroll-hint {
    display: block;
    color: var(--texto-suave);
    font-size: .9rem;
    text-align: center;
    margin: 0 0 1rem;
  }

  .structure-diagram {
    overflow: hidden !important;
  }

  .structure-top {
    width: min(86vw, 360px);
    max-width: 86vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 3;
  }

  .structure-scroll {
    display: block;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .structure-line {
    width: 86vw;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .structure-orders {
    display: grid !important;
    grid-template-columns: repeat(5, 240px) !important;
    gap: 1rem;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    align-items: stretch;
  }

  .structure-orders a {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    box-sizing: border-box;
  }
}

/* Correção do menu mobile */

@media (max-width: 720px) {
  .site-header {
    overflow: visible !important;
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .header-inner {
    overflow: visible !important;
    position: relative;
    z-index: 10000;
  }

  .menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .main-nav {
    z-index: 10001;
  }
}

.treaty-image-viewer {
  display: grid;
  gap: 1.4rem;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--linha);
  background:
    radial-gradient(circle at top right, rgba(217,191,122,.08), transparent 18rem),
    rgba(5,11,24,.55);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.treaty-page-image {
  margin: 0 auto;
  width: 100%;
  max-width: 920px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0,0,0,.34);
}

.treaty-page-image img {
  display: block;
  width: 100%;
  height: auto;
}

.treaty-download {
  margin-top: 1rem;
}

.treaty-download a {
  color: var(--dourado-3);
  font-weight: 700;
  border-bottom: 1px solid var(--dourado);
  text-decoration: none;
}

.treaty-download a:hover {
  color: var(--dourado-2);
}

@media (max-width: 720px) {
  .treaty-image-viewer {
    max-height: 72vh;
    padding: .75rem;
  }

  .treaty-page-image {
    max-width: 100%;
  }
}

.treaty-inline {
  max-width: 760px;
}

.treaty-summary {
  max-width: 68ch;
  line-height: 1.7;
}

.treaty-image-viewer {
  max-width: 620px;
  max-height: 76vh;
  overflow-y: auto;
  margin-top: 1.4rem;
  padding: .9rem;
  border: 1px solid var(--linha);
  background:
    radial-gradient(circle at top right, rgba(217,191,122,.08), transparent 18rem),
    rgba(5,11,24,.55);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.treaty-page-image {
  margin: 0 auto 1.2rem;
  width: 100%;
  max-width: 560px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

.treaty-page-image:last-child {
  margin-bottom: 0;
}

.treaty-page-image img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 720px) {
  .treaty-inline {
    max-width: 100%;
  }

  .treaty-summary {
    max-width: 100%;
  }

  .treaty-image-viewer {
    max-width: 100%;
    max-height: 72vh;
    padding: .65rem;
  }

  .treaty-page-image {
    max-width: 100%;
  }
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--linha);
  background: rgba(217,191,122,.08);
  color: var(--texto);
}

.form-status.success {
  border-color: rgba(217,191,122,.55);
}

.form-status.error {
  border-color: rgba(190,75,75,.7);
}

/* Selo retangular da Casa de Leto */

#casa-de-leto-seal {
  display: block !important;
  width: 100% !important;
  max-width: 290px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;

  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

  overflow: visible !important;
  clip-path: none !important;
}

#casa-de-leto-seal .entity-seal {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center !important;

  border: 0 !important;
  border-radius: 0 !important;

  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

#casa-de-leto-seal::before,
#casa-de-leto-seal::after {
  display: none !important;
  content: none !important;
}

/* Seletor de idiomas */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.language-switcher a {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  padding: .25rem .45rem;
  border: 1px solid var(--linha-fraca);
  border-radius: 999px;
  color: var(--texto-suave);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.language-switcher a:hover,
.language-switcher a.active {
  color: var(--dourado-3);
  border-color: rgba(217,191,122,.55);
  background: rgba(217,191,122,.10);
}
@media (max-width: 980px) {
  .header-inner { gap: .65rem; }
  .language-switcher { margin-left: auto; }
}
@media (max-width: 420px) {
  .language-switcher { gap: .15rem; }
  .language-switcher a {
    min-width: 30px;
    min-height: 28px;
    padding: .2rem .35rem;
    font-size: .67rem;
  }
}

/* =========================================================
   Cabeçalho multilíngue — ajuste de largura e quebra de linha
   ========================================================= */

/* O cabeçalho pode usar mais largura que o conteúdo das páginas. */
.header-inner.container {
  width: min(1400px, calc(100% - 2rem));
  gap: .75rem;
}

.brand {
  flex: 0 0 auto;
}

/* Reorganiza: marca | menu | idiomas | botão móvel */
.main-nav {
  order: 2;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 0;
  margin-left: auto;
  white-space: nowrap;
}

.main-nav a {
  padding: .52rem .58rem;
  font-size: .9rem;
  white-space: nowrap;
}

.language-switcher {
  order: 3;
  flex: 0 0 auto;
  gap: 0;
  margin-left: .25rem;
  padding-left: .35rem;
  border-left: 1px solid var(--linha-fraca);
  white-space: nowrap;
}

.language-switcher a {
  min-width: 0;
  min-height: 0;
  padding: .32rem .36rem;
  border: 0;
  border-radius: 6px;
  font-size: .68rem;
}

.menu-toggle {
  order: 4;
  flex: 0 0 auto;
}

/* Antes que o menu fique apertado, ele passa para o modo hambúrguer. */
@media (max-width: 1360px) {
  .header-inner.container {
    gap: .55rem;
  }

  .language-switcher {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 1rem;
    border: 1px solid var(--linha);
    border-radius: 18px;
    background: rgba(5, 11, 24, .97);
    white-space: normal;
    z-index: 10001;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: .85rem 1rem;
    font-size: .94rem;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .header-inner.container {
    width: min(100% - 1rem, 1400px);
  }

  .language-switcher a {
    padding: .28rem .3rem;
    font-size: .64rem;
  }
}
