/* ===== TOKENS ===== */
:root{
  --bg:#fff; 
  --text:#0e0e0e; 
  --muted:#666; 
  --border:#e8e8e8; 
  --accent:#0ea5e9;

  /* Tipografia alinhada ao MIV */
  --font-title:"Cormorant Garamond","Times New Roman",serif;   /* Minion-like */
  --font-body:"Century Gothic",system-ui,-apple-system,sans-serif;

  --h1:clamp(2.5rem,6vw,5rem);
  --maxw:1100px; 
  --space-2:1rem; 
  --space-3:2rem; 
  --space-5:6rem;
  --ease:cubic-bezier(.22,1,.36,1); 
  --radius:14px;
}

/* ===== BASE ===== */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,p{margin:0;padding:0}
img,video{max-width:100%;display:block}
html,body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
section:last-of-type{border:none}

/* ===== NAVBAR ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(8px);
}
.topbar nav{
  width:min(100%,var(--maxw));
  margin-inline:auto;
  display:flex;
  gap:1.25rem;
  justify-content:center;
  align-items:center;
  padding:14px 24px;
}
.topbar a{
  color:var(--text);
  font-weight:600;
  font-size:.95rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.9;
  transition:color .2s,opacity .2s;
}
.topbar a:hover{
  color:var(--accent);
  opacity:1;
}
@media (max-width:768px){
    .topbar {
      position: sticky;
      top: 0;
      z-index: 9999 !important;  /* garante que fica acima de tudo */
    }

.topbar .brand img {
  height: 42px !important;
  width: auto !important;
  display: block;
}
}

/* ===== HERO ===== */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  text-align:center;
  color:#fff;
  overflow:hidden;
  background-size:auto 100vh;
  background-repeat:repeat-x;
  background-position:center calc(0px + var(--hero-off,0px)); /* parallax via var */
}
.parallax{background-attachment:fixed}
@media (max-width:1024px){
  .parallax{background-attachment:scroll}
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:1;
}

/* ===== HERO TEXT (loop de entrada/saída) ===== */
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;

  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;

  animation: fadeText 8s ease-in-out infinite;
}

.hero h1 span {
  display: block;
  position: relative;
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0.02em;
  margin-top: .5rem;
  color: rgba(255,255,255,.85);

  animation: fadeText 8s ease-in-out infinite;
  animation-delay: 0.3s; /* leve atraso entre nome e sobrenome */
}

/* animação de entrada/saída do texto */
@keyframes fadeText {
  0%   { opacity: 0; transform: translateY(20px); }
  10%  { opacity: 1; transform: translateY(0); }
  45%  { opacity: 1; transform: translateY(0); }
  55%  { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* ===== FULL BLEED ===== */
.full-bleed{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  border-bottom:none;
}

/* ===== PAINÉIS FULLSCREEN ===== */
.panel{
  position:relative;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  isolation:isolate;
}
.panel + .panel{margin-top:-8vh} /* pequeno overlap pra esconder linha */

/* Fundo do painel controlado por variáveis; com micro-zoom e parallax por var */
.panel::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--panel-bg)!important;
  background-size:var(--panel-size,cover);
  background-position:var(--panel-pos,center);
  background-repeat:var(--panel-repeat,no-repeat);
  background-attachment:fixed;
  opacity:var(--fade-opacity,1);
  transform:translateY(calc(var(--py,0) * -6%)) scale(1.06); /* micro parallax + zoom */
  filter:blur(5px);                    /* desfocado ao entrar */
  transition:opacity .4s ease-out, filter .9s ease-out, transform .2s ease-out;
  z-index:0;
  pointer-events:none;
  will-change:transform,opacity,filter;
}

/* Foca quando o painel está em view */
.panel.inview::before{ filter:blur(0px); }

