@media (max-width: 768px) {
    #hero, #festivais {
        background-attachment: initial !important;
        background-position: center center !important;
        background-size: cover !important;
        padding: 40px 0 !important;
        min-height: 60vh;
    }
    #hero h1, #festivais .section-title {
        font-size: 2rem !important;
    }
}
:root {
    --cor-primaria: #000000;
    --cor-secundaria: #fde889;
    --cor-texto: #333333;
    --cor-texto-claro: #666666;
    --cor-fundo: #000000;
    --cor-fundo-escuro: #1a1a1a;
    --fonte-principal: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --espacamento-secao: 100px;
    --espacamento-pequeno: 20px;
    --transicao: all 0.3s ease;
    --sombra: 0 10px 30px rgba(0,0,0,0.1);
}



/*==========================================
   BOTÕES PADRÃO
   ========================================== */
.btn-brand {
  background: #fde889;
  color: #0e0d0a;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-brand:hover {
  background: #fcd560;
  color: #0e0d0a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 232, 137, 0.3);
}*/

/* ==========================================
   RESET E ESTILOS BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--cor-texto);
    background: #000000;
    overflow-x: hidden;
}

/* Garantir que o site preencha a viewport em mobile */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicao);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   NAVEGACAO (Navbar)
   ========================================== */
.navbar {
    background: rgba(14, 13, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    transition: var(--transicao);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--sombra);
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    margin: 0 auto;
}

.navbar-brand img {
    height: 44px !important;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 2px 8px #fde889) brightness(1.1);
    transition: var(--transicao);
}

/* Slimmer, flatter menu icon */
.navbar-toggler {
    padding: 6px 8px;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.navbar-toggler-icon {
    width: 30px;
    height: 18px;
    background-size: 30px 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transform: scaleY(0.85);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(253, 232, 137, 0.35) !important;
}

section[id],
footer[id] {
    scroll-margin-top: 84px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cor-secundaria) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--cor-secundaria);
    transform: scaleX(0);
    transition: var(--transicao);
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================
   HERO SECTION - COMO IMAGEM 4
   ========================================== */
#hero {
    /* background gradient; actual image applied per viewport to optimize downloads */
    background: linear-gradient(180deg, rgba(61, 58, 17, 0.522) 0%, rgba(0,0,0,0.8) 100%);
    /* Prefer modern dynamic viewport units on mobile, fall back to 100vh */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden; /* Garante que nada "transborda" */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    #hero {
        background-image: linear-gradient(180deg, rgba(61, 58, 17, 0.522) 0%, rgba(0,0,0,0.8) 100%), url('../assets/img/chapa.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* Ensure mobile devices show a lighter/optimized background image (avoid 'fixed') */
@media (max-width: 767px) {
    #hero {
        background-image: linear-gradient(180deg, rgba(61, 58, 17, 0.522) 0%, rgba(0,0,0,0.8) 100%), url('../assets/img/opt/chapa.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        min-height: 60svh;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

#hero h1 {
    color: var(--cor-secundaria);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    text-align: center;
}

#hero h5 {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

#hero .btn-brand {
    background: var(--cor-secundaria);
    color: #000000;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 32px;
    font-size: 1rem;
    box-shadow: 0 2px 16px rgba(253,232,137,0.3);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#hero .btn-brand:hover {
    background: #ffe066;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(253,232,137,0.4);
}

#hero .btn-light {
    background: transparent;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 32px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#hero .btn-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

.hero-video {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ==========================================
   SECCOES GERAIS
   ========================================== */
.section-padding {
    padding: var(--espacamento-secao) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.title-line,
.line {
    width: 60px;
    height: 4px;
    background: var(--cor-secundaria);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--cor-texto-claro);
    font-size: 1.1rem;
}

/* ==========================================
   HISTORIA - COMO IMAGEM 3
   ========================================== */
#historia {
    /* Set your custom background color here for testing, e.g. #ff00d4 */
    background-color: #1a1a1a !important;
    padding-top: 80px;
    padding-bottom: 80px;
}

#historia .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

#historia .section-title {
    color: #ffffff !important;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

#historia .line {
    width: 80px;
    height: 3px;
    background: #ffffff;
    margin: 0 auto 50px;
    border-radius: 2px;
}

