/* Ajustes do layout Granada para o site da Carolina Vila Nova */

/* Esconde o selo do Webflow que o webflow.js injeta */
.w-webflow-badge { display: none !important; }

/* Títulos viraram h1/h2/h3 (SEO): mantém o visual dos divs do template */
h1.hero-text-02, h2.blog-name, h3.blog-name { margin: 0; font-weight: 400; }

/* Hero */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
@media screen and (max-width: 991px) { .hero-actions { justify-content: center; } }
.hero-secondary-link {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .3s;
}
.hero-secondary-link:hover { color: var(--primary); }

/* O botão do template é absoluto (fica dentro do campo de e-mail); aqui ele é um link solto */
.submit-button { position: static; display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.submit-button:hover { background-color: var(--primary); }

/* CTA */
.cta-heading { text-align: center; }

/* Âncoras não ficam escondidas atrás do menu fixo */
#ghostwriter, #servicos, #livros, .blog-item { scroll-margin-top: 120px; }

/* Fotos da Carolina */
.cta-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 6px solid #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
  margin-bottom: -30px;
}
.blog-image-wrapper-hero._02 .product-image { object-position: center 30%; }

/* Cards da abertura: mesma proporção vertical das fotos do template (as fotos da Carolina são quadradas) */
.blog-image-wrapper-hero .product-image { aspect-ratio: 264 / 397; }
.blog-image-wrapper-hero._02 .product-image { aspect-ratio: 264 / 382; }

/* Fotos dos cards da abertura em preto e branco; ganham cor ao passar o mouse */
.blog-image-wrapper-hero .product-image { filter: grayscale(100%); transition: filter .5s ease; }
.hero-blog-link:hover .blog-image-wrapper-hero .product-image,
.hero-blog-link:focus-visible .blog-image-wrapper-hero .product-image { filter: grayscale(0%); }

/* Cards de livro (lançamentos e meus livros): sem o fundo branco que aparece quando a capa sobe no hover */
.blog-image-wrapper.small .white-background-books { background-color: transparent; }

/* ===== Página Sobre ===== */
h1.about-me-text { margin: 0; font-weight: 400; }
.about-list { margin: 0 0 1em; padding-left: 1.2em; font-family: "DM Sans", sans-serif; font-weight: 400; letter-spacing: .7px; line-height: 1.6; }
.about-list li { font-size: inherit; margin-bottom: .4em; }
.about-inline-link { color: #000; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.about-inline-link:hover { color: var(--primary); }
.about-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; }
.about-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Página Contato ===== */
h2.headings-h4 { margin: 0; }

/* ===== Página Blog ===== */
h2.category-title-text { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.blog-section { scroll-margin-top: 80px; }

/* ===== Tela de carregamento ===== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f3ed;
  overflow: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }
html.is-loading, html.is-loading body { overflow: hidden; }

.site-loader-glow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.site-loader-gradient {
  position: absolute;
  width: 620px;
  max-width: 120vw;
  opacity: .85;
  animation: loader-drift 4s ease-in-out infinite;
}
.site-loader-gradient._02 {
  width: 480px;
  opacity: .6;
  animation: loader-drift-2 5s ease-in-out infinite;
}
.site-loader-logo {
  position: relative;
  width: 220px;
  max-width: 60vw;
  animation: loader-breathe 2.4s ease-in-out infinite;
}
@keyframes loader-drift {
  0%, 100% { transform: translate(-6%, -4%) rotate(0deg) scale(1); }
  50%      { transform: translate(6%, 4%) rotate(25deg) scale(1.15); }
}
@keyframes loader-drift-2 {
  0%, 100% { transform: translate(8%, 6%) rotate(180deg) scale(1.1); }
  50%      { transform: translate(-8%, -6%) rotate(140deg) scale(.9); }
}
@keyframes loader-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .75; transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader-gradient, .site-loader-logo { animation: none; }
}

/* Logos de editoras e veículos na abertura da home */
.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 40px; max-width: 560px; }
.hero-logo { height: 22px; width: auto; filter: grayscale(100%); opacity: .55; transition: opacity .3s, filter .3s; }
.hero-logo:hover { filter: none; opacity: 1; }
.hero-logo._literare { height: 32px; }
.hero-logo._publishnews { height: 26px; }
.hero-logo._oglobo { height: 16px; }
@media screen and (max-width: 991px) { .hero-logos { justify-content: center; margin-left: auto; margin-right: auto; } }
@media screen and (max-width: 479px) { .hero-logos { gap: 16px 22px; } }

/* ===== Página Serviços ===== */
.servico-titulo { scroll-margin-top: 110px; margin-top: 70px; }
.rich-text .servico-titulo:first-child { margin-top: 0; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 20px 0; }
.rich-text blockquote strong { display: inline-block; margin-top: 10px; font-style: normal; }
.blog-ver-todos { text-align: center; }
.rich-text h2.servico-titulo { font-size: 48px; line-height: 1.15; margin-bottom: 24px; }
@media screen and (max-width: 767px) { .rich-text h2.servico-titulo { font-size: 34px; } }

/* Formulário de contato */
.campo-isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-aviso { margin-bottom: 20px; padding: 16px 20px; border-radius: 12px; background-color: #e8e6df; font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.5; }
.form-aviso[hidden] { display: none; }
.form-aviso-erro { background-color: #f6dcd3; }

/* Botão do curso no menu */
.nav-botao-holder { display: flex; align-items: center; }
.nav-botao {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 100px;
  background-color: #ed7e59;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s;
}
.nav-botao:hover { background-color: #000; color: #fff; }
.nav-botao div { color: inherit; }
@media screen and (max-width: 991px) {
  .nav-botao-holder { justify-content: center; padding: 10px 0 20px; }
}
@media screen and (min-width: 992px) { .nav-botao-holder { margin-left: 16px; } }