/* Overlay sutil pra legibilidade e pra suavizar a “linha” entre painéis */
.panel::after{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(to bottom, rgba(0,0,0,.14) 0%, rgba(0,0,0,.10) 40%, rgba(0,0,0,.18) 100%);
  mix-blend-mode:soft-light;
  pointer-events:none;
  z-index:1;
  transition:opacity .4s ease-out;
}

/* BOTÃO CENTRAL — versão reduzida + hover preto */
.menu-item {
  position: relative;
  z-index: 2;
  display: inline-flex;  /* deixa o botão só do tamanho do texto */
  align-items: center;
  justify-content: center;

  padding: 12px 32px;   /* tamanho do botão ajustado */
  width: auto;
  height: auto;

  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  color: #4b3c3c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;

  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition: transform .25s var(--ease), 
              background .25s var(--ease), 
              color .25s var(--ease),
              opacity .6s ease;

  opacity: 0;
  transform: translateY(40px);
}

.menu-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HOVER — preto com fonte branca */
.menu-item:hover {
  background: #000;
  color: #fff;
  transform: translateY(-3px);
}

/* Mobile fix */
@media (max-width:1024px){
  .panel::before{background-attachment:scroll}
  .panel + .panel{margin-top:-5vh}
}

/* ===== LOGO NO HEADER ===== */
.topbar .brand {
  display: flex;
  align-items: center;
  margin-right: var(--space-3);
}

.topbar .brand img {
  height: 50px !important;     /* ajusta se quiser menor */
  width: auto !important;
  object-fit: contain;
  display: block;
  transition: transform .35s ease-out, filter .35s ease-out;
}

/* animação suave no hover da logo */
.topbar .brand:hover img {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 0 6px rgba(0,0,0,.25));
}

/* =========================================
   HERO COM LOGO / VÍDEO ANIMADO
========================================= */

/* fundo do hero sem foto */
.hero.hero--logo {
  background-image: none !important;
  background-color: #f5e6cd; /* ajuste se quiser outra cor */
}

/* overlay suave próprio do hero com logo */
.hero.hero--logo::before {
  background: 
    radial-gradient(circle at top, rgba(255,255,255,.45) 0, transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.18));
}

/* ===== LOGO ANIMADA GRANDE ===== */
.hero-logo-video {
  width: min(2440px, 60vw);   /* aumenta bastante o tamanho */
  height: auto;
  position: relative;
  z-index: 3;

  filter: drop-shadow(0 16px 40px rgba(0,0,0,.35));
  animation: logoFloat 7s ease-in-out infinite,
             logoGlow 7s ease-in-out infinite;
}


/* brilho respirando */
@keyframes logoGlow {
  0%, 100% { 
    opacity: .95;
    filter: drop-shadow(0 14px 35px rgba(0,0,0,.28));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 18px 55px rgba(0,0,0,.40));
  }
}

/* ==== HERO LOGO - MOBILE FULL SIZE ==== */
@media (max-width: 768px) {

  .hero-logo-video {
    width: 100vw !important;     /* ocupa 80% da largura da tela */
    max-width: none !important; /* remove limite que travava */
    margin-top: 10vh;           /* ajusta posição */
  }

  .hero {
    min-height: 100vh;          /* garante espaço */
  }
}



/* =========================================
   PÁGINA SOBRE – LAYOUT PRINCIPAL
   ========================================= */

