
.books-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
.books-heading h2{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.12;color:#101b33;letter-spacing:-.035em;margin:8px 0 10px}
.books-heading p{max-width:660px;margin:0;color:#536076;font-size:1rem}
.store-link{display:inline-flex;align-items:center;gap:8px;color:#101b33;font-weight:750;text-decoration:none;border-bottom:2px solid #d8b95f;padding:8px 0;font-size:.82rem}
.books-grid{display:block;max-width:none;margin:0}
.book-group{margin-top:30px}
.book-collection-title{margin:0 0 22px;padding-bottom:10px;border-bottom:1px solid #dce2ea;color:#101b33;font-size:1.08rem;line-height:1.3}
.book-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:stretch}
.book-row--collection{grid-template-columns:repeat(4,minmax(0,1fr));max-width:880px}
.book-card--enhanced{position:relative;display:flex;flex-direction:column;padding:0 5px 10px;gap:13px;background:transparent;border:0;border-radius:0;box-shadow:none}
.book-card--enhanced:hover{transform:none;box-shadow:none}
.book-card--enhanced .book-cover{display:flex;align-items:center;justify-content:center;height:184px;aspect-ratio:auto;border:0;padding:8px 14px 10px;background:transparent;box-shadow:none;overflow:visible}
.book-3d{position:relative;display:block;height:164px;max-width:100%;filter:drop-shadow(5px 7px 5px #101b3329);transform:perspective(900px) rotateY(-5deg);transition:transform .2s}
.book-preview-cover .book-front{position:relative;inset:auto;width:auto;height:100%;max-width:100%;object-fit:contain;display:block;border-radius:1px}
.book-spine{position:absolute;left:-3px;top:1%;width:4px;height:98%;background:linear-gradient(90deg,#18223a88,#fff8);border-radius:1px}
.book-preview-cover:hover .book-3d{transform:perspective(900px) rotateY(-2deg) translateY(-2px)}
.book-preview-cover:hover .book-front{opacity:1}
.book-info{display:flex;flex:1;flex-direction:column;gap:7px}
.book-card--enhanced .book-info h3{margin:0;color:#101b33;font-size:.91rem;line-height:1.32;min-height:2.64em}
.book-info h3 a{color:inherit;text-decoration:none}
.book-card--enhanced .book-subtitle{margin:0;color:#657086;font-size:.74rem;line-height:1.45;min-height:4.35em}
.book-card--enhanced .book-status{font-size:.6rem;padding:3px 6px;margin:0;letter-spacing:.04em}
.book-price{margin:0;color:#101b33;font-size:.98rem;font-weight:800}
.book-actions{display:grid;gap:7px;margin-top:auto;padding-top:10px}
.book-preview-button,.book-buy-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:36px;padding:8px 9px;border-radius:5px;font:inherit;font-size:.72rem;font-weight:750;cursor:pointer;text-decoration:none;text-align:center}
.book-preview-button{border:1px solid #cbd2dc;background:#fff;color:#101b33}
.book-buy-button{border:1px solid #101b33;background:#101b33;color:#fff}
.book-preview-button:hover{border-color:#8d7130}.book-buy-button:hover{background:#22345c}
.book-soon{position:absolute;right:3px;top:0;z-index:4;background:#b92e38;color:#fff;font-size:.62rem;font-weight:750;line-height:1;padding:5px 8px;border-radius:4px}
.book-placeholder{position:relative;display:block;width:100px;height:150px;background:#f3eee5;border-left:5px solid #d8cbb4;border-radius:2px;color:#9b8b70;box-shadow:4px 6px 8px #101b3312}
.book-placeholder:before{content:"";position:absolute;top:32px;left:20px;right:20px;height:2px;background:#b4a58a}
.book-placeholder-lines{position:absolute;left:20px;right:20px;top:46px;height:18px;border-top:2px solid #d4c8b5;border-bottom:2px solid #d4c8b5}
.book-dialog{width:min(780px,calc(100% - 32px));border:0;border-radius:14px;padding:0;box-shadow:0 30px 100px #07112780;color:#26334a}
.book-dialog::backdrop{background:#071127bb;backdrop-filter:blur(3px)}
.book-dialog-content{position:relative;display:grid;grid-template-columns:190px 1fr;gap:26px;padding:30px}
.book-dialog-content>img{width:100%;max-height:300px;object-fit:contain}
.book-dialog-content>div:only-of-type{grid-column:auto}
.book-dialog h2{font-size:1.7rem;color:#101b33;line-height:1.15;margin:8px 32px 8px 0}
.book-dialog p{color:#536076;line-height:1.6;font-size:.94rem}
.dialog-subtitle{margin-top:0;font-weight:700}.dialog-price{padding-top:12px;border-top:1px solid #dce2ea}
.dialog-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid #dce2ea;background:#fff;color:#101b33;font-size:1.5rem;cursor:pointer}
.book-dialog .book-buy-button{width:fit-content;padding-inline:16px;margin-top:8px}
.book-print-note,.book-channel-note{font-size:.8rem;line-height:1.5;color:#647087}
.book-cover:focus-visible,.book-preview-button:focus-visible,.book-buy-button:focus-visible,.store-link:focus-visible,.dialog-close:focus-visible{outline:3px solid #d8b95f;outline-offset:3px}
.hero{padding-top:44px;padding-bottom:46px;gap:40px}.hero h1{font-size:clamp(3rem,6vw,4.6rem);margin:14px 0 22px}.hero .hero-role{font-size:clamp(1.1rem,1.8vw,1.4rem);line-height:1.45}.photoWrap{max-width:260px}.hero-ctas .cta{margin-top:0}
.section{padding-top:38px;padding-bottom:38px}section[id],article[id]{scroll-margin-top:90px}
.cards-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.content-item{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.8fr);grid-template-rows:auto auto 1fr;align-items:start}
.content-item h3{margin-top:0}.content-item p{margin-top:0}.content-item a{align-self:start}
.footer-platforms{margin-top:30px;padding-top:22px;border-top:1px solid #ffffff26}
.footer-platforms h3{font-size:.8rem;letter-spacing:.06em;color:#d8b95f;margin:0 0 12px;text-transform:uppercase}
.platform-logos{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.platform-logo{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;border-radius:5px;background:#fff;color:#18233d;font-size:.8rem;font-weight:700;text-decoration:none}
.platform-logo img{display:block;width:90px;max-height:26px;object-fit:contain}
.platform-logo img.platform-icon{width:23px;height:23px}
.contact .social{gap:12px;margin-top:22px}.contact .social a:before{display:none}
.social svg{width:19px;height:19px;fill:currentColor;flex:none}
.cikala-mini{margin-top:26px;gap:12px}.cikala-mini:before{display:none}
.cikala-mini img.cikala-logo-mini{width:100px!important;max-height:32px!important;padding:5px 8px}
@media(max-width:1050px){.book-row{gap:16px}.books-heading{align-items:start;flex-direction:column;gap:12px}}
@media(max-width:850px){.book-row,.book-row--collection{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.book-row--collection{grid-template-columns:repeat(2,minmax(0,1fr));max-width:540px}.hero{grid-template-columns:minmax(0,1fr) 180px;gap:26px}.photoWrap{max-width:180px}.top{flex-wrap:wrap;gap:10px}.brand span,.nav>a{display:inline}.nav{flex-wrap:wrap;gap:13px}.nav>a{font-size:.75rem}.hero-ctas{flex-direction:row}.hero-ctas .cta{width:auto}.cards-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.content-item{grid-template-columns:1fr;grid-template-areas:"video" "title" "desc" "link";gap:10px}.content-item h3{margin-top:4px}}
@media(max-width:600px){.book-row,.book-row--collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;max-width:none}.book-card--enhanced .book-cover{height:164px;padding-inline:8px}.book-3d{height:145px}.book-card--enhanced .book-info h3{font-size:.88rem}.book-card--enhanced .book-subtitle{font-size:.73rem}.book-placeholder{height:138px;width:92px}.hero{grid-template-columns:1fr;gap:24px;padding-top:30px;padding-bottom:34px}.photoWrap{max-width:180px}.books-heading h2{font-size:1.6rem}.nav{width:100%;justify-content:space-between;gap:10px}.nav>a{font-size:.7rem}.langs{margin-left:auto}.book-dialog-content{grid-template-columns:1fr;padding:24px}.book-dialog-content>img{height:190px}.book-group{margin-top:26px}.book-soon{font-size:.59rem}.cards-compact{grid-template-columns:1fr 1fr}.platform-logos{gap:8px}.platform-logo{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.book-3d,.book-card{transition:none}}

.book-dialog-content:not(:has(>img)){grid-template-columns:1fr}

.fiction-intro{max-width:760px;margin:0 0 24px;color:#536076;font-size:.95rem;line-height:1.7}.book-row--fiction{grid-template-columns:repeat(2,minmax(0,1fr));max-width:430px}@media(max-width:600px){.fiction-intro{font-size:.9rem;line-height:1.6}.book-row--fiction{max-width:430px}}

.footer-platforms .platform-logo--brand{min-width:164px;min-height:96px;justify-content:center;padding:8px 14px;gap:12px;font-size:.9rem}.footer-platforms .platform-brand-icon{width:40px;height:40px;max-height:40px}.footer-platforms .platform-kindle-logo{width:100px;height:78px;max-height:78px;object-fit:contain}@media(max-width:420px){.footer-platforms .platform-logos{gap:8px}.footer-platforms .platform-logo--brand{min-width:144px;padding-inline:10px}}


/* Correção da primeira dobra no iPhone: foto centralizada e sem vazio lateral. */
@media (max-width:600px){
  header.hero{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;padding:28px 22px 36px}
  header.hero>div:first-child{min-width:0}
  header.hero .hero-ctas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}
  header.hero .hero-ctas .cta{width:100%;margin:0;padding:13px 9px;min-height:48px;display:flex;align-items:center;justify-content:center;line-height:1.25}
  header.hero .photoWrap{width:min(260px,78vw);max-width:none;margin:10px auto 0;justify-self:center}
  header.hero .photo{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
  header.hero .photoWrap:before{inset:-10px 10px 10px -10px}
  header.hero h1{font-size:clamp(3rem,12vw,4.2rem);margin:14px 0 24px}
  header.hero .hero-role{font-size:clamp(1.05rem,4vw,1.28rem);line-height:1.43}
}
@media (max-width:370px){
  header.hero .hero-ctas{grid-template-columns:1fr}
  header.hero .photoWrap{width:min(240px,80vw)}
}


/* Hero desktop: largura e fotografia equilibradas, sem distorcer a capa. */
@media(min-width:851px){
  header.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:clamp(28px,4.5vw,68px);align-items:center;padding:clamp(48px,5vw,76px) clamp(36px,4.5vw,60px)}
  header.hero .photoWrap{width:100%;max-width:355px;justify-self:end;margin:0}
  header.hero .photo{width:100%;aspect-ratio:4/5;object-fit:cover}
  header.hero .hero-ctas{display:flex;gap:12px;flex-wrap:wrap}
  header.hero .hero-ctas .cta{width:auto;min-width:180px}
}
@media(min-width:701px) and (max-width:850px){
  header.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(185px,.52fr);gap:22px;padding:38px 28px}
  header.hero .photoWrap{width:100%;max-width:240px;justify-self:end;margin:0}
  header.hero .hero-ctas{display:flex;flex-wrap:wrap;gap:10px}
}


/* Mini-historias de empresas: clique para expandir, sem sair da pagina. */
.career-experiences{margin:28px 0 34px;padding:25px 0 0;border-top:1px solid #dee4ed}
.career-experiences h3{font-size:1.16rem;line-height:1.25;color:#101b33;margin:0 0 6px}
.career-experiences .career-hint{font-size:.91rem;color:#647087;margin:0 0 18px}
.career-experiences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.career-experience{min-width:0;border:1px solid #dbe1eb;border-radius:9px;background:#fff;overflow:hidden}
.career-experience summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 15px;color:#101b33;font-weight:750;font-size:.92rem;line-height:1.35}
.career-experience summary::-webkit-details-marker{display:none}
.career-experience summary:focus-visible{outline:2px solid #b68a35;outline-offset:-3px}
.career-experience summary:hover{background:#f7f8fb}
.career-experience .career-plus{color:#927132;font-size:1.4rem;font-weight:500;line-height:1;flex:0 0 auto}
.career-experience[open] .career-plus{transform:rotate(45deg)}
.career-experience[open] summary{border-bottom:1px solid #e2e7ef;background:#f9fafc}
.career-experience-body{padding:13px 15px 17px}
.career-experience-body small{font-size:.76rem;font-weight:750;letter-spacing:.025em;color:#8b6a2b}
.career-experience-body p{font-size:.91rem;line-height:1.6;color:#526077;margin:8px 0 0}
@media(max-width:700px){.career-experiences-grid{grid-template-columns:minmax(0,1fr)}.career-experiences{margin-top:25px}.career-experience summary{min-height:55px;font-size:.94rem}}


/* Rodape social com links discretos e agrupados, inclusive no iPhone. */
.contact .social-block{margin-top:25px;padding-top:20px;border-top:1px solid #ffffff25}
.contact .social-heading{font-size:.77rem;letter-spacing:.09em;text-transform:uppercase;color:#d8b95f;font-weight:750;margin:0 0 12px}
.contact .social-block .social{display:flex;flex-wrap:wrap;gap:9px;margin:0;align-items:center}
.contact .social-block .social a{display:inline-flex;flex:0 0 auto;min-height:44px;align-items:center;justify-content:center;gap:9px;padding:10px 14px;border:1px solid #ffffff34;border-radius:9px;background:#ffffff09;color:#fff;text-decoration:none;font-size:.84rem;font-weight:650;transition:background .2s,border-color .2s}
.contact .social-block .social a:before{display:none}
.contact .social-block .social svg{width:18px;height:18px;fill:currentColor;flex:0 0 18px}
.contact .social-block .social a:hover{background:#ffffff18;border-color:#d8b95f}
.contact .social-block .social a:focus-visible{outline:2px solid #d8b95f;outline-offset:3px}
@media(max-width:700px){
 .contact .social-block .social{display:flex;flex-wrap:wrap;gap:9px}
 .contact .social-block .social a{width:auto;min-width:0;flex:0 0 auto;padding:10px 12px;font-size:.8rem;min-height:44px}
}
@media(max-width:355px){.contact .social-block .social a{font-size:.75rem;padding:9px 10px}}

/* Preservar proporções originais das capas, inclusive na prévia em modal. */
.book-card--enhanced .book-front,.book-dialog-content>img{width:auto;max-width:100%;height:auto;object-fit:contain;aspect-ratio:auto}
.book-card--enhanced .book-front{height:100%;width:auto}
@media(max-width:600px){.book-dialog-content>img{height:auto;max-height:min(55vh,360px)}}

/* Catalogo compacto: preserva cada livro e link sem espacamento artificial */
@media(min-width:769px){
 #livros .book-group{margin-top:18px}
 #livros .book-collection-title{margin-bottom:12px;padding-bottom:7px;font-size:1rem}
 #livros .book-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
 #livros .book-row--collection{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
 #livros .book-card--enhanced{padding:12px;gap:8px;display:flex;flex-direction:column;border:1px solid #dce3eb;background:#fff;border-radius:9px;min-width:0}
 #livros .book-card--enhanced .book-cover{height:136px;min-height:0;padding:0;margin:0}
 #livros .book-3d{height:126px;max-width:95%;filter:drop-shadow(3px 4px 4px #10203035)}
 #livros .book-3d .book-front{max-height:100%;object-fit:contain}
 #livros .book-card--enhanced .book-info{gap:4px;min-height:0;flex:1}
 #livros .book-card--enhanced .book-info h3{font-size:.86rem;line-height:1.25;min-height:0;margin:0}
 #livros .book-card--enhanced .book-subtitle{min-height:0;font-size:.72rem;line-height:1.35;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #livros .book-card--enhanced .book-price{margin:2px 0;font-size:.91rem}
 #livros .book-card--enhanced .book-status{font-size:.59rem}
 #livros .book-actions{padding-top:5px;margin-top:auto;gap:5px}
 #livros .book-preview-button,#livros .book-buy-button{min-height:33px;padding:6px 7px;font-size:.7rem}
}
@media(min-width:769px) and (max-width:1120px){
 #livros .book-row{grid-template-columns:repeat(3,minmax(0,1fr))}
 #livros .book-row--collection{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
 #livros .book-card--enhanced{padding:12px 0;gap:10px}
 #livros .book-card--enhanced .book-cover{height:115px}
 #livros .book-3d{height:105px}
 #livros .book-card--enhanced .book-info{gap:4px}
 #livros .book-card--enhanced .book-subtitle{margin:0;line-height:1.4}
 #livros .book-card--enhanced .book-actions{margin-top:0;padding-top:4px}
 #livros .book-group{margin-top:22px}
}

/* Corrige ficcao e lancamentos: a grade global de cinco colunas estava comprimindo os dois livros. */
@media(min-width:769px){
 #livros .book-group--fiction .book-row--fiction{
   display:grid;
   grid-template-columns:repeat(2,minmax(190px,1fr));
   width:min(100%,520px);
   max-width:520px;
   gap:16px;
 }
 #livros .book-group--fiction .book-card--enhanced{
   min-width:0;
   padding:13px;
 }
 #livros .book-group--fiction .book-card--enhanced .book-info h3{
   font-size:.98rem;
   line-height:1.3;
 }
 #livros .book-group--fiction .book-preview-button{
   white-space:normal;
   overflow-wrap:normal;
 }
 #livros .book-group:last-child:not(.book-group--fiction) .book-row{
   grid-template-columns:repeat(2,minmax(190px,1fr));
   width:min(100%,520px);
   max-width:520px;
 }
}
@media(max-width:768px){
 #livros .book-row--fiction{
   display:grid;
   grid-template-columns:minmax(0,1fr);
   max-width:100%;
   width:100%;
 }
 #livros .book-row--fiction .book-card--enhanced{
   display:grid;
   grid-template-columns:88px minmax(0,1fr);
   min-width:0;
   padding:14px 0;
 }
 #livros .book-group:last-child .book-row{
   grid-template-columns:minmax(0,1fr);
 }
}