#historia p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Blockquote em itálico com borda lateral dourada */
#historia blockquote,
#historia .quote {
    background: rgba(253, 232, 137, 0.08);
    border-left: 4px solid var(--cor-secundaria);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(253, 232, 137, 0.95) !important;
    font-size: 1.05rem;
}



/* ==========================================
   MUSICA - COMO IMAGEM 2
   ========================================== */
#musica {
    background: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

#musica .section-title,
#musica h2,
#musica h3,
#musica h5 {
    color: #000000;
    font-weight: 700;
    margin-bottom: 12px;
}

#musica .line {
    width: 60px;
    height: 4px;
    background: var(--cor-secundaria);
    margin: 0 auto 18px;
    border-radius: 2px;
}

#musica .platform-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Botões Spotify e YouTube - COMO IMAGEM 2 */
#musica .platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#musica .platform-btn.spotify {
    background: #1DB954;
    color: #ffffff;
}

#musica .platform-btn.spotify:hover {
    background: #1ed760;
    transform: translateY(-2px);
}

#musica .platform-btn.youtube {
    background: #FF0000;
    color: #ffffff;
}

#musica .platform-btn.youtube:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
}

#musica .platform-btn i {
    font-size: 1.2rem;
}

/* ==========================================
   FESTIVAIS E PREMIOS
   ========================================== */
#festivais {
    background: linear-gradient(180deg, rgba(61, 58, 17, 0.522) 0%, rgba(0,0,0,0.8) 100%), url('../assets/img/chapa.jpg') center/cover no-repeat !important;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

#festivais .section-title {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#festivais .line {
    background: #fde889;
    margin: 0 auto 50px;
}

.festival-card-custom {
    background: rgba(40, 40, 40, 0.88);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px 28px 28px 20px; /* more space for image + content */
    margin-bottom: 28px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    min-height: 140px;
}