/* Fundo geral: gradiente + textura de papel */
body.sobre-page {
  margin: 0;
  background: linear-gradient(to bottom, #efe8d9 0%, #ffffff 100%);
}

body.sobre-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/white-paper.png");
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* Textura de papel em toda a página */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/white-paper.png");
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

/* SECTION HERO "Sou o Valdir" */
body.sobre-page .about-hero {
    padding: 8rem 1.5rem 2rem;
    text-align: center;
}

/* Título principal */
body.sobre-page .about-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(3.2rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #2e2a27;
}

/* Bloco com foto + texto lado a lado */
.about-main {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Foto do Valdir */
.about-photo img {
    width: 260px;
    height: 300px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    display: block;
}

/* Texto ao lado da foto */
.about-info {
    flex: 1;
}

/* Frase de impacto (headline) */
.about-impact {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.25;
    font-weight: 650;
    margin-bottom: 1.5rem;
    color: #3a3531;
}

/* Mini bio / cargos */
.about-short {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: #5a514b;
}

/* Bio longa (texto corrido) */
.about-long {
    max-width: 800px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem 6rem;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #645b56;
}

.about-long p + p {
    margin-top: 1.2rem;
}

/* Separadores opcionais */
.about-separator {
    width: 100%;
    max-width: 780px;
    margin: 3.5rem auto;
    border: 0;
    border-top: 1px solid rgba(46, 42, 39, 0.18);
}

.about-separator--small {
    width: 120px;
    margin: 3rem auto;
    border-top: 1px solid rgba(46, 42, 39, 0.25);
}

/* Pequena variação de peso em títulos (hover) */
.about-title,
.about-impact {
    transition: font-weight 240ms ease, letter-spacing 240ms ease, transform 220ms ease;
}

.about-title:hover,
.about-impact:hover {
    font-weight: 850;
    letter-spacing: -0.01em;
    transform: translateY(-1px);
}

/* =========================================
   RESPONSIVO – PÁGINA SOBRE
   ========================================= */

@media (max-width: 900px) {
    .about-main {
        flex-direction: column;
        text-align: center;
    }

    .about-info {
        width: 100%;
    }

    .about-photo img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding-top: 6rem;
    }

    .about-title {
        font-size: clamp(2.5rem, 9vw, 3.3rem);
    }

    .about-impact {
        font-size: 1.35rem;
    }

    .about-long {
        margin-bottom: 4rem;
        padding-bottom: 4rem;
    }
}

/* =========================================
   ANIMAÇÃO DE ENTRADA – .reveal
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition:
        opacity 800ms cubic-bezier(0.21, 0.61, 0.35, 1),
        transform 800ms cubic-bezier(0.21, 0.61, 0.35, 1),
        filter 800ms ease-out;
}

/* classe adicionada via JS */
.reveal.visible,
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Delays opcionais */
.reveal.delay-1 {
    transition-delay: 120ms;
}

.reveal.delay-2 {
    transition-delay: 240ms;
}

/* Acessibilidade: sem animação se o usuário pedir */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* =========================================
   "O QUE EU FAÇO" – SCROLL HORIZONTAL
   ========================================= */

/* Wrapper que controla a duração do scroll vertical */
.horizontal-section {
    position: relative;
    height: 380vh;

    margin-top: 0;
    padding-top: 0;

    /* full width sem criar “bordas” do container */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Sobe um pouquinho para encostar na linha de cima */
    transform: translateY(-2.5rem);
}

/* Parte que fica “presa” na tela enquanto o usuário rola */
.horizontal-inner {
    position: sticky;
    top: 0;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Trilho que se move para o lado */
.horizontal-track {
    display: flex;
    height: 80vh;
    transform: translateX(0);
    transition: transform 80ms linear;
}

/* Cada painel ocupa exatamente uma tela */
.service-panel {
    flex: 0 0 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Layout interno: texto + imagem (imagem à direita) */
.service-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* Imagem grande (livro/palestra/valdir) */
.service-media img {
    width: auto;
    height: 1000px;
    object-fit: contain;          /* não corta nada */
    object-position: top center;  /* prioriza a cabeça no topo */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Texto ao lado da imagem */
.service-content {
    max-width: 700px;
}

.service-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a6f68;
}

.service-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #2e2a27;
}

.service-content p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #645b56;
    margin-bottom: 1.5rem;
}

/* Link/botão dentro dos painéis */
.service-link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 42, 39, 0.24);
    font-size: 0.9rem;
    text-decoration: none;
    color: #2e2a27;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.service-link:hover {
    background: #2e2a27;
    color: #f7f3ec;
    border-color: #2e2a27;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* MINI TÍTULO genérico (não o que fica sobre o número) */
