@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&display=swap');

/*
  Fontes do site:
  - Títulos: Comfortaa
  - Texto: Comfortaa
  - Botões: Comfortaa em negrito
*/
:root {
  --font-title: 'Comfortaa', Arial, sans-serif;
  --font-text: 'Comfortaa', Arial, sans-serif;
  --font-button: 'Comfortaa', Arial, sans-serif;
  --bg: #0d0b09;
  --bg-2: #17110e;
  --paper: #fff1d6;
  --paper-dark: #d7c59b;
  --ink: #23150f;
  --text: #fff8ea;
  --muted: #eadfca;
  --gold: #b38a3a;
  --gold-2: #6f4d1f;
  --danger: #8c1f1f;
  --green: #245b35;
  --red: #982323;
  --purple: #5a286e;
  --brown: #6b4528;
  --elite: #81611d;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(179, 138, 58, 0.15), transparent 30rem),
    radial-gradient(circle at top right, rgba(140, 31, 31, 0.16), transparent 28rem),
    linear-gradient(180deg, #0d0b09 0%, #17110e 45%, #0d0b09 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.btn,
button,
.chip,
.menu-toggle,
.nav-links a {
  font-family: var(--font-button);
}

.btn,
button,
.chip {
  font-weight: 700;
}


img {
  max-width: 100%;
  display: block;
}

.site-header {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(rgba(13, 11, 9, 0.62), rgba(13, 11, 9, 0.9)),
    url('assets/hero-background.png') center center / cover no-repeat;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
}

.brand img {
  width: auto;
  height: 72px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px var(--shadow));
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 0;
  border: 1px solid rgba(215, 197, 155, 0.18);
  border-radius: 999px;
  background: rgba(13, 11, 9, 0.5);
  backdrop-filter: blur(12px);
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.2s ease;
  font-family: var(--font-text);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
  background: rgba(179, 138, 58, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215, 197, 155, 0.28);
  border-radius: 12px;
  background: rgba(13, 11, 9, 0.68);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 48px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.brand span,
.accordion-item span,
.timeline h3,
.faction-card h3,
.class-grid h3,
.mission-box h3 {
  font-family: var(--font-title);
}


h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: var(--paper);
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(215, 197, 155, 0.25);
  font-family: var(--font-text);
  font-weight: 700;
  transition: 0.2s ease;
}

.btn.primary {
  color: #140d09;
  background: linear-gradient(135deg, var(--paper), var(--gold));
  box-shadow: 0 16px 36px rgba(179, 138, 58, 0.24);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(179, 138, 58, 0.28);
}

.btn.ghost {
  color: var(--paper);
  background: rgba(13, 11, 9, 0.45);
}

.btn.ghost:hover {
  background: rgba(179, 138, 58, 0.16);
}

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(215, 197, 155, 0.25);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(241, 231, 208, 0.12), rgba(179, 138, 58, 0.08)),
    rgba(13, 11, 9, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero-card img {
  width: min(100%, 320px);
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.hero-card h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 2rem;
  color: var(--paper);
}

.hero-card p {
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

blockquote {
  margin: 26px 0 0;
  padding: 18px;
  color: var(--paper);
  border-left: 4px solid var(--gold);
  background: rgba(0, 0, 0, 0.2);
  font-style: italic;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section.dark {
  width: 100%;
  padding: 96px max(16px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at left, rgba(140, 31, 31, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.12));
  border-top: 1px solid rgba(215, 197, 155, 0.1);
  border-bottom: 1px solid rgba(215, 197, 155, 0.1);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--paper);
  font-size: clamp(2.25rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.section-text p,
.section-heading p,
.campaign-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

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

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding: 24px;
  border-radius: 20px;
  background: rgba(241, 231, 208, 0.08);
  border: 1px solid rgba(215, 197, 155, 0.14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #130d09;
  background: var(--gold);
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline h3,
.faction-card h3,
.class-grid h3,
.mission-box h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 1.38rem;
}

.timeline p,
.faction-card p,
.class-grid p,
.mission-box li {
  color: var(--muted);
  line-height: 1.68;
}

.faction-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.chip {
  border: 1px solid rgba(215, 197, 155, 0.18);
  color: var(--muted);
  background: rgba(13, 11, 9, 0.52);
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 700;
  transition: 0.2s ease;
}

.chip.active,
.chip:hover {
  color: var(--paper);
  background: rgba(179, 138, 58, 0.22);
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.faction-card {
  min-height: 330px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  background: rgba(13, 11, 9, 0.58);
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}

.faction-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

.faction-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 231, 208, 0.28);
}

.faction-card.hidden {
  display: none;
}

.symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 2.2rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bullies .symbol { background: var(--brown); }
.nerds .symbol { background: var(--green); }
.athletes .symbol { background: var(--red); }
.punks .symbol { background: var(--purple); }
.elites .symbol { background: var(--elite); }

.territory {
  color: var(--paper-dark) !important;
  font-family: var(--font-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: stretch;
}

.map-panel,
.accordion,
.campaign-card,
.class-grid article {
  border: 1px solid rgba(215, 197, 155, 0.14);
  background: rgba(241, 231, 208, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.map-panel {
  padding: 14px;
  min-height: auto;
}

.campus-map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  background: #111;
}

.accordion {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.accordion-item {
  width: 100%;
  border: 1px solid rgba(215, 197, 155, 0.12);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  background: rgba(13, 11, 9, 0.36);
  transition: 0.2s ease;
}

.accordion-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.accordion-item small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.accordion-item.active,
.accordion-item:hover {
  background: rgba(179, 138, 58, 0.15);
  border-color: rgba(215, 197, 155, 0.28);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.class-grid article {
  padding: 20px;
}

.campaign {
  display: grid;
  place-items: center;
}

.campaign-card {
  width: min(840px, 100%);
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(241, 231, 208, 0.13), rgba(179, 138, 58, 0.06)),
    rgba(13, 11, 9, 0.56);
}

.mission-box {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.mission-box ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
  border-top: 1px solid rgba(215, 197, 155, 0.12);
  color: var(--muted);
  font-family: var(--font-text);
}

.footer p {
  margin: 0 0 8px;
}

.footer-small {
  font-size: 0.86rem;
  opacity: 0.76;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .faction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-layout,
  .split,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .location-layout {
    gap: 18px;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 84px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 14px;
    background: rgba(13, 11, 9, 0.94);
    z-index: 40;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .section,
  .section.dark {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .faction-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

}


/* Ajustes pedidos: títulos 20px e textos 11px */
body,
p,
li,
small,
.nav-links a,
.eyebrow,
.territory,
.footer,
.footer-small,
.accordion-item small,
.mission-box li {
  font-size: 11px !important;
  line-height: 1.65 !important;
}

h1,
h2,
h3,
.brand span,
.accordion-item span,
.timeline h3,
.faction-card h3,
.class-grid h3,
.mission-box h3,
.hero-card h2,
.section h2,
.campaign-card h2 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
}

.btn,
.chip,
.menu-toggle {
  font-family: var(--font-text);
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Organização mobile */
@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    background-position: center top;
  }

  .navbar {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    height: 48px;
    max-width: 82px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    inset: 64px 10px auto;
    padding: 10px;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    width: min(100% - 20px, 1180px);
    min-height: auto;
    gap: 18px;
    padding: 26px 0 54px;
  }

  .hero-content,
  .hero-card,
  .campaign-card,
  .timeline article,
  .faction-card,
  .accordion,
  .class-grid article,
  .map-panel {
    border-radius: 16px;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-card img {
    width: min(100%, 220px);
  }

  .section,
  .section.dark {
    width: 100%;
    padding: 46px 10px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .split,
  .location-layout,
  .hero {
    grid-template-columns: 1fr !important;
  }

  .timeline,
  .class-grid,
  .faction-grid {
    gap: 10px;
  }

  .faction-controls {
    gap: 7px;
    margin-bottom: 16px;
  }

  .chip {
    padding: 8px 10px;
  }

  .faction-card {
    min-height: auto;
    padding: 16px;
  }

  .symbol {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .location-layout {
    gap: 14px;
  }

  .map-panel {
    padding: 8px;
    overflow: hidden;
  }

  .campus-map-image {
    border-radius: 12px;
  }

  .accordion {
    padding: 8px;
    gap: 8px;
  }

  .accordion-item {
    padding: 13px;
    border-radius: 13px;
  }

  .class-grid {
    padding: 8px;
  }

  .campaign-card {
    padding: 20px;
  }

  .mission-box {
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
  }

  .footer {
    width: min(100% - 20px, 1180px);
    padding: 24px 0 34px;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 120px;
  }

  .hero-card img {
    width: min(100%, 190px);
  }

  .campus-map-image {
    width: 100%;
  }
}


/* Tema azul-marinho e atualização das facções */
:root {
  --bg: #061225;
  --bg-2: #0b1c37;
  --ink: #08101e;
  --text: #f4f7ff;
  --muted: #dce6f8;
  --paper: #f7efd9;
  --paper-dark: #d7c59b;
  --shadow: rgba(0, 0, 0, 0.5);
}

body {
  background:
    radial-gradient(circle at top left, rgba(38, 89, 168, 0.22), transparent 30rem),
    radial-gradient(circle at top right, rgba(14, 40, 89, 0.35), transparent 28rem),
    linear-gradient(180deg, #061225 0%, #0b1c37 46%, #061225 100%) !important;
}

.site-header {
  background:
    linear-gradient(rgba(6, 18, 37, 0.58), rgba(6, 18, 37, 0.9)),
    url('assets/hero-background.png') center center / cover no-repeat !important;
}

.site-header::after {
  background: linear-gradient(transparent, var(--bg));
}

.nav-links,
.menu-toggle,
.hero-card,
.timeline article,
.faction-card,
.accordion,
.accordion-item,
.map-panel,
.campaign-card,
.class-grid article {
  background-color: rgba(8, 19, 40, 0.62) !important;
}

.nav-links {
  border-color: rgba(215, 197, 155, 0.22);
}

.section.dark {
  background:
    radial-gradient(circle at left, rgba(33, 77, 150, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.14));
}

.btn.ghost {
  background: rgba(6, 18, 37, 0.46);
}

.btn.ghost:hover {
  background: rgba(179, 138, 58, 0.18);
}

.symbol {
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(52, 92, 172, 0.32), rgba(6, 18, 37, 0.82)) !important;
  border: 1px solid rgba(215, 197, 155, 0.18);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bullies .symbol,
.nerds .symbol,
.athletes .symbol,
.punks .symbol,
.elites .symbol {
  background: radial-gradient(circle at top, rgba(52, 92, 172, 0.32), rgba(6, 18, 37, 0.82)) !important;
}

.accordion {
  max-height: 1200px;
}

.accordion-item {
  display: block;
}

.accordion-item small {
  font-size: 11px !important;
  line-height: 1.6 !important;
}

@media (max-width: 760px) {
  .symbol {
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: 18px;
  }

  .accordion {
    max-height: none;
  }
}


/* Barras de separação entre seções */
main > section + section {
  border-top: 2px solid rgba(215, 197, 155, 0.28);
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: min(520px, calc(100% - 40px));
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(215, 197, 155, 0.9), transparent);
}

/* Página do corpo docente */
.page-header {
  position: relative;
  min-height: 46vh;
  background:
    linear-gradient(rgba(6, 18, 37, 0.72), rgba(6, 18, 37, 0.95)),
    url('assets/hero-background.png') center center / cover no-repeat;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(transparent, var(--bg));
}

.page-hero {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 92px;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 14px;
}

.page-hero p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
}

.teacher-section {
  padding-top: 72px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.teacher-card {
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.teacher-photo {
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(215, 197, 155, 0.35);
  color: var(--muted);
  background:
    radial-gradient(circle at center, rgba(52, 92, 172, 0.22), transparent 70%),
    rgba(6, 18, 37, 0.75);
  font-size: 11px;
  font-weight: 700;
}

.teacher-card h3 {
  margin: 0 0 8px;
  color: var(--paper);
}

.teacher-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rpg-features article {
  background-color: rgba(8, 19, 40, 0.62) !important;
}

@media (max-width: 1040px) {
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main > section + section::before {
    width: calc(100% - 28px);
  }

  .page-header {
    min-height: auto;
  }

  .page-hero {
    width: min(100% - 20px, 960px);
    padding: 34px 0 58px;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .teacher-card {
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .teacher-photo {
    height: 180px;
    border-radius: 14px;
  }
}


/* Menu da página inicial e botão da campanha no WhatsApp */
.home-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.home-menu .btn {
  min-height: 54px;
  text-align: center;
}

.menu-btn {
  background: rgba(8, 19, 40, 0.66) !important;
  border-color: rgba(215, 197, 155, 0.28);
}

.menu-btn:hover {
  background: rgba(179, 138, 58, 0.2) !important;
}

.btn.whatsapp {
  gap: 9px;
  color: #f8fff9;
  border-color: rgba(129, 255, 158, 0.42);
  background: linear-gradient(135deg, #128C7E, #25D366) !important;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.18);
}

.btn.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(37, 211, 102, 0.26);
}

.whatsapp-symbol {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.whatsapp-symbol svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

@media (max-width: 1040px) {
  .home-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-menu {
    grid-template-columns: 1fr;
  }

  .home-menu .btn {
    min-height: 44px;
  }
}


/* Ajuste geral: fontes menores e mobile mais organizado */
body,
p,
li,
small,
.nav-links a,
.eyebrow,
.territory,
.footer,
.footer-small,
.accordion-item small,
.mission-box li,
.teacher-card p,
.family-card p,
.family-placeholder p {
  font-size: 10px !important;
  line-height: 1.58 !important;
}

h1,
h2,
h3,
.brand span,
.accordion-item span,
.timeline h3,
.faction-card h3,
.class-grid h3,
.mission-box h3,
.hero-card h2,
.section h2,
.campaign-card h2,
.teacher-card h3,
.family-card h3,
.family-photos h3,
.family-placeholder h3 {
  font-size: 18px !important;
  line-height: 1.22 !important;
}

.btn,
.chip,
.menu-toggle {
  font-size: 10px !important;
}

/* Página Famílias Principais */
.family-section {
  padding-top: 72px;
}

.family-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.family-text p {
  color: var(--muted);
  margin: 0 0 12px;
}

.family-photos {
  padding: 14px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: 20px;
  background: rgba(6, 18, 37, 0.56);
}

.family-photos h3 {
  margin: 0 0 14px;
  color: var(--paper);
  text-align: center;
}

.family-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.family-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(215, 197, 155, 0.16);
  background: rgba(0, 0, 0, 0.25);
}

.family-photo-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

.family-placeholder {
  margin-top: 22px;
  padding: 22px;
  border: 1px dashed rgba(215, 197, 155, 0.28);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.44);
}

.family-placeholder h3 {
  margin: 0 0 8px;
  color: var(--paper);
}

.photo-placeholder {
  height: 150px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  border: 1px dashed rgba(215, 197, 155, 0.35);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(6, 18, 37, 0.55);
  font-size: 10px;
}

@media (max-width: 1040px) {
  .family-card {
    grid-template-columns: 1fr;
  }

  .family-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-photo-grid img {
    height: 280px;
  }
}

@media (max-width: 760px) {
  body,
  p,
  li,
  small,
  .nav-links a,
  .eyebrow,
  .territory,
  .footer,
  .footer-small,
  .accordion-item small,
  .mission-box li,
  .teacher-card p,
  .family-card p,
  .family-placeholder p {
    font-size: 9.5px !important;
    line-height: 1.5 !important;
  }

  h1,
  h2,
  h3,
  .brand span,
  .accordion-item span,
  .timeline h3,
  .faction-card h3,
  .class-grid h3,
  .mission-box h3,
  .hero-card h2,
  .section h2,
  .campaign-card h2,
  .teacher-card h3,
  .family-card h3,
  .family-photos h3,
  .family-placeholder h3 {
    font-size: 16px !important;
    line-height: 1.18 !important;
  }

  .navbar {
    gap: 8px;
  }

  .nav-links {
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .home-menu {
    gap: 7px;
  }

  .family-section {
    padding-top: 44px;
  }

  .family-card {
    padding: 14px;
    gap: 14px;
    border-radius: 16px;
  }

  .family-photos {
    padding: 10px;
    border-radius: 15px;
  }

  .family-photo-grid {
    grid-template-columns: 1fr;
  }

  .family-photo-grid img {
    height: 260px;
  }

  .family-placeholder {
    padding: 14px;
    border-radius: 16px;
  }

  .photo-placeholder {
    height: 120px;
  }
}

@media (max-width: 420px) {
  .family-photo-grid img {
    height: 230px;
  }
}


/* Atualização da página Famílias: chefes, membros e limite */
.family-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.family-card .family-members {
  grid-column: 1 / -1;
}

.family-photo-grid figcaption {
  padding: 9px 8px 10px;
  color: var(--paper);
  text-align: center;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  background: rgba(6, 18, 37, 0.82);
  border-top: 1px solid rgba(215, 197, 155, 0.14);
}

.family-photo-grid.heads-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-photo-grid.heads-four img {
  height: 230px;
}

.family-photo-grid.two-heads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-photo-grid.two-heads img {
  height: 280px;
}

.family-members {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: 20px;
  background: rgba(6, 18, 37, 0.5);
}

.family-members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.family-members-heading h3 {
  margin: 0;
  color: var(--paper);
}

.family-members-heading span {
  color: var(--paper-dark);
  font-size: 10px;
  font-weight: 700;
}

.empty-family-message {
  display: grid;
  place-items: center;
  min-height: 88px;
  margin: 0;
  border: 1px dashed rgba(215, 197, 155, 0.3);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(8, 19, 40, 0.55);
  text-align: center;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.member-card {
  overflow: hidden;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: 16px;
  background: rgba(8, 19, 40, 0.72);
}

.member-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
}

.member-card div {
  padding: 10px;
}

.member-card h3 {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 14px !important;
}

.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px !important;
}

.influence-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: 16px;
  background: rgba(6, 18, 37, 0.55);
}

.influence-box h3 {
  margin: 0 0 8px;
  color: var(--paper);
}

.influence-box p {
  margin: 0;
}

@media (max-width: 1040px) {
  .family-photo-grid.heads-four,
  .family-photo-grid.two-heads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .family-members {
    padding: 12px;
    border-radius: 16px;
  }

  .family-members-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .family-photo-grid.heads-four,
  .family-photo-grid.two-heads,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img,
  .member-card img {
    height: 240px;
  }

  .family-photo-grid figcaption {
    font-size: 9.5px;
  }

  .member-card h3 {
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img,
  .member-card img {
    height: 220px;
  }
}



/* =========================================================
   AJUSTE FINAL MOBILE
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

/* Cabeçalho e menu em telas menores */
@media (max-width: 900px) {
  .navbar {
    width: min(100% - 18px, 1180px);
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    height: 44px !important;
    max-width: 72px !important;
  }

  .brand span {
    font-size: 13px !important;
    line-height: 1.05 !important;
    max-width: 130px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: fixed;
    inset: 62px 10px auto 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    border-radius: 16px;
    padding: 10px;
    z-index: 60;
    background: rgba(6, 18, 37, 0.97) !important;
    backdrop-filter: blur(14px);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 12px !important;
    text-align: center;
    border-radius: 12px;
  }
}

/* Estrutura geral mobile */
@media (max-width: 760px) {
  .site-header,
  .page-header {
    min-height: auto !important;
    background-position: center top !important;
  }

  .hero,
  .page-hero,
  .section,
  .section.dark {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero {
    min-height: auto !important;
    padding: 24px 10px 42px !important;
    gap: 14px !important;
  }

  .page-hero {
    padding: 30px 10px 48px !important;
  }

  .section,
  .section.dark {
    padding: 36px 10px !important;
  }

  .section-heading {
    margin-bottom: 16px !important;
  }

  .split,
  .hero,
  .location-layout,
  .family-card {
    grid-template-columns: 1fr !important;
  }

  .hero-card,
  .campaign-card,
  .timeline article,
  .faction-card,
  .map-panel,
  .accordion,
  .class-grid article,
  .teacher-card,
  .family-card,
  .family-photos,
  .family-members,
  .family-placeholder,
  .influence-box {
    border-radius: 14px !important;
  }

  .hero-card,
  .campaign-card,
  .timeline article,
  .faction-card,
  .teacher-card,
  .family-card {
    padding: 14px !important;
  }

  .hero-card img {
    width: min(100%, 170px) !important;
  }

  .hero-actions,
  .home-menu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 14px !important;
  }

  .btn {
    width: 100% !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
  }

  .faction-grid,
  .class-grid,
  .teacher-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .faction-card {
    min-height: auto !important;
  }

  .symbol {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 10px !important;
  }

  .map-panel {
    padding: 7px !important;
  }

  .campus-map-image {
    border-radius: 10px !important;
  }

  .accordion {
    padding: 8px !important;
    gap: 8px !important;
  }

  .accordion-item {
    padding: 11px !important;
    border-radius: 12px !important;
  }

  .footer {
    width: calc(100% - 20px) !important;
    padding: 22px 0 30px !important;
  }
}

/* Página de famílias no mobile */
@media (max-width: 760px) {
  .family-section {
    padding-top: 34px !important;
  }

  .family-card {
    gap: 12px !important;
  }

  .family-text p {
    margin-bottom: 9px !important;
  }

  .family-photos {
    padding: 9px !important;
  }

  .family-photo-grid,
  .family-photo-grid.heads-four,
  .family-photo-grid.two-heads,
  .member-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .family-photo-grid figure {
    border-radius: 12px !important;
  }

  .family-photo-grid img,
  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img {
    height: 220px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .family-photo-grid figcaption {
    padding: 8px !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  .family-members {
    padding: 10px !important;
  }

  .family-members-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    margin-bottom: 10px !important;
  }

  .family-members-heading span {
    font-size: 9px !important;
  }

  .empty-family-message {
    min-height: 70px !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .member-card {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: stretch !important;
    border-radius: 12px !important;
  }

  .member-card img,
  .member-grid .member-card img {
    width: 92px !important;
    height: 112px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .member-card div {
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .member-card h3 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .member-card p {
    font-size: 9px !important;
  }

  .influence-box {
    padding: 10px !important;
    margin-top: 10px !important;
  }

  .photo-placeholder {
    height: 96px !important;
  }
}

/* Celulares pequenos */
@media (max-width: 420px) {
  body,
  p,
  li,
  small,
  .nav-links a,
  .eyebrow,
  .territory,
  .footer,
  .footer-small,
  .accordion-item small,
  .mission-box li,
  .teacher-card p,
  .family-card p,
  .family-placeholder p {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  h1,
  h2,
  h3,
  .brand span,
  .accordion-item span,
  .timeline h3,
  .faction-card h3,
  .class-grid h3,
  .mission-box h3,
  .hero-card h2,
  .section h2,
  .campaign-card h2,
  .teacher-card h3,
  .family-card h3,
  .family-photos h3,
  .family-placeholder h3 {
    font-size: 15px !important;
    line-height: 1.16 !important;
  }

  .family-photo-grid img,
  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img {
    height: 205px !important;
  }

  .member-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .member-card img,
  .member-grid .member-card img {
    width: 82px !important;
    height: 104px !important;
  }
}



/* =========================================================
   AJUSTE MOBILE: IMAGENS SEM CORTE
   ========================================================= */

.family-photo-grid figure,
.member-card {
  background: rgba(6, 18, 37, 0.78);
}

/* Em celulares, as imagens das famílias aparecem inteiras */
@media (max-width: 760px) {
  .family-photo-grid figure {
    display: block !important;
    overflow: hidden !important;
  }

  .family-photo-grid img,
  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: rgba(6, 18, 37, 0.9) !important;
  }

  .member-card {
    display: block !important;
  }

  .member-card img,
  .member-grid .member-card img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: rgba(6, 18, 37, 0.9) !important;
  }

  .member-card div {
    padding: 10px !important;
  }
}

/* Em celulares muito pequenos, mantém a imagem completa também */
@media (max-width: 420px) {
  .family-photo-grid img,
  .family-photo-grid.heads-four img,
  .family-photo-grid.two-heads img,
  .member-card img,
  .member-grid .member-card img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}


/* =========================================================
   Página Nova Aurora e Corpo Docente atualizado
   ========================================================= */

.city-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.city-map-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.city-districts {
  align-content: start;
}

.city-districts .accordion-item small {
  font-size: 10px !important;
  line-height: 1.55 !important;
}

.staff-divider {
  border-top: 2px solid rgba(215, 197, 155, 0.28);
  position: relative;
}

.staff-divider::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: min(520px, calc(100% - 40px));
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(215, 197, 155, 0.9), transparent);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.staff-card {
  overflow: hidden;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.staff-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center top;
  background: rgba(6, 18, 37, 0.9);
}

.staff-photo-placeholder {
  height: 310px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-bottom: 1px dashed rgba(215, 197, 155, 0.24);
  background:
    radial-gradient(circle at center, rgba(52, 92, 172, 0.22), transparent 70%),
    rgba(6, 18, 37, 0.75);
  font-size: 10px;
  font-weight: 700;
}

.staff-info {
  padding: 14px;
}

.staff-info h3 {
  margin: 0 0 8px;
  color: var(--paper);
}

.staff-info p {
  margin: 0;
}

@media (max-width: 1040px) {
  .city-layout,
  .location-layout.city-layout {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .city-districts .accordion-item small {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .staff-card {
    border-radius: 14px;
  }

  .staff-card img,
  .staff-photo-placeholder {
    height: auto;
    min-height: 220px;
    max-height: none;
    object-fit: contain;
  }

  .staff-card img {
    object-fit: contain;
  }

  .staff-info {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .staff-card img,
  .staff-photo-placeholder {
    min-height: 190px;
  }
}


/* =========================================================
   Página inicial arrumada + notícias da escola
   ========================================================= */

.home-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-section {
  padding-top: 72px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.news-card,
.notice-board {
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.news-card {
  padding: 22px;
}

.news-date {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #08101e;
  background: var(--gold);
  font-size: 10px;
  font-weight: 700;
}

.news-card h3,
.notice-board h3,
.comment-area h3 {
  margin: 0 0 10px;
  color: var(--paper);
}

.news-card p,
.notice-slot p,
.student-comment p,
.comment-form small {
  color: var(--muted);
}

.comment-area {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 197, 155, 0.16);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.student-comment {
  padding: 12px;
  border-radius: 14px;
  background: rgba(6, 18, 37, 0.7);
  border: 1px solid rgba(215, 197, 155, 0.12);
}

.student-comment strong {
  display: block;
  margin-bottom: 5px;
  color: var(--paper);
  font-size: 10px;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form label {
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(215, 197, 155, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(6, 18, 37, 0.78);
  font-family: var(--font-text);
  font-size: 10px;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(215, 197, 155, 0.48);
}

.comment-form small {
  display: block;
  line-height: 1.5;
}

.notice-board {
  padding: 18px;
}

.notice-slot {
  padding: 13px;
  border-radius: 16px;
  background: rgba(6, 18, 37, 0.58);
  border: 1px solid rgba(215, 197, 155, 0.12);
}

.notice-slot + .notice-slot {
  margin-top: 12px;
}

.notice-slot span {
  display: block;
  margin-bottom: 6px;
  color: var(--paper-dark);
  font-size: 10px;
  font-weight: 700;
}

.notice-slot p {
  margin: 0;
}

/* A página inicial sem Sobre o RPG e sem Ponto de Partida fica mais limpa */
main:has(.news-section) {
  min-height: 40vh;
}

@media (max-width: 1040px) {
  .home-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-menu {
    grid-template-columns: 1fr;
  }

  .news-section {
    padding-top: 36px !important;
  }

  .news-card,
  .notice-board {
    padding: 14px;
    border-radius: 14px;
  }

  .comment-area {
    margin-top: 16px;
    padding-top: 14px;
  }

  .comment-form input,
  .comment-form textarea {
    padding: 10px;
    border-radius: 12px;
    font-size: 9px;
  }

  .notice-slot,
  .student-comment {
    border-radius: 12px;
    padding: 10px;
  }
}


/* =========================================================
   Notícias simples sem comentários
   ========================================================= */

.news-layout,
.comment-area,
.comment-list,
.comment-form,
.student-comment,
.notice-board {
  display: none !important;
}

.news-board-simple {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid rgba(215, 197, 155, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 19, 40, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.news-board-simple h3 {
  margin: 0 0 12px;
  color: var(--paper);
}

.empty-news {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(215, 197, 155, 0.3);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(6, 18, 37, 0.6);
}

@media (max-width: 760px) {
  .news-board-simple {
    padding: 14px;
    border-radius: 14px;
  }

  .empty-news {
    min-height: 90px;
    padding: 14px;
    border-radius: 12px;
  }
}



/* =========================================================
   Ajuste visual: títulos e parágrafos mais centralizados
   ========================================================= */

.section-heading,
.section-text,
.page-hero,
.hero-content,
.hero-card,
.campaign-card,
.news-board-simple,
.footer {
  text-align: center;
}

.section-heading,
.section-text,
.page-hero,
.hero-content,
.news-board-simple {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p,
.section-text p,
.page-hero p,
.hero-text,
.hero-card p,
.campaign-card p,
.news-board-simple p,
.footer p {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions,
.home-menu {
  justify-content: center;
}

.news-board-simple {
  margin-left: auto;
  margin-right: auto;
}

/* Mantém textos longos confortáveis, mas mais alinhados no mobile */
.family-text,
.family-text p,
.city-districts .accordion-item,
.accordion-item,
.staff-info,
.teacher-card,
.faction-card,
.class-grid article,
.timeline article,
.influence-box,
.family-members,
.notice-slot {
  text-align: center;
}

.family-text p,
.city-districts .accordion-item small,
.accordion-item small,
.faction-card p,
.class-grid article p,
.timeline article p,
.influence-box p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  h1,
  h2,
  h3,
  p,
  small,
  li,
  .eyebrow,
  .territory {
    text-align: center !important;
  }

  .hero-content,
  .section-heading,
  .section-text,
  .page-hero,
  .family-text,
  .family-card,
  .family-photos,
  .family-members,
  .staff-info,
  .accordion-item,
  .faction-card,
  .class-grid article,
  .timeline article,
  .news-board-simple {
    text-align: center !important;
  }

  .mission-box ul {
    padding-left: 0 !important;
    list-style-position: inside;
  }

  .family-members-heading {
    align-items: center !important;
  }

  .brand {
    text-align: left !important;
  }

  .brand span {
    text-align: left !important;
  }

  .nav-links a {
    text-align: center !important;
  }

  .btn {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* Família Avelar de Orleans: espaço para fotos da Dinastia Principal */
.family-image-placeholder {
  width: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at center, rgba(52, 92, 172, 0.22), transparent 70%),
    rgba(6, 18, 37, 0.82);
  font-size: 10px;
  font-weight: 700;
}

.family-photo-placeholder-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px dashed rgba(215, 197, 155, 0.28);
}

@media (max-width: 760px) {
  .family-image-placeholder {
    min-height: 210px;
  }
}

@media (max-width: 420px) {
  .family-image-placeholder {
    min-height: 190px;
  }
}



/* =========================================================
   Aparência comemorativa de Copa do Mundo
   ========================================================= */

:root {
  --wc-green: #0b7a3b;
  --wc-green-dark: #042d1a;
  --wc-yellow: #ffd447;
  --wc-yellow-soft: #fff3a0;
  --wc-blue: #123c8c;
  --wc-blue-dark: #071b4d;
  --wc-white: #fff7d7;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 212, 71, 0.18), transparent 25rem),
    radial-gradient(circle at 88% 14%, rgba(18, 60, 140, 0.32), transparent 30rem),
    radial-gradient(circle at 50% 90%, rgba(11, 122, 59, 0.28), transparent 34rem),
    linear-gradient(180deg, #061d18 0%, #08294b 48%, #061d18 100%) !important;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 10% 15%, var(--wc-yellow) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 25%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 12%, var(--wc-green) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 35%, var(--wc-yellow) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 70%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 80% 82%, var(--wc-blue) 0 3px, transparent 4px);
  background-size: 280px 280px;
}

.cup-topper {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 55;
  pointer-events: none;
}

.cup-flags {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(860px, calc(100% - 22px));
  height: 42px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 9px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.32));
}

.cup-flags::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 247, 215, 0.76);
}

.cup-flags span {
  width: 24px;
  height: 30px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--wc-yellow);
  border: 1px solid rgba(255,255,255,0.34);
}

.cup-flags span:nth-child(2n) {
  background: var(--wc-green);
}

.cup-flags span:nth-child(3n) {
  background: var(--wc-blue);
}

.cup-ball {
  position: absolute;
  top: 14px;
  right: max(14px, calc((100vw - 1180px) / 2));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: rgba(255, 247, 215, 0.92);
  box-shadow: 0 14px 30px rgba(0,0,0,0.32);
  animation: ballFloat 3.6s ease-in-out infinite;
}

@keyframes ballFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(8px) rotate(8deg); }
}

.site-header,
.page-header {
  background:
    linear-gradient(rgba(4, 33, 26, 0.58), rgba(4, 18, 48, 0.92)),
    url('assets/hero-background.png') center center / cover no-repeat !important;
}

.site-header::after,
.page-header::after {
  background: linear-gradient(transparent, #061d18) !important;
}

.navbar {
  padding-top: 52px !important;
}

.nav-links,
.menu-toggle,
.hero-card,
.timeline article,
.faction-card,
.accordion,
.accordion-item,
.map-panel,
.campaign-card,
.class-grid article,
.teacher-card,
.family-card,
.family-photos,
.family-members,
.news-board-simple,
.staff-card,
.notice-board {
  background-color: rgba(4, 29, 37, 0.72) !important;
  border-color: rgba(255, 212, 71, 0.22) !important;
}

.nav-links {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.chip.active,
.chip:hover,
.accordion-item.active,
.accordion-item:hover {
  color: var(--wc-white) !important;
  background: linear-gradient(135deg, rgba(11, 122, 59, 0.42), rgba(18, 60, 140, 0.32)) !important;
}

.eyebrow,
.territory,
.footer-small,
.family-members-heading span,
.notice-slot span {
  color: var(--wc-yellow) !important;
}

h1,
h2,
h3,
.brand,
.brand span,
.page-hero h1,
.section h2 {
  color: var(--wc-white) !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.btn.primary,
.btn.whatsapp {
  color: #061d18 !important;
  background: linear-gradient(135deg, var(--wc-yellow), var(--wc-yellow-soft)) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 16px 36px rgba(255, 212, 71, 0.18);
}

.btn.ghost,
.menu-btn,
.chip {
  color: var(--wc-white) !important;
  background: rgba(4, 29, 37, 0.72) !important;
  border-color: rgba(255, 212, 71, 0.26) !important;
}

.btn.ghost:hover,
.menu-btn:hover {
  background: linear-gradient(135deg, rgba(11, 122, 59, 0.52), rgba(18, 60, 140, 0.38)) !important;
}

.world-cup-ribbon {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 212, 71, 0.42);
  border-radius: 999px;
  color: #061d18;
  background: linear-gradient(135deg, var(--wc-yellow), var(--wc-yellow-soft));
  box-shadow: 0 14px 30px rgba(255, 212, 71, 0.16);
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-content .world-cup-ribbon,
.page-hero .world-cup-ribbon {
  margin-left: auto;
  margin-right: auto;
}

.hero-card::before,
.news-board-simple::before,
.family-card::before,
.staff-card::before,
.faction-card::after {
  content: "⚽";
  position: absolute;
  top: 12px;
  right: 14px;
  opacity: 0.16;
  font-size: 32px;
  pointer-events: none;
}

.hero-card,
.news-board-simple,
.family-card,
.staff-card,
.faction-card {
  position: relative;
  overflow: hidden;
}

.section-heading::after {
  content: "🏆 ⚽ 🏆";
  display: block;
  margin: 12px auto 0;
  color: var(--wc-yellow);
  font-size: 14px;
  letter-spacing: 0.24em;
  opacity: 0.85;
}

.symbol {
  background: radial-gradient(circle at top, rgba(255, 212, 71, 0.25), rgba(11, 122, 59, 0.72)) !important;
  border-color: rgba(255, 212, 71, 0.34) !important;
}

.family-photo-grid figure,
.member-card,
.staff-card,
.teacher-card,
.notice-slot,
.student-comment,
.influence-box,
.empty-news,
.empty-family-message {
  border-color: rgba(255, 212, 71, 0.2) !important;
  background-color: rgba(4, 29, 37, 0.68) !important;
}

.footer {
  border-top-color: rgba(255, 212, 71, 0.24) !important;
}

main > section + section::before,
.staff-divider::before {
  background: linear-gradient(90deg, transparent, var(--wc-green), var(--wc-yellow), var(--wc-blue), transparent) !important;
}

@media (max-width: 900px) {
  .nav-links {
    inset: 88px 10px auto 10px !important;
  }
}

@media (max-width: 760px) {
  .navbar {
    padding-top: 48px !important;
  }

  .cup-topper {
    height: 58px;
  }

  .cup-flags {
    width: calc(100% - 18px);
    gap: 5px;
  }

  .cup-flags span {
    width: 18px;
    height: 23px;
  }

  .cup-ball {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .world-cup-ribbon {
    width: 100%;
    text-align: center;
    font-size: 9px;
    padding: 8px 10px;
  }

  .section-heading::after {
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .hero-card::before,
  .news-board-simple::before,
  .family-card::before,
  .staff-card::before,
  .faction-card::after {
    font-size: 24px;
    top: 9px;
    right: 10px;
  }
}



/* =========================================================
   Fundo azul-marinho sem foto de fundo
   ========================================================= */

:root {
  --bg: #061225;
  --bg-2: #061225;
}

body {
  background: #061225 !important;
}

body::before {
  display: none !important;
}

.site-header,
.page-header {
  background: #061225 !important;
}

.site-header::after,
.page-header::after {
  background: linear-gradient(transparent, #061225) !important;
}

.section.dark {
  background: #061225 !important;
}

.nav-links,
.menu-toggle,
.hero-card,
.timeline article,
.faction-card,
.accordion,
.accordion-item,
.map-panel,
.campaign-card,
.class-grid article,
.teacher-card,
.family-card,
.family-photos,
.family-members,
.news-board-simple,
.staff-card,
.notice-board,
.family-placeholder,
.influence-box,
.empty-news,
.empty-family-message {
  background-color: rgba(8, 19, 40, 0.78) !important;
}



/* =========================================================
   Sistema de detenção, extracurriculares e rodapé atualizado
   ========================================================= */

.detention-grid,
.club-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detention-grid article,
.club-grid article {
  padding: 18px;
  border: 1px solid rgba(215, 197, 155, 0.18);
  border-radius: 18px;
  background: rgba(8, 19, 40, 0.78);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.detention-grid h3,
.club-grid h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.detention-grid p,
.club-grid p {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
}

.club-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer {
  text-align: center;
  padding-left: 18px;
  padding-right: 18px;
}

.footer-cup-flags {
  width: min(360px, 88%);
  height: 30px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  position: relative;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.footer-cup-flags::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 247, 215, 0.72);
}

.footer-cup-flags span {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 24px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #ffd447;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-cup-flags span:nth-child(2n) {
  background: #0b7a3b;
}

.footer-cup-flags span:nth-child(3n) {
  background: #123c8c;
}

@media (max-width: 980px) {
  .detention-grid,
  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .detention-grid,
  .club-grid {
    width: min(100% - 24px, 520px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detention-grid article,
  .club-grid article {
    padding: 15px;
  }

  .detention-grid p,
  .club-grid p {
    font-size: 10px;
  }

  .footer-cup-flags {
    width: 92%;
    gap: 5px;
  }

  .footer-cup-flags span {
    width: 17px;
    height: 21px;
  }
}



/* Ajuste de vagas das famílias principais */
.family-members-heading span {
  white-space: nowrap;
}



/* Notícia: Baile de Máscara */
.news-card-featured {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(215, 197, 155, 0.2);
  border-radius: 22px;
  background: rgba(8, 19, 40, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.news-card-featured img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(215, 197, 155, 0.18);
}

.news-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.news-card-content h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 42px);
}

.news-card-content p {
  margin-bottom: 12px;
  line-height: 1.85;
}

@media (max-width: 820px) {
  .news-card-featured {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 16px;
  }

  .news-card-featured img {
    min-height: 240px;
    max-height: 380px;
  }

  .news-card-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .news-card-featured img {
    min-height: 220px;
  }
}



/* =========================================================
   Página Sobre a Escola: história e períodos acadêmicos
   ========================================================= */

.school-history-card,
.period-rpg-card {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 26px;
  border: 1px solid rgba(215, 197, 155, 0.2);
  border-radius: 22px;
  background: rgba(8, 19, 40, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.school-history-card p,
.period-rpg-card p {
  margin-bottom: 14px;
  line-height: 1.9;
}

.school-history-card blockquote {
  margin: 24px auto 0;
  padding: 22px;
  max-width: 720px;
  border: 1px solid rgba(215, 197, 155, 0.26);
  border-radius: 20px;
  color: var(--gold);
  background: rgba(4, 12, 28, 0.58);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.school-history-card blockquote span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.period-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.period-grid article {
  padding: 18px;
  border: 1px solid rgba(215, 197, 155, 0.18);
  border-radius: 18px;
  background: rgba(8, 19, 40, 0.78);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.period-grid h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.period-grid p {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 980px) {
  .period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .school-history-card,
  .period-rpg-card {
    width: min(100% - 24px, 520px);
    padding: 18px;
  }

  .period-grid {
    width: min(100% - 24px, 520px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .period-grid article {
    padding: 15px;
  }

  .period-grid p {
    font-size: 10px;
  }
}



/* Ajuste da página inicial: fundada em 1850 acima dos botões */
.hero-founded-year {
  margin: 18px auto 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-actions {
  justify-content: center;
}



/* Versão do site no rodapé */
.site-version {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.82;
  text-align: center;
}



/* =========================================================
   Livro de Alunos
   ========================================================= */

.student-book-section {
  padding-top: 72px;
}

.student-book-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.student-card {
  overflow: hidden;
  border: 1px solid rgba(215, 197, 155, 0.2);
  border-radius: 20px;
  background: rgba(8, 19, 40, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.student-card img,
.student-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at center, rgba(255, 212, 71, 0.16), transparent 62%),
    rgba(4, 12, 28, 0.72);
  border-bottom: 1px solid rgba(215, 197, 155, 0.16);
  font-size: 10px;
  font-weight: 700;
}

.student-data {
  padding: 14px;
  text-align: center;
}

.student-data p {
  margin: 6px 0;
  font-size: 10.5px;
  line-height: 1.6;
}

.student-data strong {
  color: var(--gold);
}

@media (max-width: 980px) {
  .student-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .student-book-grid {
    width: min(100% - 24px, 520px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .student-card {
    max-width: 340px;
    margin: 0 auto;
  }
}


/* Correção: área de fotos do Livro de Alunos sempre visível na hospedagem */
.student-card {
  display: flex;
  flex-direction: column;
}

.student-photo-placeholder {
  min-height: 310px !important;
  height: 310px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--gold) !important;
  background:
    radial-gradient(circle at center, rgba(255, 212, 71, 0.22), transparent 64%),
    linear-gradient(180deg, rgba(8, 19, 40, 0.92), rgba(4, 12, 28, 0.94)) !important;
  border-bottom: 1px solid rgba(215, 197, 155, 0.18) !important;
}

.student-photo-placeholder span {
  display: grid;
  place-items: center;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 1px dashed rgba(215, 197, 155, 0.38);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.student-card img {
  min-height: 310px !important;
  height: 310px !important;
  object-fit: cover !important;
}

@media (max-width: 980px) {
  .student-photo-placeholder,
  .student-card img {
    min-height: 340px !important;
    height: 340px !important;
  }
}

@media (max-width: 560px) {
  .student-photo-placeholder,
  .student-card img {
    min-height: 320px !important;
    height: 320px !important;
  }
}



/* Correção definitiva: imagem de placeholder no Livro de Alunos */
.student-photo {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  background: #081328 !important;
}

.student-card {
  overflow: hidden !important;
  min-height: 420px !important;
}

.student-book-grid {
  align-items: start !important;
}



/* =========================================================
   Ajuste final: Livro de Alunos mobile + botão verde do RPG
   ========================================================= */

.student-book-grid {
  width: min(1120px, calc(100% - 28px)) !important;
  margin: 28px auto 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

.student-card {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(215, 197, 155, 0.2) !important;
  border-radius: 20px !important;
  background: rgba(8, 19, 40, 0.82) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22) !important;
}

.student-photo-frame {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  aspect-ratio: 3 / 4 !important;
  background: #081328 !important;
  border-bottom: 1px solid rgba(215, 197, 155, 0.2) !important;
  overflow: hidden !important;
}

.student-photo-frame img,
.student-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: cover !important;
  aspect-ratio: 3 / 4 !important;
  border: 0 !important;
}

.student-data {
  width: 100% !important;
  padding: 14px 12px 16px !important;
  text-align: center !important;
  background: rgba(4, 12, 28, 0.62) !important;
}

.student-data p {
  margin: 6px 0 !important;
  font-size: 10.5px !important;
  line-height: 1.65 !important;
}

.student-data strong {
  color: var(--gold) !important;
}

.enter-rpg-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b7a3b, #075c2d) !important;
  box-shadow: 0 16px 34px rgba(11, 122, 59, 0.28) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.enter-rpg-button img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 2px !important;
  flex: 0 0 auto !important;
}

.enter-rpg-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0e9448, #087037) !important;
}

.world-cup-ribbon {
  display: none !important;
}

@media (max-width: 1024px) {
  .student-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .student-book-grid {
    width: min(100% - 22px, 620px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .student-data {
    padding: 12px 8px 14px !important;
  }

  .student-data p {
    font-size: 9.8px !important;
  }
}

@media (max-width: 480px) {
  .student-book-grid {
    width: min(100% - 20px, 360px) !important;
    grid-template-columns: 1fr !important;
  }

  .student-card {
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .enter-rpg-button {
    width: 100% !important;
  }
}


/* Botão padrão de entrada no WhatsApp */
.btn.whatsapp {
  background: linear-gradient(135deg, #0b7a3b, #075c2d);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 34px rgba(11, 122, 59, 0.28);
}

.btn.whatsapp:hover {
  background: linear-gradient(135deg, #0e9448, #087037);
}



/* Ajuste do card de aluno com foto real */
.student-photo-frame {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  background: #081328 !important;
}

.student-photo {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.student-data {
  width: 100% !important;
  padding: 14px 12px 16px !important;
  text-align: center !important;
}

@media (max-width: 480px) {
  .student-card {
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Correção final: imagens inteiras no Livro de Alunos em PC e mobile */
.student-book-grid {
  align-items: start !important;
}

.student-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.student-photo-frame {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  margin: 0 !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 12, 28, 0.78) !important;
  border-bottom: 1px solid rgba(215, 197, 155, 0.2) !important;
  box-sizing: border-box !important;
}

.student-photo-frame img,
.student-photo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 0 !important;
  background: transparent !important;
}

.student-data {
  flex: 0 0 auto !important;
}

@media (min-width: 1025px) {
  .student-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .student-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .student-book-grid {
    width: min(100% - 22px, 620px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .student-photo-frame {
    padding: 7px !important;
  }
}

@media (max-width: 480px) {
  .student-book-grid {
    width: min(100% - 20px, 360px) !important;
    grid-template-columns: 1fr !important;
  }

  .student-card {
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .student-photo-frame {
    padding: 8px !important;
  }
}