.festival-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.festival-card-custom h4 {
    color: #fde889;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Keep festival card content stacked (restore original look) */
.festival-card-custom > div {
    display: block;
    width: 100%;
}

.festival-card-custom .premios-list-custom {
    text-align: left;
    margin-top: 8px;
    max-width: none;
}

/* Better spacing for festival image on large screens */
.festival-img {
    width: 160px; /* increase image box so photo and prizes have room */
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Entrance animation for festival cards */
.festival-card-custom { transform: translateY(0); opacity: 1; }
.festival-card-custom.animate-in {
    animation: festivalFadeUp 640ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes festivalFadeUp {
    0% { opacity: 0; transform: translateY(18px) scale(.995); filter: blur(2px); }
    60% { opacity: 1; transform: translateY(-6px) scale(1.006); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Stronger hover for clarity */
.festival-card-custom:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 4px 18px rgba(253,232,137,0.06) inset;
    border-color: rgba(253,232,137,0.08);
}

/* Mobile: revert to stacked layout */
@media (max-width: 768px) {
    .festival-card-custom > div { display: block; }
    .festival-card-custom > div > ul.premios-list-custom { text-align: left; justify-self: start; max-width: none; margin-top: 12px; }
    .festival-img { width: 120px; height: 120px; margin-right: 0; margin-bottom: 12px; }
}

/* Desktop override: pin the prizes list to the right of the card */
@media (min-width: 992px) {
    .festival-card-custom {
        position: relative;
        padding-right: 260px; /* space for the pinned list */
    }

    .festival-card-custom .premios-list-custom {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        text-align: right;
        max-width: 220px;
        margin: 0;
        padding: 0;
    }

    .festival-card-custom .premios-list-custom li {
        padding: 6px 0;
        border: none;
    }

    .festival-card-custom > img.festival-img {
        margin-right: 18px;
        flex-shrink: 0;
    }
}

/* Use full-screen viewport units on mobile where available (fallback to 100vh) */
html, body { height: 100%; }
body { min-height: 100svh; }
#hero { min-height: 100svh; }
@supports not (height: 100svh) {
    body { min-height: 100vh; }
    #hero { min-height: 100vh; }
}


.festival-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.premios-list-custom {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premios-list-custom li {
    color: #eee7e7;
    font-size: 1rem;
    padding: 10px 0; /* increased vertical spacing */
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    line-height: 1.35;
}

.premios-list li:last-child {
    border-bottom: none;
}

.premios-list-custom i {
    color: #fde889;
    font-size: 0.9rem;
}

/* ==========================================
   DIRECAO - FUNDO BRANCO
   ========================================== */
#JohnMaMen,
#direcao {
    background: #ffffff !important;
    padding: 80px 0;
}

#JohnMaMen .section-title,
#direcao .section-title {
    color: #222222 !important;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#JohnMaMen .section-subtitle,
#direcao .section-subtitle {
    color: #666666 !important;
    text-align: center;
    margin-bottom: 50px;
}

#JohnMaMen .line,
#direcao .line {
    background: #fde889;
}

.member-card {
    text-align: center;
    transition: var(--transicao);
    margin-bottom: 30px;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fde889;
    transition: var(--transicao);
}

.member-card:hover .member-image {
    border-color: #e5d17a;
    box-shadow: 0 10px 30px rgba(253, 232, 137, 0.4);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicao);
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #222222;
    font-size: 1.1rem;
}

.member-info span {
    color: #666666;
    font-size: 0.9rem;
}

/* ==========================================
   GALERIA
   ========================================== */
#galeria {
    background: #222222 !important;
    padding-top: 60px;
    padding-bottom: 60px;
    overflow: hidden;
    position: relative;
}

#galeria .section-title {
    color: #fde889 !important;
}

#galeria .infinite-gallery {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-wrapper {
    overflow: hidden;
}

.gallery-row {
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.gallery-row[data-direction="left"] .gallery-track {
    animation: scrollLeft 40s linear infinite;
}

.gallery-row[data-direction="right"] .gallery-track {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-track img {
    height: 180px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: var(--transicao);
    cursor: pointer;
}

.gallery-track img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-row:hover .gallery-track {
    animation-play-state: paused;
}

/* ==========================================
   CONTACTOS
   ========================================== */
#contactos {
    background: #222222 !important;
}

#contactos .section-title {
    color: #fde889 !important;
}

/* ==========================================
   MERCH
   ========================================== 
#merch-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 0;
}

#merch-products .card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    border: none;
    transition: transform 0.2s;
    max-width: 320px;
    margin: 0 auto;
}

#merch-products .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

#merch-products .card-img-top {
    max-height: 220px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 16px 16px 0 0;
    padding: 18px;
}

#merch-products .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

#merch-products .card-text {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#merch-products .btn-brand {
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 22px;
    transition: background 0.2s;
}

#merch-products .btn-brand:hover {
    background: #ffe066;
    color: #222;
}

/* ==========================================
   FOOTER
   ========================================== */