.service-mini-title {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.8rem;
}

/* =========================================
   NÚMERO GIGANTE DOS PAINÉIS (01, 02, 03)
   ========================================= */

.service-number {
    position: absolute;
    top: 12%;
    left: -4%;

    font-size: 42rem;
    font-weight: 700;
    line-height: 0.75;

    background: linear-gradient(180deg, #e6e1d8 0%, #f8f3ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.08);

    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);

    pointer-events: none;
    user-select: none;
    z-index: 1;
    animation: none;
}

/* Tanto .visible quanto .is-visible funcionam (dependendo do JS) */
.service-number.visible,
.service-number.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation:
        serviceNumberIn 900ms ease-out forwards,
        serviceNumberGlow 6s ease-in-out infinite 1.2s;
}

/* Entrada (fade + slide) */
@keyframes serviceNumberIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Glow suave / sensação de profundidade */
@keyframes serviceNumberGlow {
    0%, 100% {
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.04);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.12);
        text-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    }
}

/* Mini-título alinhado sobre o número 01 + linha longa */
.service-mini-title--over-number {
    position: absolute;
    top: 0;
    left: 10%;
    transform: translateY(-120%);

    font-size: 1.15rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;

    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.service-mini-title--over-number::after {
    content: "";
    display: block;
    width: 1000px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin-top: 3px;
    margin-left: 5px;
}

/* =========================================
   RESPONSIVO – SEÇÃO HORIZONTAL
   ========================================= */

@media (max-width: 900px) {
    .horizontal-track {
        height: 80vh;
    }

    .service-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .service-media img {
        width: 100%;
        max-width: 380px;
        height: auto;
    }

    .service-content {
        max-width: 100%;
    }

    /* número vai mais pra baixo e menor */
    .service-number {
        font-size: 14rem;
        top: auto;
        bottom: 2rem;
        left: -8%;
        transform: none;
    }
}

@media (max-width: 600px) {
    .horizontal-track {
        height: 85vh;
    }

    .service-panel {
        padding: 0 8vw;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }
}

/* =========================================
   SEÇÃO FINAL – ENTRE EM CONTATO
   ========================================= */

/* Wrapper que cuida do BG grande e full width
   (começa no divisor e vai até o rodapé) */
.contact-cta-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    margin-top: 4rem;
    padding: 6rem 0 8rem;

    background: linear-gradient(to bottom, #efe8d9 0%, #f7efe0 60%, #ffffff 100%);
    border-top: 1px solid rgba(46, 42, 39, 0.12);
}

/* Respeita o mesmo “container” do resto da página */
.contact-cta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Cartão interno em duas colunas */
.contact-cta-inner {
    max-width: 850px;              /* menor e mais premium */
    margin: 0 auto;
    padding: 2.2rem 2.4rem;        /* antes era 3rem 3.5rem */
    border-radius: 34px;           /* menos retangular */
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.16);

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2.2rem;                   /* antes: 3rem */
}

/* Texto da CTA */
.contact-cta-text h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 3.3vw, 2.7rem);
    color: #2e2a27;
    margin-bottom: 1rem;
}

.contact-cta-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #645b56;
    max-width: 34rem;
    margin-bottom: 2rem;
}

/* Botão com pulso suave */
.contact-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    background: #29241f;
    color: #f7f3ec;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition:
        transform 150ms ease-out,
        box-shadow 150ms ease-out,
        background 180ms ease-out;

    animation: contactPulse 2.8s ease-in-out infinite;
}

.contact-cta-button:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

@keyframes contactPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(41, 36, 31, 0.4);
    }
    50% {
        box-shadow: 0 0 0 18px rgba(41, 36, 31, 0);
    }
}

