/* Instituto Kletos — portal institucional */

:root {
  --brand: #6b0f1a;
  --brand-deep: #4a0a12;
  --brand-soft: #8a2433;
  --ink: #1c1c1c;
  --ink-soft: #3d3d3d;
  --muted: #6a6a6a;
  --line: #e4e0e1;
  --paper: #f7f4f4;
  --white: #ffffff;
  --sand: #f0e9ea;
  --shadow: 0 18px 50px rgba(74, 10, 18, 0.12);
  --radius: 4px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --container: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(28, 28, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  flex-wrap: wrap;
}

.lang-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  padding: 0.22rem 0.42rem;
  border-radius: 4px;
  white-space: nowrap;
}

.lang-switch-flag {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.lang-switch-name {
  line-height: 1;
}

.lang-switch-link.is-active,
.lang-switch-link:hover {
  color: var(--brand);
  background: rgba(107, 15, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: var(--brand);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}

.brand-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-transform: lowercase;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  /* PNG bordeaux → branco; fundo bordeaux vem do .brand */
  filter: brightness(0) invert(1);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand);
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: auto;
  height: auto;
  display: block;
  color: var(--white);
  overflow: hidden;
  background: var(--brand-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(74, 10, 18, 0.88) 0%, rgba(107, 15, 26, 0.72) 48%, rgba(28, 28, 28, 0.45) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  transform: none;
  animation: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3.75rem, 8vw, 5.5rem) 0;
  animation: fade-up 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 0 0.35rem;
  text-transform: lowercase;
}

.hero-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-size: clamp(1.45rem, 2.4vw + 0.7rem, 2.55rem);
  font-weight: 600;
  max-width: 22ch;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.hero-title-nl {
  display: inline;
}

@media (min-width: 768px) {
  .hero h2 {
    max-width: none;
    font-size: clamp(2rem, 2.2vw + 1rem, 2.65rem);
  }

  .hero-title-nl {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero h2 {
    max-width: 16ch;
  }
}

.hero-lead {
  max-width: 38ch;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--brand);
}

.btn-primary:hover {
  background: var(--sand);
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}

.btn-brand:hover {
  background: var(--brand-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-muted {
  background:
    linear-gradient(180deg, var(--paper), #efe8e9);
}

.section-brand {
  background:
    radial-gradient(circle at top right, rgba(138, 36, 51, 0.35), transparent 45%),
    linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-brand .section-kicker {
  color: rgba(255, 255, 255, 0.75);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-brand .section-head p {
  color: rgba(255, 255, 255, 0.85);
}

/* Level preview */

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.level-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(165deg, #ffffff 0%, #faf6f6 100%);
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 10px;
  padding: 1.55rem 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(74, 10, 18, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.level-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  opacity: 0.85;
  transition: width 0.28s ease, opacity 0.28s ease;
}

.level-item:hover {
  color: inherit;
  transform: translateY(-6px);
  border-color: rgba(107, 15, 26, 0.28);
  box-shadow: 0 18px 40px rgba(74, 10, 18, 0.14);
  background:
    linear-gradient(165deg, #ffffff 0%, #f4eaea 100%);
}

.level-item:hover::before {
  width: 6px;
  opacity: 1;
}

.level-item .level-num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(107, 15, 26, 0.08);
  pointer-events: none;
  transition: color 0.28s ease, transform 0.28s ease;
}

.level-item:hover .level-num {
  color: rgba(107, 15, 26, 0.14);
  transform: scale(1.04);
}

.level-item .level-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.05rem;
  box-shadow: 0 12px 24px rgba(74, 10, 18, 0.2);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.level-item:hover .level-icon {
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(74, 10, 18, 0.26);
}

.level-item h3 {
  font-size: 1.22rem;
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
  color: var(--ink);
}

.level-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.level-item .level-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.25s ease, color 0.25s ease;
}

.level-item:hover .level-cta {
  gap: 0.7rem;
  color: var(--brand-deep);
}

/* Video */

.video-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.video-copy p {
  color: var(--muted);
}

.video-gallery-wrap {
  margin-top: 2.5rem;
}

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

.video-gallery-item {
  display: grid;
  gap: 0.65rem;
}

.video-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand);
}

.video-gallery-link:hover {
  color: var(--brand-deep);
}

@media (max-width: 800px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1000px) {
  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Quick contact strip */

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

.contact-strip-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-strip-item i {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.contact-strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-strip-item a,
.contact-strip-item span {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.98rem;
}

.contact-strip-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Page hero (inner pages) */

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background:
    linear-gradient(120deg, rgba(74, 10, 18, 0.94), rgba(107, 15, 26, 0.86)),
    url("../img/hero.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  max-width: 38rem;
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Níveis detail */

.niveis-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-bottom: 2.25rem;
}

.niveis-path {
  display: grid;
  gap: 0.55rem;
}

.niveis-path-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(107, 15, 26, 0.12);
  background: linear-gradient(165deg, #fff, #faf6f6);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.niveis-path-item span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
}

.niveis-path-item:hover {
  border-color: rgba(107, 15, 26, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(74, 10, 18, 0.08);
}

.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  padding: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.level-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.level-tab:hover {
  color: var(--brand);
  background: rgba(107, 15, 26, 0.05);
}

.level-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(74, 10, 18, 0.18);
}

.level-panel {
  display: none;
}

.level-panel.is-active {
  display: block;
  animation: fade-up 0.45s ease both;
}

.level-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(107, 15, 26, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(107, 15, 26, 0.05), transparent 55%),
    var(--white);
  box-shadow: 0 12px 30px rgba(74, 10, 18, 0.06);
}

.level-banner-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: #fff;
  font-size: 1.25rem;
}

.level-banner-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.level-banner-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.level-banner h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.4rem;
}

.level-banner-copy p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46rem;
}

.level-banner-count {
  margin-top: 0.7rem !important;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted) !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: rgba(107, 15, 26, 0.08);
  color: var(--brand);
  border-radius: 999px;
}

