/* =========================================================
   Banda Musical de Fornos - style.css
   ========================================================= */

/* ---------- Variáveis de cor e base ---------- */
:root {
    --bmf-primary:#1A3D6F;
    --bmf-primary-dark: #122646;
    --bmf-gold: #D9A441;
    --bmf-bg: #F5F7FB;
    --bmf-text: #222222;
    --bmf-text-muted: #666666;
}

/* ---------- Reset simples ---------- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}


/*.logo-footer {
    height: 36px;
    width: auto;
    opacity: 0.9;
}*/
/* Logo na navbar */
.logo-footer {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575.98px) {
    .logo-footer {
        width: 34px;
        height: 34px;
    }
}


/* ---------- Body e layout geral ---------- */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bmf-text);
    background-color: var(--bmf-bg);
    display: flex;
    flex-direction: column;
}

/* Para permitir footer no fundo */
main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* ---------- Tipografia base ---------- */
.section-title {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.small-90 {
    font-size: 0.9rem;
}

/* Espaçamento geral para secções */
.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ---------- Blocos de secção mais destacados ---------- */

/* Fundo ligeiramente diferente para alternar com o fundo geral */
.section-bg-alt {
    background: linear-gradient(180deg, #f5f7fb 0%, #eceffa 100%);
}

/* Cartão grande que envolve o conteúdo de uma área */
.section-block {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 0.45rem 1.4rem rgba(15, 23, 42, 0.08);
}
/* ---------- Galeria na Home ---------- */

/* Grid de thumbnails */
.gallery-thumbs .gallery-item {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.3rem 0.8rem rgba(15, 23, 42, 0.18);
    background: #000;
    /* Mantém sempre o mesmo formato (4:3) para todas as fotos */
    aspect-ratio: 4 / 3;
}

/* A imagem adapta-se ao “quadrado” mantendo o enquadramento */
.gallery-thumbs .gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Header dentro de cada bloco de secção */
.section-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e6f1;
}

/* ---------- LINKS DA SECÇÃO CONTACTOS ---------- */

.contact-link {
    color: var(--bmf-primary) !important;   /* azul escuro bem visível */
    font-weight: 600;                       /* mais destaque */
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
    color: var(--bmf-primary-dark) !important;
}


.section-block-title .section-title {
    margin-bottom: 0.15rem;
}

.section-block-title p {
    margin: 0;
    color: var(--bmf-text-muted);
    font-size: 0.95rem;
}
/* ---------- PÁGINA "A BANDA" ---------- */

.about-intro {
    text-align: left;
}
.about-logo {
    text-align: left;        /* mete em center se preferires centralizado */
}

.about-logo-img {
    max-height: 140px;       /* tamanho do símbolo no topo */
    width: auto;
}
.about-lead {
    font-size: 1.05rem;
    max-width: 60rem;
    color: var(--bmf-text-muted);
}

/* Timeline de momentos marcantes */


.about-timeline li:last-child {
    margin-bottom: 0;
}

/* ---- TIMELINE REFEITA (não sobrepõe texto) ---- */

.about-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e6e9f3;
}

.about-timeline li:last-child {
    border-bottom: none;
}

.about-timeline .year {
    flex-shrink: 0;
    width: 70px;
    font-weight: 700;
    color: var(--bmf-primary);
}

.about-timeline li span,
.about-timeline li strong,
.about-timeline li p {
    display: block;
}

/* Mobile: encurta o ano e aumenta o espaço */
@media (max-width: 575.98px) {
    .about-timeline .year {
        width: 55px;
        font-size: 0.85rem;
    }
}


/* Secção do Maestro */
.maestro-section {
    position: static;
}

/* Desligar completamente o pseudo-elemento que estava a baralhar as camadas */
.maestro-section::before {
    content: none !important;
}

/* Garantir que o conteúdo segue o fluxo normal */
.maestro-section .row {
    position: static;
    z-index: auto;
}


.maestro-photo-card {
    position: relative;
    padding: 1.5rem 1rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #eef2fb);
    box-shadow: 0 0.45rem 1.4rem rgba(15, 23, 42, 0.08);

    /* não deixar isto ficar gigante em lado nenhum */
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}


.maestro-photo-wrapper {
    border-radius: 0.9rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 3 / 4; /* só vai aplicar em ecrãs maiores, já tratamos do mobile abaixo */
}

.maestro-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo da banda na secção do maestro */
.maestro-logo {
    margin-top: 0.75rem;
}

.maestro-logo-img {
    max-height: 52px;
    width: auto;
    opacity: 0.95;
}

/* Ajustes responsivos */
@media (max-width: 767.98px) {
    .about-timeline li {
        padding-left: 3.4rem;
    }
}

