* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    /* Empurra um grupo para a esquerda e outro para a direita */
    align-items: center;
    border-bottom: 4px solid #d35400;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra a imagem dentro do círculo */

    /* Define o tamanho do círculo */
    width: 50px;
    /* Ligeiramente menor que a altura do header (60px) */
    height: 50px;

    /* Cria a forma circular branca */
    background-color: white;
    border-radius: 50%;
    /* Torna o quadrado num círculo perfeito */

    /* Adiciona uma borda fina para destacar (Opcional) */
    border: 2px solid #ecf0f1;

    /* Garante que o círculo não deforma */
    flex-shrink: 0;

    /* Espaçamento em relação ao texto à direita */
    margin-right: 15px;
}


.logo-img {
    /* A imagem deve ser menor que o círculo */
    height: 50px;
    width: auto;

    /* Garante que a imagem não sai fora do círculo */
    max-width: 99%;
    max-height: 99%;

    display: block;
}

.logo-text {
    font-size: 1.6rem;
    /* Texto maior */
    font-weight: bold;
    white-space: nowrap;
}

.sub-text {
    font-size: 0.9rem;
    /* Texto mais pequeno */
    opacity: 0.9;
    margin: 0;
    font-style: italic;
}


nav {
    background-color: #34495e;
    position: fixed;
    top: 60px;
    /* Logo abaixo do header */
    width: 100%;
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    display: block;
}

nav a:hover {
    background-color: #d35400;
}


.intro {
    text-align: center;
    margin-bottom: 30px;
}

.intro h2 {
    color: #2c3e50;
    border-bottom: 2px solid #d35400;
    display: inline-block;
    padding-bottom: 5px;
}


main {
    max-width: 900px;
    margin: 120px auto 80px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.aviso-temporario {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ffeeba;
    font-size: 0.9rem;
    font-weight: bold;
}


.clube-card {
    border-left: 5px solid #d35400;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #fdfdfd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.clube-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}


.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #d35400;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #d35400;
    padding: 5px 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-link:hover {
    background-color: #d35400;
    color: white;
}

.horarios {
    margin-top: 40px;
    overflow-x: auto;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #34495e;
    color: white;
}

.registo {
    margin-top: 40px;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 5px;
}

button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #d35400;
}

footer {
    background: #2c3e50;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 5px 2rem;
    /* Reduzido para ser muito mais fino */
    height: 40px;
    /* Altura fixa reduzida */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Alinha tudo à direita */
}

.footer-container {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Espaço entre o texto e os ícones */
}

.copyright {
    font-size: 0.85rem;
    /* Texto ligeiramente menor para caber na linha fina */
}

.social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    /* Remove a margem superior anterior */
}

.social-icon {
    width: 18px;
    /* Ícones menores para o rodapé fino */
    height: 18px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.creditos-formacao {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* Uma linha subtil para separar do formulário */
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.creditos-formacao a {
    color: #007bff;
    /* Cor azul padrão para links */
    text-decoration: none;
    font-weight: bold;
}

.creditos-formacao a:hover {
    text-decoration: underline;
}




/* 6. Responsividade (Telemóveis) */
@media screen and (max-width: 600px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav a {
        padding: 0.5rem 0.8rem;
    }

    main {
        margin-top: 140px;
        /* Mais espaço no topo se o menu quebrar linha */
        margin-left: 10px;
        margin-right: 10px;
    }

    .sub-text {
        display: none;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    footer {
        justify-content: center;
        height: auto;
        padding: 10px;
    }

    .footer-container {
        flex-direction: column;
        gap: 5px;
    }
}

/* Ajuste para ecrãs médios (Tablets) */
@media screen and (max-width: 850px) {
    header {
        flex-direction: column;
        height: auto;
        /* Deixa o header crescer se o nome for muito grande */
        padding: 10px;
    }

    nav {
        top: auto;
        /* O menu ajusta-se à nova altura do header */
        position: relative;
    }

    main {
        margin-top: 20px;
        /* Reset da margem quando não é fixo no mobile */
    }
}




/* Estilos para o Formulário de Contacto */
.registo form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.campo input,
.campo select,
.campo textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.campo textarea {
    resize: vertical;
}

/* Ajuste no botão para ocupar apenas o espaço necessário */
.registo button {
    align-self: flex-start;
    padding: 10px 25px;
    font-weight: bold;
}



.whatsapp-contact {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 8px;
    text-align: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.wa-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    /* Torna o ícone branco */
}

/* Estilos para o logótipo de destaque na Home */
.main-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    /* Espaço entre a imagem e o título H2 */
}

.main-logo-img {
    max-width: 250px;
    /* Tamanho de destaque */
    height: auto;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.1));
    /* Sombra suave para profundidade */
    transition: transform 0.5s ease;
}

.main-logo-img:hover {
    transform: scale(1.05);
    /* Efeito subtil de zoom ao passar o rato */
}

/* Ajuste para telemóveis */
@media screen and (max-width: 600px) {
    .main-logo-img {
        max-width: 180px;
        /* Um pouco menor em ecrãs pequenos */
    }
}








section {
    margin-bottom: 6rem;
}

section img {
    max-width: 100%;
}

section .titulo h2 {
    color: #2c3e50;
    border-bottom: 3px solid grey;
    border-top: 3px solid grey;
    text-align: center;
    padding: 0.5rem;
}

section .conteudo {
    display: flex;
    flex-wrap: wrap;
    /* Permite que as miniaturas passem para baixo */
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

section .conteudo p {
    text-align: justify;
    margin: 0;
    line-height: 1.5rem;
    color: #333;
}





/* Estilo para a imagem de destaque (a primeira) */
.foto-principal {
    flex: 1 1 100%;
    /* OBRIGA a imagem principal a ocupar a linha toda */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra a imagem e o texto "Ver Galeria" */
    margin-bottom: 20px;
}

.foto-principal img {
    width: 100%;
    max-width: 800px;
    /* Pode ajustar o tamanho máximo da foto principal aqui */
    height: auto;
    /* Mantém a proporção original */
    max-height: 500px;
    /* Evita que fique gigante em ecrãs muito grandes */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilo para as miniaturas */
.miniatura {
    width: 150px;
    /* Tamanho fixo para as miniaturas */
    height: 100px;
}

.miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.8;
    transition: 0.3s;
}

.miniatura img:hover {
    opacity: 1;
    transform: scale(1.05);
}



/* Estilo para o texto da foto principal */
.caption_top {
    text-align: center;
    font-weight: bold;
    color: #d35400;
    margin-top: 10px;
}

/* Estilo para o texto das miniaturas */
.caption {
    text-align: center;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Corta o texto se for muito longo */
}

/* Garante que o link não tenha sublinhado por defeito */
.miniatura a,
.foto-principal a {
    text-decoration: none;
    display: block;
}