.course-list {
  display: grid;
  gap: 0.9rem;
}

.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem);
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(74, 10, 18, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course.has-media {
  grid-template-columns: 10rem minmax(0, 1fr) minmax(10rem, 12rem);
  align-items: center;
}

.course-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 3;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course:hover {
  border-color: rgba(107, 15, 26, 0.24);
  box-shadow: 0 14px 32px rgba(74, 10, 18, 0.1);
  transform: translateY(-2px);
}

.course-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.course-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-top: 0.2rem;
}

.course h3 {
  font-size: 1.18rem;
  margin: 0 0 0.4rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.course-desc {
  white-space: normal;
  color: var(--ink-soft);
  line-height: 1.55;
}

.course-desc .course-book-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.course-desc .course-book-link:hover {
  color: var(--brand-deep);
}

.course-modules {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.course-modules strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.course-modules p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.course-price {
  text-align: right;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-price-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.course-price .price-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand);
}

.course-price .price-alt {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: right;
}

.course-price .price-alt li {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.course-price .price-alt .price-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.course-price .price-alt .price-v {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .course-price .price-alt {
    text-align: left;
  }
}

.note-box {
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  font-size: 0.98rem;
  border-radius: 0 8px 8px 0;
}

.note-box-body {
  margin-top: 0.35rem;
  white-space: pre-line;
  line-height: 1.4;
}

.niveis-closing {
  display: grid;
  gap: 1.25rem;
}

.niveis-closing h2 {
  max-width: 16ch;
}

.niveis-closing p {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .niveis-intro {
    grid-template-columns: 1fr;
  }
}

.cta-band p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

/* Sobre */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.about-objectives {
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.objective {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.objective-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1;
}

.objective h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.objective p {
  margin: 0;
  color: var(--ink-soft);
}

.about-aside {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(160deg, rgba(74, 10, 18, 0.2), rgba(74, 10, 18, 0.55)),
    url("../img/about.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.about-aside-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(transparent, rgba(28, 28, 28, 0.85));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}

.about-quote {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.06), rgba(107, 15, 26, 0.02));
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 28px rgba(74, 10, 18, 0.05);
}

.about-timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.about-timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.about-timeline p {
  margin: 0;
  color: var(--muted);
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.about-highlights article {
  background: linear-gradient(165deg, #fff, #faf6f6);
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 10px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(74, 10, 18, 0.05);
}

.about-highlights i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: #fff;
  margin-bottom: 0.75rem;
}

.about-highlights h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.about-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.about-carousel {
  max-width: 920px;
  margin: 0 auto;
}

.about-carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(138, 36, 51, 0.35), transparent 50%),
    var(--brand-deep);
  box-shadow: 0 18px 40px rgba(74, 10, 18, 0.16);
  min-height: clamp(320px, 62vw, 560px);
}

.about-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.about-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  padding: 0.5rem;
}

.about-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.about-carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.about-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.about-carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 15, 26, 0.18);
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-carousel-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.about-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 28rem);
}

