@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Reenie+Beanie&family=Source+Sans+Pro:wght@200;300;400;600&display=swap');

:root {
    --bg-body: #FFFFFF;
    --text-main: #32302F;
    --color-titles: #583722;
    /* Dark Cocoa */
    --color-accent: #C58C71;
    /* Warm Clay */
    /* Powder Blue */
    --bg-sand: #F2F0ED;
    /* Areia (Projects Header) */
}

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

/* --- IMAGE PROTECTION --- */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

body {
    background-color: var(--bg-body);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: var(--text-main);
    overflow-x: hidden;
}

.body-textos {
    background-color: var(--bg-sand);
}

/* Typography Helpers */
.handwritten {
    font-family: 'Reenie Beanie', cursive;
    font-size: 36px;
    color: var(--color-titles);
}

.nota-manual {
    /* Alias for backward compatibility if used */
    font-family: 'Reenie Beanie', cursive;
    font-size: 36px;
    color: var(--color-titles);
}

/* Headings Configuration */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    color: var(--color-titles);
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-titles);
}

h2 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #583722;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3.5rem 5%;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Logo */
.logo-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.main-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--color-titles);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover {
    color: #DBDBDB;
    text-decoration: none;
    opacity: 1;
    /* Reset opacity change */
}

/* Main Content Area */
main {
    padding: 0;
    margin: 0;
}

/* Hero Carousel */
.carousel-container {
    width: 100%;
    height: 80vh;
    /* Altura fixa garantida */
    min-height: 600px;
    /* Fallback para telas pequenas */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    /* Colado no rodapÃ© */
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    /* Garante que fique acima das imagens */
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.carousel-control i {
    color: #222;
    font-size: 30px;
    /* Adjusted for Font Awesome */
}

/* Footer */
footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    background-color: #FFFFFF;
    margin-top: 0;
    /* Colado no main */
}

/* Footer Logo Image */
.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.footer-illustration {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.footer-dog {
    width: 100px;
    /* Aumentado para 100px */
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-dog:hover {
    opacity: 1;
}

.social-icons i {
    font-size: 1.3rem;
    /* Tamanho visual padronizado */
    color: #32302F;
    transition: opacity 0.2s;
    /* Remove properties specific to Lucide/SVG if not needed for FA */
}

.social-icons i:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 5%;
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .carousel-container {
        height: 60vh;
        min-height: 400px;
    }

    footer {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
}

/* === ABOUT PAGE: Refined Layout === */

.about-page-wrapper {
    width: 100%;
    background-color: #FFFFFF;
    padding: 6rem 0;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 1000px;
    /* MandatÃ³rio: 1000px */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    /* Respiro lateral */
    display: flex;
    gap: 60px;
    /* EspaÃ§o amplo solicitado (entre 50px e 60px) */
    align-items: flex-start;
    /* Top aligned */
}

/* Coluna Imagem */
.about-image-col {
    flex: 0 0 350px;
    /* Largura controlada para equilÃ­brio */
    margin-top: 0;
    /* Removing top margin to align strictly with container, title alignment handled by line-height usually */
}

.about-image-col img {
    width: 100%;
    max-width: 100%;
    /* Safety for production */
    height: auto;
    display: block;
    /* Manter proporÃ§Ã£o original, sem filtros artificiais se nÃ£o solicitado, mas prompt diz 'fidelidade ao print' que era B&W? O texto diz 'perfil.jpg manter proporÃ§Ãµes'. Vou assumir grayscale pois Ã© a identidade atÃ© agora. */
    filter: grayscale(100%);
}

/* Coluna Texto */
.about-text-col {
    flex: 1;
    color: #32302F;
    /* Removed max-width: 600px to allow inner content (image) to expand if needed, 
       text width is now controlled on p tags */
}

.about-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #32302F;
    margin-bottom: 2rem;
    line-height: 1.2;
    margin-top: -6px;
    text-decoration: none;
    border: none;
    padding: 0;
}

.about-text-content p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #32302F;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 600px;
    /* MantÃ©m a leitura confortÃ¡vel */
}

/* Responsividade */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 0 40px;
    }

    .about-image-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
    }

    .about-text-col {
        width: 100%;
        text-align: left;
    }

    /* Mobile Title Alignment */
    .about-title {
        text-align: left;
        /* Ou center se preferir no mobile, mas left Ã© mais seguro */
    }


}

/* --- Signature Visual (Desktop Only) --- */


/* Active Menu Item Style */
nav a.active {
    font-weight: 400;
    /* Changed from 700 to 400 */
    color: #DBDBDB;
    border-bottom: none;
    text-decoration: none;
}

/* --- Projects Page (Grid) --- */
.projects-section {
    padding: 4rem 5%;
    min-height: 80vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.project-card:hover {
    opacity: 0.8;
}

.project-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    margin-bottom: 1rem;
    object-fit: cover;
}

.project-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: #000;
    text-align: left;
}

/* --- Texts Page (Grid Layout 4x2) --- */
.texts-page-wrapper {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    background-color: transparent;
}

.textos-grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    max-width: 1200px;
    gap: 0;
    /* Zero gap between blocks */
    margin: 0 auto;
}

/* Aspect Ratio Enforcement for Uniform Squares */
.texto-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    padding: 10%;
    /* Generous internal breathing room */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.texto-block:hover {
    filter: brightness(1.1);
    /* Leve clareamento */
}

/* Color Palette Utilities */
.bg-graphite {
    background-color: #32302F;
}

.bg-dark-cocoa {
    background-color: #583722;
}

.bg-warm-clay {
    background-color: #C58C71;
}

.bg-powder-blue {
    background-color: #BDD7DE;
}

/* Text Colors - Enforced on Children */
.text-white,
.text-white .texto-title,
.text-white .texto-tag {
    color: #FFFFFF;
}

.text-graphite,
.text-graphite .texto-title,
.text-graphite .texto-tag {
    color: #32302F;
}

.text-dark-cocoa,
.text-dark-cocoa .texto-title,
.text-dark-cocoa .texto-tag {
    color: #583722;
}

/* Typography */
.texto-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 1;
}

/* Contextual Tag Backgrounds */
.text-white .texto-tag {
    background-color: rgba(255, 255, 255, 0.2);
    /* White tint for dark blocks */
}

.text-graphite .texto-tag,
.text-dark-cocoa .texto-tag {
    background-color: rgba(0, 0, 0, 0.08);
    /* Subtle dark tint for light blocks */
}

.texto-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    /* Adjusted for square fit */
    font-weight: 400;
    line-height: 1.3;
    margin-top: auto;
    /* Push title to bottom if space permits, or top aligns naturally */
    margin-bottom: 0;
}

/* Force specific colors based on background pairings if needed, 
   but classes text-white/text-graphite handle it directly in HTML */

/* Responsiveness: Mobile 2x4 */
@media (max-width: 768px) {
    .textos-grid-4x2 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .texto-block {
        padding: 1.5rem;
    }

    .texto-title {
        font-size: 1.1rem;
    }
}

/* --- Contact Page (Minimal Form) --- */
.contact-section {
    padding: 6rem 5%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
}

.contact-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    background: #fafafa;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    outline: none;
}

.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #333;
}

/* --- NEW PROJECTS PAGE STRUCTURE (Zig-Zag) --- */

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-titles);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-page-wrapper {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    /* Space between major sections */
}

/* Invert functionality */
.feature-section.inverted {
    flex-direction: row-reverse;
}

.feature-text-col {
    flex: 1;
}

.feature-img-col {
    flex: 1;
    width: 100%;
}

.feature-title {
    font-family: 'Josefin Sans', sans-serif;
    /* Title Font */
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-titles);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    /* Reduced size */
    color: #32302F;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    /* Subtler corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- NEW PROJECTS PAGE STRCTURE --- */

.projects-category-section {
    margin-bottom: 6rem;
}

.projects-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem;
}

/* Project Item Card */
.project-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
    overflow: hidden;
    border-radius: 8px;
}

.project-img-container .project-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    /* Added filter transition */
    filter: grayscale(100%);
    /* Default to Black & White */
}