footer,
.footer-section {
    background: #181716 !important;
    color: #fde889 !important;
    padding: 60px 0 30px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

/* Footer custom adjustments: logo left, contactos centered, yellow stroke */
@media (min-width: 768px) {
    .footer-top .d-flex.flex-column.flex-md-row {
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-top .d-flex.flex-column.flex-md-row .contacts-block {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.footer-top .line {
    height: 4px;
    width: 70px;
    background: #fde889;
    border-radius: 2px;
    margin: 10px 0;
}

.uniao-name {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    display: block;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transicao);
}

.social-links a:hover {
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--cor-secundaria);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contacts {
    list-style: none;
    padding: 0;
}

.footer-contacts li {
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.footer-contacts i {
    color: var(--cor-secundaria);
}

.partner-logo {
    max-width: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.partner-name {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   AUDITÓRIO
   ========================================== */
.auditorium-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* Tornar o auditório responsivo e impedir overflow fora da viewport */
.auditorium-container {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Force horizontal scroll and smooth touch scrolling so left seats are reachable on mobile */
.auditorium-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-left: 12px;
    padding-right: 12px;
}

/* Ensure seating area can shrink/wrap but still be scrollable */
.auditorium-container .seating-area {
    min-width: 320px;
}

/* Forçar o contentor a permitir scroll horizontal (user-provided) */
.auditorium-container {
    width: 100% !important;
    overflow-x: auto !important; /* ISTO ativa o deslize lateral */
    display: block !important;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px !important;
    background: #111;
}

/* O segredo: a área de lugares tem de ser MAIOR que o ecrã do telemóvel */
.seating-area {
    min-width: 800px !important; /* Ajusta este valor se tiveres muitas colunas de cadeiras */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seat-row {
    display: flex;
    flex-wrap: nowrap !important; /* Impede que as cadeiras saltem para a linha de baixo */
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}
.stage-section {
    text-align: center;
    margin-bottom: 30px;
}

.stage-arc {
    display: inline-block;
    padding: 15px 80px;
    background: linear-gradient(135deg, var(--cor-secundaria), #e5d17a);
    color: var(--cor-primaria);
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 3px;
    border-radius: 0 0 100px 100px;
    box-shadow: 0 4px 15px rgba(253, 232, 137, 0.3);
}

.seating-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    /* garantir espaço vertical entre filas */
    padding: 6px 0;
}

.row-label {
    width: 25px;
    text-align: center;
    font-weight: bold;
    color: var(--cor-secundaria);
    font-size: 0.85em;
}

.seat-group {
    display: flex;
    gap: 3px;
}

.seat-group-left {
    justify-content: flex-end;
}

.seat-group-right {
    justify-content: flex-start;
}

.aisle-center {
    width: 40px;
}

.seat-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat-btn:hover:not([disabled]) {
    transform: scale(1.15);
    z-index: 2;
}

.seat-btn.available {
    background: #2d5a27;
    color: white;
}

.seat-btn.available:hover {
    background: #3d7a37;
}

.seat-btn.selected {
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
    box-shadow: 0 0 8px var(--cor-secundaria);
}

.seat-btn.reserved,
.seat-btn.occupied,
.seat-btn.sold {
    background: #6c757d;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-available {
    background: #2d5a27;
}

.legend-reserved,
.legend-occupied {
    background: #6c757d;
}

.legend-selected {
    background: var(--cor-secundaria);
}

#selection-summary {
    border: 1px solid rgba(253, 232, 137, 0.3);
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--cor-primaria);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --espacamento-secao: 60px;
    }
    
    #hero {
        background-attachment: scroll;
    }
    
    #festivais {
        background-attachment: scroll;
    }
    
    #bila .col-md-3 {
        width: 48%;
        max-width: none;
    }
    
    .bilatunix-card img {
        height: 300px;
    }
    
    .gallery-track img {
        height: 140px;
    }
    
    .festival-body {
        flex-direction: column;
    }
    
    .festival-image {
        flex: none;
    }
    
    /* Direção - cards mais pequenos no mobile */
    .member-image {
        width: 90px;
        height: 90px;
    }
    
    .member-info h5 {
        font-size: 0.9rem;
    }
    
    .member-info span {
        font-size: 0.75rem;
    }
    
    .member-card {
        margin-bottom: 15px;
    }
    
    #JohnMaMen .section-title,
    #direcao .section-title {
        font-size: 1.8rem;
    }
    
    #JohnMaMen .section-title p,
    #JohnMaMen .section-title .display-4 {
        font-size: 1.8rem !important;
    }
    
    /* Auditório - mais compacto no mobile */
    .seat-btn {
        width: 24px;
        height: 24px;
        font-size: 0.6em;
    }
    
    .aisle-center {
        width: 20px;
    }
    
    .row-label {
        width: 20px;
        font-size: 0.75em;
    }
    
    .seat-group {
        gap: 2px;
    }
    
    .stage-arc {
        padding: 10px 40px;
        font-size: 1em;
    }
    
    .auditorium-container {
        padding: 10px;
        overflow-x: auto;
    }

    /* garantir espaço lateral para alcançar os lugares à esquerda/direita */
    .auditorium-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Ajustes adicionais para empurrar o conteúdo mais para a esquerda e mostrar mais lugares */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .auditorium-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .seating-area {
        min-width: 900px !important;
        align-items: flex-start;
    }
    .seat-row {
        justify-content: flex-start;
        gap: 4px;
    }
    
    /* BilaTunix V - cartaz não muito grande no mobile (ajustado) */
    #bilatunixV-poster-img {
        max-width: 420px !important;
        margin: 0 auto;
        display: block;
    }
    
    #bilatunixV .display-4 {
        font-size: 1.8rem !important;
    }
    
    #bilatunixV h5 {
        font-size: 1rem;
    }
    
    /* Footer - coluna no mobile */
    .footer-top .d-flex.flex-column.flex-md-row.w-100 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    
    .footer-top .d-flex.flex-column.flex-md-row.w-100 > div {
        margin-right: 0 !important;
        margin-bottom: 24px;
        align-items: center !important;
        text-align: center;
    }
    
    .footer-top .d-flex.flex-column.align-items-end {
        align-items: center !important;
        margin-top: 10px;
    }
    
    .footer-top .line {
        margin: 0 auto 12px;
    }
    
    .footer-top ul.list-unstyled {
        text-align: center;
    }
    
    .footer-top ul.list-unstyled li {
        font-size: 0.9rem;
    }
    
    /* Festivais cards - column no mobile */
    .festival-card-custom {
        flex-direction: column !important;
        text-align: center;
    }
    
    .festival-card-custom .festival-img {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    #bila .col-md-3 {
        width: 100%;
    }
    
    .bilatunix-card img {
        height: 350px;
    }
    
    .gallery-track img {
        height: 100px;
    }
    
    .seat-btn {
        width: 18px;
        height: 18px;
        font-size: 0.46em;
    }
    
    .aisle-center {
        width: 12px;
    }
    
    .seat-row {
        gap: 4px;
    }
    
    .auditorium-container {
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auditorium-container {
        padding-left: 14px;
        padding-right: 14px;
    }
    
    .stage-arc {
        padding: 8px 30px;
        font-size: 0.85em;
    }
    
    /* Direção - ainda mais compacto */
    .member-image {
        width: 75px;
        height: 75px;
        border-width: 3px;
    }
    
    .member-info h5 {
        font-size: 0.8rem;
    }
    
    .member-info span {
        font-size: 0.7rem;
    }
    
    #JohnMaMen .section-title .display-4,
    #JohnMaMen .display-4 {
        font-size: 1.5rem !important;
    }
    
    /* BilaTunix V - cartaz ainda mais pequeno (ajustado para mobile) */
    #bilatunixV-poster-img {
        max-width: 320px !important;
    }
    
    #bilatunixV .display-4 {
        font-size: 1.5rem !important;
    }
    
    /* Footer - texto mais pequeno */
    .footer-top ul.list-unstyled li {
        font-size: 0.82rem;
    }
    
    .footer-top h5 {
        font-size: 1rem;
    }
    
    .footer-top span {
        font-size: 0.8rem !important;
    }
}

