

/* Estilos Gerais */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Estilos para a Seção Introdutória */
.intro-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.intro-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.intro-section p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.intro-section h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.intro-section img {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
}

/* Estilos para a Seção de Imagens (Galeria) */
.images-section {
    background-color: #efecdb;
    padding: 15px 20px;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.image-item {
    margin: 25px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: auto;
    filter: saturate(25%) sepia(55%) hue-rotate(5deg);
    transition: filter 0.3s ease;
    border: 12px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 1px 1px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.image-item:hover img {
    filter: grayscale(0%);
}

.image-item p {
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 12px;
    color: #333;
    line-height: 1.3;
}

/* Estilos para o Pop-up da Galeria */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.popup-content {
    position: relative;
    margin: 5% auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.popup-slider {
    position: relative;
    margin-bottom: 20px;
}

.slider-images {
    position: relative;
    min-height: 300px; /* Garante espaço mínimo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-images img {
    display: none;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.popup-slider .prev,
.popup-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 5;
}

.popup-slider .prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.popup-slider .next {
    right: 10px;
    border-radius: 0 3px 3px 0;
}

.popup-slider .prev:hover,
.popup-slider .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content h2 {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.popup-content .popup-medium {
    font-style: italic;
    color: #555;
    margin-top: 0;
    margin-bottom: 15px;
}

#popup-description {
    text-align: justify;
    line-height: 1.6;
    color: #333;
    margin-top: 15px;
}
#popup-description p {
    margin-bottom: 1em;
}
#popup-description p:last-child {
    margin-bottom: 0;
}


.close {
    cursor: pointer;
    font-size: 2.2em;
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close:hover {
    color: #333;
}

/* Estilos para a Seção Explicação Oomoto */
.oomoto-explanation-section {
    padding: 40px 20px;
    background-color: #ffffff;
}

.oomoto-content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.oomoto-side-image {
    height: 250px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.oomoto-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0;
}

.oomoto-text-content {
    flex: 1;
    max-width: 600px;
    margin-top: 0;
}

.oomoto-text-content h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.oomoto-text-content p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1em;
}

/* Estilos para a Seção Duas Colunas (Broche/Medalha) */
.two-column-section {
    padding: 50px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.two-column-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.column-item {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brooch-image {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: none;
}

.medal-image {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.column-content {
    width: 100%;
    text-align: left;
}

.column-content h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.column-subtitle {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.column-text p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #555;
    text-align: justify;
}
.column-text p:last-child {
    margin-bottom: 0;
}
.column-text strong {
    font-weight: bold;
    color: #444;
}

.two-column-section .column-right {
    border-left: 1px solid #ccc;
    padding-left: 40px;
}

/* =========================================== */
/* == Estilos Comuns para Seções de Exposição == */
/* =========================================== */
.alesp-expo-section,
.jandira-expo-section {
    padding: 50px 20px;
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}
.alesp-expo-section {
    background-color: #ffffff; /* Fundo ALESP */
}
.jandira-expo-section {
    background-color: #f9f9f9; /* Fundo Jandira */
}

.alesp-expo-section h2,
.jandira-expo-section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.alesp-text-content,
.jandira-text-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    overflow: hidden; /* Para conter o float da imagem intro */
}

/* Estilo para a imagem flutuante */
.expo-intro-image {
    float: left;
    width: 35%;
    max-width: 280px;
    height: auto;
    margin: 0 20px 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.alesp-text-content p,
.jandira-text-content p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 1em;
}



.alesp-text-content p:last-child,
.jandira-text-content p:last-child {
    margin-bottom: 0;
}

/* Galerias Horizontais (Comum) */
.expo-horizontal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.expo-horizontal-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

/* Separador (Comum) */
.gallery-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px auto;
    width: 80%;
}

/* Galerias Verticais (Comum) */
.expo-vertical-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.expo-vertical-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}


/* =========================================== */
/* == Seção Sobre as Obras (Alternada) == */
/* =========================================== */
.sobre-obras-section {
    padding: 50px 20px;
    background-color: #f0f0f0;
    border-top: 1px solid #eee;
    max-width: 1100px;
    margin: 0 auto;
}

.sobre-obras-section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* --- Layout Alternado --- */
.obra-alternating-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #dcdcdc;
}

.obra-alternating-item:has(+ .obra-agro-item) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.obra-alternating-img {
    flex: 2;
    max-width: 45%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.obra-alternating-text {
    flex: 3;
    max-width: 55%;
}

.obra-alternating-text h3,
.obra-agro-item h3 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.obra-alternating-text p,
.obra-agro-text p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    text-align: justify;
    margin-bottom: 1em;
}
.obra-alternating-text p:last-child,
.obra-agro-text p:last-child {
    margin-bottom: 0;
}

.obra-alternating-item:nth-child(odd) .obra-alternating-text {
    border-left: 1px solid #ccc;
    padding-left: 40px;
}

.obra-alternating-item:nth-child(even) .obra-alternating-img {
    order: 2;
}
.obra-alternating-item:nth-child(even) .obra-alternating-text {
    order: 1;
    border-right: 1px solid #ccc;
    padding-right: 40px;
    border-left: none;
    padding-left: 0;
}


/* --- Layout Especial para AGRO --- */
.obra-agro-item {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #dcdcdc;
}

.obra-agro-item h3 {
    text-align: center;
    margin-bottom: 30px;
}

.agro-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.agro-image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.agro-image-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.obra-agro-text {
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid #ccc;
}


/* ======================== */
/* == Estilos Responsivos == */
/* ======================== */

@media (max-width: 1200px) {
     .alesp-expo-section,
     .jandira-expo-section { max-width: 95%; }
     .alesp-text-content,
     .jandira-text-content { max-width: 90%; }
}

@media (max-width: 992px) {
    /* Seção Oomoto */
    .oomoto-content-wrapper { gap: 20px; }
    .oomoto-side-image { height: 200px; }
    .oomoto-logo { width: 120px; height: 120px; }
    .oomoto-text-content h2 { font-size: 1.6em; }

    /* Seção Duas Colunas */
    .two-column-wrapper { gap: 30px; }
    .two-column-section .column-right { padding-left: 30px; }
    .column-content h3 { font-size: 1.4em; }
    .brooch-image { width: 130px; }
    .medal-image { width: 280px; }


    /* Seções de Exposição */
    .alesp-expo-section h2,
    .jandira-expo-section h2 { font-size: 1.8em; }
    .alesp-text-content,
    .jandira-text-content { max-width: 90%; margin-bottom: 35px; }
    .alesp-text-content p,
    .jandira-text-content p { font-size: 1em; }
    /* Galerias Expo */
    .expo-horizontal-gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
    .expo-vertical-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }


    /* Seção Sobre as Obras (Alternada) */
    .obra-alternating-item { gap: 30px; }
    .obra-alternating-img { max-width: 48%; }
    .obra-alternating-text { max-width: 52%; }
    .obra-alternating-item:nth-child(odd) .obra-alternating-text { padding-left: 30px; }
    .obra-alternating-item:nth-child(even) .obra-alternating-text { padding-right: 30px; }
    .obra-alternating-text h3, .obra-agro-item h3 { font-size: 1.5em; }
    .obra-alternating-text p, .obra-agro-text p { font-size: 0.95em; }

    /* Agro */
    .agro-content-wrapper { gap: 25px; }
    .obra-agro-text { padding-left: 25px; }
    .agro-image-grid { gap: 10px; }
}

@media (max-width: 768px) {
    /* Galeria */
    .image-item { width: calc(50% - 50px); margin: 25px; }
    /* Pop-up */
    .popup-content { max-width: 90%; padding: 20px; }
    .slider-images img { max-height: 60vh; }
    .popup-content h2 { font-size: 1.5em; }

    /* Seção Oomoto */
    .oomoto-content-wrapper { flex-direction: column; align-items: center; gap: 25px; }
    .oomoto-side-image { display: none; }
    .oomoto-logo { width: 130px; height: 130px; }
    .oomoto-text-content { max-width: 100%; margin-top: 0; }
    .oomoto-text-content h2 { text-align: center; font-size: 1.5em; }
    .oomoto-text-content p { text-align: left; }

    /* Seção Duas Colunas */
    .two-column-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .column-item { max-width: 90%; flex: none; width: 100%; }
    .two-column-section .column-right { border-left: none; padding-left: 0; margin-top: 20px; }
    .brooch-image { width: 150px; max-width: 40%; }
    .medal-image { width: 280px; max-width: 60%; }
    .column-content h3 { font-size: 1.3em; }
    .column-subtitle { font-size: 0.85em; margin-bottom: 15px; }
    .column-text p { text-align: justify; }

    /* Seções de Exposição */
    .alesp-expo-section,
    .jandira-expo-section { padding: 40px 15px; }
    .alesp-expo-section h2,
    .jandira-expo-section h2 { font-size: 1.6em; margin-bottom: 25px; }
    .alesp-text-content,
    .jandira-text-content { max-width: 100%; margin-bottom: 30px; }
     /* Galerias Expo: horizontais 1 coluna, verticais 2 colunas */
    .expo-horizontal-gallery { grid-template-columns: 1fr; gap: 15px;}
    .gallery-divider { margin: 30px auto; }
    .expo-vertical-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px;}

    /* Imagem Intro Responsiva */
    .expo-intro-image {
        float: none;
        width: 80%;
        max-width: 350px;
        margin: 0 auto 20px auto;
    }
    .alesp-text-content,
    .jandira-text-content {
        overflow: visible;
    }


    /* Seção Sobre as Obras (Alternada) */
    .sobre-obras-section { padding: 40px 15px; }
    .obra-alternating-item {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid #e0e0e0;
    }
    .obra-alternating-img { order: 1 !important; max-width: 90%; flex: none; }
    .obra-alternating-text { order: 2 !important; max-width: 90%; flex: none; border: none; padding: 0; text-align: center; }
    .obra-alternating-text h3, .obra-agro-item h3 { font-size: 1.4em; }
    .obra-alternating-text p, .obra-agro-text p { font-size: 0.9em; text-align: justify; }

    /* Agro Responsivo */
    .obra-agro-item { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e0e0e0; }
    .obra-alternating-item:has(+ .obra-agro-item) { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .agro-content-wrapper { flex-direction: column; align-items: center; gap: 25px; }
    .agro-image-grid { width: 90%; max-width: 400px; flex: none; }
    .obra-agro-text { width: 90%; max-width: 500px; flex: none; border-left: none; padding-left: 0; text-align: center; }
}

@media (max-width: 576px) {
     /* Ajustes finos */
     .brooch-image { width: 130px; max-width: 45%; }
     .medal-image { width: 250px; max-width: 65%; }
     .expo-horizontal-gallery { grid-template-columns: 1fr; }
     .expo-vertical-gallery { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));}
     .expo-intro-image { width: 90%; max-width: 300px;}
     .obra-alternating-img { max-width: 95%; }
     .obra-alternating-text { max-width: 95%; }
     .agro-image-grid { width: 95%; }
     .obra-agro-text { width: 95%; }
     .popup-slider .prev, .popup-slider .next { padding: 12px; font-size: 18px;}
}


