@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@0;1&family=Inter:wght@300;400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f8f8;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 40px 10% 0 0;
    position: relative;
    width: 100%;
    z-index: 100;
}

nav .logo {
    font-weight: bold;
    letter-spacing: 3px;
}

.logo {
    margin-left: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #2c2b2b;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover {
    font-weight: bold;
    color: #000000;
}


/* HERO */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: visible;
    margin-top: -60px;
}

.text-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.text-container h1 span {
    font-style: italic;
    font-weight: 400;
    padding-left: 50px;
}

/* Estilos para o Botão Hambúrguer (Escondido no Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: 0.3s;
}

/* --- Responsividade (Celular) --- */
@media screen and (max-width: 720px) {
    body {
        overflow-y: auto; /* Permite rolar no celular */
    }

    nav {
        padding: 20px;
        background: rgba(248, 248, 248, 0.9); /* Fundo levemente transparente */
        align-items: center;
    }

    .menu-toggle {
        display: flex; /* Mostra o botão no celular */
        position: fixed;
        right: 20px;
        top: 20px;
    }

    /* Menu Dropdown */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela */
        height: 100vh;
        width: 70%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s;
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    }

    /* Classe para abrir o menu via JS */
    nav ul.active {
        right: 0;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: -100%; /* Escondido */
        top: 0;
        background: white;
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.5s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0; /* Aparece ao clicar */
    }

    .hero {
        flex-direction: column; /* Texto em cima, imagem embaixo */
        height: 650px;
        padding: 88px 20px 60px 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .text-container {
        order: 1; /* Texto primeiro */
        width: 100%;
        margin-bottom: 40px;
    }

    .text-container h1 {
        font-size: 2.8rem;
        margin-bottom: 10px;
    }

    .text-container h1 span {
        padding-left: 0;
        display: block; /* Nome embaixo do outro */
    }
    
    .text-container p {
        font-size: 0.7rem;
    }

    .image-wrapper {
        order: 2; /* Imagem depois */
        width: 100%;
        height: 40vh; /* Altura ideal para celular */
        position: relative;
        margin-top: 0;
    }
}

.image-wrapper {
    width: 60%;
    height: 60vh;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

#main-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.8s ease; /* Adicionei opacity aqui */
    opacity: 1;
}

.fade-out {
    opacity: 0 !important;
}


/* GALERIA */

.galeria-container {
    position: relative;
    z-index: 5; /* Fica acima de fundos mas abaixo do nav */
    padding: 100px 10%;
    background: #ffffff;
    min-height: 700px; /* Garante espaço inicial */
    clear: both;
}

/* Sistema de Filtros */
.filtros-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: 0.3s;
    
    /* CORREÇÃO PARA IPHONE AQUI */
    -webkit-appearance: none; /* Remove o estilo padrão do Safari */
    -moz-appearance: none;    /* Para versões antigas do Firefox */
    appearance: none;         /* Estilo padrão moderno */
    color: #1a1a1a;           /* Garante que a cor seja o seu preto */
    outline: none;            /* Remove o contorno azul ao clicar */
    -webkit-tap-highlight-color: transparent; /* Remove o flash azul ao tocar */
}

.filter-btn.active {
    border-bottom: 1px solid #1a1a1a;
    font-weight: bold;
}

/* Grid Responsivo */
.grid-obras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.obra-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(1);
}

/* Thumbnail Quadrada */
.obra-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* Força o quadrado */
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    cursor: pointer;
}

.obra-item[style*="display: none"] {
    transform: scale(0.8);
    opacity: 0;
}

.obra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.lupa {
    font-size: 1.5rem;
    color: white;
}

.obra-item:hover .obra-thumb img {
    transform: scale(1.05);
}

.obra-item:hover .overlay {
    opacity: 1;
}

/* Info da Obra */
.obra-info {
    margin-top: 15px;
}

