/* Importação das fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Parisienne&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@font-face {
  font-family: 'Coraline'; /* O nome que você usará no CSS */
  src: url('fonts/rosalinedemo.woff2') format('woff2'), /* Formato mais moderno e eficiente */
       url('fonts/rosalinedemo.woff') format('woff'),   /* Formato web padrão */
       url('fonts/rosalinedemo.ttf') format('truetype'); /* Fallback e sintaxe correta */
  font-weight: normal;
  font-style: normal;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
    background-color: #e8eae9;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;

}


/* Fonte padrão para todos os títulos */
h1, h2, h3, h4, h5, h6 {
    /* ALTERAÇÃO FEITA AQUI 👇 */
    font-family: 'Coraline', 'Playfair Display', serif; 
    color: #2b4b45;
    font-weight: 600; /* Pode ser necessário ajustar o peso para a nova fonte */
}

/* ======================================================= */
/* ====== CABEÇALHO COM CSS GRID (SOLUÇÃO DEFINITIVA) ====== */
/* ======================================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 999999999999;
    background-color: rgba(232, 234, 233, 0.9);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
    border-bottom: 1px solid transparent;
    font-family: 'Coraline', 'Playfair Display', serif;
}

.main-header.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d8d6;
}

/* ALTERADO: Agora usamos Grid para o layout */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    
    display: grid; /* MUDANÇA PRINCIPAL */
    grid-template-columns: 1fr auto 1fr; /* Cria 3 colunas: esquerda, centro (automático), direita */
    align-items: center;
}

/* Coluna 1: O Logo */
.logo {
    /* Opcional: Garante que o logo fique à esquerda da sua coluna */
    justify-self: start; 
}

.logo img {
    height: 65px;
    display: block;
    transition: height 0.3s ease;
}

.main-header.scrolled .logo img {
    height: 65px;
}

.main-header.scrolled{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Coluna 2: A Navegação */
.main-nav {
    /* O grid já posiciona o container do menu no centro. */
    /* Não são necessárias regras de alinhamento aqui. */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Mantém os links em linha */
    gap: 35px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2b4b45;
    font-weight: 600;
    font-size: 20px;
    font-family: 'Coraline', 'Playfair Display', serif; 
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #73A29D;
}

/* Coluna 3: O Placeholder Invisível */
.header-placeholder {
    /* Não precisa de nenhuma regra. Ele apenas ocupa a terceira coluna. */
}


/* Ajuste para telas menores */
@media (max-width: 768px) {
    .main-header {
        
    }
    
    /* No mobile, o grid não é necessário, voltamos para flexbox em coluna */
    .header-container {
        display: flex;
        flex-direction: column; 
        gap: 15px;
        padding: 0 20px;
    }
    
    .header-placeholder {
        display: none;
    }

    .main-nav ul {
        gap: 25px;
    }
}


/* ======================================================= */
/* =========== SEÇÃO DO BANNER ATUALIZADA ================ */
/* ======================================================= */

.banner {
    height: 100vh;
    background-image: url('img/banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: grid; /* Usa Grid para sobreposição e alinhamento */
    place-items: center; /* Centraliza os filhos na horizontal e vertical */
}

/* O container da imagem vertical */
.banner-image-column {
    grid-column: 1 / -1; /* Ocupa toda a área do grid */
    grid-row: 1 / -1; /* Ocupa toda a área do grid */
    z-index: 2; /* Fica na FRENTE do texto */

    background-image: url('img/elemento-banner.png');
    background-size: cover;
    background-position: center;
    width: 300px; /* Largura da coluna de imagem */
    height: 500px; /* Altura da coluna de imagem */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    /* Flexbox para posicionar a seta no final */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 25px;
    box-sizing: border-box;
}

/* O container do texto */
.banner-text-overlay {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 2; /* Fica ATRÁS da imagem */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw; /* Ocupa toda a largura da tela */
    color: #2b4b45;
}

.banner-text-overlay h1 {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 84px;
    font-weight: 400;
    margin: 0;
    transform: translateY(-190px); /* Puxa "Sertão" para cima */
    text-shadow: 2px 2px 15px rgba(232, 234, 233, 0.4);
}

.banner-text-overlay p {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 52px;
    margin: 0;
    font-style: italic;
    transform: translateY(10px); /* Empurra a frase um pouco para baixo */
    text-shadow: 2px 2px 15px rgba(232, 234, 233, 0.4);
}

/* A seta de rolagem */
.scroll-down-arrow {
    position: static; /* Remove o posicionamento absoluto antigo */
    color: #2b4b45;
    transition: transform 0.3s ease;
    animation: fade-slide-up 1s ease-out 1.5s forwards;
}

.scroll-down-arrow:hover {
    transform: translateY(5px);
}

.scroll-down-arrow svg {
    width: 30px;
    height: 30px;
}


@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding-top: 30px;
    }

    
    
    .main-nav ul {
        margin-top: 20px;
    }
    
    .main-nav ul li {
        margin: 0 15px;
    }
    
    /* Ajustes responsivos para o novo banner */
    .banner-image-column {
        width: 75vw;
        max-width: 260px;
        height: 500px;
    }

    .banner-text-overlay h1 {
        font-size: 60px;
        transform: translateY(-150px);
    }

    .banner-text-overlay p {
        font-size: 36px;
        padding: 0 15px; /* Evita que o texto toque as bordas */
        line-height: 1.2;
    }
}