/* ==========================================
   UTILITARIOS
   ========================================== */
.bg-dark {
    background-color: var(--cor-fundo-escuro) !important;
}

.text-white {
    color: white !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cor-fundo-escuro);
}

::-webkit-scrollbar-thumb {
    background: var(--cor-secundaria);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5d17a;
}

/* Direção: tornar mais acessível em mobile (dois por linha em tablet, full-width em telemóvel) */
@media (max-width: 768px) {
    .col-md-2.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .member-card {
        padding: 12px;
    }
    .member-image {
        width: 120px;
        height: 120px;
    }
    .member-info h5 {
        font-size: 1rem;
    }
    .member-info span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .col-md-2.col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .member-card {
        display: block;
        gap: 12px;
        align-items: center;
        text-align: center;
        padding: 18px 12px;
    }
    .member-image {
        width: 110px;
        height: 110px;
        border-width: 3px;
        margin: 0 auto 10px;
    }
    .member-info h5 {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }
    .member-info span {
        font-size: 1rem;
    }
}

/* Classe que esconde a secção Direção no mobile quando ativada pelo botão */
.direcao-hidden {
    display: none !important;
}

/* --- RESET E GERAL --- */
body {
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

/* --- NAVBAR FIX --- */
.navbar {
    z-index: 1050;
}

/* --- AUDITÓRIO (O segredo para o telemóvel) --- */
.auditorium-container {
    width: 100%;
    overflow-x: auto; /* Ativa scroll horizontal */
    overflow-y: hidden;
    display: block !important; /* Força o comportamento de bloco */
    -webkit-overflow-scrolling: touch; /* Scroll suave em iOS */
    padding: 20px 15px !important;
    background: #111;
    border: 1px solid #333;
    cursor: grab;
}

/* Forçamos uma largura mínima para os lugares não esmagarem */
.seating-area {
    /* Como tens muitos assentos por fila (vi na imagem), 
       precisamos de uma largura grande para não esmagar */
    min-width: 1000px !important; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seat-row {
    display: flex !important;
    flex-wrap: nowrap !important; /* IMPEDE QUE AS CADEIRAS SALTEM PARA BAIXO */
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.seat-btn {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
    border-radius: 4px;
    border: none;
}

/* --- DIREÇÃO (Responsivo) --- */
.member-card {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    color: #000;
    height: 100%;
}

.member-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fde889;
}

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

@media (max-width: 768px) {
    .section-title h1 { font-size: 2rem; }
    .member-image { width: 80px; height: 80px; }
}

/* --- GALERIA INFINITA --- */
.gallery-track img {
    height: 150px;
    margin: 0 10px;
    border-radius: 8px;
}

/* ======= OVERRIDE: AUDITORIUM MOBILE TIGHT LAYOUT ======= */
/* 1. A JANELA (Onde o dedo desliza) */
.auditorium-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto !important; /* ATIVA O DESLIZE LATERAL */
    overflow-y: hidden;
    display: block !important;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone */
    padding: 20px 0 !important;
    background: #000;
    position: relative;
}

/* 2. O TAPETE (O que está lá dentro) */
.seating-area {
    /* Como tens muitos assentos, 1000px garante que eles 
       tenham espaço para ficar todos em linha sem quebrar */
    min-width: 1200px !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 40px !important; /* Espaço para não colarem nos cantos */
}

/* 3. A FILA (Garante que não saltem para baixo) */
.seat-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* PROIBIDO saltar para a linha de baixo */
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* 4. OS ASSENTOS (Tamanho fixo para não esmagarem) */
.seat-btn {
    flex: 0 0 35px !important; /* Não deixa o botão encolher */
    height: 35px !important;
    width: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

/* Small-screen tweak: reduce min-width a bit so less horizontal scroll on very small devices */
@media (max-width: 360px) {
    .seating-area { min-width: 1000px !important; padding: 0 20px !important; }
    .seat-btn { flex: 0 0 30px !important; height: 30px !important; width: 30px !important; font-size:10px !important; }
}

/* ===== Scoped: auditorium stage ABOVE seats ===== */
#auditorium-container {
    display: block !important; /* block = stage stacks on top of seating-area */
}

#auditorium-container .stage-section {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

#auditorium-container .stage-arc {
    margin: 0 auto !important;
}