.project-row:hover .project-bg-img {
    transform: scale(1.05);
    filter: grayscale(0%);
    /* Restore color on hover */
}

.project-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #32302F;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Saiba Mais Button - CORRECTED STYLE */
.learn-more-btn {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    background-color: var(--color-accent);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background-color: #583722;
    /* Dark Cocoa Hover */
    color: #FFFFFF;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-section-special);
    padding: 6rem 0;
    margin-top: 4rem;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    /* Alinhado com about e project container */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Side-by-Side */
    gap: 3rem;
}

.testimonial-item {
    background-color: transparent;
    /* Clean look */
    padding: 1rem;
}

.testimonial-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    /* Italic */
    color: #32302F;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    /* Bold */
    color: #32302F;
    margin-top: 1rem;
}

/* Response for Testimonials */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* Responsiveness */
@media (max-width: 900px) {

    .feature-section,
    .feature-section.inverted {
        flex-direction: column-reverse;
        /* Text bottom, Image top as requested? No wait. */
        /* User said: "no celular, esses itens fiquem empilhados (imagem em cima, texto embaixo)" */
        /* If we use column-reverse on normal: text is 1st child -> bottom, img is 2nd -> top. */
        /* Let's be explicit with order property if needed, or structured html. */
    }
}

/* --- GALERIA MEMÃ“RIA (Reorganized Split-Screen) --- */

.gallery-page-wrapper {
    background-color: #F2F0ED;
    /* Cor areia claro da referÃªncia */
    min-height: 100vh;
    padding: 6rem 0;
    width: 100%;
}

.gallery-split-container {
    max-width: 1100px;
    /* Um pouco mais largo para acomodar o grid editorial */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    /* EspaÃ§o amplo entre texto e foto */
    align-items: flex-start;
}

.gallery-info-col {
    flex: 0 0 300px;
    /* Coluna de texto mais estreita e fixa */
    position: sticky;
    top: 150px;
    /* Flutua enquanto scrolla o grid */
}

.gallery-info-col .formation-tag {
    color: #583722;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.gallery-info-col .formation-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-titles);
}

.gallery-info-col .gallery-caption {
    font-size: 1.3rem;
    line-height: 1.4;
    color: #32302F;
    text-align: left;
    margin: 0;
}

.gallery-photos-col {
    flex: 1;
}

.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 colunas como na referÃªncia */
    gap: 15px;
    /* EspaÃ§amento fino e geomÃ©trico */
}

.gallery-grid-new img {
    width: 100%;
    aspect-ratio: 3/4;
    /* Formato vertical editorial */
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-grid-new img:hover {
    transform: scale(1.02);
}

/* Mobile Responsiveness for Gallery */
@media (max-width: 900px) {
    .gallery-split-container {
        flex-direction: column;
        gap: 3rem;
    }

    .gallery-info-col {
        position: static;
        flex: none;
        width: 100%;
    }

    .gallery-grid-new {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas no mobile */
    }
}

/* Mobile Responsiveness for Feature Section (Standard) */
@media (max-width: 900px) {
    .feature-section {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    /* Re-enforce image on top for mobile */
    .feature-img-col {
        order: -1;
    }

    .feature-text-col {
        order: 1;
    }

    .feature-title {
        font-size: 1.6rem;
    }
}

/* --- FORMACOES: Bleed Right Layout --- */
.formation-bleed-container {
    display: flex;
    width: 100%;
    padding: 0 0 0 5%;
    /* 5% margin on left, 0 on right for bleed */
    gap: 100px;
    /* Requested respiro */
    margin-bottom: 120px;
    align-items: flex-start;
}

.formation-info-col {
    flex: 0 0 350px;
    /* Fixed width for text */
    padding-top: 2rem;
}

.formation-photos-col {
    flex: 1;
    /* Fills remaining space to the right */
}

/* Typography Standards for Refinements */
.standard-body-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #32302F;
}

.standard-section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #583722;
    /* Dark Cocoa */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.formation-main-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #583722;
    /* Dark Cocoa */
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .formation-bleed-container {
        flex-direction: column;
        padding-right: 5%;
        gap: 3rem;
    }

    .formation-info-col {
        flex: none;
        width: 100%;
    }
}

.dark-content-block {
    background-color: #583722;
    /* Dark Cocoa */
    color: #FFFFFF;
    padding: 6rem 0;
    /* Vertical only, side padding on container */
}

.dark-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    /* Side padding to match projects wrapper */
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 4rem;
}

.dark-block-text {
    flex: 1;
}

.formation-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #BDD7DE;
    /* Powder Blue */
    margin-bottom: 1rem;
    display: block;
}

.formation-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.formation-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.target-audience {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: block;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    /* Vertical only */
    background-color: #FFFFFF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns -> 2 rows for 6 items */
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    /* Side padding to match projects wrapper */
}

.gallery-caption {
    text-align: center;
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.5rem;
    /* ~24px for readability, or 36px as requested */
    color: #583722;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    /* Square images or 4/3 */
    object-fit: cover;
    border-radius: 4px;
    /* Minimal rounding */
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
}

@media (max-width: 768px) {
    .dark-block-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- PROJETOS LEITURA PAGE --- */

/* Hero Video Banner */
.hero-video-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Large impact */
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('video-cover.jpg');
    /* Placeholder */
    z-index: 2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(88, 55, 34, 0.85);
    /* Dark Cocoa Strong */
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    padding: 0 5%;
    display: grid;
    /* Senior Dev: Robust centering */
    place-items: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* Hide overlay when checking for play functionality or if video is active */
.video-wrapper.active .video-cover,
.video-wrapper.active .video-overlay {
    display: none;
}

.play-btn-icon {
    font-size: 5rem;
    color: #FFFFFF;
    opacity: 0.8;
    transition: transform 0.3s;
    margin-bottom: 2rem;
}

.video-cover:hover .play-btn-icon {
    transform: scale(1.1);
    opacity: 1;
}

.overlay-content {
    max-width: 800px;
    color: #FFFFFF;
    margin-top: 5vh;
    /* Senior Dev: Visual hierarchy adjustment (push down) */
}

.overlay-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.overlay-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.logo-area {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    /* Senior Dev: Removed background/shadow for cleaner look */
}

.partner-logo {
    height: 40px;
    /* Slightly smaller to fit */
    width: auto;
    opacity: 1;
    filter: none;
    /* Show original colors */
}

/* YouTube Iframe Full Cover */
.hero-video-banner iframe {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Zig-Zag Sections */
.project-row {
    display: flex;
    align-items: stretch;
    min-height: 600px;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-col-img {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    /* Ensure image container behaves */
    align-items: center;
    /* Center image vertically if needed */
    justify-content: center;
    overflow: hidden;
    /* contain the aspect ratio */
}

.project-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    /* Senior Dev: Standardized visual rhythm */
}

.project-col-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 5%;
}

/* Dark Row Styles */
.project-row.dark .project-col-text {
    background-color: var(--color-titles);
    /* Dark Cocoa */
    color: #FFFFFF;
}

.project-row.dark .formation-title,
.project-row.dark .formation-desc,
.project-row.dark .target-audience {
    color: #FFFFFF;
}

/* Light Row Styles */
.project-row.light .project-col-text {
    background-color: #FFFFFF;
    color: #32302F;
}

.project-row.light .formation-title {
    color: var(--color-titles);
}

.project-row.light .formation-desc {
    color: #32302F;
}

/* Responsive ZigZag */
@media (max-width: 900px) {

    .project-row,
    .project-row.reverse {
        flex-direction: column;
        min-height: auto;
    }

    .project-col-img {
        min-height: 300px;
        max-height: 400px;
    }

    .hero-video-banner {
        height: 70vh;
    }

    .overlay-title {
        font-size: 2.5rem;
    }
}

/* Visual Content Block (White) */
.visual-block {
    background-color: #FFFFFF;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.visual-media-large {
    width: 100%;
    max-width: 900px;
    /* Large visual */
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Video Responsive Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- CONTACT PAGE STYLES --- */


/* --- VISUAL SIGNATURE (ABOUT PAGE) --- */
.visual-signature-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left */
    width: fit-content;
}

.signature-photo {
    max-width: 220px;
    height: auto;
    border: 10px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.signature-photo:hover {
    transform: rotate(0deg) scale(1.02);
}

.signature-note {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2.3rem;
    /* ~36-40px */
    color: #C58C71;
    /* Warm Clay */
    margin-top: -15px;
    /* Overlap upwards */
    margin-left: 10px;
    transform: rotate(2deg);
    line-height: 1;

    /* --- SIGNATURE ADJUSTMENTS (Override) --- */
    .visual-signature-container {
        margin-left: -60px !important;
        /* Force left pull */
        margin-top: 5rem;
    }

    .signature-photo {
        max-width: 350px !important;
        /* Larger size */
        border-width: 12px;
    }

    .signature-note {
        font-family: 'Reenie Beanie', cursive !important;
        font-size: 3rem !important;
        margin-top: -20px;
        margin-left: 15px;
    }

    @media (max-width: 900px) {
        .visual-signature-container {
            margin-left: 0 !important;
            align-items: center;
        }
    }
}

/* --- FORMACOES PAGE ADJUSTMENTS --- */
.dark-content-block .formation-title {
    color: #FFFFFF !important;
}

/* --- TEXTOS PAGE: ARTISTIC GRID (MOSAIC) --- */
/* --- TEXTOS PAGE: ARTISTIC GRID (MOSAIC) --- */
.texts-page-wrapper {
    padding: 0;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 5%;
}

.text-art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-auto-rows removed to let aspect-ratio dictate height and avoid gaps */
    gap: 0;
    width: 100%;
}

.texto-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 1 / 1;
    /* Keep square */
}