/* Foto da CTA como “texture” à direita */
.contact-cta-photo {
    width: 100%;
    min-height: 260px;

    border-radius: 32px;
    background-size: cover;
    background-position: 50% 15%; /* cabeça inteira visível */
    background-repeat: no-repeat;

    filter: saturate(1.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Responsivo da CTA */
@media (max-width: 900px) {
    .contact-cta-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.8rem;
        gap: 2rem;
    }

    .contact-cta-photo {
        min-height: 220px;
        order: -1; /* foto primeiro no mobile */
    }

    .contact-cta-text h2 {
        font-size: 2rem;
    }
}

/* Remove o separador do início do scroll horizontal só no SOBRE */
body.sobre-page .horizontal-section::before {
    display: none !important;
}

/* remove a linha do scroll horizontal só nesta página */
.about-services + .horizontal-section::before {
    display: none !important;
}

.about-long {
    border-top: 1px solid var(--border);
    padding-top: 4rem; /* garante espaçamento antes da linha */
    margin-top: 4rem;  /* garante espaçamento depois da linha */
}

/* ===== LIVROS ===== */

.books-hero {
  text-align: center;
  padding-block: var(--space-6, 4rem);
}

.books-title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin-bottom: var(--space-2, 1rem);
}

.books-lead {
  max-width: 52rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground, #5c5c5c);
}

/* lista de livros */

.books-list {
  display: flex;
  justify-content: center;
  padding-block: var(--space-5, 3rem) var(--space-7, 4rem);
}

/* card principal do livro (estilo print2) */

.books-list {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centraliza todos os cards */
  gap: 3rem;
  padding-bottom: 4rem;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--space-4, 1.8rem);

  background: linear-gradient(135deg, #f5eee3, #f8f4ed);
  border-radius: 20px;
  padding: var(--space-4, 1.8rem);

  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  max-width: 720px;
  margin: 0 auto;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.book-card-media img {
  max-width: 200px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.book-card-media img {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.28);
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.book-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 1.25rem);
}

.book-name {
  font-size: 1.8rem;
  margin: 0;
}

.book-synopsis {
  margin: 0;
  line-height: 1.7;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 1.25rem);
  margin: var(--space-2, 1rem) 0 var(--space-1, 0.5rem);
}

.book-meta dt {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground, #6b6b6b);
}

.book-meta dd {
  margin: 0;
  font-weight: 500;
}

.book-cta {
  align-self: flex-start;
  margin-top: auto; /* cola o botão no fim do card */
}

/* animação no hover (levanta o card e dá um micro-zoom na capa) */

.book-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  background: linear-gradient(135deg, #f9f2e8, #f1e6d6);
}

.book-card:hover .book-card-media img {
  transform: scale(1.04);
}

/* responsivo */

@media (max-width: 768px) {
  .books-hero {
    padding-block: var(--space-4, 2.5rem);
  }

  .book-card {
    grid-template-columns: 1fr;
    padding: var(--space-4, 2rem);
  }

  .book-card-media img {
    max-width: 220px;
  }
}

/* ===== ANIMAÇÃO DE ENTRADA ===== */

.fade-in-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* delays para escalonar */
.fade-delay-1 { animation-delay: 0.10s; }
.fade-delay-2 { animation-delay: 0.25s; }
.fade-delay-3 { animation-delay: 0.40s; }
.fade-delay-4 { animation-delay: 0.55s; }

/* ===== ANIMAÇÃO ON HOVER NO TÍTULO ===== */

.hover-pop {
  display: inline-block;
  transition: transform 180ms ease;
  will-change: transform;
}

.hover-pop:hover {
  transform: scale(1.035) translateY(-2px);
}

.books-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;       /* espaço entre um livro e outro */
  padding-bottom: 4rem;
}

/* ===========================
   PALESTRAS – HERO
   =========================== */

.talks-hero {
  text-align: center;
  padding-block: var(--space-6, 4rem);
}

.talks-title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin-bottom: var(--space-2, 1rem);
}

.talks-lead {
  max-width: 52rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground, #5c5c5c);
}

/* ===========================
   PALESTRAS – LISTA
   =========================== */