/* Ajustes responsivos para o header das secções */
@media (max-width: 575.98px) {
    .section-block-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ---------- Navbar ---------- */
.bg-primary-nav {
    background-color: var(--bmf-primary);
}

.navbar-brand {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
    text-transform: uppercase;
}


.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.15rem;
    height: 2px;
    background-color: var(--bmf-gold);
}

/* Logo na navbar */
.logo-banda {
    height: 38px;    /* ajusta conforme o teu logo */
    width: 38px; 
    /*width: auto;*/
    border-radius: 50%; /* transforma em círculo */
    object-fit: cover;  /* garante que preenche o círculo */
}
@media (max-width: 575.98px) {
    .logo-banda {
        width: 34px;
        height: 34px;
    }}

/* ---------- Footer ---------- */
.bg-footer {
    background-color: var(--bmf-primary-dark);
}

.link-footer {
    color: #e0e4f0;
    text-decoration: none;
    font-size: 0.9rem;
}

.link-footer:hover {
    text-decoration: underline;
}

/* ---------- Botões (override leve do Bootstrap) ---------- */
.btn-primary {
    background-color: var(--bmf-primary);
    border-color: var(--bmf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #153055;
    border-color: #153055;
}

.btn-outline-secondary {
    border-color: #c0c4cf;
    color: #4b5563;
}

.btn-outline-secondary:hover {
    background-color: #e5e7f0;
    color: #111827;
}

/* ---------- Hero da Home ---------- */
.hero-home {
    position: relative;
    padding: 5rem 0 4rem 0;
    color: #ffffff;
    overflow: hidden;

    /* IMAGEM DE FUNDO DO HERO */
    background: url('/assets/img/hero-banda.jpg') center center / cover no-repeat fixed;
}

/* Overlay escuro por cima da imagem para o texto ficar legível */
.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 38, 70, 0.92),
        rgba(26, 61, 111, 0.85)
    );
}


.hero-home .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d3ddff;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 34rem;
    color: #e5e9f5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    font-weight: 500;
}

.hero-cta {
    margin-top: 1.75rem;
    gap: 0.75rem;
}

/* Card lateral no hero */
.hero-side-card {
    border-radius: 1rem;
    background: rgba(8, 17, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.4rem;
    color: #f4f6ff;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.hero-side-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f3d792;
    margin-bottom: 0.5rem;
}

.hero-event-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.hero-event-meta {
    font-size: 0.9rem;
    opacity: 0.95;
}

.hero-e

/* ---------- ESCOLA DE MÚSICA ---------- */

.school-hero-lead {
    font-size: 1.02rem;
    color: var(--bmf-text-muted);
    max-width: 40rem;
}

.school-pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.school-pill-list li {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(26, 61, 111, 0.06);
    font-size: 0.85rem;
    color: var(--bmf-primary-dark);
}

/* Lista "O que ensinamos" */
.school-what-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.school-what-list li:last-child {
    margin-bottom: 0;
}

/* Bullets de funcionamento */
.school-bullets {
    padding-left: 1.1rem;
    font-size: 0.95rem;
}

.school-bullets li + li {
    margin-top: 0.25rem;
}

/* Caixa info */
.school-info-box {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: rgba(26, 61, 111, 0.05);
    border: 1px solid rgba(26, 61, 111, 0.12);
    font-size: 0.92rem;
}

/* Passos de inscrição */
.school-steps {
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.school-steps li + li {
    margin-top: 0.2rem;
}

/* Formulário */
.school-form .form-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.school-form .form-control,
.school-form .form-select {
    border-radius: 0.55rem;
    border-color: #d1d5e5;
}

.school-form .form-control:focus,
.school-form .form-select:focus {
    border-color: var(--bmf-primary);
    box-shadow: 0 0 0 0.15rem rgba(26, 61, 111, 0.25);
}

.school-alert {
    border-radius: 0.75rem;
}

/* Galeria da escola reutiliza .gallery-item já existente */


/* ---- Maestro mobile improvements (refeito) ---- */
@media (max-width: 767.98px) {

    .maestro-photo-card {
        text-align: center;
        padding: 1.25rem 1rem 1.5rem;
        max-width: 260px;       /* ainda mais pequeno no telemóvel */
    }

    .maestro-photo-wrapper {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;

        /* no mobile NÃO forçamos altura fixa */
        aspect-ratio: auto;
        height: auto;
    }

    .maestro-photo {
        width: 100%;
        height: auto;          /* mostra a foto toda */
        object-fit: contain;   /* evita cortes agressivos */
    }

    .maestro-logo-img {
        max-height: 30px;      /* logo bem mais pequeno no telemóvel */
    }

    .maestro-section .row {
        row-gap: 1.5rem !important;
    }

    .maestro-section h3 {
        text-align: center;
    }
}

