
:root {
    --bg-header: #f3efe9; 
    --text-dark: #1a1a1a;
    --text-accent: #782c23; 
    --bg-footer: #2c2c2c; 
    --text-light: #f9f9f9;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

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

header {
    background-color: var(--bg-header);
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-header {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-dark);
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-accent);
}


main {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
    height: auto;
}

.livro-destaque {
    max-width: 1120px;
    margin: 60px auto;
    padding: 0 5%;
}

.livro-destaque-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff7f1;
    border: 1px solid rgba(136, 93, 73, 0.18);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(35, 18, 14, 0.08);
    overflow: hidden;
    padding: 32px;
}

.livro-capa-link {
    flex: 0 0 320px;
    display: block;
}

.livro-capa {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.livro-detalhes {
    max-width: 640px;
}

.livro-resumo {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(136, 93, 73, 0.12);
    border-radius: 20px;
    padding: 24px;
    margin: 18px 0 30px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.livro-resumo p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #4a362d;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.livro-destaque h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 18px;
    color: var(--text-accent);
}

.livro-subtitulo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #5c443c;
    margin-bottom: 26px;
}

.btn-amazon {
    display: inline-block;
    background-color: #d25f0c;
    color: #fff;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 16px 28px rgba(210, 95, 12, 0.22);
}

.btn-amazon:hover {
    background-color: #bf4f08;
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(210, 95, 12, 0.3);
}

@media (max-width: 980px) {
    .livro-destaque-card {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    .livro-capa-link {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .livro-detalhes {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .livro-destaque {
        margin: 40px auto;
        padding: 0 4%;
    }

    .livro-destaque-card {
        gap: 22px;
        padding: 24px;
    }

    .livro-destaque h1 {
        font-size: 2.35rem;
    }

    .btn-amazon {
        width: 100%;
        text-align: center;
    }
}


.hero-image {
    flex: 1.4;
    min-height: 420px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 40%), 
                url('../img/foto-autor.jpg') center center/cover no-repeat;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: var(--text-light);
}

.hero-image h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-image p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: #ddd;
    max-width: 400px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}


.hero-text {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    padding: 5% 8%; 
    background-color: #ffffff;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-text h1 .accent {
    color: var(--text-accent);
    display: block;
}

.hero-text p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #555;
    max-width: 450px;
    line-height: 1.8;
}


footer {
    background-color: var(--bg-footer);
    color: #ccc;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-family: var(--font-serif);
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--text-light);
}

.email-link {
    margin-top: 10px;
}

.email-link a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.email-link a:hover {
    color: var(--text-accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--text-light);
    transform: translateY(-3px); 
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    font-size: 0.8rem;
}

.contact-page {
    background-color: #fafafa; 
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px); 
    height: auto;
}

.contact-container {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    max-width: 600px;
    width: 100%;
    border-top: 4px solid var(--text-accent); 
}

.contact-container h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.contact-container p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: #fdfdfd;
    transition: all 0.3s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(120, 44, 35, 0.1);
}

.btn-submit {
    background-color: var(--text-dark);
    color: #fff;
    border: none;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--text-accent);
}

.author-page {
    background-color: #fafafa;
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 80px);
    height: auto;
}

.author-container {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(247, 246, 246, 0.05);
}

.author-image-wrapper {
    flex: 1.2;
    max-width: 500px;
}

.author-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    position: relative;
    top: auto;
}

.author-bio {
    flex: 2;
    color: #444;
}

.author-bio h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-accent);
    margin-bottom: 25px;
    line-height: 1.1;
}

.author-bio h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 45px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
    letter-spacing: 1px;
}

.author-bio p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.author-bio .lead-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
}

.painel-page {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 60px 20px;
    min-height: calc(100vh - 80px);
    background-color: var(--bg-header); 
}

.painel-container {
    background-color: #ffffff;
    padding: 50px 60px; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    max-width: 800px;
    width: 100%;
    margin: 0 auto; 
    border-top: 5px solid var(--text-accent); 
}

.painel-container h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-accent);
    text-align: center;
    margin-bottom: 15px;
}