/* Color Utilities */
.bg-white {
    background-color: #FFFFFF;
}

.bg-cocoa {
    background-color: #583722;
}

.bg-clay {
    background-color: #C58C71;
}

.bg-powder {
    background-color: #BDD7DE;
}

.bg-graphite {
    background-color: #32302F;
}

/* Text Utilities */
.text-white {
    color: #FFFFFF !important;
}

.text-dark {
    color: #583722 !important;
}

.text-graphite {
    color: #32302F !important;
}

/* Interactive Text Blocks */
.texto-block {
    text-decoration: none;
    cursor: pointer;
}

.texto-block:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.texto-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    /* Reduced from 2rem to match previous visual size */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 400;
}

.art-text-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.read-more-link {
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: auto;
    display: inline-block;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

/* Responsive Grid */
/* Responsive Grid */
@media (max-width: 1024px) {
    .text-art-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet adjustment if needed, but fitting user request */
    }
}

@media (max-width: 768px) {
    .text-art-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile as requested */
    }

    .texts-page-wrapper {
        padding: 0 5%;
        margin: 2rem auto;
    }

    .texto-block {
        padding: 1rem;
        /* Reduced padding */
        min-height: 0;
    }

    .texto-title {
        font-size: 1.25rem;
        /* Smaller title */
        margin-bottom: 0.5rem;
    }

    .art-text-desc {
        font-size: 0.9rem;
        /* Smaller desc */
        line-height: 1.4;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* Safety clamp */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .text-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-bottom: 0.5rem;
    }

    .read-more-link {
        font-size: 0.75rem;
    }

    /* Touch Interaction */
    .texto-block:hover {
        transform: none;
        /* Disable hover scale */
        box-shadow: none;
    }

    .texto-block:active {
        opacity: 0.8;
        /* Visual feedback on press */
        transform: scale(0.98);
    }
}

/* --- GRID HIERARCHY & TAGS --- */
.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .col-span-2 {
        grid-column: span 1;
        /* Reset on smaller screens */
    }
}

.texto-tag {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.1);
    /* Subtle dark bg */
    border-radius: 4px;
    margin-bottom: 1rem;
    width: fit-content;
}

.art-block.text-white .text-tag {
    background-color: rgba(255, 255, 255, 0.2);
    /* Subtle light bg */
    color: #FFFFFF;
}

.art-block:not(.text-white) .text-tag {
    color: currentColor;
    /* Inherit form text color */
}

/* Assinatura Visual (Poltrona + Nota) */
.signature-block {
    position: relative;
    width: 65%;
    margin-top: 50px !important;
    /* Ajuste solicitado */
    margin-left: auto;
    /* Alinha todo o bloco Ã  direita */
    margin-right: 0;
}

.about-signature-img {
    display: block;
    width: 100%;
    /* Ocupa 100% do bloco pai (que Ã© 65%) */
    height: auto;
    /* Sem sombras, bordas ou fundo branco */
    box-shadow: none;
    border: none;

}

.handwritten-note {
    position: relative;
    /* Alterado de absolute para relative/normal flow */
    top: auto;
    left: auto;
    display: block;
    margin-top: 40px;
    /* Descolar da bio */
    margin-bottom: 20px;
    /* EspaÃ§o para a poltrona */

    width: 100%;
    text-align: center;
    /* Centraliza o texto horizontalmente */
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.5rem;
    color: #583722;
    /* Dark Cocoa */
    transform: rotate(-5deg);
    /* Sentido anti-horÃ¡rio */
    z-index: 10;
    line-height: 0.9;
    pointer-events: none;
    padding: 0;
}

@media (max-width: 900px) {
    .signature-block {
        width: 80%;
        margin-top: 60px;
        margin-left: auto;
        margin-right: auto;
    }

    .handwritten-note {
        font-size: 1.8rem;
        top: -50px;
        left: 0;
        text-align: center;
        /* Centraliza no mobile */
        padding-left: 0;
        bottom: auto;
        /* Reset bottom */
    }
}

/* Projects Page Layout */
/* Revertendo padding extra para visual independente mais compacto */
/* .projects-page-wrapper {
    width: 100%;
    background-color: #FFFFFF;
     padding: 6rem 0; 
    /* Alinha com about-page-wrapper */
/* } */

/* Projects Page Header Banner */
.projects-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0;
    /* Restaurado para zero (sem margem negativa) */
}

