/* Reset básico */
body, h1, p, ul {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos da barra de navegação */
header {
    background: white;
    padding: 15px 40px; /* Ajuste fixo para evitar deslocamento */
    position: fixed;
    width: 100%;
    top: 0;
    display: flex; margin-right: 60px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    z-index: 1000;
}

/* Container do cabeçalho */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 95%;
}

/* Logótipo à esquerda com margem fixa */
.logo {
    height: 110px;
    object-fit: contain;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Menu à direita com margem fixa */
nav {
    margin-right: 0px;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px; /* Ajustado para espaçamento uniforme */
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: #888;
}

/* Botão de menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #ae873b; /* Cor dourada do hamburger */
    margin: 5px;
}

/* Slideshow de fundo fixo com transição suave */
.slideshow-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.slideshow-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}


/* Primeira imagem visível */
.slideshow-container img.active {
    opacity: 1;
}

/* Rodapé */
footer {
    background: white;
    color: black;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content span {
    font-size: 14px;
    color: black;
}

.footer-content .gold {
    color: #ae873b !important;
    font-weight: bold;
}

.footer-content a[href*="dreamwork.pt"] {
    font-size: 12px;
    color: #000;
    opacity: 0.6;
    text-decoration: none;
  }
  
  .footer-content a[href*="dreamwork.pt"]:hover {
    opacity: 1;
    text-decoration: underline;
  }

/* Responsividade */
@media (max-width: 1024px) {
    header {
        margin: 0;
        padding: 15px 20px;
    }

    .header-container{
        margin-bottom: 0%;
    }

    .logo {
        height: 120px;
        margin-left: 0;
        max-width: 90%;
        object-fit: contain;
        padding-top: 0%;
        margin-top: 0%;
        padding-bottom: 0%;
        margin-bottom: 0%;
      }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
        z-index: 1001;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 0;
        background: white;
        width: 100%;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        text-align: center;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0%;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .footer-content {
        font-size: 12px;
        flex-direction: column;
        text-align: center;
    }

    footer {
        padding-top: 2%;
        padding-bottom: 2%;
    }

    .footer-content a.credito {
        font-size: 6px;
      }     

}


@media (max-width: 1024px) and (orientation: landscape) {
    header {
      height: 60px;
      padding: 1px 5px;
    }
  
    .logo {
      height: 75px;
      padding-left: 10%;
    }

    nav{
        top: 60px;
    }

    .slideshow-container img {
        height: 150vh;
        object-fit: cover;
      }
  
    footer {
      height: 35px;
      padding: 5px 5px;

    }
  
    .footer-content {
      flex-direction: column;
      justify-content: center;
      text-align: center;
      padding-bottom: 1%;
    }

    .footer-content span {
        font-size: 10px;
    }
    .footer-content a.credito {
        font-size: 9px;
      }   
    
  }

/* --- ABOUT: Layout dividido --- */

.about-split {
    display: flex;
    width: 100%;
    height: calc(100vh - 80px); /* subtrai a altura do header */
    background-color: #f2f2f2;
    color: black;
    margin-top: 80px; /* empurra o conteúdo para baixo do menu */
}

.about-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10%;
}

.about-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10%;
}


.about-text {
    max-width: 600px;
    text-align: justify;
    font-size: 1.2em;
}

/* Título */
.about-text h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
    color: #ae873b;  
}

/* Parágrafos */
.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Chamada para contacto */
.about-text .contact-call {
    font-size: 1.3em;
    font-weight: bold;
    color: #ae873b;
}

.contact-call {
    text-align: center;    
    margin-top: 40px;
}



.about-right img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

/* Responsivo */
@media (max-width:  1024px) {
    .about-split {
        flex-direction: column;
        height: auto;
    }

    .about-left, .about-right {
        padding: 20px;
    }

    .about-text {
        font-size: 1em;
        text-align: justify;
    }

    .about-right img {
        max-width: 80%;
        padding-bottom: 20%;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .about-split {
      margin-top: 10px;
    }
  }

/* --- GALERIA --- */

.gallery {
    height: 100vh;
    padding: 100px 2vw 60px;
    background-color: #f2f2f2;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.gallery h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #ae873b;       /* cor dourada */
    padding-top: 40px;    /* espaço acima do título */
}

.gallery-grid {
    position: relative;         /* permite que imagens com z-index fiquem sobre o grid */
    isolation: isolate;         /* evita que z-index de filhos interfira no layout */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 95vw;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4 / 3; /* Mantém proporção agradável (4:3) */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    max-width: 90vw;
    max-height: 70vh; /* Limita visualmente a altura */
    z-index: 9999;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-location {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9em;
    padding: 8px 10px;
    text-align: left;
    font-style: italic;
    box-sizing: border-box;
}

/* Responsivo: 1 coluna em ecrãs pequenos */
@media (max-width:  1024px) {
    .gallery h1 {
        font-size: 1.8em;
      }

    .gallery {
        height: auto;
        padding: 100px 20px;

    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        max-width: 100%;
    }

    .gallery-item {
        position: relative;
        width: 100%;
        height: auto;
        cursor: default; /* sem efeito de clique */
    }

    .gallery-item.zoomed {
        transform: none;
        position: relative;
        box-shadow: none;
        z-index: 1;
    }

    .gallery-item img {
        width: 100%;
        display: block;
        object-fit: cover;
    }
}