.painel-container p {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-escrita {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-group-large label {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-serif); 
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.form-group-large input,
.form-group-large textarea {
    width: 100%;
    padding: 20px;
    font-size: 1.25rem;
    font-family: var(--font-sans);
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}


.form-group-large input:focus,
.form-group-large textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(120, 44, 35, 0.1); 
}

.btn-publicar {
    background-color: #3b5e3b; 
    color: white;
    font-size: 1.3rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 6px 15px rgba(59, 94, 59, 0.3);
}

.btn-publicar:hover {
    background-color: #2b452b; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(59, 94, 59, 0.4);
}

/* Delete button style */
.btn-delete {
    background-color: #b92b2b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-delete:hover {
    background-color: #8f1f1f;
}


@media (max-width: 600px) {
    .painel-container {
        padding: 30px 20px;
    }
    .painel-container h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 980px) {
    header {
        flex-wrap: wrap;
        gap: 18px;
        padding: 20px 30px;
    }

    nav {
        justify-content: center;
        gap: 16px;
    }

    main {
        flex-wrap: wrap;
        min-height: auto;
        height: auto;
    }

    .hero-image,
    .hero-text {
        flex: 1 1 100%;
        padding: 40px 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 auto;
    }

    footer {
        padding: 40px 30px;
    }
}

@media (max-width: 760px) {
    .hero-image {
        background-position: center center;
        padding: 30px 20px;
    }

    .hero-image h2 {
        font-size: 1.75rem;
    }

    .hero-image p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-text {
        padding: 30px 20px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .author-page {
        padding: 40px 4%;
    }

    .author-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .author-image-wrapper {
        max-width: 100%;
    }

    .author-photo {
        position: relative;
        top: auto;
    }

    .author-bio h1 {
        font-size: 2.2rem;
    }

    .author-bio h2 {
        font-size: 1.25rem;
        margin-top: 30px;
    }
}

@media (max-width: 540px) {
    header {
        padding: 18px 18px;
    }

    .logo-header {
        font-size: 1rem;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero-image,
    .hero-text {
        padding: 25px 16px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p,
    .hero-image p {
        font-size: 0.98rem;
    }

    footer {
        padding: 30px 18px;
    }
}

.museum-page {
    display: block;
    background-color: #fafafa;
    padding: 70px 5% 90px;
    min-height: calc(100vh - 80px);
    height: auto;
}

.museum-container {
    max-width: 1100px;
    margin: 0 auto;
}

.museum-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.museum-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-accent);
    margin-bottom: 16px;
    line-height: 1.15;
}

.museum-header p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #666;
    font-style: italic;
    line-height: 1.7;
}

.museum-header p::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--text-accent);
    margin: 28px auto 0;
    opacity: 0.6;
}

.museum-gallery {
    display: grid;
    gap: 28px;
}

.museum-gallery-row {
    display: grid;
    gap: 24px;
}

.museum-gallery-row-top {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.museum-gallery-row-bottom {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.museum-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.museum-item {
    height: 620px;
}

.museum-item-wide {
    height: 420px;
}

.museum-card-image {
    width: 100%;
    overflow: hidden;
    background-color: #f7f2ec;
}

.museum-item .museum-card-image {
    height: 520px;
}

.museum-item-wide .museum-card-image {
    height: 340px;
}

.museum-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.museum-card-caption {
    padding: 22px 24px 26px;
    text-align: center;
    border-top: 1px solid #f0ebe4;
}

.museum-card-caption h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.museum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.museum-card:hover .museum-card-image img {
    transform: scale(1.05);
}

.museum-card:hover .museum-card-caption h3 {
    color: var(--text-accent);
}

@media (max-width: 900px) {
    .museum-gallery-row-top,
    .museum-gallery-row-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .museum-page {
        padding: 50px 20px 70px;
    }

    .museum-header h1 {
        font-size: 2.2rem;
    }

    .museum-header {
        margin-bottom: 40px;
    }
}

.textos-page {
    display: block;
    background-color: #fafafa;
    padding: 70px 5% 100px;
    min-height: calc(100vh - 80px);
    height: auto;
}

.textos-container {
    max-width: 900px;
    margin: 0 auto;
}

.textos-header {
    text-align: center;
    margin-bottom: 60px;
}

.textos-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-accent);
    margin-bottom: 12px;
}

.textos-header p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #666;
    font-style: italic;
}

.textos-vazio {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}

.textos-grid {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.texto-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--text-dark);
    padding: 32px 36px 56px;
    text-align: center;
}

.texto-card-title {
    border: 2px solid var(--text-dark);
    padding: 18px 24px;
    margin-bottom: 28px;
}

.texto-card-title h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.texto-card-preview {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin: 0;
    text-align: center;
}

.texto-card-actions {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.btn-ler-mais {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--text-dark);
    padding: 14px 36px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-ler-mais:hover {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
    color: #fff;
}

.texto-single-page {
    display: block;
    background-color: #fafafa;
    padding: 60px 5% 90px;
    min-height: calc(100vh - 80px);
    height: auto;
}

.texto-single-container {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 50px 60px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.texto-voltar {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.texto-voltar:hover {
    opacity: 0.75;
}

.texto-single-image {
    display: block;
    width: 100%;
    margin: 0 0 36px;
    border-radius: 6px;
    overflow: hidden;
}

.texto-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.texto-single-header h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--text-accent);
    margin-bottom: 30px;
    line-height: 1.25;
    text-align: center;
}

.texto-single-content {
    font-size: 1.12rem;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

.input-arquivo {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fafafa;
}

.form-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .textos-page {
        padding: 50px 20px 80px;
    }

    .textos-header h1 {
        font-size: 2.2rem;
    }

    .texto-card {
        padding: 24px 20px 50px;
    }

    .texto-card-title h2 {
        font-size: 1.3rem;
    }

    .texto-single-container {
        padding: 30px 22px 40px;
    }

    .texto-single-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    main {
        flex-direction: column;
        height: auto;
    }
    
    .hero-image {
        min-height: 50vh;
    }
    
    .hero-text {
        padding: 60px 30px;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Visualizações (meta do texto) */
.meta-visualizacoes {
    color: #666;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.meta-visualizacoes i {
    color: #666;
    font-size: 1rem;
}