/* ======================================================= */
/* ================= SEÇÃO DA GALERIA ==================== */
/* ======================================================= */

.tree-decoration{
    position: absolute;
    z-index: 3;
    top: 10px;
    margin-top: -250px ;
    left: 0;
    transform: translateX(-60%);
    width: 450px;
}

.tree-decoration img {
    width: 100%;
}

@media (max-width: 900px) {
    .tree-decoration { display: none; }
}

#content {
    /* ALTERAÇÃO 3: Padronização do espaçamento */
    padding: 50px 50px;
    position: relative;
    background-color: #e8eae9;
    
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.gallery-container {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
}

.gallery-left-column {
    display: grid;
    grid-template-rows: auto auto;
    gap: 15px;
    z-index: 999999;
}

.gallery-bottom-left {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

.gallery-right-column {
    display: flex;
}

.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .tree-decoration { display: none; }

    #content {
        padding: 50px 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .gallery-bottom-left {
        grid-template-columns: 1fr;
    }
}

/* ======================================================= */
/* ===== ESTILOS DA SEÇÃO "JORNADA POÉTICA" ============== */
/* ======================================================= */

.book-promo-section {
    /* ALTERAÇÃO 4: Padronização do espaçamento */
    padding: 80px 50px;
    background-color: #e8eae9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.promo-text{
    z-index: 999999999999;
}

.promo-text h2 {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 42px;
    font-weight: 400;
    color: #2b4b45;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.3;
}

.promo-text p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #58636a;
    line-height: 1.7;
    margin-bottom: 20px;
}

.promo-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid #73A29D;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background-color: transparent;
    color: #73A29D;
}

.btn-primary:hover {
    background-color: #2B4B45;
    border-color: #d1d8d6;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #73A29D;
}

.btn-secondary:hover {
    background-color: #d1d8d6;
    border-color: #d1d8d6;
}

.promo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-image{
    z-index: 99999999;
}

@media (max-width: 900px) {
    .book-promo-section {
        padding: 80px 30px;
    }

    .promo-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .promo-text h2 {
        font-size: 36px;
    }
}

/* ======================================================= */
/* ====== ESTILOS DA SEÇÃO "SOBRE O AUTOR" =============== */
/* ======================================================= */

.author-section {
    /* ALTERAÇÃO 5: Padronização do espaçamento */
    padding: 80px 50px;
    background-color: #D2E7E6;
    position: relative;
}

.author-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.author-text {
    position: relative;
}

.author-text > * {
    position: relative;
    z-index: 2;
}

.author-text .pre-headline {
    font-family: 'Coraline', 'Playfair Display', serif; 
    color: #73A29D;
    font-size: 30px;
    margin-bottom: 5px;
}

.author-text h2 {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 60px;
    font-weight: 400;
    color: #2b4b45;
    margin-top: 0;
    margin-bottom: 30px;
}

.author-text p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #58636a;
    line-height: 1.7;
    max-width: 500px;
}

.author-button {
    margin-top: 40px;
}

.background-signature {
    position: absolute;
    top: 50%;
    left: 30%;
    
    z-index: 1;
    
}

.background-signature img {
    width: 500px;
}