.obra-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.obra-info .ano {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.obra-info .metodo {
    font-size: 0.85rem;
    font-style: italic;
}

/* Mobile */
@media (max-width: 600px) {
    .galeria-container {
        padding: 80px 10%;    
    } 
    
    .grid-obras {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Estilo do Botão do Título */
.acordeao-header {
    background-color: #f8f8f8;
    color: #141414;
    cursor: pointer;
    padding: 25px;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e2e2e2;
    outline: none;
    transition: 0.1s;
    font-family: 'Inter', sans-serif;
    font-weight: lighter;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    scroll-margin-top: 60px;
    border-radius: 12px;
}

.acordeao-header:hover {
    background-color: #f1f1f1;
}

/* Esconde o conteúdo por padrão */
.acordeao-content {
    padding-top: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-in-out; /* Transição suave */
}

/* Classe auxiliar para quando o item estiver aberto */
.acordeao-item.active .acordeao-content {
    padding-top: 20px;
    padding-bottom: 20px;
    max-height: 100%; /* Um valor alto para caber todo o texto */
}

.grid-textos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-texto {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
}

.card-texto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.link-texto {
    text-decoration: none;
    color: inherit;
    display: block;
}

.preview-imagem {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5; /* Cor de fundo caso não tenha imagem */
}

.texto-info {
    padding: 20px;
}

.categoria {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.texto-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.preview-resumo {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.leia-mais {
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
    text-transform: lowercase;
    font-style: italic;
}

/* Layout da Página de Leitura */
.pagina-leitura {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-voltar {
    margin-bottom: 40px;
}

.btn-voltar {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-voltar:hover {
    color: #000;
}

/* Header e Capa */
.header-texto {
    margin-bottom: 60px;
}

.img-capa {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-bottom: 40px;
}

.container-titulo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin: 10px 0 20px 0;
}

.categoria-interna {
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.meta-texto {
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #666;
    font-style: italic;
    display: flex;
    gap: 20px;
}

/* Estilo do Texto */
.conteudo-principal {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #333;
    font-family: 'Georgia', serif; /* Ou a fonte de corpo do seu site */
    text-align: justify; 
}

.texto-corpo p {
    margin-bottom: 25px;
    text-align: justify; 
}

.destaque {
    font-size: 1.4rem;
    color: #000;
    line-height: 1.5;
    text-align: justify; 
}

blockquote {
    margin: 40px 0;
    padding-left: 30px;
    border-left: 3px solid #000;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    text-align: justify; 
}

.imagem-meio-texto {
    margin: 50px 0;
    text-align: center;
}

.imagem-meio-texto img {
    max-width: 100%;
}

.imagem-meio-texto figcaption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
}

/* Rodapé */
.rodape-leitura {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.proximo-texto a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-decoration: none;
    color: #000;
}

/* SEÇÃO SOBRE */
.secao-sobre {
    padding: 100px 10%;
    background-color: #fff;
}

.sobre-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.sobre-texto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sobre-texto p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
}

/* SEÇÃO CONTATO */
.secao-contato {
    padding: 100px 10%;
    background-color: #eee; /* Combina com a seção de currículo */
}

.contato-container {
    max-width: 900px;
    margin: 0 auto;
}

.contato-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contato-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contato-links {
    list-style: none;
    padding: 0;
}

.contato-links li {
    margin-bottom: 15px;
}

.contato-links a {
    color: #000;
    text-decoration: underline;
}

/* FORMULÁRIO */
.contato-form .form-group {
    margin-bottom: 20px;
}

.contato-form input, 
.contato-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-enviar {
    background-color: #141414;
    color: #fff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s;
    border-radius: 12px;
}

.btn-enviar:hover {
    background-color: #333;
}

.rodape-final {
    text-align: center;
    padding: 40px;
    background-color: #eee;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #ddd;
}

/* RESPONSIVIDADE */
@media (max-width: 850px) {
    .sobre-container, .contato-grid {
        grid-template-columns: 1fr;
    }
    
    .sobre-imagem {
        order: -1; /* Imagem fica em cima no mobile */
    }
}

.btn-enviar {
    background-color: #25d366; /* Verde oficial do WhatsApp */
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-enviar:hover {
    background-color: #128c7e;
}