* {
      box-sizing: border-box;
    }

        body {
            font-family: Utendo, sans-serif;
            margin: 0;
            padding: 0;
            color: #fff;
            overflow-x: hidden; /* Evitar scroll horizontal */
        }
        header {
            background: rgba(0, 0, 0, 0);
            color: white;
            padding: 15px;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
        }

        section {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background-size: cover;
            background-position: center;
        }
        #inicio {
            background-image: url('images/index_65.jpg');
        }
        #historia {
            background-image: url('images/index_23.jpg');
        }
        #info {
            background-image: url('images/index_47.jpg');
        }
        #contactos {
            background-image: url('images/index_60.jpg');
        }

        h2 {
            font-size: 9em; /* Aumenta o tamanho do h2 */
			margin-block-start: 0.02em;
			margin-block-end: 0.10em;
			width: min-content;
			text-transform: uppercase;
			line-height: 0.9em;
        }
        h3 {
            font-size: 1.5em; /* Tamanho igual ao atual do h2 */
            font-weight: normal;
            margin-bottom: 10px;
			text-transform: uppercase;			
        }
        .button {
            margin-top: 20px;
            padding: 10px 20px;
            border: 2px solid white;
            color: white;
            background: transparent;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .button:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
section {
    position: relative; /* Para permitir o posicionamento absoluto dos botões dentro da secção */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.video-navigation {
    position: absolute; /* Posicionamento absoluto em relação à secção */
    bottom: 20px; /* Ajuste a distância da parte inferior da secção */
    width: 98%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#prev-video {
    left: 20px; /* Posiciona o botão "Anterior" no canto inferior esquerdo */
}

#next-video {
    right: 20px; /* Posiciona o botão "Seguinte" no canto inferior direito */
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-button:disabled {
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.3);
	visibility: hidden;
}

/* Adicione estas regras ao final do seu CSS existente */

/* Media queries para responsividade */
@media (max-width: 1200px) {
    h2 {
        font-size: 7em;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 4em;
        line-height: 1em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .button {
        padding: 8px 16px;
        font-size: 16px;
    }
    
}

@media (max-width: 480px) {
    h2 {
        font-size: 3em;
    }
    
    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .video-navigation {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #play-video {
        margin-top: 10px;
    }
}

/* Ajustes gerais para vídeos */
.video-container {
    position: relative;
	width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
}

.video {
    width: 100%;
}

.video iframe {
    width: 100%;
    max-width: 800px;
    height: 450px; /* Altura proporcional */
}


/* Ajustes para seções em mobile */
section {
    padding: 20px;
    box-sizing: border-box;
}

/* Overlay de vídeo */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-overlay-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.video-overlay-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-overlay-iframe {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    position: relative;
}

.video-overlay-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-overlay-content {
        width: 95%;
    }
    
    .video-overlay-close {
        top: -30px;
        font-size: 25px;
    }
}

#play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza exatamente no meio */
    z-index: 10; /* Garante que fique acima do iframe do YouTube */
    background-color: red;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	margin-top: 0px;
}

#play-video:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-overlay-close {
    position: absolute;
    top: -50px;
    right: -20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3001;
    padding: 10px 20px;
}

.video-overlay-close:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* Garante que o overlay e seus elementos são clicáveis */
.video-overlay.active, 
.video-overlay.active * {
    pointer-events: auto;
}

/* Adicione no final do arquivo */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Fallback para navegadores sem suporte a scroll-snap */
@supports not (scroll-snap-type: y mandatory) {
    html {
        scroll-behavior: auto;
    }
}

/* Estilo para links que usam a classe button */
a.button {
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid white;
    color: white;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

a.button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