/* Navbar mobile tweaks (kept global) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98) !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        border-bottom: 2px solid #fde889;
        z-index: 9999;
    }

    .navbar-brand img {
        max-height: 40px !important;
    }

    .nav-item { border-bottom: 1px solid rgba(253, 232, 137, 0.1); }
    .nav-link { padding: 15px !important; font-size: 1.1rem !important; }
}

/* ======= USER OVERRIDE: FORCE AUDITORIUM SCROLL & FIXED SEAT SIZES ======= */
/* 1. O contentor pai TEM de ter estas 3 propriedades para o scroll funcionar */
.auditorium-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto !important; /* ISTO ativa o scroll lateral */
    display: block !important;
    -webkit-overflow-scrolling: touch; /* Suaviza o deslize no iPhone */
    padding: 20px 0 !important;
    position: relative !important;
    background: #111;
}

/* 2. A área interna TEM de ter uma largura fixa mínima 
   para obrigar o scroll a aparecer */
.seating-area {
    /* Como tens cerca de 30-40 assentos por fila, 1200px é o mínimo 
       para eles não ficarem esmagados e o scroll ativar */
    min-width: 1200px !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 50px !important;
}

/* 3. A fila não pode permitir quebras */
.seat-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* PROIBIDO saltar para a linha de baixo */
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* 4. Os assentos NÃO podem encolher */
.seat-btn {
    flex: 0 0 32px !important; /* Tamanho fixo: não cresce nem encolhe */
    width: 32px !important;
    height: 32px !important;
    font-size: 10px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Garantir que .container usa toda a largura no mobile para evitar margens/gutters visíveis */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin: 0 auto !important;
    }
}

