/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}

body {
    font-family: 'Montserrat ', system-ui;
    background-color: #fff;
    color: #333;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: 'Explora', sans-serif;
    font-size: 100px;
    color: #000000;
    text-transform: lowercase;
}

h3 {
    font-size: 25px;
    text-transform: uppercase;
}

h4 {
    text-decoration: none;
    font-size: 18px;
    font-family: 'Montserrat ', system-ui;
    background-color: #fff;
    color: #333;
    text-transform: capitalize !important;
    font-weight: 400;
}

p {
    font-family: 'Reddit Sans', sans-serif;
}

/* Fontes personalizadas */
@font-face {
    font-family: 'Editors Note Thin';
    src: url('caminho/para/a/font/EditorsNoteThin.woff2') format('woff2'),
         url('caminho/para/a/font/EditorsNoteThin.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Estilo do header - Barra de navegação branca */
header {
    background: white; /* Barra de navegação branca */
    color: black; /* Cor do texto na barra */
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Leve sombra para destacar a barra */
    padding-left: 20px;
    padding-right: 20px;
}

header .logo img {
    width: 100px;
}

/* Estilo geral do menu */
nav ul {
    display: flex;
    list-style: none;
    flex-grow: 1;
    justify-content: center; /* Centraliza o menu */
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 20px;
}

nav ul li a {
    color: black; /* Cor preta para os itens do menu */
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    color: #d0c196; /* Cor de destaque ao passar o mouse */
}

/* Estilos do menu mobile */
.menu-btn {
    display: none; /* Esconde o botão no desktop */
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

/* Menu fechado por padrão no mobile */
@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        right: 0;
        width: 60%;
        background: white;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        text-align: right;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Mostra o botão ☰ no mobile */
    .menu-btn {
        display: block;
    }

    /* Mostra o menu quando ativado */
    nav ul.active {
        display: flex;
        align-items: flex-start;
        padding-left: 50px;
        height: 100%;
    }
    /* Estilos para os submenus */
    nav ul ul {
        display: none; /* Esconde os submenus por padrão */
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        min-width: 200px;
    }

    nav ul li {
        position: relative;
    }

    /* Mostrar submenus ao passar o rato no PC */
    nav ul li:hover > ul {
        display: block;
    }

    /* Estilos para os submenus */
    nav ul ul li {
        position: relative;
        padding: 8px 15px;
        white-space: nowrap;
    }

    nav ul ul li a {
        color: black;
        text-decoration: none;
    }

    /* Submenus dentro de submenus */
    nav ul ul ul {
        top: 0;
        left: 100%;
        margin-left: 5px;
    }

}

.language-buttons {
    display: flex;
    gap: 10px;
}

.language-buttons button {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: transparent;
    cursor: pointer;
}

.language-buttons button:hover {
    background-color: #f0f0f0;
}

/* Outros estilos */
.full-width {
    width: 100vw; 
    height: 89vh;
    object-fit: cover; 
    display: block;
    margin: 0 auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: white; 
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: white; 
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5em;
}

section {
    padding: 60px 20px;
    text-align: center;
}

/* Estilos para o portfólio de imagens */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden; /* Evita que a imagem saia do container */
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease; /* Efeito suave de transição */
}

.image-container img {
    width: 100%;
    height: 100%; /* Garantir que a imagem ocupa toda a área do container */
    object-fit: cover; /* A imagem ocupa todo o espaço sem distorcer */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease; /* Efeito suave de transição */
}

.image-container:hover img {
    transform: scale(1.1); /* Aumenta a imagem ao passar o rato */
    opacity: 0.6; /* Torna a imagem um pouco mais opaca */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Fundo branco com opacidade */
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease; /* Transição suave para o título aparecer */
    display: flex;
    flex-direction: column;
    font-size: 50px;
}

.image-container:hover .image-overlay {
    opacity: 1; /* Torna o título visível ao passar o rato */
}

.portfolio-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Remove sublinhado do link */
}

/* Estilos para o modal de fullscreen */
.fullscreen-modal {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-modal img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

#galeria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
}

section#love-stories {
    margin-left: 10%;
    margin-right: 10%;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
    height: 100%;
    padding: 20px;
}

