@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

:root {
    --primary: #8fb9aa;
    --primary-dark:  #3c7561;
    --bg-soft: #fdfaf5;
    --text: #4a4a4a;
    --white: #ffffff;
    --whatsapp: #25d366;
    --insta: #d65f10;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg-soft);
    line-height: 1.6;
}

header {
    background: var(--white);
    padding: 0.8rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.seccao-frente {
            margin-top: 50px;
            background-color: #fff;
            text-align: center;
        }
.seccao-frente p{
            padding: 10px 10%;
            background-color: #fff;
            text-align: justify;
        }
        .espaco-galeria {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 30px;
        }
        .foto-item {
            width: 100%;
            aspect-ratio: 4/3;
            height: auto;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .foto-item:hover {
            transform: scale(1.03);
        }
        .btn-contacto {
            display: inline-block;
            margin-top: 25px;
            padding: 15px 40px;
            background-color: var(--primary); /* Usa a cor principal definida no seu CSS */
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .btn-contacto:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
            background-color: var(--primary-dark); /* Caso tenha definido uma cor mais escura */
            filter: brightness(1.1);
        }
        .seccao-espaco {
            margin-top: 50px;
            padding: 10px 10%;
            background-color: #fff;
            text-align: center;
        }
        .seccao-espaco p{
            background-color: #fff;
            text-align: justify;
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            overflow: auto;
        }
        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 1000px;
            border-radius: 8px;
            animation: zoom 0.3s;
        }
        @keyframes zoom {
            from {transform:scale(0.8); opacity: 0;}
            to {transform:scale(1); opacity: 1;}
        }
        .close-modal {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
        }
        .close-modal:hover {
            color: var(--primary);
        }
        #caption {
            margin: auto;
            display: block;
            width: 80%;
            text-align: center;
            color: #ccc;
            padding: 15px 0;
            font-size: 1.2rem;
        }

.membro-foto { cursor: pointer; transition: opacity 0.3s; }
        .membro-foto:hover { opacity: 0.9; }

        /* --- ESTILOS DA MODAL --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            overflow: auto;
        }
        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 600px;
            border-radius: 8px;
            animation: zoom 0.3s;
        }
        @keyframes zoom {
            from {transform:scale(0.8); opacity: 0;}
            to {transform:scale(1); opacity: 1;}
        }
        .close-modal {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        #caption {
            margin: auto;
            display: block;
            width: 80%;
            text-align: center;
            color: #ccc;
            padding: 15px 0;
            font-size: 1.2rem;
        }   
        
                /* Grelha de posts */
        #insta-feed {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        /* Item individual da grelha */
        .post-item {
            flex: 1 1 326px; /* Tenta manter 326px de largura */
            max-width: 450px; /* No PC, não deixa esticar mais que 350px */
            display: flex;
            justify-content: center;
        }
        /* Ajuste para Telemóvel */
        @media (max-width: 600px) {
            .post-item {
                max-width: 100%; /* No telemóvel ocupa a largura total */
            }
        }
        

.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 80px; width: auto; transition: height 0.2s; }

nav { display: flex; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-weight: 500;
}

.hero {
    padding: 100px 8%;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: 'Caveat', cursive;
    font-size: 4em;
    font-weight: 100;
    margin: 0;
}

.container { padding: 60px 8%; max-width: 1200px; margin: auto; }

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

.contact-form div { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn-enviar {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-enviar:hover { background-color: #5a7964; transform: translateY(-3px); }

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.btn-agendar {
    background: var(--whatsapp);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
}

.btn-agendar:hover { background-color: #3e9560; transform: translateY(-3px); }

/* --- ESTILIZAÇÃO DOS ÍCONES SOCIAIS --- */
.insta-icon { color: var(--insta); transition: transform 0.3s; }
.wapp-icon { color: var(--whatsapp); transition: transform 0.3s; }

.insta-icon:hover, .wapp-icon:hover {
    transform: scale(1.15);
}

/* --- ADAPTAÇÃO PARA TELEMÓVEL (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 1rem 5%; }
    .logo-img { height: 45px; margin-bottom: 10px; }
    nav { margin-top: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
    nav a { margin: 5px 10px; font-size: 0.9rem; }
    .hero { padding: 60px 5%; }
    .hero h1 { font-size: 2.2em; }
    .container { padding: 40px 5%; }
}

nav a.active {
    font-weight: 800;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* --- AJUSTES DO RODAPÉ (FOOTER) --- */
footer {
    background: #fff;
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid #eee;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 30px; /* Afastamento entre ícones */
    margin: 20px 0;
    font-size: 2.0rem; /* Tamanho dos ícones aumentado */
}

.social-footer a {
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 768px) {
    footer { padding: 30px 5%; }
    .social-footer { gap: 30px; font-size: 2.0rem; }
    footer p { font-size: 0.9rem; line-height: 1.4; }
}

/* --- LAYOUT DA EQUIPA --- */
.equipa-header { text-align: center; margin-bottom: 80px; }
.equipa-header h1 { font-family: 'Caveat', cursive; font-size: 3rem; color: var(--primary); }

.equipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 2fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 80px auto 0;
}

.membro-card {
    background: #fff;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.membro-card:hover { transform: translateY(-5px); }
.membro-foto { aspect-ratio: 3/4;  border-radius: 12px; box-shadow: 0 5px 10px rgba(0,0,0,0.1);scale: 0.8; width: auto; height: auto; background-size: cover; background-position: center; }
.membro-info { padding: 20px; }
.membro-info h3 { color: var(--primary); margin: 0 0 5px; font-size: 1.4rem; }
.cargo { display: block; color: #888; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; }
.membro-info p { font-size: 0.95rem; color: #666; }

.titulo-principal {
    font-family: 'Caveat', cursive;
    font-size: 4.5rem;
    color: #000;
    text-align: center;
    margin: 40px 0;
    font-weight: 400;
}

/* --- SERVIÇOS --- */
.servicos-lista { display: flex; flex-direction: column; gap: 50px; padding: 20px 0; margin-top: 50px; }
.servico-item { display: flex; align-items: center; gap: 40px; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.servico-item:nth-child(even) { flex-direction: row-reverse; }
.servico-imagem { aspect-ratio: 4/3; width: auto; height: auto; flex: 1; min-height: 400px; background-size: cover; background-position: center; }
.servico-texto { flex: 1; padding: 40px; font-family: 'Montserrat', sans-serif; }
.servico-texto h3 { font-size: 1.8rem; color: #8fb9aa; margin-bottom: 15px; font-weight: 600; }
.servico-texto p { color: #666; line-height: 1.7; }

@media (max-width: 768px) {
    .servico-item, .servico-item:nth-child(even) { flex-direction: column; }
    .titulo-principal { font-size: 3.2rem; }
    .servico-imagem { min-height: 250px; width: 100%; }
    .equipa-grid { grid-template-columns: 2; }
}
