/* ==========================================================================
   Professor Ilton Gitz — estilos do site
   Paleta: azul claro e azul escuro. Fontes: Newsreader (títulos) e Figtree (texto).
   ========================================================================== */

:root {
  --ink: #0B1F44;          /* texto principal */
  --ink-soft: #3F5278;     /* texto secundário */
  --navy: #0B2A5B;         /* ícones */
  --blue-dark: #14367A;    /* botões e links */
  --blue-light: #E4EEFB;   /* fundo dos cards */
  --blue-wash: #EEF4FC;    /* fundo da seção "sobre" */
  --blue-arc: #E3ECF8;     /* arco decorativo */
  --blue-line: #C9DCF5;    /* linhas e bordas */
  --sky: #5BB4F0;          /* detalhes e botões de destaque */
  --bg: #FFFFFF;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; }

/* ---------- Cabeçalho e menu ---------- */

.site-header { padding: 24px 24px 0; }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.brand {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand-small { font-size: 22px; padding: 0; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  display: inline-block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-small { font-size: 15px; }

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--blue-dark); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }

.link-underline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.card-link span:first-child {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- Títulos de seção ---------- */

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- Capa ---------- */

.hero { padding: 72px 24px 96px; }
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead { max-width: 520px; font-size: 20px; color: var(--ink-soft); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 8px;
}

.hero-photo {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: 28px;
  background: var(--blue-light);
  border: 1px solid var(--blue-line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; margin: -24px; max-width: none; }

/* Foto recortada (estilizada, com fundo transparente): sem caixa */
.hero-photo.is-cutout {
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.hero-photo.is-cutout img { width: 100%; height: auto; margin: 0; object-fit: contain; }

.ph-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Como posso ajudá-lo (cards) ---------- */
/* Medidas do modelo (aliabdaal.com, "How Can I Help You?"):
   duas colunas de 568px com 64px entre elas (máx. 1200px); o título ocupa o
   primeiro espaço da coluna esquerda; cards com 64px de respiro, raio de 20px,
   ícone de 120x110, título 42px, texto 22px; altura de cada card pelo conteúdo. */

.help { padding: 48px clamp(16px, 3.4vw, 48px) 120px; }
.help-grid {
  display: flex;
  gap: 32px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.help-stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.help-title {
  font-size: clamp(48px, 5.84vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: 20px;
  background: var(--blue-light);
}
.card svg { display: block; width: auto; height: 110px; margin-bottom: 32px; }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 2.9vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card p { margin-top: 24px; font-size: clamp(19px, 1.53vw, 22px); font-weight: 500; line-height: 1.6; }
.card .card-link { margin-top: 24px; font-weight: 500; }

.help-more {
  padding: clamp(28px, 4.4vw, 64px);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 2.9vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  /* Uma coluna só; a ordem de leitura vem do "order" de cada item */
  .help-grid { flex-direction: column; }
  .help-stack { display: contents; }
  .help-grid { gap: 32px; }
  .help-more { padding: 0 4px; }
}

/* ---------- Sobre ---------- */
/* Medidas do modelo (aliabdaal.com, seção "Hey, I'm"):
   caixa de até 1440px com 120px/96px de respiro e raio de 20px;
   colunas de até 1200px, 120px entre elas (texto 42% / fotos 58%);
   título de 84px, texto de 18px e 64px entre o título e o texto. */

.about { padding: 0 clamp(16px, 3.4vw, 48px) 120px; }
.about-box {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px, 8.4vw, 120px) clamp(24px, 6.7vw, 96px);
  border-radius: 20px;
  background: var(--blue-wash);
}
.about-arc {
  position: absolute;
  top: -520px;
  right: -380px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: var(--blue-arc);
}
.about-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6.7vw, 96px);
}
.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px clamp(48px, 8.4vw, 120px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.about-text {
  flex: 42 1 0;
  min-width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-title {
  margin-bottom: 64px;
  font-size: clamp(48px, 5.84vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.about-hello { display: block; font-weight: 400; }
.about-name {
  display: inline-block;
  position: relative;
  font-weight: 600;
}
/* Traço duplo sob o nome (como no modelo) */
.about-name svg {
  position: absolute;
  left: -0.01em;
  bottom: -0.3em;
  width: 100%;
  height: 0.48em;
  overflow: visible;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
.about-text .card-link { margin-top: 40px; }

/* Conjunto de fotos (proporção do modelo: 626 x 846) */
.collage {
  flex: 58 1 0;
  min-width: min(100%, 340px);
  position: relative;
  aspect-ratio: 626 / 846;
}
.collage-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.collage-photo {
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(11, 42, 91, 0.14);
}
.collage-photo img { width: 100%; height: 100%; object-fit: cover; margin: -12px; max-width: none; }
.collage-a { left: 33%; top: 7.4%;  width: 67%;   height: 48.6%; border-radius: 28px 110px 28px 28px; background: #C9DCF5; }
.collage-b { left: 0;   top: 37.6%; width: 26%;   height: 18.4%; border-radius: 22px; background: #D6E5F8; }
.collage-c { left: 33%; top: 60.7%; width: 47.5%; height: 35%;   border-radius: 28px 28px 90px 28px; background: #B9D1F0; }

.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.pill-line { flex: 1 1 40px; max-width: 120px; height: 1px; background: var(--blue-line); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.pill:hover { color: var(--ink); filter: brightness(1.05); }

/* ---------- Contato e rodapé ---------- */

.contact { padding: 0 24px 112px; }
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px 40px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.contact-box h2 { color: #fff; }
.contact-box p { max-width: 480px; color: #C9D6EE; }
.contact-mail { color: #fff; font-size: 18px; }
.contact-todo { font-size: 15px; }

/* Rodapé (modelo: aliabdaal.com): linha só na largura do conteúdo, marca à esquerda, colunas de links à direita */
.site-footer { padding: 0 24px 72px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 64px;
  border-top: 1px solid var(--blue-line);
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px 32px;
}
.wordmark {
  position: relative;
  display: inline-block;
  padding: 8px 14px 14px 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { position: relative; }
.wordmark-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; }
.copy { margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.social { margin-top: 40px; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-light); color: var(--ink); }
.social a:hover { background: var(--blue-line); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h2 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.2; margin-bottom: 16px; }
.footer-col a { padding: 14px 0; min-height: 44px; font-size: 17px; font-weight: 500; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.footer-col a:hover { color: var(--ink); }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Página do livro (livro.php) ---------- */
/* Estrutura do modelo (aliabdaal.com/feel-good-productivity): caixa creme
   com título e capa, cartão de compra, frase de destaque, lista, capa fixa
   ao lado dos capítulos e autores. */
.book-hero, .book-statement, .book-find, .book-about, .book-authors {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 16px; }
.section-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 32px; }

.book-hero { padding-top: 48px; max-width: 1440px; }
.book-hero-box {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 6vw, 96px) clamp(24px, 6vw, 96px);
  border-radius: 20px;
  background: #FFF4D6;
}
.book-hero-text { flex: 1 1 0; min-width: 0; }
.book-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.book-sub { margin-top: 20px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.book-by { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.book-by strong { color: var(--ink); font-weight: 600; }
.book-buy { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 24px; border-radius: 16px; background: #fff; }
.book-buy h2 { flex: 1 0 100%; font-size: 24px; letter-spacing: 0; }
.book-cover { flex: 0 0 clamp(220px, 28vw, 380px); }
.book-cover img, .book-about-cover img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 48px -16px rgba(11, 42, 91, 0.4), 0 4px 12px rgba(11, 42, 91, 0.15); }
.book-cover .ph-label, .book-about-cover .ph-label { display: grid; place-items: center; aspect-ratio: 560 / 817; background: var(--blue-light); border-radius: 6px; }

.u-blue { background: linear-gradient(transparent 82%, var(--sky) 82%, var(--sky) 92%, transparent 92%); }
mark { background: linear-gradient(transparent 55%, #FFD98A 55%); color: inherit; padding: 0 2px; }

.book-statement { max-width: 840px; padding-top: clamp(64px, 9vw, 128px); }
.book-statement h2 { font-size: clamp(34px, 4.6vw, 60px); margin-bottom: 32px; }
.book-statement p { font-size: 20px; line-height: 1.65; color: var(--ink-soft); margin-top: 18px; }

.book-find { padding-top: clamp(64px, 9vw, 128px); }
.book-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.book-list li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 16px; background: var(--blue-light); font-size: 19px; line-height: 1.45; font-weight: 500; }
.book-list li span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-size: 15px; }

.book-about { max-width: 1440px; padding-top: clamp(64px, 9vw, 128px); }
.book-about-box { display: flex; align-items: flex-start; gap: clamp(32px, 6vw, 96px); padding: clamp(32px, 6vw, 96px) clamp(24px, 6vw, 96px); border-radius: 20px; background: var(--blue-wash); }
.book-about-cover { flex: 0 0 clamp(200px, 26vw, 360px); position: sticky; top: 24px; }
.book-about-text { flex: 1 1 0; min-width: 0; }
.book-chapters { list-style: none; border-top: 1px solid var(--blue-line); }
.book-chapters li { display: flex; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--blue-line); font-family: var(--font-serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.book-chapters li span { flex: none; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--blue-dark); letter-spacing: 0.06em; }

.book-authors { padding-top: clamp(64px, 9vw, 128px); padding-bottom: 24px; }
.book-authors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 64px; }
.author h3 { font-family: var(--font-serif); font-weight: 400; font-size: 36px; margin-bottom: 14px; }
.author p:not(.eyebrow) { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.author-todo { font-style: italic; }
.book-final { margin-top: 56px; text-align: center; }

@media (max-width: 900px) {
  .book-hero-box { flex-direction: column-reverse; align-items: stretch; }
  .book-cover { flex: none; width: min(70%, 300px); margin: 0 auto; }
  .book-about-box { flex-direction: column; }
  .book-about-cover { position: static; width: min(60%, 280px); margin: 0 auto; flex: none; }
}

/* ---------- Página Sobre (sobre/index.php) ---------- */
.about-page, .quals { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.about-page { max-width: 1440px; padding-top: 48px; }
.about-page-box {
  display: flex;
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  padding: clamp(32px, 6vw, 96px) clamp(24px, 6vw, 96px);
  border-radius: 20px;
  background: var(--blue-wash);
}
.about-page-text { flex: 1 1 0; min-width: 0; }
.about-page h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.about-name-inline { display: block; }
.about-page-links { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.about-page-photo { flex: 0 0 clamp(240px, 32vw, 440px); aspect-ratio: 1 / 1; border-radius: 20px; background: var(--blue-light); overflow: hidden; display: grid; place-items: center; }
.about-page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-page-photo.is-cutout { background: none; overflow: visible; }
.about-page-photo.is-cutout img { object-fit: contain; }

.quals { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 112px); }
.quals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.qual { padding: clamp(24px, 3.4vw, 40px); border-radius: 20px; background: var(--blue-light); }
.qual h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 20px; }
.qual ul { list-style: none; margin: 0; padding: 0; }
.qual li { position: relative; padding: 10px 0 10px 24px; font-size: 18px; line-height: 1.5; font-weight: 500; border-top: 1px solid var(--blue-line); }
.qual li:first-child { border-top: 0; }
.qual li::before { content: ""; position: absolute; left: 0; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }

@media (max-width: 900px) {
  .about-page-box { flex-direction: column-reverse; align-items: stretch; }
  .about-page-photo { flex: none; width: min(80%, 360px); margin: 0 auto; }
}

/* ---------- Vídeos em destaque (carrossel, como no modelo) ---------- */
.videos { max-width: 1200px; margin: 0 auto; padding: 0 24px clamp(64px, 9vw, 112px); }
.videos-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.videos-head .section-title { margin-bottom: 24px; }
.videos-nav { display: flex; gap: 12px; margin-bottom: 24px; }
.videos-nav button { width: 56px; height: 56px; border: 0; border-radius: 50%; background: #FFD98A; color: var(--ink); font-size: 24px; cursor: pointer; }
.videos-nav button:hover { filter: brightness(0.96); }
.videos-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px 4px 56px; margin: -24px -4px -32px; }
.videos-track::-webkit-scrollbar { display: none; }
.video-card { flex: 0 0 min(86%, 380px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--blue-wash); box-shadow: 0 2px 10px rgba(11, 42, 91, 0.06); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--blue-light); }
.video-thumb img, .video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: rgba(11, 42, 91, 0.88); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 0.15s; }
.video-play:hover { transform: scale(1.08); }
.video-thumb-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--blue-light), var(--blue-light) 12px, var(--blue-wash) 12px, var(--blue-wash) 24px); }
.video-thumb-empty span { padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.video-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px; }
.video-date { font-size: 15px; color: var(--ink-soft); }
.video-body h3 { flex: 1; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.is-pending .video-body h3 { color: var(--ink-soft); }

/* ---------- Projetos ---------- */
.projects { max-width: 1200px; margin: 0 auto; padding: 0 24px clamp(64px, 9vw, 112px); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.project { padding: clamp(24px, 3.4vw, 40px); border-radius: 20px; background: var(--blue-wash); }
.project-photo { margin: calc(-1 * clamp(24px, 3.4vw, 40px)) calc(-1 * clamp(24px, 3.4vw, 40px)) 24px; aspect-ratio: 16 / 9; overflow: hidden; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 14px; }
.project p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Efeito ao passar o mouse (igual ao modelo: aliabdaal.com, "clickable-card") ----------
   O cartão sobe 12px, ganha sombra grande e suave e o fundo muda; transição de 0,2s. */
.qual, .project, .video-card, .book-list li, .card {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
@media (hover: hover) {
  .qual:hover, .project:hover, .video-card:hover, .book-list li:hover, .card:hover {
    transform: translateY(-12px);
    box-shadow: rgba(91, 140, 200, 0.5) 0 30px 40px -15px;
    background-color: var(--blue-line);
  }
  .video-card:hover .card-link span:first-child { border-bottom-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .qual:hover, .project:hover, .video-card:hover, .book-list li:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   Paleta alegre (cores de Israel)
   Branco da pedra de Jerusalém, verde da Galileia, laranja/vermelho do Negev,
   lilás das flores e do pôr do sol. Para voltar ao visual só azul, apague
   este bloco inteiro (do início desta linha até o fim do arquivo).
   ========================================================================== */
:root {
  --green: #4FA35A;   --green-light: #E3F3DD;  --green-strong: #C9E9BF;
  --orange: #F28C4B;  --orange-light: #FFE9D6; --orange-strong: #FFD1AA;
  --lilac: #A586E6;   --lilac-light: #EEE7FB;  --lilac-strong: #DBCCF4;
  --gold: #F5B73B;    --gold-light: #FFF3CF;   --gold-strong: #FFE39A;
}

/* Cada cartão recebe um "tom": fundo, fundo ao passar o mouse, sombra e cor de detalhe */
.tone-blue,   :is(.quals-grid, .projects-grid, .book-list, .videos-track) > :nth-child(4n+4) {
  --tone: var(--blue-light); --tone-strong: var(--blue-line); --tone-shadow: rgba(91, 140, 200, 0.5); --tone-accent: var(--sky);
}
.tone-green,  :is(.quals-grid, .projects-grid, .book-list, .videos-track) > :nth-child(4n+1) {
  --tone: var(--green-light); --tone-strong: var(--green-strong); --tone-shadow: rgba(79, 163, 90, 0.45); --tone-accent: var(--green);
}
.tone-orange, :is(.quals-grid, .projects-grid, .book-list, .videos-track) > :nth-child(4n+2) {
  --tone: var(--orange-light); --tone-strong: var(--orange-strong); --tone-shadow: rgba(242, 140, 75, 0.5); --tone-accent: var(--orange);
}
.tone-lilac,  :is(.quals-grid, .projects-grid, .book-list, .videos-track) > :nth-child(4n+3) {
  --tone: var(--lilac-light); --tone-strong: var(--lilac-strong); --tone-shadow: rgba(165, 134, 230, 0.5); --tone-accent: var(--lilac);
}

.card, .qual, .project, .video-card, .book-list li { background-color: var(--tone, var(--blue-light)); }
@media (hover: hover) {
  .qual:hover, .project:hover, .video-card:hover, .book-list li:hover, .card:hover {
    background-color: var(--tone-strong, var(--blue-line));
    box-shadow: var(--tone-shadow, rgba(91, 140, 200, 0.5)) 0 30px 40px -15px;
  }
}
.qual li { border-top-color: var(--tone-strong, var(--blue-line)); }
.qual li::before { background: var(--tone-accent, var(--sky)); }
.book-list li span { background: var(--tone-accent, var(--blue-dark)); color: var(--ink); font-weight: 700; }
.video-thumb-empty { background: repeating-linear-gradient(135deg, var(--tone-strong), var(--tone-strong) 12px, var(--tone) 12px, var(--tone) 24px); }
.project h3, .qual h3 { position: relative; }
.project h3::after, .qual h3::after { content: ""; display: block; width: 44px; height: 5px; margin-top: 14px; border-radius: 3px; background: var(--tone-accent, var(--sky)); }

/* Faixa de cores no topo de todas as páginas */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--sky) 0 20%, var(--green) 20% 40%, var(--gold) 40% 60%, var(--orange) 60% 80%, var(--lilac) 80% 100%);
}

/* Botões de seção na home: um tom para cada */
.pill:nth-of-type(4n+1) { background: var(--green-strong); }
.pill:nth-of-type(4n+2) { background: var(--orange-strong); }
.pill:nth-of-type(4n+3) { background: var(--lilac-strong); }
.pill:nth-of-type(4n+4) { background: var(--sky); }

/* Caixas grandes e detalhes */
.book-about-box { background: #F1F8EC; }
.about-page-box { background: linear-gradient(135deg, var(--blue-wash) 55%, var(--lilac-light)); }
.contact-box {
  background:
    radial-gradient(circle at 10% 15%, rgba(242, 140, 75, 0.38), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(165, 134, 230, 0.42), transparent 42%),
    radial-gradient(circle at 78% 8%, rgba(79, 163, 90, 0.3), transparent 30%),
    var(--ink);
}
.social a { background: var(--gold-light); }
.social a:hover { background: var(--gold-strong); }
.videos-nav button { background: var(--gold); }
.eyebrow { color: var(--orange); }
mark { background: linear-gradient(transparent 55%, var(--gold-strong) 55%); }
.u-blue { background: linear-gradient(transparent 82%, var(--green) 82%, var(--green) 92%, transparent 92%); }
.book-hero-box { background: linear-gradient(135deg, #FFF4D6 60%, var(--orange-light)); }
.book-chapters li span { color: var(--orange); }

/* ---------- Página de contato (contato/index.php) ---------- */
.contact-page { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 24px clamp(64px, 9vw, 112px); }
.contact-page-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
.contact-intro .book-sub { max-width: 460px; }
.channels { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.channels li { border-radius: 20px; background-color: var(--tone, var(--blue-light)); transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.2s ease-in-out; }
.channels a { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: var(--ink); }
.channels strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.channels small { display: block; font-size: 15px; color: var(--ink-soft); }
.channel-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); }
@media (hover: hover) {
  .channels li:hover { transform: translateY(-6px); background-color: var(--tone-strong); box-shadow: var(--tone-shadow) 0 24px 32px -14px; }
}

.contact-card { padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: #fff; border: 1px solid var(--blue-line); box-shadow: rgba(91, 140, 200, 0.28) 0 30px 50px -24px; }
.contact-card h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 24px; }
.subjects { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subjects legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--blue-wash); border: 2px solid transparent; font-size: 16px; font-weight: 500; transition: background-color 0.15s, border-color 0.15s; }
.chip:nth-of-type(5n+1) span { background: var(--green-light); }
.chip:nth-of-type(5n+2) span { background: var(--orange-light); }
.chip:nth-of-type(5n+3) span { background: var(--lilac-light); }
.chip:nth-of-type(5n+4) span { background: var(--gold-light); }
.chip:hover span { border-color: var(--blue-line); }
.chip input:checked + span { border-color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.subjects .field-error { flex: 1 0 100%; }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: 14px 18px; border: 2px solid var(--blue-line); border-radius: 16px; background: var(--blue-wash); font: inherit; font-size: 17px; color: var(--ink); transition: border-color 0.15s, background-color 0.15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--sky); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-dark); background: #fff; }
.field [aria-invalid="true"] { border-color: #D64545; }
.field-error { margin-top: 6px; font-size: 15px; color: #B42323; }
.form-alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 14px; background: #FDE8E8; color: #8E1F1F; font-weight: 500; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card .btn { width: 100%; }

.contact-done { text-align: center; padding: 24px 0; }
.done-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 36px; }
.contact-done h2 { margin-bottom: 14px; }
.contact-done p { max-width: 420px; margin: 0 auto 28px; color: var(--ink-soft); }
.contact-done .btn { width: auto; }

@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Visite Israel (israel/index.php) ---------- */
.il-hero { max-width: 1440px; margin: 0 auto; padding: 48px 24px 0; }
.il-hero-box {
  display: flex; align-items: center; gap: clamp(28px, 6vw, 96px);
  padding: clamp(32px, 6vw, 96px) clamp(24px, 6vw, 96px);
  border-radius: 20px;
  background: linear-gradient(135deg, #E4EEFB 0%, #E3F3DD 55%, #FFF3CF 100%);
}
.il-hero-text { flex: 1 1 0; min-width: 0; }
.il-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 104px); line-height: 1; letter-spacing: -0.03em; }
.il-sub { margin-top: 20px; font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.il-lead { margin-top: 18px; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.il-hero-photo { flex: 0 0 clamp(260px, 38vw, 540px); aspect-ratio: 4 / 3.4; position: relative; }
.il-hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: var(--orange); opacity: 0.85; }
.il-hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: rgba(11, 42, 91, 0.25) 0 24px 48px -20px; }

.il-section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) 24px 0; }
.il-note { margin: -16px 0 32px; max-width: 640px; color: var(--ink-soft); font-size: 18px; }

.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.audience-grid .card { padding: clamp(24px, 2.6vw, 36px); }
.audience-grid .card svg { height: 88px; margin-bottom: 24px; }
.audience-grid .card h3 { font-size: 28px; }
.audience-grid .card p { font-size: 18px; }

.places-grid .project { display: flex; flex-direction: column; }
.sites { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sites li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; line-height: 1.35; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.steps li { padding: clamp(24px, 3vw, 40px); border-radius: 20px; background-color: var(--tone, var(--blue-light)); transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.2s ease-in-out; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: var(--tone-accent, var(--sky)); font-weight: 700; font-size: 20px; }
.steps h3 { font-family: var(--font-serif); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
@media (hover: hover) {
  .steps li:hover { transform: translateY(-12px); background-color: var(--tone-strong, var(--blue-line)); box-shadow: var(--tone-shadow, rgba(91, 140, 200, 0.5)) 0 30px 40px -15px; }
}

.trip-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.trip-photos figure { margin: 0; }
.trip-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.trip-photos figcaption { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }

.il-faq { max-width: 840px; padding-bottom: clamp(64px, 9vw, 112px); }
.il-faq details { border-top: 1px solid var(--blue-line); }
.il-faq details:last-of-type { border-bottom: 1px solid var(--blue-line); }
.il-faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.il-faq summary::-webkit-details-marker { display: none; }
.il-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 30px; color: var(--orange); transition: transform 0.2s; }
.il-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.il-faq details p { padding: 0 40px 24px 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.il-cta { margin-top: 40px; text-align: center; }

@media (max-width: 900px) {
  .il-hero-box { flex-direction: column; align-items: stretch; }
  .il-hero-photo { flex: none; width: calc(100% - 18px); }
}
.places-grid { display: block; columns: 2; column-gap: 24px; }
.places-grid .project { break-inside: avoid; margin-bottom: 24px; }
.places-grid .project:nth-child(4) { break-after: column; }
.places-grid .project-photo { flex: none; }
@media (max-width: 800px) { .places-grid { columns: 1; } }

.form-wa { margin-top: 12px; font-size: 16px; font-weight: 500; }
.form-wa a { color: var(--green); font-weight: 700; }

.project { display: flex; flex-direction: column; }
.project .card-link { margin-top: auto; padding-top: 18px; }
.project p + .card-link { margin-top: auto; }

/* ---------- Palestras e Cursos (palestras/index.php) ---------- */
.talk-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.course-box {
  display: flex; align-items: center; gap: clamp(28px, 6vw, 96px);
  padding: clamp(32px, 6vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-light) 40%, var(--orange-light));
}
.course-text { flex: 1 1 0; min-width: 0; }
.course-text h2 { font-size: clamp(36px, 4.6vw, 60px); }
.course-facts { margin: 22px 0 0; }
.course-cover { flex: 0 0 clamp(240px, 32vw, 420px); }
.course-cover img { width: 100%; height: auto; border-radius: 16px; box-shadow: rgba(11, 42, 91, 0.3) 0 24px 48px -16px; }
.course-cover-empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 16 / 10; border-radius: 16px; background: rgba(255, 255, 255, 0.7); text-align: center; color: var(--ink-soft); font-size: 14px; }
.course-cover-empty svg { height: 72px; width: auto; }
.il-end { padding-bottom: clamp(64px, 9vw, 112px); }
@media (max-width: 900px) {
  .course-box { flex-direction: column-reverse; align-items: stretch; }
  .course-cover { flex: none; width: min(100%, 420px); margin: 0 auto; }
}

/* Tópicos do curso: lista numerada em duas colunas */
.topics-list { border-top: 0; columns: 2; column-gap: clamp(24px, 5vw, 72px); }
.topics-list li { break-inside: avoid; border-top: 1px solid var(--blue-line); border-bottom: 0; font-size: clamp(20px, 2vw, 25px); }
.topics-list li:last-child { border-bottom: 0; }
.topics-list li span { color: var(--orange); }
@media (max-width: 800px) { .topics-list { columns: 1; } }
.topics-list li span { flex: 0 0 32px; }

.course-cover-empty { aspect-ratio: 16 / 9; }

.form-detail { background: #FFF3CF; color: var(--ink); font-size: 15px; word-break: break-word; }