/* Projects Page Header Icon (BibliomÃ³vel) */
.projects-header-icon {
    display: block;
    width: 200px;
    /* MantÃ©m o tamanho (180-200px) */
    max-width: 100%;
    margin: 0 auto;
    /* CentralizaÃ§Ã£o simples, margin-bottom controlada pelo container */
    height: auto;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Placeholder Image Style */
.project-img-placeholder {
    width: 100%;
    min-height: 400px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects Page Divider Icon (Salsichinha - Large) */
.projects-divider-large {
    display: block;
    margin: 4rem auto 1rem;
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 404 Error Page Styles */
.error-page-wrapper {
    min-height: 60vh;
    /* Garante que o footer fique lÃ¡ embaixo em telas grandes */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #FFFFFF;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-mascot {
    display: block;
    width: 200px;
    /* Tamanho de destaque */
    height: auto;
    margin: 0 auto 20px auto;
    object-fit: contain;
}

.error-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 5rem;
    /* Bem grande */
    color: #583722;
    /* Dark Cocoa */
    margin: 0 0 10px 0;
    line-height: 1;
}

.error-message {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2.2rem;
    /* LegÃ­vel e estilo bilhete */
    color: #583722;
    margin: 0 0 40px 0;
    transform: rotate(-2deg);
    /* Leve inclinaÃ§Ã£o para charme */
}

.error-btn-link {
    display: inline-block;
    padding: 10px 30px;
    background-color: #C58C71;
    /* Warm Clay */
    color: #FFFFFF;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}



.error-btn-link:hover {
    background-color: #a06e57;
}



/* --- ABOUT PAGE REDESIGN (Editorial Revision) --- */

.about-page-wrapper {
    padding: 12rem 20vw 0;
    /* Margem editorial 20vw */
    max-width: 100%;
    /* Ocupa a largura total com padding */
    margin: 0;
    min-height: auto;
}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 8rem;
    /* EspaÃ§amento generoso entre colunas */
    align-items: flex-start;
}

.about-text-col {
    flex: 0 1 550px;
    /* Largura limitada para leitura */
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-titles);
    margin-top: 0;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.about-text-content p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    /* Texto leve conforme solicitado */
    color: var(--text-main);
    margin-bottom: 2.5rem;
    /* Mais espaÃ§o entre parÃ¡grafos */
}

/* Coluna da Direita (Foto) */
.about-image-col {
    flex: 1;
    margin-top: 10rem;
    /* Assimetria: ComeÃ§a mais para baixo */
}

.about-image-col img {
    width: 100%;
    max-width: 450px;
    /* Tamanho controlado */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Elemento Manuscrito */
.handwritten-note {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2.2rem;
    color: #9c7b65;
    /* Cocoa suave */
    line-height: 1.1;
    transform: rotate(-3deg);
    margin-top: 2rem;
    margin-left: 10%;
    /* Deslocado para parecer nota de margem */
    display: block;
    width: fit-content;
}

/* Fechamento SimpÃ¡tico (Poltrona) */
.about-footer-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8rem 0 12rem;
}

.about-signature-img {
    width: 300px;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .about-page-wrapper {
        padding: 8rem 24px 0;
    }

    .about-container {
        flex-direction: column;
        gap: 4rem;
    }

    .about-text-col {
        flex: 1;
        max-width: 100%;
    }

    .about-image-col {
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image-col img {
        max-width: 100%;
    }

    .handwritten-note {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .about-footer-illustration {
        padding: 6rem 0 8rem;
    }

    .about-signature-img {
        width: 200px;
    }
}


/* --- ATELIÃŠ PAGE STYLES --- */
.atelie-page-wrapper {
    padding: 6rem 5%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 80vh;
}

.atelie-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.atelie-header h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-titles);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.atelie-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #32302F;
    line-height: 1.6;
}

/* Zig-Zag Services Layout */
.atelie-services {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* Generous spacing between rows */
    margin-bottom: 4rem;
}

.atelie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Modifier to invert order: makes Image Right, Text Left */
/* Since HTML is [Image, Text], row-reverse puts Text(2) -> Left, Image(1) -> Right */
.atelie-row.invertido {
    flex-direction: row-reverse;
}

.atelie-img-container {
    flex: 0 0 auto;
    /* Do not shrink */
}

.atelie-row img {
    width: 380px;
    /* Requested approx width */
    height: auto;
    display: block;
    filter: drop-shadow(0px 10px 20px rgba(139, 69, 19, 0.15));
    /* Soft shadow to float */
    border-radius: 8px;
    /* Optional slight soft edge */
}

.atelie-content {
    flex: 1;
    text-align: left;
}

.atelie-card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    color: var(--color-titles);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.atelie-card-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #32302F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.atelie-card-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #32302F;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 95%;
}

/* Highlight for Para Quem */
.atelie-target {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #32302F;
    background-color: #faf6f3;
    /* Highlight Background */
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: block;
}

.handwritten-highlight {
    font-family: 'Reenie Beanie', cursive;
    color: var(--color-titles);
    font-size: 1.6rem;
    margin-right: 0.5rem;
    display: inline-block;
    transform: rotate(-2deg);
}

.atelie-btn {
    display: inline-block;
    background-color: #C58C71;
    /* Warm Clay */
    color: #FFFFFF;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.atelie-btn:hover {
    background-color: #583722;
    /* Dark Cocoa */
    transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 900px) {
    .atelie-header h1 {
        font-size: 2rem;
    }

    .atelie-row,
    .atelie-row.invertido {
        flex-direction: column;
        /* Stack vertically */
        align-items: center;
        text-align: left;
        gap: 3rem;
    }

    .atelie-row img {
        width: 100%;
        max-width: 320px;
        /* Slightly smaller on mobile */
    }

    .atelie-services {
        gap: 5rem;
    }

    .atelie-text-columns {
        flex-direction: column;
        align-items: center;
    }
}

/* --- ATELIÃŠ TEXT COLUMNS REFACTOR --- */
.atelie-text-columns {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 0;
    /* Remove gap, rely on row margins */
    margin-bottom: 4rem;
}

.atelie-col {
    flex: 1;
    max-width: 500px;
    /* Limit width for readability */
    /* Optional: Add background or border if desired, but clean is requested */
}

.letter-content p {
    margin-bottom: 1.5rem;

}

/* --- EVENTS & WORKSHOPS PAGE (Dynamic Grid) --- */

.events-page-wrapper {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.events-header {
    margin-bottom: 3rem;
    text-align: left;
}

.events-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3.5rem;
    color: var(--color-titles);
    /* Dark Cocoa */
    margin-bottom: 0.5rem;
}

.events-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    /* Graphite */
    font-weight: 400;
}

/* Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Desktop */
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Event Card */
.event-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.event-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    /* Standardize */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Tags */
.event-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tag-oficina {
    background-color: var(--color-accent);
    /* Warm Clay */
    color: #FFFFFF;
}

.tag-festival {
    background-color: var(--bg-section-special);
    /* Powder Blue */
    color: var(--color-titles);
    /* Dark Cocoa */
}

.tag-palestra {
    background-color: #32302F;
    /* Graphite */
    color: #FFFFFF;
}

.tag-mesa {
    background-color: #583722;
    /* Dark Cocoa */
    color: #FFFFFF;
}

/* Content */
.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    color: var(--color-titles);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-details {
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    padding: 0.5rem 0;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-details:hover {
    color: var(--color-titles);
    border-bottom-color: var(--color-titles);
}

/* --- MODAL (Lightbox) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 48, 47, 0.9);
    /* Dark overlay */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    background: #FFFFFF;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* Scroll inside body of modal */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-wrapper {
    transform: translateY(0);
    /* Slide up effect */
}

.about-editorial-header {
    padding-top: 15rem;
    padding-bottom: 5rem;
    background-color: #F2F0ED;
    padding-left: 5%;
    position: relative !important;
    /* Ensure it scrolls naturally like the Carta page */
    top: auto !important;
}

.about-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1400px;
}

.about-intro-col {
    flex: 0 0 55%;
}

.about-editorial-header h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-titles);
    margin: 0 0 4rem 0;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    z-index: 10;
}

.modal-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--color-titles);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--color-titles);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Added for Galeria Memória & Consistency --- */
.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.gallery-grid-new img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid-new img:hover {
    transform: scale(1.02);
}

.back-to-projects-wrapper {
    padding: 2rem 5%;
    background-color: #FFFFFF;
    margin-bottom: 2rem;
}

.back-to-projects {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #32302F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-projects:hover {
    color: #C58C71;
}

.formation-audience {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    /* Sem negrito */
    text-transform: none;
    /* Caixa baixa / sentence case */
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: normal;
}


.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-gallery img {
    width: 100%;
    border-radius: 6px;
    height: 150px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.modal-desc {
    margin-bottom: 2rem;
    white-space: pre-wrap;
    /* Preserve paragraphs */
}

.modal-cta-container {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.modal-cta-btn {
    display: inline-block;
    background-color: var(--color-titles);
    /* Dark Cocoa */
    color: #FFFFFF;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.modal-cta-btn:hover {
    background-color: var(--color-accent);
    /* Warm Clay */
}

/* Responsiveness */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
        /* 1 col mobile */
    }

    .events-title {
        font-size: 2.5rem;
    }
}



/* --- MODAL UPDATES (Image Sizing & Action Buttons) --- */

.modal-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Larger base */
}

.modal-gallery img {
    height: 250px;
    /* Fixed height as requested */
    object-fit: cover;
    /* Maintain aspect ratio */
    width: 100%;
}

/* Modal Content Typography */
.modal-desc h3 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--color-accent);
    /* Warm Clay */
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Action Buttons Container */
.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-action i {
    font-size: 1.1rem;
}

/* Specific Button Styles */
.btn-youtube {
    background-color: #FF0000;
    color: #FFFFFF;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.btn-article {
    background-color: #32302F;
    /* Graphite */
    color: #FFFFFF;
}

.btn-article:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.btn-generic {
    background-color: var(--color-titles);
    color: #FFFFFF;
}

.btn-generic:hover {
    background-color: var(--color-accent);
    /* Warm Clay */
}

