/* Estilos Gerais - Design Renovado e Otimizado */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4A3C71;      /* Roxo - cor principal */
    --secondary: #54633C;    /* Verde - cor secundária */
    --accent: #e7743d;       /* Laranja - destaque */
    --light: #DEDFD7;        /* Bege claro - fundo */
    --text: #333333;         /* Texto escuro */
    --white: #ffffff;        /* Branco */
    --cream: #CFBEAC;        /* Creme */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 4px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-round: 50px;
    --transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title h1,
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h1::after,
.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.slideInRight {
    animation-name: slideInRight;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Header e Navegação */
header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px 0;
    position: static;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    max-width: 250px;
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    z-index: 101;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle.active {
    color: var(--accent);
}

.menu-toggle.active i:before {
    content: "\f00d";
}

nav {
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: var(--cream);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -2px;
    left: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--white);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

nav ul li a.active {
    color: var(--white);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--border-radius-round);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn i {
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    background-color: var(--light);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.blog-content {
    padding: 40px;
}

.blog-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.blog-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.blog-texto p {
    margin-bottom: 15px;
}

.blog-texto strong {
    color: var(--accent);
}

/* Single Post Styles */
.single-post .blog-card {
    max-width: 900px;
    margin: 0 auto;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.single-post .entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--accent);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 0.9rem;
}

.post-meta i {
    color: var(--accent);
    margin-right: 5px;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: var(--text);
    font-size: 0.9rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-nav-previous,
.post-nav-next {
    max-width: 48%;
}

.post-nav-previous a,
.post-nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text);
}

.comment-content {
    margin-bottom: 15px;
}

.comment-reply-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    margin-top: 20px;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 15px;
    background-color: var(--white);
    color: var(--text);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers.current {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: var(--accent);
    color: var(--white);
}

/* Sidebar */
.widget-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    font-size: 1.2rem;
}

/* CTAs centralizados */
.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-texto {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-texto p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contatos a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.footer-contatos a:hover {
    color: var(--cream);
}

.footer-emergency-info {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: center;
    margin: 1px auto;
    color: #999999;
    padding: 10px;
    max-width: 1200px;
}

.footer-emergency-info p {
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    display: inline-block;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0px 0;
}

.footer-creditos {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 20px;
}

.footer-creditos p {
    margin: 20px 0;
    line-height: 1.5;
}

/* WordPress específico */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    color: var(--text);
    font-style: italic;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-icon {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

/* ===== MELHORIAS PARA MOBILE NAS POSTAGENS ===== */
@media (max-width: 768px) {
    /* Ajusta o layout da grade de posts */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Ajusta o cartão da postagem */
    .blog-card {
        border-radius: var(--border-radius-md);
        margin: 0 15px;
    }

    /* Reduz padding do conteúdo */
    .blog-content {
        padding: 25px 20px;
    }

    /* Título da postagem */
    .blog-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .blog-content h3::after {
        width: 40px;
    }

    /* Título da página individual */
    .single-post .entry-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .single-post .entry-title::after {
        width: 60px;
    }

    /* Imagem destaque */
    .featured-image img {
        width: 100%;
        height: auto;
    }

    /* Metadados do post */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tags do post */
    .post-tags {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* Navegação entre posts */
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    /* Comentários */
    .comments-area {
        margin-top: 30px;
        padding-top: 20px;
    }

    .comment-author {
        flex-wrap: wrap;
    }

    .comment-form-comment textarea {
        min-height: 120px;
    }

    /* Paginação */
    .pagination {
        margin-top: 30px;
    }

    .pagination .page-numbers {
        height: 35px;
        min-width: 35px;
        font-size: 0.8rem;
    }

    /* Largura máxima para elementos */
    .single-post .blog-card,
    .single-post .entry-content {
        max-width: 100%;
    }

    /* Botões */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg,
    .btn-sm {
        width: 100%;
    }

    /* Ajustes finos no footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    /* Garante que imagens não ultrapassem a tela */
    .entry-content img,
    .wp-caption img {
        max-width: 100%;
        height: auto;
    }

    /* Texto com espaçamento adequado */
    .entry-content p,
    .entry-content li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Evita que elementos ultrapassem a tela */
    .alignleft,
    .alignright {
        float: none;
        margin: 15px 0;
    }

    /* Galeria responsiva */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}