/* ============================================================
   Instituto Ilha da Trindade — itrindade.com.br
   Paleta: bandeira do Espírito Santo (rosa | branco | azul)
   ============================================================ */

:root {
  --ink: #1c2733;          /* texto principal */
  --stone: #5c6672;        /* texto secundário */
  --paper: #fefdfd;        /* fundo */
  --mist: #f4f5f6;         /* fundo de seção alternada */
  --rosa: #f4bed4;         /* rosa da bandeira */
  --rosa-suave: #fbe9f1;
  --rosa-forte: #c96f9c;
  --azul: #7cc3e7;         /* azul da bandeira */
  --azul-suave: #e8f4fb;
  --azul-forte: #226489;
  --marinho: #24313f;   /* links e acentos */
  --hairline: #dfe2e5;
  --max: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--azul-forte); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--azul-forte);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Faixa tricolor (assinatura visual) ---------- */
.faixa {
  height: 9px;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
}
.faixa span:nth-child(1) { background: var(--rosa); }
.faixa span:nth-child(2) { background: #fff; border-block: 1px solid var(--hairline); }
.faixa span:nth-child(3) { background: var(--azul); }

/* ---------- Cabeçalho ---------- */
header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

nav.menu { display: flex; gap: 1.6rem; align-items: center; }
nav.menu a {
  color: var(--ink);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}
nav.menu a:hover { color: var(--azul-forte); text-decoration: none; }
nav.menu a[aria-current="page"] {
  color: var(--azul-forte);
  border-bottom: 2px solid var(--azul);
  padding-bottom: 2px;
}
nav.menu a.externo::after { content: " ↗"; font-size: 0.8em; color: var(--stone); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4.5rem 1.4rem 3.5rem;
}
.hero img.logo {
  width: min(340px, 70vw);
  margin: 0 auto 2rem;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: 0.02em;
}
.hero p.lema {
  margin-top: 0.9rem;
  color: var(--stone);
  font-style: italic;
  font-size: 1.2rem;
}
.hero .fundacao {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Seções ---------- */
section.bloco { padding: 3.6rem 0; }
section.bloco.alt { background: var(--mist); }

.eyebrow {
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--azul-forte);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 1.4rem;
  letter-spacing: 0.01em;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.prosa { max-width: 720px; }
.prosa p + p { margin-top: 1rem; }

blockquote.citacao {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--marinho);
}
blockquote.citacao p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
}
blockquote.citacao cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 1rem;
  color: var(--stone);
}

/* ---------- O que fazemos ---------- */
.grade-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
.cartao {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--azul);
  padding: 1.5rem 1.4rem;
}
.cartao:nth-child(2) { border-top-color: var(--marinho); }
.cartao ul { list-style: none; margin-top: 0.4rem; }
.cartao li { padding: 0.28rem 0; color: var(--stone); }
.cartao li::before { content: "–"; color: var(--azul-forte); margin-right: 0.5rem; }

/* ---------- Valores ---------- */
.valores { list-style: none; max-width: 760px; }
.valores > li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--hairline);
}
.valores > li:last-child { border-bottom: none; }
.valores strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.valores .nota { color: var(--stone); font-size: 1.05rem; }

/* ---------- Símbolo / logo ---------- */
.simbolo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.simbolo img { border: 1px solid var(--hairline); }
.trindade-lista { list-style: none; margin-top: 1rem; }
.trindade-lista li { padding: 0.45rem 0; }
.trindade-lista strong { color: var(--azul-forte); }

/* ---------- Membros ---------- */
.membros {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem 1.4rem;
  max-width: 720px;
  counter-reset: membro;
}
.membros li {
  border-left: 3px solid var(--azul);
  padding: 0.35rem 0 0.35rem 0.9rem;
  font-size: 1.15rem;
}
.membros li:nth-child(even) { border-left-color: var(--marinho); }

/* ---------- Doações ---------- */
.doacao {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.2rem;
  align-items: center;
  max-width: 760px;
}
.qr-reservado {
  width: 240px;
  height: 240px;
  border: 1px solid var(--hairline);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0.6rem;
}
.chave-pix {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--azul-suave);
  border: 1px solid var(--azul);
  padding: 0.5rem 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ---------- Contato / localização ---------- */
.contatos { list-style: none; margin-top: 0.6rem; }
.contatos li { padding: 0.35rem 0; }

/* ---------- Eventos ---------- */
.aviso {
  background: var(--azul-suave);
  border: 1px solid var(--azul);
  padding: 1rem 1.2rem;
  max-width: 720px;
  font-size: 1.05rem;
}
.evento-vazio {
  border: 1px dashed var(--hairline);
  background: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--stone);
  max-width: 720px;
  margin-top: 1.2rem;
}

/* ---------- Indicações ---------- */
.indicacoes { list-style: none; max-width: 720px; }
.indicacoes li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.2rem;
}
.indicacoes li:last-child { border-bottom: none; }