/* --- MODAL UPDATES ROUND 2 --- */

/* 1. Spacing Adjustment */
.modal-desc h3 {
    margin-bottom: 0.2rem !important;
    /* Force tighter spacing */
}

/* 2. Lightbox Zoom for Header Images */
.modal-gallery img {
    cursor: zoom-in;
}

/* Fullscreen Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3. Embeds Container (Grid) */
.modal-embeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .modal-embeds-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Embed */
.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Link Card Embed */
.link-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #32302F;
}

.link-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.link-card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--color-titles);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.link-card-meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

/* 4. Flyer Mode (Vertical Image) */
.modal-gallery.flyer-mode {
    grid-template-columns: 1fr;
    /* Single column */
    max-width: 600px;
    /* Limit width */
    margin: 0 auto 2rem auto;
}

.modal-gallery.flyer-mode img {
    height: auto !important;
    /* Allow layout to define height */
    aspect-ratio: auto;
    /* Remove crop */
    max-height: 80vh;
    /* Don't overflow screen vertically */
    object-fit: contain;
}



/* Utility: Adjust Object Position */
.img-pos-top {
    object-position: top !important;
}

.img-pos-top-right {
    object-position: top right !important;
}

.img-pos-bottom {
    object-position: bottom !important;
}

/* --- FIX: Force Dark Content Block Background --- */
.dark-content-block {
    background-color: #583722 !important;
    color: #FFFFFF;
}

/* --- Signature Block (About Page) --- */
.signature-block {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align right to match reference */
    padding-right: 2rem;
    /* Slight offset from edge */
}

.handwritten-note {
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.8rem;
    color: var(--color-accent);
    /* Warm Clay */
    transform: rotate(-5deg);
    margin-bottom: -1rem;
    /* Overlap slightly with image */
    margin-right: 2rem;
    /* Center relative to image */
    line-height: 1.2;
    text-align: center;
}

.about-signature-img {
    width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .signature-block {
        align-items: center;
        /* Center on mobile */
        padding-right: 0;
        margin-top: 3rem;
    }
}

/* --- Projects Page White Theme & Spacing Override --- */
/* --- Projects Page White Theme (Reference Style - Vitsoe) --- */
/* --- Projects Page: Full-Bleed Zig-Zag (Hero Style) --- */
.project-row.white-theme {
    background-color: #FFFFFF !important;
    color: #32302F !important;
    margin-bottom: 0 !important;
    /* Continuous flow */
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-row.white-theme .project-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: absolute;
    /* Float card over full-bleed image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass to image if needed */
}

/* First item no border */
.project-row.white-theme:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Zig-Zag Floating Cards */
.project-row.white-theme .project-col-text {
    position: absolute;
    left: 40px;
    /* Aligned with container gutter */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 420px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    pointer-events: auto;
    /* Enable interaction back */
}

/* Row Alternation (Zig-Zag) */
.project-row.white-theme:nth-of-type(even) .project-col-text,
/* Standard Projects Page Layout (Symmetric 50/50) */
.project-row {
    background-color: #FFFFFF !important;
    padding: 4rem 0;
    /* Add vertical breathing room between rows */
    margin: 0 !important;
}

.project-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.project-col-img,
.project-col-text {
    flex: 1;
    /* Symmetric 50/50 */
    width: 50%;
}

.project-col-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

/* Use flex-direction: row-reverse for the zig-zag effect */
.project-row.reverse-layout .project-container {
    flex-direction: row-reverse;
}

/* Text styles for centered, proportional layout */
.project-row .formation-title {
    color: #583722 !important;
    /* Dark Cocoa */
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-transform: none;
    letter-spacing: normal;
}

.project-row .formation-desc {
    color: #32302F !important;
    /* Graphite */
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .project-row {
        padding: 3rem 0;
    }

    .project-container {
        flex-direction: column !important;
        gap: 2.5rem;
    }

    .project-col-img,
    .project-col-text {
        width: 100%;
    }
}

.project-row.white-theme .formation-title,
.project-row.white-theme h2,
.project-row.white-theme h3,
.project-row.white-theme .formation-tag {
    color: #583722 !important;
    /* Dark Cocoa Title & Tags */
    margin-bottom: 0.5rem;
}

.project-row.white-theme .formation-desc,
.project-row.white-theme p {
    color: #32302F !important;
}

/* --- ABOUT PAGE REDESIGN (Editorial Revision) --- */

.about-page-wrapper {
    padding: 15rem 5% 0;
    /* Padding-top ajustado para 15rem (igual projetos) */
    max-width: 100%;
    margin: 0;
    min-height: auto;
}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 8rem;
    align-items: flex-start;
    width: 100%;
    /* ConsistÃªncia com projetos */
}

.about-text-col {
    flex: 0 1 550px;
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-titles);
    margin-top: 0;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.about-text-content p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.about-image-col {
    flex: 1;
    margin-top: 15rem;
    /* Assimetria chique: Foto comeÃ§a bem abaixo do tÃ­tulo */
}

.about-image-col img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    object-fit: contain;
}

.handwritten-note {
    font-family: 'Reenie Beanie', cursive;
    font-size: 28px;
    /* Destaque visual aumentado */
    color: #9c7b65;
    line-height: 1.1;
    transform: rotate(-3deg);
    margin-top: 40px;
    /* Respiro do texto principal */
    margin-left: 0;
    /* Alinhado Ã  esquerda seguindo a bio */
    display: block;
    width: fit-content;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .about-page-wrapper {
        padding: 8rem 24px 0;
    }

    .about-container {
        flex-direction: column;
        gap: 4rem;
    }

    .about-text-col {
        flex: 1;
        max-width: 100%;
    }

    .about-image-col {
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .handwritten-note {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .about-footer-illustration {
        padding: 6rem 0 8rem;
    }

    .about-signature-img {
        width: 200px;
    }
}

/* --- PROJECTS PAGE: Editorial Header & Slider (Final Studio Revision) --- */

.projects-editorial-wrapper {
    background-color: #FFFFFF;
    width: 100%;
}

.projects-editorial-header,
.testimonials-slider-section {
    padding: 0 5%;
    /* Simetria de 5% global */
    width: 100%;
    background-color: #F2F0ED;
    /* Areia Background */
}

.testimonials-slider-section {
    background-color: #FFFFFF;
    /* Clean white background */
    min-height: 40vh;
    /* Adjusted for better fit */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects-editorial-header {
    padding-top: 15rem;
    padding-bottom: 5rem;
    position: relative;
    z-index: 10;
    background-color: #F2F0ED;
    /* Force for safety */
}

.projects-header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* Empurra links para a extrema direita */
    align-items: flex-end;
    gap: 4rem;
    width: 100%;
    /* Garante que ocupe todo o espaÃ§o entre as margens de 5% */
}

.projects-intro-col {
    max-width: 500px;
}

.projects-main-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-titles);
    margin-bottom: 2.5rem;
}

.projects-intro-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.projects-nav-col {
    display: flex;
    flex-direction: row;
    /* Horizontal como na referÃªncia */
    gap: 3rem;
    padding-bottom: 0.5rem;
    /* Ajuste fino de base */
}

.projects-nav-item {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    /* Menor e discreto */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #EEEEEE;
    /* Sublinhado fino e claro */
    transition: all 0.3s ease;
    padding-bottom: 4px;
}

.projects-nav-item:hover {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials-slider-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    /* Padding equilibrado, centralizaÃ§Ã£o via flexbox */
}

.testimonials-slider-container {
    max-width: 600px;
    margin: 0 auto;
    /* Centralizado conforme solicitado */
}

.testimonials-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    /* RÃ³tulo tÃ©cnico e discreto */
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9c7b65;
    /* Cocoa suave */
    margin-bottom: 3.5rem;
    display: block;
}

.testimonials-slider {
    position: relative;
    min-height: 120px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-titles);
}

/* Slider Controls (Setas Menores e PrÃ³ximas) */
.slider-controls {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    /* EspaÃ§o aumentado conforme solicitado */
    justify-content: center;
    /* Setas centralizadas */
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    color: var(--color-accent);
}

