@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafafa;
    line-height: 1.6;
}

main#content {
    padding-top: 90px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 8%;
    background: linear-gradient(135deg, #a0522d, #7b3503);
    color: white;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.content-wrapper {
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* PRODUCTION CARD */
.production-card {
    background: #fdf5e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.production-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: #a0522d;
    color: white;
    padding: 25px;
    width: 100%;
}

.production-title-line {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.production-title {
    font-size: 2rem;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 250px;
}

.production-year {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.production-function {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 8px;
}

.card-body {
    padding: 25px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 25px;
}

.production-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.production-details > * {
    min-width: 0;
}

.production-sidebar {
    background: #fed8a7;
    padding: 20px;
    border-left: 4px solid #a0522d;
}

.production-info {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #a0522d;
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff4757;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.external-link:hover {
    background: #ff3742;
    transform: translateY(-2px);
    color: white;
}

.image-gallery {
    margin-top: 20px;
}

.gallery-container {
    position: relative;
    background: #fdf5e6;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid #fdf5e6;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fdf5e6;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fdf5e6;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-nav.prev {
    left: 8px;
}

.gallery-nav.next {
    right: 8px;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-thumbnails {
    display: flex;
    gap: 6px;
    padding: 12px;
    background: #fdf5e6;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #fdf5e6;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #a0522d;
}

.thumbnail {
    width: 50px;
    height: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #a0522d;
}

.thumbnail.active {
    border-color: #a0522d;
    box-shadow: 0 0 0 2px rgba(113, 0, 0, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fdf5e6;
    padding: 4px 8px;
    font-size: 0.8rem;
    z-index: 10;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #fdf5e6;
    color: #999;
    font-size: 1rem;
    text-align: center;
}

/* Modal para visualização em tela cheia */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fdf5e6;
    font-size: 1.8rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.8);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fdf5e6;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-nav.prev {
    left: -60px;
}

.modal-nav.next {
    right: -60px;
}

/* SEÇÃO CONTATO */
#contato {
    background: #deb887;
    padding: 80px 5%;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

#contato h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -1px;
}

#contato p {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 30px;
    font-weight: 300;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #8b4513;
    color: #fdf5e6;
    padding: 20px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: #7b3503;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 60, 0, 0.3);
    color: white;
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .production-details {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
    }

    .production-sidebar {
        order: -1;
    }

    .gallery-main {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 40px 5%;
    }

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

    .content-wrapper {
        padding: 0 5%;
    }

    .card-header,
    .card-body {
        padding: 20px;
    }

    .production-title {
        font-size: 1.6rem;
        min-width: 200px;
    }

    .production-title-line {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .production-year {
        font-size: 1rem;
        margin-top: 5px;
    }

    .description-text {
        font-size: 1rem;
        text-align: left;
    }

    .production-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-gallery {
        order: 1;
    }

    .production-sidebar {
        order: 2;
    }

    .gallery-main {
        height: 220px;
    }

    .thumbnail {
        width: 45px;
        height: 45px;
    }

    .modal-nav.prev {
        left: -50px;
    }

    .modal-nav.next {
        right: -50px;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .production-title {
        font-size: 1.3rem;
        min-width: auto;
    }

    .production-year {
        font-size: 0.9rem;
    }

    .card-header,
    .card-body {
        padding: 15px;
    }

    .description-text {
        font-size: 0.95rem;
    }

    .gallery-main {
        height: 150px;
    }

    .gallery-thumbnails {
        overflow-x: scroll;
    }

    .gallery-main img {
        width: 100%;
        height: 100%;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

    .thumbnail {
        width: 40px;
        height: 40px;
    }

    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .modal-nav.prev {
        left: -40px;
    }

    .modal-nav.next {
        right: -40px;
    }

    .gallery-placeholder {
        height: 200px;
        font-size: 0.9rem;
    }
}