.talks-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}

/* ===========================
   PALESTRAS – CARD PRINCIPAL
   (imagem deitada + texto)
   =========================== */

.talk-card {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%); /* imagem | texto */
  align-items: stretch;
  gap: var(--space-5, 2.5rem);

  background: linear-gradient(135deg, #f5eee3, #f8f4ed);
  border-radius: 20px;
  padding: var(--space-5, 2.5rem);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);

  max-width: 1100px;
  width: 100%;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.talk-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  background: linear-gradient(135deg, #f9f2e8, #f1e6d6);
}

/* ===========================
   IMAGEM – PROPORÇÃO 16:9
   (bem simples e robusto)
   =========================== */

.talk-card-media {
  width: 100%;
}

.talk-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* força a ser deitada */
  object-fit: cover;      /* corta o excesso sem distorcer */
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  transition: transform 220ms ease;
}

.talk-card:hover .talk-card-media img {
  transform: scale(1.03);
}

/* ===========================
   TEXTO DENTRO DO CARD
   =========================== */

.talk-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3, 1.25rem);
}

.talk-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 var(--space-2, 1rem);
  color: var(--foreground, #1c1c1c);
}

.talk-description {
  margin: 0;
  line-height: 1.7;
}

.talk-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 1rem);
}

.talk-meta dt {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground, #6b6b6b);
}

.talk-meta dd {
  margin: 0;
  font-weight: 500;
}

/* ===========================
   RESPONSIVO – MOBILE
   =========================== */

@media (max-width: 820px) {
  .talk-card {
    grid-template-columns: 1fr;
  }

  .talk-card-body {
    justify-content: flex-start;
  }
}

/* ===== FINESSE VISUAL – PALESTRAS ===== */

/* Card um pouco mais compacto e com menos "respiro" sobrando */
.talk-card {
  gap: 2rem;                          /* antes era maior */
  padding: 2.5rem 2.75rem;
}

/* Imagem ligeiramente mais protagonista e com sombra mais suave */
.talk-card-media img {
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
}

/* Texto com largura mais confortável e alinhado ao topo */
.talk-card-body {
  align-items: flex-start;
  justify-content: center;
  max-width: 34rem;
}

/* Título um pouco maior pra “bater de frente” com a imagem */
.talk-title {
  font-size: 2rem;
}

/* Linha discreta separando descrição dos metadados */
.talk-meta {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Labelzinhos ainda mais suaves visualmente */
.talk-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: rgba(100, 100, 100, 0.9);
}

/* Remove espaço morto ao redor do card */
.talk-card {
  padding: 1.8rem 2.2rem;
  align-items: center;        /* centraliza imagem + texto verticalmente */
  gap: 1.8rem !important;     /* deixa mais compacto */
}

/* Ajuste de imagem para ocupar melhor o espaço */
.talk-card-media {
  max-width: 500px;           /* imagem maior */
}

/* Sombra mais suave (não cria “espaço visual” extra) */
.talk-card-media img {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.15);
}

/* Halo suave atrás da imagem da palestra */
.talk-card {
  position: relative;
  overflow: visible;
}

.talk-card-media {
  position: relative;
  z-index: 1;
}

/* “Glow” que ocupa o espaço morto em cima/baixo da foto */
.talk-card-media::before {
  content: "";
  position: absolute;
  inset: -1%; /* aumenta a área acima e abaixo da imagem */
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.20), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(59, 130, 246, 0.18), transparent 60%);
  filter: blur(14px);
  opacity: 0.85;
  z-index: -1; /* fica atrás da foto, mas dentro do card */
  pointer-events: none;
}


/* ===========================
   FOTO VERTICAL — ESTILO PREMIUM REDONDO
   =========================== */

.talk-card.vertical-photo {
  grid-template-columns: 180px 1fr; /* foto redonda | texto */
  align-items: center;
}