.author-decoration {
    position: absolute;
    top: -200px;
    right: -150px;
    z-index: -1;
    opacity: 0.5;
}

.author-decoration img {
    width: 600px;
}

.author-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.author-image img {
    width: 100%;
    max-width: 450px;
    clip-path: ellipse(80% 85% at 35% 50%);
}

@media (max-width: 900px) {
    .author-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .author-image {
        grid-row: 1;
        margin-bottom: 40px;
    }
    .author-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .author-button {
        justify-content: center;
        display: flex;
    }
    .background-signature img {
        width: 350px;
    }
}

@media (max-width: 600px) {
    .author-decoration {
        display: none;
    }
    .author-image img {
        clip-path: none;
        border-radius: 50%;
        max-width: 250px;
    }
}

/* ======================================================= */
/* ============ SEÇÃO DE CITAÇÃO ESTILIZADA ============== */
/* ======================================================= */

.new-quote-section {
    padding: 140px 50px;
    /* Cor de fundo sutilmente esverdeada, como na imagem */
    background-color: #eef3f2; 
    font-family: 'Lato', sans-serif;
    overflow: hidden; /* Garante que as aspas gigantes não criem uma barra de rolagem horizontal */
    
}

.quote-container-styled {
    position: relative; /* Essencial para posicionar as aspas */
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* ::before cria a aspa gigante de abertura */
.quote-container-styled::before {
    /* MUDANÇA 1: O content fica vazio, a imagem vai para o background. */
    content: ''; 
    display: block; /* Garante que o elemento aceite as dimensões */

    /* MUDANÇA 2: Agora você controla o tamanho exato da imagem! */
    width: 180px;  /* << AJUSTE O TAMANHO AQUI */
    height: 150px; /* << AJUSTE O TAMANHO AQUI */

    /* MUDANÇA 3: A imagem é aplicada como fundo. */
    background-image: url(img/aspas-1.png);
    background-size: contain; /* Garante que a imagem caiba inteira, sem distorcer */
    background-repeat: no-repeat; /* Evita que a imagem se repita */
    background-position: center; /* Centraliza a imagem no espaço definido */

    /* As propriedades de posicionamento e camada são mantidas. */
    position: absolute;
    z-index: 1;
    top: -100px;
    left: -80px;
    opacity: 0.8;
    z-index: 999999999;
    /* As propriedades de fonte foram removidas, pois não se aplicam a imagens. */
}

/* ::after cria a aspa gigante de fechamento */
.quote-container-styled::after {
    /* As mesmas mudanças são aplicadas aqui. */
    content: '';
    display: block;

    /* Um tamanho um pouco menor para manter a assimetria. */
    width: 100px;  /* << AJUSTE O TAMANHO AQUI */
    height: 120px; /* << AJUSTE O TAMANHO AQUI */

    background-image: url(img/aspas2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    position: absolute;
    z-index: 1;
    bottom: -60px;
    right: -60px;

    /* As propriedades de fonte e cor também foram removidas daqui. */
}

.quote-text-content {
    position: relative; /* Garante que o texto fique por cima das aspas */
    z-index: 2; /* Camada superior */
    color: #58636a; /* Cor principal do texto */
}

.quote-text-content p {
    font-size: 19px;
    line-height: 1.8;
    margin: 0 0 2em 0; /* Espaçamento entre os parágrafos */
}

/* Classe para o texto com a fonte serifada e itálico */
.playfair-text {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-style: italic;
    font-size: 20px; /* Um pouco maior para destaque */
    color: #3e5451;
}

/* Classe para o texto com a fonte sans-serif (padrão) */
.lato-text {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 400; /* Peso de fonte mais leve */
}

.quote-author-styled {
    position: relative;
    z-index: 2; /* Camada superior */
    display: block;
    margin-top: 2em;
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 22px;
    font-weight: 500;
    font-style: normal;
    /* Cor verde-água para o nome do autor */
    color: #73A29D; 
}

/* --- AJUSTES PARA TELAS MENORES --- */
@media (max-width: 900px) {
    .new-quote-section {
        padding: 100px 30px;
    }
    .quote-container-styled::before {
        font-size: 180px;
        left: -40px;
        top: -40px;
    }
    .quote-container-styled::after {
        font-size: 150px;
        right: -30px;
        bottom: -60px;
    }
}

@media (max-width: 600px) {
    /* Em telas muito pequenas, as aspas podem ser escondidas para não poluir */
    .quote-container-styled::before,
    .quote-container-styled::after {
        display: none;
    }

    .new-quote-section {
        padding: 80px 20px;
    }

    .quote-text-content p {
        font-size: 17px;
    }
}


/* ======================================================= */
/* ========= ESTILOS DA SEÇÃO "ADQUIRA JÁ" (CTA) ========= */
/* ======================================================= */

.cta-section {
    position: relative;
    /* ALTERAÇÃO 7: Padronização do espaçamento */
    padding: 80px 50px;
    background-image: url('img/bkg-livros-xique-xique.png');
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.cta-image-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.cta-brush-stroke,
.cta-book-image,
.cta-plant-ornament {
    position: absolute;
}

.cta-brush-stroke { z-index: 1; }
.cta-book-image { z-index: 2; }
.cta-plant-ornament { z-index: 3; }

.cta-brush-stroke img { width: 500px; }
.cta-book-image img { width: 350px; }
.cta-plant-ornament img { width: 100px; bottom: -180px; right: 100px; position:absolute; }

.cta-text-column h2 {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 42px;
    font-weight: 400;
    color: #2b4b45;
    margin-top: 0;
}

.cta-text-column p {
    font-family: 'Lato', sans-serif;
    color: #58636a;
    line-height: 1.7;
}

.cta-text-column ul {
    list-style-type: disc;
    padding-left: 20px;
    font-family: 'Lato', sans-serif;
    color: #58636a;
    line-height: 1.8;
}

.cta-text-column .btn {
    margin-top: 20px;
    display: inline-block;
}

/* ======================================================= */
/* ================= ESTILOS DO RODAPÉ =================== */
/* ======================================================= */

.main-footer {
    padding: 50px 50px;
    background-color: #e8eae9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    border-top: 1px solid #d1d8d6;
}

.footer-logo img {
    height: 70px;
    filter: invert(35%);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 35px;
}

.footer-nav a {
    text-decoration: none;
    color: #2b4b45;
    font-size: 20px;
    transition: color 0.3s;
    font-weight: 600;
    font-family: 'Coraline', 'Playfair Display', serif;  /* Mantido por estilo */
}

.footer-nav a:hover {
    color: #73A29D;
}


.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #58636a;
    transition: color 0.3s, transform 0.3s;
    font-size: 22px; 
}

.footer-social a:hover {
    color: #2b4b45;
    transform: scale(1.1);
}

.credits {
    padding: 20px;
    background-color: #D2E7E6;
    border-top: 1px solid #d1d8d6;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.credits img{
    width: 130px;
}

.credits p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: black;
    font-weight: bold;
}

.credits a {
    color: #2b4b45;
    text-decoration: none;
    font-weight: bold;
}

.credits a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-text-column ul {
        display: inline-block;
        text-align: left;
    }
    .main-footer {
        padding: 40px 20px;
    }
}

