/* Estilo do cabeçalho de contacto */
.contact-header {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.contact-header i {
    margin-right: 5px;
    color: #3498db;
}

/* Estilo geral */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 40px;
}

/* Secção principal */
main {
    margin-top: 30px; /* Mais afastado do cabeçalho */
}

/* Container de serviços ajustado */
.services-container {
    max-width: 830px; /* Ajuste conforme necessário */
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid de serviços compacta */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas */
    gap: 30px; /* Espaçamento mínimo */
    justify-content: center;
    margin: 0 auto;
}

/* Versão super compacta */
.service-box-compact {
    width: 250px; /* Largura fixa */
    height: 250px; /* Altura fixa */
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    ransition: all 0.6s ease-in-out; /* Transição mais longa e suave */
}

.service-box-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay-compact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 98, 204, 0);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva de animação personalizada */
    transform: scale(0.98);
    padding: 15px;
    text-align: center;
}

.service-box-compact:hover .service-overlay-compact {
    opacity: 0.7; /* opacidade do hoover das imagens da landing page*/
    background-color: rgba(0, 98, 204, 0.9);
    transform: scale(1);

}

.service-content-compact h3 {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
}

.service-content-compact p {
    font-size: 0.9rem;
    line-height: 1.1;
    margin: 0;
}

/* Estilos do Rodapé */
.site-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-contacts {
    list-style: none;
    padding: 0;
}

.footer-contacts li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 10px;
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    background-color: #34495e;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em tablets */
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em mobile */
    }

    .service-box-compact {
        height: 90px;
    }
}