.talk-card.vertical-photo .talk-card-media {
  aspect-ratio: 1 / 1 !important;  /* quadrado perfeito */
  max-width: 180px;
}

.talk-card.vertical-photo .talk-card-media img {
  border-radius: 50%;               /* transforma em foto redonda */
  object-fit: cover;                /* encaixa sem distorcer */
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* ===========================
   CONTATO — HERO
=========================== */
.contact-hero {
  text-align: center;
  padding-block: 4rem 2rem;
}

.contact-title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin-bottom: 1rem;
}

.contact-lead {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted-foreground, #575757);
  font-size: 1rem;
  line-height: 1.6;
}


/* ===========================
   CONTATO — CARD
=========================== */
.contact-card-wrapper {
  display: flex;
  justify-content: center;
  padding-bottom: 4rem;
}

.contact-card {
  background: linear-gradient(135deg, #f5eee3, #f8f4ed);
  padding: 2.8rem;
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  width: min(600px, 90%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Linha de contato */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Ícone redondo */
.contact-row .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  font-size: 1.4rem;
}

/* Links */
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
}

.contact-card a:hover {
  opacity: 0.7;
}

/* Botão */
.contact-cta {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ===========================
   CONTATO – HOVER DO CARD (igual Palestras)
=========================== */
.contact-card {
  transition: transform 220ms ease,
              box-shadow 220ms ease,
              background 220ms ease;
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.20);
  background: linear-gradient(135deg, #f9f2e8, #f1e6d6);
}


/* ===========================
   CONTATO – BOTÃO NEUTRO ELEGANTE
=========================== */
.contact-cta {
  background: #ffffff;                 /* branco elegante */
  color: #1c1c1c;                      /* preto suave, não absoluto */
  border: 1px solid rgba(0,0,0,0.15);  /* borda leve */
  border-radius: 12px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: background 200ms ease,
              color 200ms ease,
              border-color 200ms ease,
              transform 200ms ease;
  display: inline-block;
}

.contact-cta:hover {
  background: #1c1c1c;                 /* preto suave (não absoluto) */
  color: #ffffff;
  border-color: #1c1c1c;
  transform: translateY(-2px);
}

/* Força o estilo do botão de contato acima de .btn / .btn-primary */
a.btn.btn-primary.contact-cta {
  background: #ffffff !important;                 /* branco elegante */
  color: #1c1c1c !important;                      /* preto suave */
  border: 1px solid rgba(0,0,0,0.15) !important;  /* borda leve */
  border-radius: 12px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: inline-block;
  transition: background 200ms ease,
              color 200ms ease,
              border-color 200ms ease,
              transform 200ms ease;
}

a.btn.btn-primary.contact-cta:hover {
  background: #1c1c1c !important;   /* preto suave */
  color: #ffffff !important;
  border-color: #1c1c1c !important;
  transform: translateY(-2px);
}

/* ===========================
   DEPOIMENTOS – MOBILE FIX
   (vertical-photo bonitinho no celular)
=========================== */
@media (max-width: 768px) {

  /* todos os cards mais compactos */
  .talk-card {
    padding: 1.8rem 1.4rem;
  }

  /* depoimentos com foto redonda:
     empilha FOTO em cima e TEXTO embaixo */
  .talk-card.vertical-photo {
    grid-template-columns: 1fr;     /* uma coluna só */
    text-align: center;
    align-items: center;
  }

  .talk-card.vertical-photo .talk-card-media {
    max-width: 160px;
    margin: 0 auto 1.5rem;          /* centraliza a foto */
  }

  .talk-card.vertical-photo .talk-card-body {
    align-items: center;            /* centraliza título e texto */
  }

  /* deixa o cargo organizado, mas ainda legível */
  .talk-card.vertical-photo .talk-meta {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Desktop usa webm */
.hero-video--mobile { display: none; }

/* Mobile usa mp4 */
@media (max-width: 768px){
  .hero-video--desktop { display: none; }
  .hero-video--mobile  { display: block; }
}