.slider-arrow svg {
    display: block;
    width: 32px;
    /* Reduzido */
    height: auto;
}

/* Divider Footer */
.projects-footer-divider {
    text-align: center;
    padding-bottom: 8rem;
}

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 900px) {

    .projects-editorial-header,
    .testimonials-slider-section {
        padding: 0 24px;
    }

    .projects-editorial-header {
        padding-top: 8rem;
    }

    .projects-header-container {
        flex-direction: column;
        /* Empilhamento natural */
        align-items: flex-start;
        gap: 3.5rem;
    }

    .projects-nav-col {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-bottom: 0;
    }

    .testimonials-slider-section {
        padding-top: 4rem;
        padding-bottom: 8rem;
    }

    .testimonials-slider-container {
        max-width: 100%;
    }
}

/* Test write access */

/* --- GOLDEN RULE: GLOBAL MARGIN STANDARDIZATION (FINAL OVERRIDE) --- */
/* Padronização: 15rem topo, 5% laterais para consistência com Projetos/Sobre */

.contact-centered-wrapper,
.gallery-page-wrapper {
    padding-top: 15rem !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Ajuste Responsivo (Mobile) */
@media (max-width: 900px) {

    .contact-centered-wrapper,
    .atelie-page-wrapper,
    .events-page-wrapper,
    .gallery-page-wrapper {
        padding-top: 8rem !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}




/* --- READING PROJECTS (Zig-Zag 50/50 Split) --- */

.reading-editorial-wrapper {
    width: 100%;
    margin: 0;
}

.reading-split-row {
    display: flex;
    width: 100%;
    min-height: 80vh;
    background-color: #FFFFFF;
}

.reading-split-row.reversed {
    flex-direction: row-reverse;
}

.reading-split-image-col {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.reading-split-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-project-overlay-title {
    position: absolute;
    top: 50px;
    left: 10%;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 200;
    color: #583722;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.2;
}

.reversed .reading-project-overlay-title {
    left: auto;
    right: 10%;
    text-align: right;
}

.reading-split-content-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem 5%;
}

.reading-split-row:not(.reversed) .reading-split-content-col {
    padding-left: 8%;
    padding-right: 10%;
}

.reading-split-row.reversed .reading-split-content-col {
    padding-right: 8%;
    padding-left: 10%;
}

/* Mobile Responsiveness for Split Row */
@media (max-width: 991px) {
    .reading-split-row {
        flex-direction: column !important;
    }

    .reading-split-row.reversed {
        flex-direction: column !important;
    }

    .reading-split-image-col {
        flex: 0 0 auto;
        height: 60vh;
    }

    .reading-split-content-col {
        flex: 0 0 auto;
        padding: 4rem 5% !important;
    }
}

.reading-project-desc {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #32302F;
    /* Graphite */
    margin-bottom: 2rem;
    font-weight: 400;
}

.reading-goals-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.reading-goals-list li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #32302F;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.reading-goals-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #583722;
}

.reading-target {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #583722;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.reading-target span {
    text-transform: none;
    font-weight: 400;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #32302F;
    display: block;
    margin-top: 0.5rem;
}

.learn-more-btn-simple {
    width: fit-content;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #583722;
    text-decoration: none;
    border-bottom: 0.5px solid #583722;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    margin: 2.5rem auto 0;
}

.learn-more-btn-simple:hover {
    color: #C58C71;
    border-bottom-color: #C58C71;
}

/* COL 3: Image (40%) */
.reading-col-img {
    width: 100%;
    text-align: right;
    padding-left: 2rem;
}

.reading-project-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    /* Vertical hint from user 'Vertical ou Quadrada' */
    object-fit: cover;
    display: block;
    /* Aligned to right? styling ensures it fills the 40% col, effectively 'right' */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .reading-project-row {
        display: grid;
        /* REDESIGN: Text gets more space, Image gets less (20% 55% 25%) */
        grid-template-columns: 20% 55% 25%;
        width: 100%;
        padding: 3rem 0;
        /* Reduced vertical spacing */
        border-bottom: 0.5px solid #E5E5E5;
        align-items: flex-start;
    }

    /* Mobile Order: Title -> Image -> Text */
    .reading-col-title {
        order: 1;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .reading-col-img {
        width: 100%;
        text-align: right;
        padding-left: 2rem;
    }

    .reading-col-desc {
        order: 3;
        padding: 0;
        /* Remove extra padding on mobile */
    }
}





/* --- ABOUT PAGE: Editorial Redesign --- */
.about-editorial-header {
    padding: 15rem 5% 5rem;
    background-color: #F2F0ED;
    /* Sand background */
    width: 100%;
    position: relative;
}

.about-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    width: 100%;
    max-width: 1400px;
}

.about-intro-col {
    flex: 0 0 60%;
}

.about-editorial-header h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-titles);
    margin: 0 0 4rem 0;
}

.about-bio-text p {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2rem;
    max-width: 700px;
    /* Optimal reading width */
}

.about-signature {
    display: block;
    margin-top: 4rem;
    font-family: 'Reenie Beanie', cursive;
    font-size: 2rem;
    color: var(--color-accent);
    /* Warm Clay accent */
    transform: rotate(-2deg);
    transform-origin: left center;
}

.about-photo-col {
    flex: 0 0 30%;
    text-align: right;
}

.about-photo-col img {
    width: 100%;
    height: auto;
    max-width: 350px;
    display: block;
    filter: grayscale(100%);
    /* B&W editorial style */
}

@media (max-width: 900px) {
    .about-editorial-header {
        padding-top: 8rem;
    }

    .about-header-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-photo-col {
        order: -1;
        /* Photo first on mobile */
        width: 100%;
        text-align: center;
    }

    .about-photo-col img {
        margin: 0 auto;
    }

    .about-intro-col {
        width: 100%;
    }

    .about-signature {
        transform: none;
        margin-top: 3rem;
    }
}


/* --- READING GOALS LISTS --- */
.reading-goals-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.reading-goals-list li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #32302F;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.reading-goals-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #583722;
}

.reading-project-example {
    font-style: italic;
    margin: 2rem 0 1rem;
    color: #444;
}