/* Bilatunix V poster sizing (aumentado para desktop) */
#bilatunixV-poster-img { max-width: 520px !important; display: block; margin: 0 auto; }

/* Bilatunix cards - entrance and hover animations */
.bilatunix-card {
    transform: translateY(0) scale(1);
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms ease;
    will-change: transform;
    cursor: pointer;
}

.bilatunix-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 30px rgba(0,0,0,0.45);
}

/* =========================
   BilaTunix — modern cards
   ========================= */
.bilatunix-grid {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 36px 0 8px;
}

.bilatunix-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25));
    border-radius: 14px;
    overflow: hidden;
    min-width: 220px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(253,232,137,0.06);
    box-shadow: 0 10px 36px rgba(0,0,0,0.55);
}

.bilatunix-card .card-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.bilatunix-card .card-body {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bilatunix-card .trophy {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7d6 0%, #fcd560 100%);
    color: #111;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(252,214,64,0.12);
    flex-shrink: 0;
}

.bilatunix-card h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.bilatunix-card p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
}

.bilatunix-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 6px 28px rgba(253,232,137,0.09) inset;
    border-color: rgba(253,232,137,0.18);
}

/* Section title accent */
.section-title {
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--cor-secundaria), #e5d17a);
    margin: 12px auto 0;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(253,232,137,0.08);
}

/* Remove the generated extra yellow bar for the música section (it already has a .line in HTML) */
#musica .section-title::after { display: none; }

