/* Reseta as margens padrão do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuração do Scroll Snapping */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
}

img {
    max-width: 100%;
}

section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

/*#contato {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}*/

.container {
    width: 100%;
    max-width: 1080px;
    padding: 80px 20px;
    /* Aumentado o padding superior para evitar sobreposição do header */
    margin: 0 auto;
}

.header {
    width: 100%;
    max-width: 1080px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    z-index: 10;
}

.logo {
    max-width: 60%;
}

@media (min-width: 640px) {
    .logo {
        max-width: 250px;
    }
}


/* Menu, redes sociais */
.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

/* Estilo dos ícones sociais */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 20;
}

.nav-menu a:hover,
.social-icons a:hover {
    opacity: 0.7;
}

.social-icons a:hover {
    transform: scale(1.1);
}

section:nth-child(odd) {
    background-color: #000000;
    color: #ffffff;
}

section:nth-child(even) {
    background-color: #ffffff;
    color: #000000;
}

/* Colunas */

.colunas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.col {
    margin: 2rem 1rem 0;
    min-width: 275px;
    max-width: 30%;
}

/* Tipografia */

h1,
h2,
h3,
h4 {
    margin-bottom: 1.5rem;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 5rem;
    }
}

h1 span {
    color: darkgray;

}

h3 {
    font-weight: 500;
}

p {
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.legenda {
    color: gray;
    font-weight: 700;
}

.quote {
    border-left: 4px solid red;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.destaque {
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.retranca {
    color: red;
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}


/* Quem Somos
 * ------------------------------------- */

.foto {
    margin-bottom: 2rem;
    width: 100%;
}

#quem-somos .texto {
    padding-left: 1.5rem;
}

@media (min-width: 720px) {
    #quem-somos .container {
        display: flex;
    }

    #quem-somos .foto {
        min-width: 40%;
    }
}

/* O Que Fazemos
 * ------------------------------------- */

.frase {
    font-size: 3rem;
    text-align: center;
}

@media (min-width: 720px) {
    .frase {
        font-size: 4rem;

    }
}

.frase span {
    color: darkgray;
    font-weight: 700;
}

/* Produções
 * ------------------------------------- */


/* Direção
 * ------------------------------------- */

#direcao .texto {
    padding-left: 1.5rem;
}

.bio {
    color: gray;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

@media (min-width: 720px) {
    #direcao .container {
        display: flex;
    }

    #direcao .foto {
        min-width: 40%;
    }
}

/* Contato
 * ------------------------------------- */

#contato .social {
    display: flex;
    justify-content: center;
    max-width: 320px;
    margin: 2rem auto;
}

#contato .social a {
    color: white;
    font-size: 2.5rem;
    margin: 1rem;
}

#contato-form {
    margin: 2rem auto;
    max-width: 640px;
}

input {
    border: none;
    border-radius: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    width: 100%;
}

label {
    padding: 0.25rem;
    line-height: 32px;
}

textarea {
    border: none;
    border-radius: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    width: 100%;
}

input[type=submit] {
    background-color: crimson;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    width: 120px;
}

.site-footer {
    padding: 2rem 1rem;
}


/* Mobile media queries */

@media (max-width: 768px) {

    /* Mostra o botão hambúrguer */
    .menu-toggle {
        display: block;
    }

    /* Transforma o nav-container num menu lateral/suspenso em ecrãs pequenos */
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        /* Começa escondido do lado direito da tela */
        width: 70%;
        height: 100vh;
        background-color: #111111;
        /* Fundo escuro para destacar no telemóvel */
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    /* Quando o menu tem a classe .active, ele desliza para dentro do ecrã */
    .nav-container.active {
        right: 0;
    }

    /* Alinha os itens do menu verticalmente no telemóvel */
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 1.4rem;
        color: #ffffff;
        /* Força link branco no menu mobile */
    }

    .social-icons a {
        font-size: 1.6rem;
        color: #ffffff;
    }
}