/* =========================
   RESET & BASE
========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #e6f0fa;
    color: #333;
}

/* =========================
   PAGE / CONTAINER
========================= */

.page {
    width: 100%;
}

.container {
    max-width: 1200px;
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 24px;
    background-color: #ffffff;
    border-left: 5px solid #5dade2;
    border-right: 5px solid #5dade2;
}

/* =========================
   MENU
========================= */

.top-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.top-menu a {
    text-decoration: none;
    color: #00539C;
    font-weight: bold;
}

/* =========================
   GENERIC TEXT
========================= */

h2 {
    color: #00539C;
}

h3 {
    margin: 24px 0 12px 0;
}

p {
    margin: 0 0 15px 0;
}

.center {
    text-align: center;
}

/* =========================
   FESTIVAL TITLE
========================= */

.program-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2.05em;
    line-height: 1.15;
    margin: 0 0 6px 0;
    text-align: center;
    color: #00539C;
}

.program-title .festival-name {
    font-weight: 600;
    letter-spacing: 0.035em;
}

.program-title .festival-edition {
    display: block;
    font-weight: 400;
    font-size: 0.8em;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.program-subtitle {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    color: #333;
    margin: 0 0 24px 0;
}

/* =========================
   INTRO & SCREENING INFO
========================= */

.program-intro,
.program-screening-info,
.selection-intro {
    margin: 0 0 24px 0;
}

.program-intro p,
.program-screening-info p {
    margin-left: 0;
    margin-right: 0;
}

.program-screening-info strong {
    color: #000;
}

/* =========================
   POSTER (SELECTION)
========================= */

.poster-wrapper {
    margin: 20px 0;
}

.poster {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
}

/* =========================
   PROGRAM LAYOUT
========================= */

.program-wrapper {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.program-poster img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* =========================
   PROGRAM LIST
========================= */

.program-list {
    width: 100%;
}

.program-item {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.program-item strong {
    display: block;
    font-size: 1.05em;
    margin-bottom: 2px;
}

/* =========================
   FILM META (durata · regia · paese)
========================= */

.film-meta {
    display: block;
    font-size: 0.95em;
    color: #444;
    margin-bottom: 6px;
}

/* =========================
   DETAILS / ACCORDION
========================= */

details {
    margin-top: 6px;
}

summary {
    display: block;
    cursor: pointer;
    list-style: none;
    font-size: 0.95em;
    font-weight: 600;
    color: #00539C;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▶︎ ";
    transition: transform 0.2s ease;
}

details[open] summary::before {
    content: "▼ ";
}

/* =========================
   SYNOPSIS + POSTER
========================= */

.synopsis-wrapper {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.synopsis-poster {
    width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}

.synopsis-poster img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.synopsis-text {
    flex: 1;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox .lightbox-close {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.lightbox .lightbox-x {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */

.logo-bottom {
    width: 180px;
    display: block;
    margin: 40px auto 15px auto;
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 40px;
}

.footer-logo {
    max-height: 100px;   /* LIMITE RICHIESTO */
    width: auto;
    height: auto;
    margin: 0 auto 14px auto;
    display: block;
}

.footer-logo {
    object-fit: contain;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container {
        width: calc(100% - 10px);
        padding: 18px;
    }

    .program-wrapper {
        grid-template-columns: 1fr;
    }

    .program-poster img {
        max-width: 80%;
        margin: 0 auto;
    }

    .program-title {
        font-size: 1.65em;
        line-height: 1.2;
    }

    .program-title .festival-edition {
        font-size: 0.85em;
    }

    .program-subtitle {
        font-size: 1.05em;
        font-weight: 700;
    }

    .synopsis-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .synopsis-poster {
        width: 70%;
        max-width: 220px;
    }

    .synopsis-text {
        width: 100%;
    }
}

/* =========================
   STAMPABILE
========================= */

/* =========================
   PRINT ICON
========================= */

.program-print {
    margin: 12px 0 20px 0;
    text-align: right;
}

.program-print img {
    width: 32px;
    height: 32px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.program-print img:hover {
    opacity: 1;
    cursor: pointer;
}