/* --- STUDIO DISENOS: FULL-WIDTH ZIG-ZAG --- */
.reading-editorial-wrapper {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.reading-editorial-header {
    padding-left: 5%;
    padding-right: 5%;
}

.reading-split-row {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    border-bottom: 1px solid #EEE;
    width: 100%;
}

.reading-split-row.reversed {
    flex-direction: row-reverse;
}

.reading-split-image-col {
    position: relative;
    flex: 0 0 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #F9F9F9;
}

.reading-project-overlay-title {
    position: absolute;
    top: 50px;
    left: 5%;
    z-index: 10;
    color: #FFFFFF;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* On reversed rows, the overlay title might need adjustment or stay left depending on preference. 
   Usually, it follows its parent (the image). */

.reading-split-image-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
    z-index: 5;
}

.reading-split-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-split-content-col {
    flex: 0 0 50%;
    background-color: #FFFFFF;
    /* Standardizing to White */
    padding: 10% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Fine-tuning margins to align with site's 5% global padding */
.reading-split-row:not(.reversed) .reading-split-content-col {
    padding-left: 8%;
    /* Inner space */
    padding-right: 10%;
    /* 10% of half screen = 5% of full screen */
}

.reading-split-row.reversed .reading-split-content-col {
    padding-right: 8%;
    /* Inner space */
    padding-left: 10%;
    /* 10% of half screen = 5% of full screen */
}



@media (max-width: 991px) {
    .reading-split-image-col {
        position: relative;
        position: relative;
        flex: 0 0 100%;
        height: 60vh;
        top: 0;
    }

    .reading-split-content-col {
        flex: 0 0 100%;
        padding: 4rem 5% !important;
    }

    .reading-split-row.reversed {
        flex-direction: column;
        /* Force normal order on mobile */
    }

    .reading-project-overlay-title {
        font-size: 1.2rem;
        top: 30px;
    }
}

/* Case Box (Roger Mello) */
.reading-project-case-box {
    background-color: #BDD7DE;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.reading-project-case-box .reading-project-example {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #32302F;
}

.reading-project-case-box .learn-more-btn-simple {
    width: fit-content;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #583722;
    text-decoration: none;
    border-bottom: 0.5px solid #583722;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    margin-top: 2.2rem;
}

.learn-more-btn-simple:hover {
    color: #C58C71 !important;
    border-bottom-color: #C58C71 !important;
    opacity: 0.8;
}

/* --- FORMATIONS MOSAIC REDESIGN --- */

.formation-mosaic-wrapper {
    width: 100%;
    background-color: #F2F0ED;
    padding-bottom: 5rem;
}

.formation-mosaic-row {
    display: flex;
    width: 100%;
    min-height: 90vh;
    box-sizing: border-box;
}

.formation-mosaic-row.reversed {
    flex-direction: row-reverse;
}

.formation-mosaic-content-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 8% 6rem 5%;
    box-sizing: border-box;
}

.formation-mosaic-row.reversed .formation-mosaic-content-col {
    padding: 6rem 5% 6rem 8%;
}

.formation-mosaic-gallery-col {
    flex: 0 0 50%;
    padding: 6rem 5% 6rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.formation-mosaic-row.reversed .formation-mosaic-gallery-col {
    padding-right: 5%;
}

.formation-desc {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #32302F;
    margin: 2rem 0;
}

.gallery-caption-small {
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.1rem;
    color: #583722;
    margin-top: 1rem;
    text-align: right;
    line-height: 1.3;
}

.formation-mosaic-row.reversed .gallery-caption-small {
    text-align: left;
}

/* Responsive Formation Mosaic */
@media (max-width: 991px) {
    .formation-mosaic-row {
        flex-direction: column !important;
        min-height: auto;
    }

    .formation-mosaic-row.reversed {
        flex-direction: column !important;
    }

    .formation-mosaic-content-col,
    .formation-mosaic-gallery-col {
        flex: 0 0 100%;
        padding: 4rem 5% !important;
    }
}

/* --- MINIMALIST EVENT GRID (Studio Disenos Style) --- */

.minimal-event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 5%;
}

.minimal-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.minimal-card:hover {
    transform: translateY(-5px);
}

.minimal-header {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 5px;
}

.minimal-header span:first-child {
    font-weight: 700;
    /* Number bold */
}

.minimal-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    /* Vertical minimalist format */
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

.minimal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.minimal-card:hover .minimal-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.minimal-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Minimal Grid */
@media (max-width: 768px) {
    .minimal-event-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- MODAL CLOSE BUTTON ADJUSTMENT --- */
.modal-content-wrapper {
    position: relative;
    /* Ensure close button is relative to this container */
    border-radius: 0 !important;
    /* Remove rounded corners */
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    left: auto;
    /* Reset any left positioning */
    float: none;
    /* Reset custom floats */
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 100;
}

#modal-close:hover {
    color: #000;
    transform: scale(1.1);
}

/* --- EDITORIAL MODAL REDESIGN (Studio Diseños Style) --- */

/* Wrapper Override */
.modal-content-wrapper.editorial-modal {
    width: 90vw;
    max-width: 1400px;
    /* Large screens */
    height: 90vh;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    /* Prevent body scroll, handle inside cols */
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    /* Structure */
}

/* Split Container */
.modal-split-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* LEFT COLUMN: Narrative */
.modal-col-left {
    flex: 0 0 40%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #F0F0F0;
    position: relative;
    z-index: 10;
}

/* Header (Fixed at top of left col) */
.modal-col-left .modal-header {
    padding: 3rem 3rem 1.5rem;
    /* Generous padding */
    background: #fff;
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    justify-content: flex-start;
}

.modal-col-left .modal-title-dynamic {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #583722;
    /* Dark Cocoa */
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.modal-meta-line {
    width: 50px;
    height: 3px;
    background-color: #C58C71;
    /* Warm Clay */
    margin-top: 0.5rem;
}

/* Body (Scrollable part of left col) */
.modal-desc-body {
    padding: 0 3rem 3rem;
    overflow-y: auto;
    flex-grow: 1;
    /* Scrollbar styling could go here */
}

.modal-col-left .modal-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #32302F;
    margin-top: 1rem;
}

/* RIGHT COLUMN: Visuals */
.modal-col-right {
    flex: 0 0 60%;
    height: 100%;
    overflow-y: auto;
    /* Scrollable Gallery */
    background-color: #F9F9F9;
    position: relative;
    padding: 0;
}

/* Gallery Override */
.modal-col-right .modal-gallery {
    display: block;
    /* Stack images */
    padding: 0;
    margin: 0;
    grid-template-columns: none;
    /* Reset grid */
    gap: 0;
}

.modal-col-right .modal-gallery img {
    display: block;
    width: 100%;
    min-height: 100%;
    /* Force image to fill at least the container height */
    height: auto;
    object-fit: cover;
    /* Crop to fill */
    margin-bottom: 0;
    border-radius: 0;
    /* Sharp edges */
}

/* Close Button Positioning */
#modal-close {
    /* Override previous absolute positioning if needed inside relative container */
    position: absolute;
    top: 25px;
    right: 30px;
    color: #32302F;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#modal-close:hover {
    background: #583722;
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive Editorial Modal */
@media (max-width: 900px) {
    .modal-content-wrapper.editorial-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
        transform: none;
    }

    .modal-split-container {
        flex-direction: column;
        overflow-y: auto;
        /* Whole modal scrolls on mobile */
    }

    .modal-col-left {
        flex: 0 0 auto;
        /* Takes content height */
        height: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        overflow: visible;
    }

    .modal-col-left .modal-header {
        padding: 4rem 1.5rem 1rem;
        /* Top padding for close button space */
    }

    .modal-desc-body {
        padding: 0 1.5rem 2rem;
        overflow: visible;
        /* Let container scroll */
    }

    .modal-col-right {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    /* Adjust close button for mobile */
    #modal-close {
        top: 15px;
        right: 15px;
        background: transparent;
        box-shadow: none;
    }
}

/* Page-Specific Background (Textos) */
/* Page-Specific Background (Textos) */
.body-textos {
    background-color: #F2F0ED !important;
    /* Cor Areia - Full Width */
    min-height: 100vh;
    /* Ensure it covers full viewport height */
}

.body-textos header {
    background-color: #FFFFFF;
    /* Keep header white */
}

/* --- TEXTOS MAGAZINE LIST REDESIGN (Option C) --- */

.text-list-container {
    width: 100%;
    margin-bottom: 5rem;
    /* Background moved to main wrapper */
    box-sizing: border-box;
    /* Optional: Remove internal padding if we want full bleed lines */
    padding: 2rem 0;
}

.text-list-row {
    display: grid;
    grid-template-columns: 20% 70% 10%;
    /* Meta | Title | Arrow */
    width: 100%;
    padding: 2.5rem 5%;
    /* Side padding inside line */
    text-decoration: none;
    border-bottom: 1px solid #D0CDC9;
    /* Subtle divider */
    align-items: center;
    transition: all 0.4s ease;
    background-color: transparent;
}

/* First line top border */
.text-list-row:first-child {
    border-top: 1px solid #D0CDC9;
}

/* Interaction: High Contrast Hover */
.text-list-row:hover {
    background-color: #FFFFFF;
    /* High contrast white */
    padding-left: 6%;
    /* Subtle shift */
}

.text-list-meta {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #C58C71;
    /* Warm Clay */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-list-content {
    display: flex;
    align-items: center;
}

.text-list-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    /* Big */
    line-height: 1.2;
    color: #32302F;
    /* Graphite */
    margin: 0;
    font-weight: 300;
    /* Light 300 */
}

.text-list-arrow {
    text-align: right;
    font-size: 1.5rem;
    color: #D0CDC9;
    transition: all 0.3s;
}

.text-list-row:hover .text-list-arrow {
    color: #583722;
    transform: translateX(10px);
}

