/* Estilos exclusivos da página piloto 1193-2026. */
.festival-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    vertical-align: middle;
}
.festival-highlights { margin-bottom: 30px; }
.festival-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius, 18px);
    background: var(--soft, #f5f7f3);
    isolation: isolate;
}
.festival-slide { width: 100%; height: 100%; }
.festival-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.festival-highlights.is-enhanced .festival-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 850ms ease;
    pointer-events: none;
}
.festival-highlights.is-enhanced .festival-slide.is-active { opacity: 1; }
.festival-highlight-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}
.festival-pages { display: flex; align-items: center; gap: 8px; }
.festival-highlight-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line, #dbe3d9);
    border-radius: 9px;
    background: #fff;
    color: var(--green, #496c53);
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}
.festival-highlight-controls button:hover { background: var(--soft, #f5f7f3); }
.festival-highlight-controls button:focus-visible,
.festival-tile:focus-visible {
    outline: 2px solid var(--green, #496c53);
    outline-offset: 4px;
}
.festival-counter {
    font-size: .75rem;
    text-align: center;
    min-width: 42px;
    font-variant-numeric: tabular-nums;
    color: var(--muted, #606b63);
}
.festival-caption {
    margin: 8px 0 0;
    color: var(--muted, #606b63);
    font-size: .72rem;
}
.festival-records {
    padding-top: 40px;
    padding-bottom: 48px;
    border-top: 1px solid var(--line, #dbe3d9);
}
.festival-records-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 28px;
}
.festival-records-heading > div { min-width: 0; }
.festival-records-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.2;
}
.festival-records-heading > p {
    max-width: 350px;
    margin: 0;
    font-size: .84rem;
    color: var(--muted, #606b63);
}
.festival-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.festival-tile {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    min-width: 0;
    background: var(--soft, #f5f7f3);
    border-radius: 14px;
    overflow: hidden;
}
.festival-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity .25s ease;
}
.festival-tile:hover img { opacity: .88; }
.festival-tile-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    color: var(--green, #496c53);
}
.festival-tile-mark .festival-icon { width: 16px; height: 16px; }
.festival-album-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 26px;
}
.festival-album-footer .button { max-width: 100%; }
.festival-album-note,
.festival-api-notice {
    margin: 0;
    font-size: .73rem;
    color: var(--muted, #606b63);
}
.festival-api-notice { margin-top: 20px; font-size: .65rem; }
.festival-records [hidden],
.festival-highlights [hidden] { display: none !important; }
@media (max-width: 700px) {
    .festival-records { padding-top: 30px; padding-bottom: 35px; }
    .festival-records-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
    .festival-records-heading > p { max-width: 100%; }
    .festival-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .festival-album-footer { align-items: flex-start; flex-direction: column; }
    .festival-tile { border-radius: 10px; }
    .festival-tile-mark { width: 28px; height: 28px; right: 6px; bottom: 6px; }
}
@media (max-width: 380px) {
    .festival-highlight-controls { gap: 8px; }
    .festival-highlight-controls button { padding-inline: 10px; }
    .festival-mosaic { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .festival-highlights.is-enhanced .festival-slide,
    .festival-tile img { transition: none; }
}
@media print {
    .festival-highlight-controls,
    .festival-tile-mark { display: none; }
    .festival-records { break-before: auto; }
}