.about-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(107, 15, 26, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.about-carousel-dot.is-active {
  width: 1.35rem;
  background: var(--brand);
}

@media (max-width: 700px) {
  .about-timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
}

.info-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.info-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.info-list i {
  color: var(--brand);
  margin-top: 0.25rem;
}

.info-list a {
  text-decoration: none;
  color: var(--ink);
}

.info-list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.contact-form {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid rgba(107, 15, 26, 0.25);
  border-color: var(--brand);
}

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

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.captcha-prompt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  background: var(--white);
  border: 1px dashed var(--brand-soft);
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 7rem;
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.alert-success {
  background: #e8f5ea;
  color: #1d5c2a;
  border: 1px solid #b9dfc1;
}

.alert-error {
  background: #fceced;
  color: #7a1d28;
  border: 1px solid #efc4c9;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
  /* PNG bordeaux → branco sobre o fundo escuro do footer */
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.footer-contact i {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 1.6rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  max-width: 42rem;
}

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Responsive */

@media (max-width: 1000px) {
  .level-grid,
  .contact-strip,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-wrap,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-aside {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .course,
  .course.has-media {
    grid-template-columns: 1fr;
  }

  .course-price {
    text-align: left;
    border-left: 0;
    padding-left: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }

  .level-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .brand-logo {
    height: 38px;
  }

  .brand {
    padding: 0.28rem 0.55rem;
  }

  .level-grid,
  .contact-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

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

  .footer-bottom-inner {
    flex-direction: column;
  }
}

/* Bot flutuante nativo */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bot-widget {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 1200;
}

.bot-launcher {
  position: relative;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 14px 34px rgba(74, 10, 18, 0.35);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bot-launcher:hover,
.bot-launcher.is-open {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(74, 10, 18, 0.42);
}

.bot-launcher-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: bot-float 3.2s ease-in-out infinite;
}

.bot-launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(107, 15, 26, 0.35);
  animation: bot-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.bot-launcher-label {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bot-launcher:hover .bot-launcher-label,
.bot-launcher:focus-visible .bot-launcher-label {
  opacity: 1;
}

.bot-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.35);
  z-index: 1190;
}

.bot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(400px, calc(100vw - 1.5rem));
  height: min(620px, calc(100dvh - 6.5rem));
  max-height: calc(100dvh - 6.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(28, 28, 28, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fade-up 0.28s ease both;
  z-index: 1201;
}

.bot-panel[hidden],
.bot-backdrop[hidden] {
  display: none !important;
}

body.bot-open {
  overflow: hidden;
}

.bot-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: var(--white);
  flex-shrink: 0;
}

.bot-panel-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.bot-panel-identity img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  object-fit: contain;
}

.bot-panel-identity strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.bot-panel-identity span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.bot-panel-close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-panel-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.bot-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #f4efef;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: none;
}

.bot-chat::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bot-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.bot-msg-user {
  justify-content: flex-end;
}

.bot-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--brand);
  flex-shrink: 0;
}

.bot-msg-bubble {
  max-width: min(86%, 280px);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(28, 28, 28, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bot-msg-user .bot-msg-bubble {
  background: #f4cccc;
  border-bottom-right-radius: 4px;
}

.bot-msg-bot .bot-msg-bubble {
  border-bottom-left-radius: 4px;
}

.bot-msg-bubble ul,
.bot-msg-bubble ol {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.1rem;
}

.bot-msg-bubble li + li {
  margin-top: 0.25rem;
}

.bot-msg-bubble a {
  color: var(--brand);
  font-weight: 600;
}

.bot-typing .bot-msg-bubble {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  min-width: 3.2rem;
}

.bot-typing .bot-msg-bubble span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.5;
  animation: bot-dot 1s infinite ease-in-out;
}

.bot-typing .bot-msg-bubble span:nth-child(2) { animation-delay: 0.15s; }
.bot-typing .bot-msg-bubble span:nth-child(3) { animation-delay: 0.3s; }

.bot-compose {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}

.bot-compose input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  background: #faf7f7;
}