/* Responsiveness for List */
@media (max-width: 900px) {
    .text-list-row {
        grid-template-columns: 100%;
        /* Stack */
        grid-template-rows: auto auto auto;
        padding: 2rem 5%;
        gap: 1rem;
    }

    .text-list-meta {
        grid-row: 1;
        margin-bottom: 0.5rem;
    }

    .text-list-content {
        grid-row: 2;
    }

    .text-list-arrow {
        grid-row: 3;
        text-align: left;
        margin-top: 1rem;
    }

    .text-list-title {
        font-size: 1.5rem;
    }
}

/* --- CONTACT PAGE REDESIGN --- */

/* Page Background */
.body-contact {
    background-color: #F2F0ED !important;
    /* Areia */
    min-height: 100vh;
}

.body-contact header {
    background-color: #FFFFFF;
}

/* --- CONTACT SPLIT LAYOUT --- */
.contact-split-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 15rem 5% 4rem;
    /* Aligned with Projects title height */
}

.contact-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-info-col {
    padding-right: 2rem;
}

.contact-email-block {
    margin-top: 2rem;
}

.contact-link-minimal {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: #583722;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.contact-link-minimal:hover {
    color: #C58C71;
}

.contact-form-col {
    padding-left: 2rem;
}

@media (max-width: 900px) {
    .contact-split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 0;
    }
}


/* Contact Link (Email) - Clean update */
.contact-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
    padding: 0;
    /* Removed padding */
    border: none;
    /* Removed border */
    background-color: transparent;
    transition: all 0.3s ease;
}

.contact-link-wrapper:hover {
    transform: translateY(-2px);
    /* Subtle lift instead of border/bg */
}

.contact-link {
    text-decoration: none;
    color: #583722;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Minimalist Form */
.minimal-form {
    text-align: left;
    margin-bottom: 4rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.minimal-label {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    color: #C58C71;
    /* Warm Clay */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.minimal-input {
    width: 100%;
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid #D0CDC9;
    /* Subtle underline */
    padding: 10px 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #32302F;
    outline: none !important;
    /* Force remove blue outline */
    box-shadow: none !important;
    /* Force remove any shadow */
    transition: border-color 0.3s ease;
    border-radius: 0 !important;
    /* Removing default radius */
}

.minimal-input:focus {
    border-bottom-color: #583722;
    /* Highlight focus */
    outline: none !important;
}

/* Fix for Chrome/Edge Autofill Blue Background */
.minimal-input:-webkit-autofill,
.minimal-input:-webkit-autofill:hover,
.minimal-input:-webkit-autofill:focus,
.minimal-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #F2F0ED inset !important;
    /* Matches Areia background */
    -webkit-text-fill-color: #32302F !important;
    transition: background-color 5000s ease-in-out 0s;
}

.minimal-input::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
}

/* Submit Button */
.submit-btn {
    background-color: transparent;
    border: none;
    /* No border as requested */
    color: #583722;
    padding: 12px 0;
    /* Adjusted padding since no border */
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
}

.submit-btn:hover {
    background-color: transparent;
    /* No bg change */
    color: #C58C71;
    /* Warm Clay on hover */
    transform: translateY(-2px);
    /* Subtle lift */
}

/* Narrative Image Overlay fix */
.narrative-illustration {
    max-width: 100%;
    height: auto;
    width: 200px;
    /* Contain width */
    mix-blend-mode: multiply;
    /* Integrate white bg of image with Areia */
    opacity: 0.9;
}

/* --- NAVIGATION: RETURN BUTTON --- */
.back-to-projects-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 5%;
    display: flex;
    justify-content: center;
}

.back-to-projects {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #32302F;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-to-projects:hover {
    color: #C58C71;
    transform: translateX(-5px);
}

/* --- GLOBAL PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-icon {
    width: 100px;
    height: auto;
    animation: preloaderFadeIn 1s ease-in forwards;
    opacity: 0;
}

@keyframes preloaderFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- EDITORIAL ARTICLE PAGES --- */
.article-editorial-header {
    padding-top: 15rem;
    padding-bottom: 5rem;
    background-color: #F2F0ED;
    padding-left: 5%;
    padding-right: 5%;
    position: relative !important;
    /* Override global sticky header */
    top: auto !important;
}

.article-header-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-left: 0;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
}

.article-title-col {
    flex: 0 0 60%;
}

.article-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-titles);
    margin: 0;
}

.article-meta-col {
    flex: 0 0 30%;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-reading-wrapper {
    background-color: #FFFFFF;
    padding: 2rem 5% 8rem;
    position: relative;
    overflow-x: hidden;
    /* Allow image to bleed without horizontal scroll */
}

.article-reading-column {
    max-width: 700px;
    margin-left: 0;
}

.article-reading-column p {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.editorial-blockquote-box {
    background-color: #F2F0ED;
    /* Areia - same as header */
    border-left: none;
    /* Removed accent edge */
    padding: 2.5rem;
    margin: 4rem 0;
    color: #32302F !important;
    /* Graphite text */
}

.editorial-blockquote-box p {
    margin-bottom: 0 !important;
    font-style: italic;
}

.editorial-blockquote {
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
    margin: 4rem 0 4rem -2rem;
    font-style: italic;
    color: var(--color-titles);
}

.signature-personal {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2.5rem;
    color: var(--color-titles);
    display: block;
    margin-top: 3rem;
    transform: rotate(-2deg);
}

.back-link-minimal {
    display: inline-block;
    margin-top: 6rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link-minimal:hover {
    color: var(--color-accent);
}

.article-sidebar-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.article-sidebar-img img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1100px) {
    .article-sidebar-img {
        right: -15rem;
        width: 50vw;
    }
}

@media (max-width: 900px) {
    .article-header-container {
        flex-direction: column;
        gap: 2rem;
    }

    .article-meta-col {
        text-align: left;
    }

    .article-editorial-header {
        padding-top: 8rem;
    }

    .editorial-blockquote {
        margin-left: 0;
        padding-left: 1.5rem;
    }

    .article-sidebar-img {
        display: none;
        /* Hide illustrative elements on mobile to keep focus on text */
    }
}

.formation-audience {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    /* Sem negrito */
    text-transform: none;
    /* Caixa baixa / sentence case */
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- ATELIÊ REDESIGN (Editorial Columns) --- */
.atelie-service-row {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 4rem;
}

.atelie-service-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.atelie-service-title-col h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-titles);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.atelie-service-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.atelie-service-content-col .atelie-card-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.atelie-service-content-col .atelie-card-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #32302F;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.atelie-service-content-col .atelie-target {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Responsiveness */
@media (max-width: 900px) {
    .atelie-service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }

    .atelie-service-title-col h2 {
        font-size: 1.8rem;
    }
}

/* --- ATELIÊ 4-COLUMN REFACTOR (Laboratório) --- */
.atelie-service-row.four-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.atelie-service-row.four-cols .atelie-service-title-col h2 {
    font-size: 1.8rem;
    /* Slightly smaller for 4-col layout */
    margin-bottom: 0.5rem;
}

.atelie-subtitle-small {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    /* Warm Clay */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    line-height: 1.4;
}

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

.atelie-topic-item {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #32302F;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1rem;
}

.atelie-topic-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.atelie-subtopic-item {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    /* Match topic item size */
    color: #32302F;
    /* Match topic item color */
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    line-height: 1.5;
    font-style: normal;
    /* Remove italics */
}

.atelie-agenda-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #32302F;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Simple Button Style (Underlined) */
.atelie-btn-simple {
    width: fit-content;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #583722;
    text-decoration: none;
    border-bottom: 0.5px solid #583722;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    /* Adjust margin for left alignment in column */
}

.atelie-btn-simple:hover {
    color: #C58C71;
    border-bottom-color: #C58C71;
}

/* Responsive 4-Cols */
@media (max-width: 1100px) {
    .atelie-service-row.four-cols {
        grid-template-columns: 1fr 1fr;
        /* 2x2 on tablet */
        gap: 3rem;
    }
}

@media (max-width: 700px) {
    .atelie-service-row.four-cols {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* --- FORMAÇÕES CAPTION ALIGNMENT --- */
.formation-photos-col .gallery-caption {
    width: 100%;
    text-align: right;
    display: block;
    padding-right: 5%;
    margin-top: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #666;
}