/* Ajustes das 'barrinhas amarelas' globais */
.line {
    background: linear-gradient(90deg, var(--cor-secundaria), #f7e79a) !important;
    height: 6px !important;
    width: 72px !important;
    margin: 8px auto 18px !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(253,232,137,0.12);
}

/* Footer and small accents */
.footer-top .line, .title-line {
    width: 72px;
    height: 6px;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(253,232,137,0.06);
}

/* Sidebar styles */
.festival-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    border: 1px solid rgba(253,232,137,0.04);
}
.festival-sidebar .sidebar-poster img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}
.festival-sidebar h4 { color: var(--cor-secundaria); }
.festival-sidebar ul li { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* Minor spacing: ensure festival cards don't overlap with sticky sidebar */
@media (min-width: 992px) {
    .festival-card-custom { margin-right: 0; }
}

/* Footer: center the yellow bar under the left logo only (first .mb-4 block) */
.footer-top .d-flex.flex-column.flex-md-row.w-100 > .mb-4:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .bilatunix-grid { gap: 18px; padding: 18px 6px; }
    .bilatunix-card { max-width: 300px; }
    .bilatunix-card .card-thumb { height: 150px; }
}

.bilatunix-card.animate-in {
    animation: bilatunixSlideUp 560ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes bilatunixSlideUp {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(2px);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Respect user reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .bilatunix-card, .bilatunix-card.animate-in {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Footer mobile: stack columns */
@media (max-width: 768px) {
    .footer-top .d-flex.flex-column.flex-md-row.w-100 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 30px !important;
    }
    .footer-top .me-md-5 {
        margin-right: 0 !important;
        margin-bottom: 20px;
    }
    .footer-top .d-flex.flex-column.align-items-center.align-items-md-end {
        align-items: center !important;
    }
}

/* Gallery images visible on mobile */
@media (max-width: 768px) {
    .gallery-track img {
        height: 100px !important;
        margin: 0 5px;
    }
    .infinite-gallery {
        overflow: hidden;
    }
}

/* Countdown timer mobile  */
@media (max-width: 576px) {
    #countdown-timer {
        font-size: 1.1rem !important;
    }
}

/* Cartazes (thumbnails) */
.cartaz-item { position: relative; overflow: hidden; border-radius:8px; }
.cartaz-thumb { max-height: 160px; width: 100%; object-fit: cover; display: block; opacity: 0; transform: translateY(6px); transition: opacity 320ms ease, transform 360ms cubic-bezier(.2,.9,.2,1); }
.cartaz-thumb.loaded { opacity: 1; transform: translateY(0); }
.cartaz-overlay { position: absolute; left: 8px; bottom: 8px; color: #fff; display:flex; align-items:center; gap:8px; background: rgba(0,0,0,0.35); padding:6px 10px; border-radius:6px; }
.cartaz-overlay i { color: #fde889; }

/* Expanded poster in results area */
.cartaz-expanded img#cartaz-grande { max-width: 220px; border-radius:6px; box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.results-panel { padding-left: 18px; }

@media (max-width: 768px) {
    .cartaz-thumb { max-height: 120px; }
    .cartaz-expanded img#cartaz-grande { max-width: 180px; display:block; margin: 0 auto 12px; }
    .results-panel { padding-left: 0; }
}

/* Slight performance hint: use transform-only hover for poster overlays */
.cartaz-item:hover .cartaz-thumb { transform: translateY(-6px) scale(1.02); }

/* Small-screen fixes: prevent horizontal overflow and make hero full-width */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    /* Make Bootstrap container behave like container-fluid on small devices */
    #hero .container, .container { max-width: 100% !important; padding-left: 16px !important; padding-right: 16px !important; }
    /* Allow brand to shrink instead of forcing layout width */
    .navbar-brand { width: auto !important; max-width: 180px; display: flex; justify-content: center; }
    .navbar-brand img { height: 40px !important; width: auto; }
    /* Ensure hero iframe and media never overflow */
    #hero iframe, #hero .ratio, #hero img { max-width: 100%; height: auto; }
}

/* ==================================================
    DISABLED: Festivais e Prémios (temporariamente)
    Estas regras escondem a secção e elementos relacionados
    sem remover o código original. Reverter removendo
    este bloco quando quiseres restaurar a secção.
    ================================================== */
#festivais,
.festival-card-custom,
.festival-img,
.premios-list-custom,
.festival-sidebar { display: none !important; }