/* O restante do seu CSS (animações, páginas internas) permanece o mesmo */
/* Eu o omiti para focar nas mudanças, mas ele deve continuar no seu arquivo */

/* ======================================================= */
/* =========== ANIMAÇÕES MODERNAS PARA O BANNER ========== */
/* ======================================================= */
@keyframes reveal-down {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animação aplicada ao container da imagem */
.banner-image-column {
  clip-path: inset(0 0 100% 0);
  animation-name: reveal-down;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  animation-fill-mode: forwards;
}

/* Animação aplicada aos textos */
.banner-text-overlay h1,
.banner-text-overlay p {
  opacity: 0;
  animation-name: fade-slide-up;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  /* Mantém as transformações originais */
  animation-iteration-count: 1; 
}
.banner-text-overlay h1 { animation-delay: 0.6s; }
.banner-text-overlay p { animation-delay: 0.9s; }


/* ======================================================= */
/* ========= ANIMAÇÃO DOS ELEMENTOS DECORATIVOS ========== */
/* ======================================================= */
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}
.tree-decoration,
.author-decoration {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.tree-decoration.is-visible {
    animation: slide-in-left 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.author-decoration.is-visible {
    animation: slide-in-right 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

/* ======================================================= */
/* ====== ESTILOS ATUALIZADOS DAS PÁGINAS INTERNAS ======= */
/* ======================================================= */

.page-hero {
    padding: 80px 30px;
    background-color: #d2e7e6;
    text-align: center;
    margin-top: 95px; /* Compensa o menu fixo */
    background-image: url(img/bkg-livros-xique-xique.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-hero h1 {
    font-size: 52px;
    margin: 0;
}

.page-hero p {
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-style: italic;
    font-size: 22px;
    color: #58636a;
    margin-top: 10px;
}

.page-content-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 30px;
    /* overflow: hidden; não é mais estritamente necessário, mas pode ficar */
}

/* NOVO: Estilos para o container da galeria */
.author-gallery {
    display: flex; /* Ativa o Flexbox */
    justify-content: center; /* Centraliza as fotos na linha */
    align-items: flex-start; /* Alinha as fotos no topo */
    gap: 20px; /* Cria um espaço consistente de 20px entre as fotos */
    margin-bottom: 40px; /* Adiciona um espaço entre a galeria e o texto abaixo */
}

/* AJUSTE: Estilo da imagem dentro da galeria */
.content-image-container {
    /* float: left; foi REMOVIDO, pois o Flexbox agora controla o layout. */
    width: 100%; /* Ocupa o espaço disponível no item flex */
    max-width: 250px; /* Define um tamanho máximo para cada foto */
    /* margin-right e margin-bottom foram REMOVIDOS, o 'gap' controla o espaçamento. */
}

.content-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Dica: Adiciona bordas arredondadas para um visual mais suave */
    
}

.content-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5em;
}

.content-text{
    padding-bottom: 30px;
}

/* ... (o resto do seu CSS para blockquote, strong, etc. permanece o mesmo) ... */
.content-text strong {
    color: #2b4b45;
    font-weight: 700;
}
.content-text blockquote {
    margin: 40px 0;
    padding-left: 30px;
    border-left: 3px solid #73A29D;
    font-family: 'Coraline', 'Playfair Display', serif; 
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
    color: #58636a;
}
.content-text blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    color: #2b4b45;
}
.page-buttons {
    margin-top: 40px;
}

/* AJUSTE: Responsividade para a nova galeria */
@media (max-width: 767px) {
    .page-hero {
        padding: 60px 20px;
    }

    .cta-text-column .btn{
        display: block;
    }
    
    .page-hero h1 {
        font-size: 40px;
    }

    /* Em telas pequenas, as fotos ficarão uma abaixo da outra */
    .author-gallery {
        flex-direction: column; /* Muda a direção do flex para vertical */
        align-items: center; /* Centraliza as fotos que agora estão em coluna */
    }

    .content-image-container {
        /* O float:none e margens antigas foram removidas daqui pois não são mais necessárias */
        max-width: 280px; /* Ajusta o tamanho máximo da foto em telas menores */
    }
}

/* ======================================================= */
/* ====== ESTILOS DO PLAYER DE SPOTIFY FLUTUANTE ========= */
/* ======================================================= */

/* O container principal do popup */
.spotify-popup {
    position: fixed; /* ESSENCIAL: Faz o elemento "flutuar" na tela */
    bottom: 20px;    /* Distância da parte de baixo da tela */
    right: 20px;     /* Distância da parte direita da tela */
    width: 300px;    /* Largura do player */
    height: 352px;   /* Altura do player (padrão do Spotify) */
    z-index: 9999999999999;   /* Garante que ele fique acima de outros conteúdos */
    
    background-color: #121212; /* Cor de fundo para preencher */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Animação suave para esconder */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* Estilo do botão de fechar */
.spotify-popup-close {
    position: absolute; /* Posiciona o botão em relação ao popup */
    top: 5px;
    right: 8px;
    z-index: 1001; /* Garante que o botão fique acima do iframe */
    
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
}

.spotify-popup-close:hover {
    color: #b3b3b3;
}

/* Estilo para o iframe dentro do popup */
.spotify-popup iframe {
    display: block; /* Remove espaços extras */
}

/* Classe que será adicionada via JavaScript para esconder o popup */
.spotify-popup.hidden {
    opacity: 0;
    transform: translateX(120%); /* Desliza o popup para fora da tela */
    pointer-events: none; /* Impede cliques no popup escondido */
}