/* ---------- Rodapé ---------- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 2.6rem 0 2rem;
  background: var(--mist);
  color: var(--stone);
  font-size: 1rem;
}
footer .colunas {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
footer nav { display: grid; gap: 0.35rem; }
footer .fim {
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
  font-size: 0.92rem;
}

/* ---------- Revelação suave ---------- */
.revela {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revela.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 800px) {
  .menu-btn { display: block; }
  nav.menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem 1.4rem;
    gap: 0.9rem;
  }
  nav.menu.aberto { display: flex; }
  .grade-3 { grid-template-columns: 1fr; }
  .simbolo { grid-template-columns: 1fr; }
  .simbolo img { max-width: 300px; }
  .membros { grid-template-columns: 1fr 1fr; }
  .doacao { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .membros { grid-template-columns: 1fr; }
}

/* ============================================================
   Curso / grupo de estudos — "Do mito ao argumento"
   ============================================================ */

/* ---------- Botões ---------- */
.botao {
  display: inline-block;
  background: var(--marinho);
  color: #fff;
  border: 1px solid var(--marinho);
  padding: 0.6rem 1.3rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}
.botao:hover { background: var(--azul-forte); border-color: var(--azul-forte); text-decoration: none; }
.botao.secundario { background: #fff; color: var(--marinho); }
.botao.secundario:hover { background: var(--azul-suave); color: var(--azul-forte); }

.link-forte { display: inline-block; margin-top: 0.6rem; font-size: 1rem; }

/* ---------- Capa do curso ---------- */
.curso-capa { padding-top: 3rem; }
.curso-titulo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.1rem);
  font-variant: small-caps;
  letter-spacing: 0.02em;
  color: var(--marinho);
  line-height: 1.1;
}
.curso-lema {
  margin-top: 0.7rem;
  max-width: 620px;
  font-style: italic;
  color: var(--stone);
  font-size: 1.18rem;
}

.curso-barra {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 1.6rem;
  margin: 2rem 0 1.8rem;
  padding: 1.1rem 0;
  border-top: 2px solid var(--marinho);
  border-bottom: 1px solid var(--hairline);
}
.curso-barra > div + div { border-left: 1px solid var(--hairline); padding-left: 1.6rem; }
.curso-barra dt {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  color: var(--stone);
}
.curso-barra dd {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--marinho);
  line-height: 1.25;
  margin-top: 0.15rem;
}

/* ---------- Cartões de links (área do aluno) ---------- */
.curso-links .cartao { display: flex; flex-direction: column; }
.curso-links .cartao p { font-size: 1.02rem; color: var(--stone); margin-top: 0.3rem; }
.curso-links .cartao:nth-child(1) { border-top-color: var(--rosa-forte); }
.curso-links .cartao:nth-child(3) { border-top-color: var(--marinho); }
.curso-links .link-forte { margin-top: auto; padding-top: 0.8rem; }

/* ---------- Ritmo do encontro ---------- */
.curso-ritmo { max-width: 820px; margin-top: 1rem; }
.curso-ritmo th, .curso-ritmo td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1.2rem 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
}
.curso-ritmo tr:last-child th, .curso-ritmo tr:last-child td { border-bottom: none; }
.curso-ritmo th {
  width: 9.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--marinho);
}
.curso-ritmo th span { color: var(--stone); font-weight: 400; }
.curso-ritmo .t {
  width: 15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--marinho);
}
.curso-ritmo .d { font-size: 1rem; color: var(--stone); }

/* ---------- Local ---------- */
.curso-local {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.4rem;
  align-items: start;
  max-width: 900px;
}
.curso-local .casa {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--marinho);
  margin-bottom: 0.4rem;
}
.curso-local img { border: 1px solid var(--hairline); }

/* ---------- Informações ---------- */
.curso-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.4rem;
  max-width: 900px;
}
.curso-info > div { border-top: 1px solid var(--hairline); padding-top: 0.9rem; }
.curso-info p { font-size: 1.03rem; color: var(--stone); }
.curso-info strong { color: var(--marinho); }

/* ---------- Agenda do Google ---------- */
.agenda-google {
  max-width: 820px;
  margin-top: 1.4rem;
  border: 1px solid var(--hairline);
  background: #fff;
}
.agenda-google iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}
.agenda-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1rem;
  max-width: 820px;
  font-size: 1.02rem;
}

@media (max-width: 700px) {
  .agenda-google iframe { height: 520px; }
}

/* ---------- Destaque na página inicial ---------- */
.destaque {
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--rosa-forte);
  background: #fff;
  padding: 1.6rem 1.8rem;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.destaque h3 { margin-bottom: 0.2rem; font-size: 1.5rem; color: var(--marinho); }
.destaque p { color: var(--stone); font-size: 1.05rem; }

/* ---------- Responsivo do curso ---------- */
@media (max-width: 800px) {
  .curso-barra { grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
  .curso-barra > div + div { border-left: none; padding-left: 0; }
  .curso-local { grid-template-columns: 1fr; }
  .curso-info { grid-template-columns: 1fr; }
  .curso-ritmo th, .curso-ritmo .t { width: auto; }
  .curso-ritmo, .curso-ritmo tbody, .curso-ritmo tr, .curso-ritmo th, .curso-ritmo td { display: block; }
  .curso-ritmo tr { border-bottom: 1px solid var(--hairline); padding: 0.7rem 0; }
  .curso-ritmo tr:last-child { border-bottom: none; }
  .curso-ritmo th, .curso-ritmo td { border-bottom: none; padding: 0.1rem 0; }
}
