/* =========================================================
   KAFUKA African Film Festival
   Main stylesheet
   ========================================================= */


/* =========================================================
   ORIGINAL KAFUKA FONTS
   ========================================================= */

@font-face {
    font-family: "Poppins";
    src: url("../fonts/4c285fdca692ea22-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/eafabf029ad39a43-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/8888a3826f4a3af4-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/0484562807a97172-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/b957ea75a84b6ea7-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/e4af272ccee01ff0-s.p.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}


/* =========================================================
   1. Variables / Reset
   ========================================================= */

:root {
    --charcoal: #0d1119;
    --nav-red: #801517;
    --nav-yellow: #d3b03d;
    --primary: #d97706;
    --text-light: #f5f3ef;
    --sand: #f2e8da;

    --footer-bg: #0d1119;
    --border: rgba(217, 119, 6, 0.20);

    --container: 1536px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "Inter", sans-serif;
}

body {
    margin: 0;

    background: var(--charcoal);
    color: var(--text-light);

    font-family: "Inter", sans-serif;
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.hero-title,
.team-card h3,
.modal-title {
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   2. General layout
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 16px;
    padding-right: 16px;
}

.narrow {
    width: 100%;
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   3. Navbar
   ========================================================= */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;
    height: 64px;

    background: rgba(128, 21, 23, 0.96);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-inner {
    position: relative;

    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}

.brand img {
    display: block;

    width: auto;
    height: 52px;

    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 24px;
}

.nav-links a {
    color: var(--nav-yellow);
    text-decoration: none;

    font-size: 16px;
    line-height: 24px;
    font-weight: 500;

    transition: color 160ms ease;
}


/*.nav-links a:hover,
.nav-links a.active {
    color: var(--nav-yellow);
}
*/
.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a.active {
    color: var(--charcoal);
}

.language {
    color: var(--nav-yellow);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.menu-toggle {
    display: none;

    padding: 4px;

    border: 0;
    background: transparent;

    color: var(--nav-yellow);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   4. Homepage wrapper
   ========================================================= */

.home-main {
    padding-top: 80px;
    padding-bottom: 32px;
}

.home-main > .container {
    padding-top: 48px;
    padding-bottom: 48px;
}


/* =========================================================
   5. Hero banner
   ========================================================= */

.hero-banner {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 48px;
}

.hero-banner img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;

    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   6. Hero headline
   ========================================================= */

.hero-intro {
    margin-bottom: 64px;

    text-align: center;
}

.hero-intro h1 {
    margin: 0 0 24px;

    color: var(--text-light);

    font-family: "Poppins", sans-serif;
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;

    letter-spacing: -0.025em;
}


/* =========================================================
   7. Festival metadata
   ========================================================= */

.festival-meta {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 32px;

    margin-bottom: 48px;

    /* Original uses neutral/light text here */
    color: var(--text-light);

    font-family: "Inter", sans-serif;
}

.festival-meta-item {
    display: flex;
    align-items: center;

    gap: 12px;

    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 500;
}

.meta-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    fill: none;

    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   8. About preview
   ========================================================= */

.about-preview {
    width: 100%;
    max-width: 896px;

    margin: 0 auto 64px;
}

.about-preview h2 {
    margin: 0 0 32px;

    color: var(--text-light);

    text-align: center;

    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 600;
}

.about-preview p {
    margin: 0;

    /* Original uses text-sand */
    color: var(--sand);

    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 500;

    text-align: justify;
}


/* =========================================================
   9. Homepage social links
   ========================================================= */

.social-preview {
    margin-bottom: 64px;

    text-align: center;
}

.social-preview h3 {
    margin: 0 0 24px;

    color: var(--text-light);

    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.social-preview-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 32px;
}

.social-preview-links a {
    color: var(--sand);

    text-decoration: none;

    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    font-weight: 500;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.social-preview-links a:hover {
    color: var(--primary);

    transform: translateY(-1px);
}


/* =========================================================
   10. Homepage contact
   ========================================================= */

.home-contact {
    text-align: center;

    color: var(--sand);
}

.home-contact p {
    margin: 0;
}

.home-contact a {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}

.home-contact a:hover {
    text-decoration: underline;
}


/* =========================================================
   11. Footer
   ========================================================= */

.site-footer {
    margin-top: 64px;

    padding: 48px 0;

    background: var(--charcoal);

    border-top: 1px solid rgba(217, 119, 6, 0.20);
}

.footer-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;
}

.footer-column h3 {
    margin: 0 0 16px;

    color: var(--text-light);

    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.footer-link {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--sand);

    font-size: 1rem;
    line-height: 1.5rem;

    text-decoration: none;

    transition: color 160ms ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-icon {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-event {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-event p {
    margin: 0;

    color: var(--sand);

    font-size: 1rem;
    line-height: 1.5rem;
}

.copyright {
    margin-top: 32px;

    padding-top: 32px;

    border-top: 1px solid rgba(217, 119, 6, 0.20);

    text-align: center;

    color: var(--sand);

    font-size: 0.875rem;
    line-height: 1.25rem;
}

.copyright p {
    margin: 0;
}


/* =========================================================
   12. Placeholder / internal pages
   ========================================================= */

.page-placeholder {
    min-height: 60vh;

    padding: 140px 0 80px;
}

.page-placeholder h1 {
    color: var(--text-light);

    font-size: 3rem;
}

.page-placeholder p {
    color: var(--sand);

    font-size: 1.125rem;
    line-height: 1.75;
}


/* =========================================================
   13. Tablet
   ========================================================= */

@media (max-width: 900px) {

    .hero-intro h1 {
        font-size: 3rem;
        line-height: 1.08;
    }

}


/* =========================================================
   14. Mobile navigation / layout
   ========================================================= */

@media (max-width: 767px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Navbar */

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 64px;
        left: 4px;
        right: 4px;

        padding: 24px 16px;

        background: rgba(128, 21, 23, 0.98);

        flex-direction: column;
        align-items: flex-start;

        gap: 20px;

        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;

        font-size: 17px;
    }

    .language {
        margin-top: 4px;
    }


    /* Homepage */

    .home-main {
        padding-top: 64px;
    }

    .home-main > .container {
        padding-top: 48px;
    }

    .hero-banner {
        margin-bottom: 48px;
    }

    .hero-intro h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .festival-meta {
        flex-direction: column;

        gap: 16px;
    }

    .festival-meta-item {
        font-size: 1.125rem;
    }

    .about-preview h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .about-preview p {
        text-align: left;
    }

    .social-preview-links {
        flex-wrap: wrap;

        gap: 20px 32px;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 32px;
    }

}


/* =========================================================
   15. Small phones
   ========================================================= */

@media (max-width: 480px) {

    .hero-intro h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .about-preview h2 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .festival-meta-item {
        font-size: 1rem;
    }

}


/* =========================================================
   SOBRE
   ========================================================= */

.about-page {
    padding-top: 112px;
    padding-bottom: 32px;
}

.page-title {
    margin: 0 0 48px;

    color: var(--text-light);

    text-align: center;

    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
}

.about-section {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 64px;
}

.about-text {
    width: 100%;
    max-width: 896px;
}

.about-section h2 {
    margin: 0 0 32px;

    color: var(--text-light);

    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
}

.about-text p {
    margin: 0 0 24px;

    color: var(--sand);

    font-size: 1.125rem;
    line-height: 1.75;

    font-weight: 500;

    text-align: justify;
}


/* Mission */

.section-title-center {
    text-align: center;
}

.mission-section {
    width: 100%;
    max-width: 1152px;
}

.mission-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.mission-card {
    padding: 24px;

    border: 1px solid rgba(217, 119, 6, 0.20);
    border-radius: 8px;

    background: rgba(231, 213, 179, 0.10);

    text-align: center;

    transition:
        background 300ms ease,
        transform 300ms ease;
}

.mission-card:hover {
    background: rgba(231, 213, 179, 0.20);

    transform: translateY(-2px);
}

.mission-icon {
    display: flex;
    justify-content: center;

    margin-bottom: 16px;

    color: var(--primary);
}

.mission-icon svg {
    width: 32px;
    height: 32px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mission-card h3 {
    margin: 0 0 12px;

    color: var(--text-light);

    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
}

.mission-card p {
    margin: 0;

    color: var(--sand);

    font-size: 0.875rem;
    line-height: 1.625;
}


/* Artistic message */

.artistic-message ul {
    margin: 0;

    padding-left: 24px;

    color: var(--sand);

    font-size: 1.125rem;
    line-height: 1.75;

    font-weight: 500;
}

.artistic-message li + li {
    margin-top: 16px;
}


/* Team */

.team-section {
    width: 100%;
    max-width: 1152px;

    margin: 0 auto 64px;
}

.team-section > h2 {
    margin: 0 0 48px;

    color: var(--text-light);

    text-align: center;

    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
}

.team-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.team-card {
    padding: 24px;

    border: 1px solid rgba(217, 119, 6, 0.20);
    border-radius: 8px;

    background: rgba(231, 213, 179, 0.10);

    text-align: center;

    cursor: pointer;

    transition:
        background 300ms ease,
        transform 300ms ease;
}

.team-card:hover {
    background: rgba(231, 213, 179, 0.20);

    transform: translateY(-2px);
}

.team-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.team-photo {
    display: block;

    width: 96px;
    height: 96px;

    margin: 0 auto 16px;

    border-radius: 50%;

    object-fit: cover;
}

.team-card h3 {
    margin: 0 0 8px;

    color: var(--text-light);

    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.team-role {
    min-height: 40px;

    margin: 0 0 12px;

    color: var(--primary);

    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

.team-more {
    display: inline-block;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--sand);

    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;

    text-decoration: underline;

    cursor: pointer;

    transition: color 160ms ease;
}

.team-more:hover {
    color: var(--primary);
}


/* =========================================================
   SOBRE responsive
   ========================================================= */

/* Original team grid:
   md: 2 columns, lg: 3 columns, xl: 4 columns.
   Original mission grid:
   md: 2 columns, lg: 4 columns. */

@media (max-width: 1279px) {

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 1023px) {

    .mission-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .about-page {
        padding-top: 96px;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .about-section h2,
    .team-section > h2 {
        font-size: 1.75rem;
    }

    .mission-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-text p,
    .artistic-message ul {
        font-size: 1rem;
    }

}


/* =========================================================
   TEAM MODAL
   ========================================================= */

.team-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 16px;
}

.team-modal.is-open {
    display: flex;
}

.team-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.team-modal-dialog,
.team-modal-panel {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 32px);

    overflow-y: auto;

    border: 1px solid rgba(201, 139, 99, 0.30);
    border-radius: 8px;

    background: var(--charcoal);

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid rgba(201, 139, 99, 0.30);
}

.team-modal-header h2 {
    margin: 0;

    color: var(--text-light);

    font-size: 1.5rem;
    font-weight: 700;
}

.team-modal-close {
    border: 0;
    padding: 0;

    background: transparent;

    color: var(--text-light);

    font-size: 32px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.team-modal-content {
    display: grid;

    grid-template-columns: 176px 1fr;

    gap: 24px;

    padding: 24px;
}

.team-modal-photo {
    width: 176px;
    height: 176px;

    border-radius: 6px;

    object-fit: cover;
}

.team-modal-information h3 {
    margin: 0 0 16px;

    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 600;
}

.team-modal-information p,
.team-modal-bio {
    margin: 0;

    color: var(--text-light);

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 500;

    text-align: justify;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {

    .team-modal {
        padding: 20px;
    }

    .team-modal-dialog,
    .team-modal-panel {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: calc(100dvh - 40px);
        margin: 0;
        overflow-y: auto;
    }

    .team-modal-content {
        grid-template-columns: 1fr;
    }

    .team-modal-photo {
        width: 160px;
        height: 160px;
    }

}


/* =========================================================
   CONTATO
   ========================================================= */

.contact-page {
    padding-top: 112px;
    padding-bottom: 32px;
}

.contact-card {
    width: 100%;
    max-width: 672px;

    margin-left: auto;
    margin-right: auto;

    padding: 32px;

    border: 1px solid rgba(217, 119, 6, 0.20);
    border-radius: 8px;

    background: rgba(242, 232, 218, 0.10);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-content {
    display: flex;
    flex-direction: column;

    gap: 32px;
}


/* Email */

.contact-email {
    display: flex;
    align-items: center;

    gap: 16px;
}

.contact-email-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    fill: none;

    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-email h3,
.contact-social h3 {
    margin: 0;

    color: var(--text-light);

    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.contact-email a {
    color: var(--sand);

    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;

    text-decoration: none;

    transition: color 160ms ease;
}

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


/* Social links */

.contact-social h3 {
    margin-bottom: 16px;
}

.contact-social-links {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.contact-social-links a {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--sand);

    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;

    text-decoration: none;

    transition: color 160ms ease;
}

.contact-social-links a:hover {
    color: var(--primary);
}

.contact-social-links svg {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Mobile */

@media (max-width: 767px) {

    .contact-page {
        padding-top: 96px;
    }

    .contact-card {
        padding: 24px;
    }

}

/* =========================================================
   PROGRAMAÇÃO
   Content: data/programacao.php
   Behaviour: assets/js/programacao.js
   ========================================================= */

.programme-page {
    padding-top: 112px;
    padding-bottom: 32px;
}

.programme-schedule {
    margin-bottom: 64px;
}

.programme-heading,
.programme-films-heading {
    text-align: center;
    margin-bottom: 32px;
}

.programme-heading h1,
.programme-films-heading h2 {
    margin: 0 0 8px;
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.programme-heading p,
.programme-films-heading p {
    margin: 0;
    color: var(--sand);
    font-size: 1.125rem;
}

.programme-days,
.programme-film-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.programme-day-button,
.programme-filter,
.film-filter {
    border: 1px solid rgba(217, 119, 6, 0.20);
    border-radius: 8px;
    background: rgba(242, 232, 218, 0.10);
    color: var(--sand);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 180ms ease;
}

.programme-day-button {
    padding: 16px 24px;
}

.programme-day-button span,
.programme-day-button strong {
    display: block;
    text-align: center;
}

.programme-day-button span {
    margin-bottom: 4px;
    font-size: .75rem;
}

.programme-day-button strong {
    font-size: 1.125rem;
}

.programme-day-button:hover,
.programme-filter:hover,
.film-filter:hover {
    background: rgba(242, 232, 218, 0.20);
}

.programme-day-button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    transform: scale(1.05);
}

.programme-day-image {
    width: 100%;
    max-width: 896px;
    margin: 0 auto 32px;
}

.programme-day-image > div {
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, .20);
    border-radius: 8px;
    background: rgba(242, 232, 218, .10);
    backdrop-filter: blur(4px);
}

.programme-day-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.programme-venues {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto 24px;
}

.programme-filter {
    padding: 8px 16px;
    font-size: .875rem;
}

.programme-filter.is-active,
.film-filter.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-light);
}

.programme-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.programme-event {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, .20);
    border-radius: 8px;
    background: rgba(242, 232, 218, .10);
    backdrop-filter: blur(4px);
    transition: background 180ms ease;
}

.programme-event:hover {
    background: rgba(242, 232, 218, .20);
}

.programme-event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 96px;
    color: var(--primary);
    font-size: 1.125rem;
}

.programme-event-time svg,
.programme-event-venue svg,
.programme-action svg,
.programme-film-duration svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.programme-event-main {
    flex: 1 1 auto;
    min-width: 0;
}

.programme-event-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.programme-event-title-row h3 {
    margin: 0;
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.programme-type {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(217, 119, 6, .20);
    font-size: .75rem;
    line-height: 1rem;
}

.programme-type--cerimónia {
    border-color: #a855f7;
    color: #c084fc;
    background: rgba(168, 85, 247, .20);
}

.programme-event-venue {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--sand);
    font-size: .875rem;
}

.programme-event-venue svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
}

.programme-event-main p {
    margin: 8px 0 0;
    color: var(--sand);
    font-size: .875rem;
}

.programme-event-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.programme-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
}

button.programme-action {
    border: 1px solid rgba(217, 119, 6, .20);
    background: rgba(242, 232, 218, .10);
    color: var(--sand);
    cursor: pointer;
}

.programme-ticket.is-open {
    background: var(--primary);
    color: var(--text-light);
}

.programme-ticket.is-disabled {
    background: rgba(242, 232, 218, .10);
    color: rgba(242, 232, 218, .50);
    cursor: not-allowed;
}

.programme-empty {
    padding: 32px;
    border: 1px solid rgba(217, 119, 6, .20);
    border-radius: 8px;
    color: var(--sand);
    background: rgba(242, 232, 218, .06);
    text-align: center;
}

.programme-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    color: var(--sand);
    font-size: .875rem;
}

.programme-films-heading {
    margin-bottom: 32px;
}

.film-filter {
    padding: 12px 24px;
}

/* Desktop */
.programme-film-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

/* Smaller desktop / laptop */
@media (max-width: 1279px) {
    .programme-film-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 1023px) {
    .programme-film-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .programme-event {
        flex-wrap: wrap;
    }

    .programme-event-actions {
        width: 100%;
        padding-left: 112px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .programme-film-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Small phone */
@media (max-width: 479px) {
    .programme-film-grid {
        grid-template-columns: 1fr;
    }
}

.programme-film-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, .20);
    border-radius: 8px;
    background: rgba(242, 232, 218, .10);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 180ms ease;
}

.programme-film-card:hover {
    background: rgba(242, 232, 218, .20);
}

.programme-film-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(242, 232, 218, .05);
}

.programme-film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.programme-film-card:hover .programme-film-poster img {
    transform: scale(1.05);
}

.programme-film-info {
    padding: 16px;
}

.programme-film-info h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.programme-film-director {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: .875rem;
    font-weight: 500;
}

.programme-film-meta,
.programme-film-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sand);
    font-size: .75rem;
}

.programme-film-meta {
    margin-bottom: 8px;
}

.programme-film-duration {
    gap: 4px;
}

.programme-film-duration svg {
    width: 12px;
    height: 12px;
}

.programme-film-count {
    margin: 24px 0 0;
    color: var(--sand);
    text-align: center;
    font-size: .875rem;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1023px) {
    .programme-film-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .programme-event {
        flex-wrap: wrap;
    }

    .programme-event-actions {
        width: 100%;
        padding-left: 112px;
    }
}

@media (max-width: 767px) {
    .programme-page {
        padding-top: 96px;
    }

    .programme-heading h1,
    .programme-films-heading h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .programme-film-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .programme-event {
        display: block;
    }

    .programme-event-time {
        margin-bottom: 12px;
    }

    .programme-event-actions {
        width: 100%;
        padding-left: 0;
        margin-top: 16px;
        flex-direction: column;
    }

    .programme-action {
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .programme-film-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FILM DETAILS MODAL
   ========================================================= */

body.modal-open {
    overflow: hidden;
}

.film-card {
    cursor: pointer;
}

.film-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Full-screen layer */

.film-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.film-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Dark blurred background */

.film-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Dialog */

.film-modal-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: var(--charcoal);

    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: 8px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55);
}

/* Header */

.film-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 16px;

    border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}

.film-modal-header h2 {
    margin: 0;

    color: var(--text-light);

    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
}

.film-modal-close {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;
    margin-left: 20px;

    border: 0;
    background: transparent;

    color: var(--text-light);

    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.film-modal-close:hover {
    color: var(--primary);
    transform: scale(1.08);
}

/* Content */

.film-modal-body {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 24px;

    padding: 24px;
}

.film-modal-poster img {
    display: block;

    width: 100%;
    aspect-ratio: 2 / 3;

    object-fit: cover;

    border-radius: 6px;
}

.film-modal-details {
    min-width: 0;
}

.film-modal-director {
    margin: 2px 0 10px;

    color: var(--primary);

    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.film-modal-director span {
    color: inherit;
}

/* Metadata */

.film-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 14px 20px;

    margin-bottom: 18px;

    color: var(--text-light);
}

.film-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 0.95rem;
    line-height: 1.4;
}

.film-modal-meta-item:first-child {
    flex: 1 1 auto;
}

.film-modal-meta-item svg {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Synopsis */

.film-modal-synopsis h3 {
    margin: 0 0 12px;

    color: var(--text-light);

    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.film-modal-synopsis p {
    margin: 0;

    color: var(--text-light);

    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;

    text-align: justify;
}

/* Tablet / mobile */

@media (max-width: 767px) {

    .film-modal {
        align-items: flex-start;

        padding: 16px;

        overflow-y: auto;
    }

    .film-modal-dialog {
        margin: 20px auto;

        max-height: none;
    }

    .film-modal-body {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 20px;
    }

    .film-modal-poster {
        width: min(260px, 100%);
        margin: 0 auto;
    }

    .film-modal-header {
        padding: 16px;
    }

    .film-modal-header h2 {
        font-size: 1.25rem;
    }

    .film-modal-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .film-modal-meta-item:first-child {
        flex: initial;
    }
}

.film-category-heading {
    text-align: center;
    margin-bottom: 32px;
}

.film-category-heading h2 {
    margin: 0 0 8px;
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.film-category-heading p {
    margin: 0;
    color: var(--sand);
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 400;
}

.film-category-heading p[hidden] {
    display: none;
}

.artistic-message ul + p {
    margin-top: 24px;
}

/* =========================================================
   KAFUKINHA BANNER
   ========================================================= */

.kafukinha-banner {
    width: 100%;
    max-width: 1024px;
    margin: 48px auto 32px;
}

.kafukinha-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}