:root {
    --primaria-dia: #FFD43B; 
    --secundaria-dia: #ffffff;
    --primaria-noite: #1E3A8A; 
    --secundaria-noite: #1F2937; 
    --texto-dia: #111827;
    --texto-noite: #f9fafb;
}

/* Tema */
body[data-theme="dia"] {
    --primaria: var(--primaria-dia);
    --secundaria: var(--secundaria-dia);
    --texto: var(--texto-dia);
}
body[data-theme="noite"] {
    --primaria: var(--primaria-noite);
    --secundaria: var(--secundaria-noite);
    --texto: var(--texto-noite);
}
body {
    font-family: "Italian Old Style", serif;
    background: var(--secundaria);
    color: var(--texto);
}

/* Header - versão FAIXA */
header {
    background: url("cabeçalho.jpg") no-repeat center center / contain;
    color: white;
    text-align: center;
    height: 200px; /* altura fixa */
    display: flex;
    align-items: center;
    justify-content: center;
}
header h1 {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

/* Layout */
main {
    display: flex;
    min-height: 80vh;
}

/* Menu lateral à esquerda */
.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1em;
    width: 200px;
}

.menu button:hover {
    background: #2E4AA8;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* Conteúdo */
#content {
    flex: 1;
    padding: 2em;
    background: var(--secundaria);
    border-radius: 12px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    font-size: 14px;
    color: var(--texto);
}

/* Floating buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
/* Aplicar o mesmo visual redondo ao toggle-theme para ficar igual aos links */
.floating-buttons a,
.floating-buttons #toggle-theme {
    width: 55px;
    height: 55px;
    background: var(--primaria);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    color: white;
    font-size: 20px;
}
.floating-buttons a svg {
    width: 28px;
    height: 28px;
    fill: white;
}
.floating-buttons a:hover,
.floating-buttons #toggle-theme:hover {
    transform: scale(1.1);
    background: #2E4AA8;
}

/* Responsivo */
@media (max-width: 900px) {
    main {
        flex-direction: column;
    }
    .menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* NOTÍCIAS */
#noticias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Galeria */
#galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
#noticias img,
#galeria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Formulário de contacto */
#form-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}
#form-contacto input,
#form-contacto textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
#form-contacto button:hover {
    background: #2E4AA8;
}

/* Botões (exclui o toggle-theme porque agora é redondo) */
.menu button,
#form-contacto button {
    border: none;
    background: url("botão amarelo.jpg") no-repeat center center / cover;
    color: #111;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

/* Serviços em cards 2x2 */
#servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.servico-card {
    background: var(--primaria);
    color: #111;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.servico-card:hover {
    transform: translateY(-5px);
    background: #2E4AA8;
    color: white;
}

/* Slider da galeria (corrigido + animação fade + redimensionamento proporcional) */
.slider {
    position: relative;
    width: 100%;
    height: 250px;   /* altura fixa */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primaria); /* fundo usa a cor primária */
}

.slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;        /* escondido por padrão */
}

.slider img.active {
    display: block;       /* apenas a ativa visível */
}