.bot-compose input:focus {
  outline: 2px solid rgba(107, 15, 26, 0.2);
  border-color: var(--brand);
}

.bot-compose button {
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bot-compose button:hover {
  background: var(--brand-deep);
}

.bot-compose button:disabled {
  opacity: 0.55;
  cursor: wait;
}

@keyframes bot-float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes bot-pulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes bot-dot {
  0%,
  80%,
  100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 900px) {
  .bot-panel {
    width: min(420px, calc(100vw - 1.25rem));
    height: min(68dvh, 640px);
    max-height: calc(100dvh - 6.2rem);
  }
}

@media (max-width: 640px) {
  .bot-widget {
    right: max(0.7rem, env(safe-area-inset-right));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
  }

  .bot-panel {
    position: fixed;
    inset: auto max(0.55rem, env(safe-area-inset-right)) calc(5.6rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
    width: auto;
    height: min(72dvh, calc(100dvh - 6rem));
    max-height: calc(100dvh - 6rem);
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
  }

  .bot-launcher {
    width: 84px;
    height: 84px;
  }

  .bot-launcher-img {
    width: 70px;
    height: 70px;
  }

  .bot-launcher-label {
    display: none;
  }

  .bot-msg-bubble {
    max-width: 88%;
  }
}

/* Livros */

.books-hero-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-bottom: 2rem;
}

.books-benefits {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.books-benefits li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.books-benefits i {
  color: var(--brand);
}

.books-hero-cta {
  background: linear-gradient(165deg, #fff, #faf6f6);
  border: 1px solid rgba(107, 15, 26, 0.12);
  border-radius: 12px;
  padding: 1.35rem 1.3rem;
  box-shadow: 0 14px 34px rgba(74, 10, 18, 0.08);
  display: grid;
  gap: 0.7rem;
}

.books-hero-cta-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.books-hero-cta .btn {
  width: 100%;
}

.books-hero-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.books-stats article {
  background: var(--white);
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(74, 10, 18, 0.05);
}

.books-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.books-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.book-group {
  margin-bottom: 2rem;
}

.book-group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.book-group-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: rgba(107, 15, 26, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.book-group h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(107, 15, 26, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 12px 28px rgba(74, 10, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 15, 26, 0.28);
  box-shadow: 0 18px 36px rgba(74, 10, 18, 0.12);
}

.book-card-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: #fff;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.book-card-cover {
  margin: -0.15rem -0.15rem 0.95rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 3 / 4;
  max-height: 260px;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7f1f2;
}

.book-card-author {
  margin: -0.15rem 0 0.45rem !important;
  color: var(--brand) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem !important;
}

.book-card h3 {
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

.book-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.book-card-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.books-closing {
  display: grid;
  gap: 1.25rem;
}

.books-closing h2 {
  max-width: 18ch;
}

.books-closing p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 860px) {
  .books-hero-panel {
    grid-template-columns: 1fr;
  }

  .books-stats {
    grid-template-columns: 1fr;
  }
}

/* Cookies — só em nova aba/sessão */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  background: rgba(28, 28, 28, 0.96);
  color: #fff;
  padding: 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  width: min(100% - 1rem, 1100px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  max-width: 70ch;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner a,
.cookie-banner-link {
  color: #fff;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner-link:hover {
  color: #fff;
  opacity: 0.85;
}

.footer-legal-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-legal-btn:hover {
  color: #fff;
}

/* Modais legais (RGPD / Cookies) */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
}

.legal-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(28, 28, 28, 0.28);
  overflow: hidden;
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
}

.legal-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.legal-modal-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.legal-modal-body {
  padding: 1.15rem 1.2rem;
  overflow: auto;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.legal-modal-body h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--brand);
}

.legal-modal-body p {
  margin: 0 0 0.75rem;
}

.legal-modal-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-modal-body li {
  margin-bottom: 0.35rem;
}

.legal-modal-foot {
  padding: 0.85rem 1.15rem 1.05rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

body.legal-modal-open {
  overflow: hidden;
}