.thumbnail {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.thumbnail-img:hover {
    transform: scale(1.05);
}

/* Estilos para o modal fullscreen */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-modal img {
    width: 100%;
    height: 98%;
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 2em;
    color: white;
    cursor: pointer;
    padding: 5px;
}
.gallery-item a[href$=".txt"] {
    display: none;
}
.nav-button {
    width: 50px;
    height: 40px;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    display: block;
}

nav ul li ul li a {
    padding: 10px;
    display: block;
    text-decoration: none;
    font-size: 15px;
    text-align: left;
    padding-left: 0px;
}

nav {
    position: relative;
    z-index: 100;
    width: 100%;
    text-align: center;
}

nav ul li ul {
    display: none;
    flex-wrap: nowrap; /* Impede que os itens quebrem para outra linha */
    position: absolute;
    top: 100%;
    left: 0;
    background: #f4f4f4;
    padding: 5px 10px;
    list-style: none;
    min-width: max-content; /* Ajusta a largura mínima ao conteúdo */
    z-index: 200;
    white-space: nowrap; /* Impede que o texto quebre */
}
.swiper-container {
    position: relative;
    z-index: 50; /* Mantém o slider abaixo do menu */
    width: 100%; /* Garante que o swiper ocupa toda a largura do ecrã */
    height: auto; /* Altura automática conforme o conteúdo */
    overflow: hidden;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 100vw;
    height: 83vh;
    min-height: 620px;
    max-height: 860px;
    margin-bottom: 150px;
    overflow: visible;
}

.container_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-box img {
    width: 100%; /* Faz com que a imagem ocupe toda a largura */
    height: 100%; /* Faz com que a imagem ocupe toda a altura */
    object-fit: cover; /* Corta a imagem para preencher toda a área sem distorcer */
}
.galeria_legenda{
    position: absolute;
    left: 50%;
    bottom: -96px;
    z-index: 4;
    width: min(92%, 980px);
    transform: translateX(-50%);
    margin-top: 0;
    text-align: center;
}

.image-box img {
    transform-origin: center center;
}

@media (max-width: 1024px) {
    .menu {
        display: flex;
        flex-direction: column;
    }

    .menu a {
        padding: 10px;
        text-align: center;
    }

    .imagem {
        width: 100%;
        height: auto;
    }
    h1, h2, h3 {
        font-size: 50px;
    }
    section#love-stories {
        margin-left: 0%; 
        margin-right: 0%;
    }
    section {
        padding: 0px 0px;
    }
    .image-overlay {
        font-size: 12px;
        opacity: 1;
        height: 20%;
        margin-top: 70px;
    }
    .image-container {
        opacity: 1;
    }
    .portfolio-grid {
        gap: 10px;
    }
    h3.image-overlay-desc{
        font-size: 22px !important;
    }
    .image-overlay-desc{
        font-size: 10px !important;
    }
    div {
        width: 100%;
    }
    .galeria_legenda{
        bottom: -82px;
        margin-top: 0;
        text-align: center;
    }
    .menudiv{
        min-width: 320px;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    .menu-toggle {
        display: block;
    }
    /* Estilo do botão de menu (hamburger) */
    .menu-toggle {
        font-size: 30px;
        background: none;
        border: none;
        color: #333;
        padding: 10px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        display: none; /* Escondido por padrão */
    }

    /* Menu fullscreen */
    .fullscreen-menu {
        display: none; /* Escondido por padrão */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .fullscreen-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .fullscreen-menu li {
        margin: 20px 0;
        position: relative;
    }

    .fullscreen-menu a {
        text-decoration: none;
        font-size: 24px;
        text-transform: uppercase;
    }

    .fullscreen-menu a:hover {
        color: #d0c196;
    }

    /* Estilo para submenus (inicialmente ocultos) */
    .submenu {
        display: none; /* Esconde submenus */
        list-style-type: none;
        padding-left: 20px;
    }

    /* Quando o item tiver a classe "active", o submenu será visível */
    .has-submenu.active .submenu {
        display: block;
    }

    /* Botão de fechar (X) */
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: black;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }

    .close-menu:hover {
        color: #d0c196;
    }
    .menu-toggle {
        display: block;
    }

    /* Exibe o menu fullscreen em dispositivos móveis e tablets */
    .fullscreen-menu {
        display: none; /* Continua escondido por padrão */
    }

    .fullscreen-menu.active {
        display: flex; /* Torna visível quando ativado */
    }

    /* Oculta o menu normal em dispositivos móveis e tablets */
    nav ul {
        display: none;
    }
    .thumbnail {
        height: 200px;
    }
}

/* Para dispositivos maiores, o menu normal será exibido */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none; /* Esconde o botão de menu em desktops */
    }

    /* Exibe o menu normal em dispositivos de desktop */
    nav ul {
        display: flex; /* Exibe o menu tradicional */
    }

    /* O menu fullscreen é oculto em dispositivos maiores */
    .fullscreen-menu {
        display: none;
    }
}

@media (min-width: 769px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .menu {
        display: flex;
        justify-content: space-around;
    }

    .menu a {
        padding: 15px 20px;
    }

    .imagem {
        width: 50%;
        height: auto;
    }
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.thumbnail {
    position: relative;
    overflow: hidden;
}
.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}
.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.fullscreen-nav {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
}
.nav-button {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.only-mobile {
    display: none;
}

/* Mostra apenas em ecrãs com largura até 768px (ex: smartphones) */
@media (max-width: 768px) {
    #video-home {
        display: none;
    }

    .only-mobile {
        display: block;
    }
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(220px, 42vw);
    aspect-ratio: 320 / 207;
    transform: translate(-50%, -50%);
    background-image: var(--site-loader-logo);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    animation: brandLoaderPulse 1.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes brandLoaderPulse {
    0%,
    100% {
        opacity: 0.28;
    }
    50% {
        opacity: 1;
    }
}
