/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h2 {
    color: #207ad3;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #207ad3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Secção Principal */
#hero {
    background: linear-gradient(rgba(33, 94, 218, 0.8), rgba(255, 255, 255, 0.8)), 
                url('https://i.postimg.cc/0QDV20NS/fundo_site.png') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: #207ad3;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #207ad3;
    transform: translateY(-2px);
}

/* Secções */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Sobre Nós */
.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.servicos {
    margin-top: 2rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}


.servicos-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}

.servicos-grid li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.servicos-grid li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.servicos h3 {
    color: #207ad3;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}



.sobre-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sobre-img video {
    width: 80%;
    height: 80%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Galeria */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.galeria-item:hover {
    transform: scale(1.05);
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.galeria-item.hidden {
    display: none;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.galeria-item:hover .overlay {
    transform: translateY(0);
}

.overlay span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

/* Contactos */
.contactos-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contacto-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-5px);
}

.contacto-item.destaque {
    background: linear-gradient(135deg, #207ad3, #207ad3);
    color: white;
}

.contacto-item.destaque h3 {
    color: white;
}

.contacto-item h3 {
    color: #207ad3;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contacto-item p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contacto-item a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-item small {
    color: #666;
    font-size: 0.9rem;
}

.contacto-item.destaque small {
    color: rgba(255,255,255,0.9);
}

/* Rodapé */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.ver-portefolio-wrapper {
    display: flex;
    justify-content: flex-end; /* alinha à direita da margem da galeria */
    margin-top: 30px;
}

.btn-portefolio {
    background: #207ad3;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-portefolio:hover {
    background: #207ad3;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .contactos-info {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}