@media (max-width: 480px) {
    /* Galeria */
    .images-section { padding: 10px 10px; }
    .image-item { width: 90%; margin: 20px 0; }
    .image-item p { font-size: 1em; font-weight: 600; }
    /* Pop-up */
    .popup-content { padding: 20px 15px; margin: 10% auto; }
    .popup-slider .prev, .popup-slider .next { font-size: 16px; padding: 10px; }
    .close { font-size: 1.8em; top: 5px; right: 10px; }
    .popup-content h2 { font-size: 1.3em; }
    .popup-content .popup-medium { font-size: 0.9em; }
    #popup-description { font-size: 0.9em; line-height: 1.55;}

    /* Seção Oomoto */
    .oomoto-explanation-section { padding: 30px 15px; }
    .oomoto-logo { width: 110px; height: 110px; }
    .oomoto-text-content h2 { font-size: 1.4em; }
    .oomoto-text-content p { font-size: 0.95em; }

    /* Seção Duas Colunas */
    .two-column-section { padding: 40px 15px; }
    .two-column-wrapper { gap: 25px; }
    .column-item { max-width: 100%; }
    .brooch-image { width: 120px; max-width: 40%; }
    .medal-image { width: 220px; max-width: 60%; }
    .column-content h3 { font-size: 1.2em; }
    .column-subtitle { font-size: 0.8em; }
    .column-text p { font-size: 0.9em; }

     /* Seções de Exposição */
    .alesp-expo-section h2,
    .jandira-expo-section h2 { font-size: 1.5em; }
    .expo-horizontal-gallery { grid-template-columns: 1fr; gap: 10px;}
    .expo-vertical-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px;}
    .expo-intro-image { width: 95%; max-width: 280px;}


    /* Seção Sobre as Obras (Alternada) */
    .sobre-obras-section h2 { font-size: 1.6em; margin-bottom: 30px; }
    .obra-alternating-item { gap: 20px; margin-bottom: 35px; padding-bottom: 25px;}
    .obra-alternating-img { max-width: 100%; }
    .obra-alternating-text { max-width: 100%; }
    .obra-alternating-text h3, .obra-agro-item h3 { font-size: 1.3em; }
    .obra-alternating-text p, .obra-agro-text p { font-size: 0.88em; }

    /* Agro */
    .agro-image-grid { width: 100%; gap: 10px; }
    .obra-agro-text { width: 100%; }
}

/* --- Breakpoints Adicionais --- */
@media (min-width: 481px) and (max-width: 768px) {
    /* Galeria */
    .image-item { width: calc(50% - 50px); margin: 25px; }
}

@media (min-width: 1025px) {
    /* Galeria */
    .image-item { width: 300px; margin: 25px; }
}

/* Ajuste fino para telas realmente largas */
@media (min-width: 1400px) {
     .expo-horizontal-gallery { grid-template-columns: repeat(3, 1fr); }
     .expo-vertical-gallery { grid-template-columns: repeat(3, 1fr); }
}