/* Estilos Gerais e Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap; /* Permite que os itens quebrem a linha */
}

.logo-slogan {
    text-align: center;
    flex-grow: 1; /* Permite que o logo cresça e ocupe espaço */
    min-width: 200px; /* Garante que não fique muito pequeno */
}

.logo-slogan h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: #ffd700; /* Dourado */
}

.logo-slogan p {
    font-size: 0.9em;
    color: #bbb;
}

.whatsapp-button {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; /* Evita quebra de linha no botão */
    margin-left: 20px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-button a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Menu de Navegação */
nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza os itens do menu */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menu Toggle (para mobile) */
.menu-toggle {
    display: none; /* Escondido por padrão em telas maiores */
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    z-index: 1001; /* Acima do header */
}

/* Hero Section */
.hero {
    background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 70vh; /* Altura da viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Escurece a imagem de fundo */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffd700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button {
    background-color: #ffd700;
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.button:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

/* Sobre Section */
.sobre {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
}

.sobre h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.sobre p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.destaques {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.destaque-item {
    background-color: #ffe08a; /* Um tom de amarelo mais claro */
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    color: #6a4f00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.destaque-item:hover {
    transform: translateY(-5px);
}

/* Acomodações e Pacotes Section */
.acomodacoes {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.acomodacoes h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.card h3 {
    font-size: 1.5em;
    color: #333;
    margin: 20px 0 10px;
}

.card p {
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
}

.card .button {
    display: block; /* Ocupa a largura total do card */
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border-radius: 8px;
}

.card .button:hover {
    background-color: #128C7E;
}


/* Galeria Section (Sua galeria atual) */
.galeria {
    padding: 60px 20px;
    background-color: white;
    text-align: center;
}

.galeria h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto; /* Permite rolagem horizontal se necessário */
    padding-bottom: 15px; /* Espaço para a barra de rolagem */
    -webkit-overflow-scrolling: touch; /* Melhor rolagem em iOS */
}

.gallery-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 200px mínimo */
    gap: 15px;
    /* Ajuste para evitar quebra de linha indesejada em poucos itens */
    justify-content: center; /* Centraliza os itens se houver espaço */
    align-items: start; /* Alinha os itens ao topo */
}

.gallery-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Altura fixa para as imagens da galeria */
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    display: block;
}

.galeria .instagram-button {
    margin-top: 40px;
    background-color: #E1306C; /* Cor do Instagram */
    color: white;
    border-radius: 8px;
}

.galeria .instagram-button:hover {
    background-color: #C13584;
}

/* NOVA SEÇÃO: Galeria do Instagram */
.instagram-galeria {
    padding: 60px 20px; /* Espaçamento interno */
    background-color: #f9f9f9; /* Uma cor de fundo suave para destacar a seção */
    text-align: center;
}

.instagram-galeria h2 {
    font-size: 2.5em; /* Tamanho do título */
    color: #333;
    margin-bottom: 15px;
}

.instagram-galeria p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-feed-container {
    max-width: 1000px; /* Largura máxima para o feed de fotos */
    margin: 0 auto; /* Centraliza o container */
    padding: 0 15px; /* Pequeno espaçamento nas laterais para telas menores */
}

/* Estilos para o iframe do widget (LightWidget) */
.lightwidget-widget {
    height: 500px; /* Altura inicial para o widget. Ajuste conforme necessário. */
    border: none; /* Remove qualquer borda padrão */
    display: block; /* Garante que o iframe se comporte como um bloco */
    width: 100%; /* Garante que o iframe ocupe a largura total do seu container */
}

.instagram-galeria .instagram-button-footer { /* Renomeei para evitar conflito com o botão da galeria principal */
    margin-top: 30px;
    display: inline-block;
    padding: 12px 25px;
    background-color: #E1306C; /* Cor do Instagram */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instagram-galeria .instagram-button-footer:hover {
    background-color: #C13584; /* Cor mais escura no hover */
    transform: translateY(-2px); /* Efeito sutil ao passar o mouse */
}


/* Contato Section */
.contato {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
    color: white;
}

.contato h2 {
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 30px;
}

.whatsapp-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.whatsapp-link {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #bbb;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px; /* Espaço para o menu toggle */
    }

    .logo-slogan {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .whatsapp-button {
        position: absolute;
        top: 15px;
        right: 20px;
        margin-left: 0;
    }

    .menu-toggle {
        display: block; /* Mostra o ícone de menu */
    }

    nav {
        display: none; /* Esconde o menu por padrão */
        width: 100%;
        background-color: #2a2a2a; /* Fundo escuro para o menu recolhido */
        padding: 10px 0;
    }

    nav.active {
        display: block; /* Mostra o menu quando ativo */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .sobre h2, .acomodacoes h2, .galeria h2, .contato h2, .instagram-galeria h2 {
        font-size: 2em;
    }

    .destaques, .cards-grid, .whatsapp-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-inner {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
    }

    /* Nova seção Instagram - Responsividade */
    .instagram-galeria h2 {
        font-size: 1.8em;
    }
    .instagram-galeria p {
        font-size: 1em;
    }
    .instagram-feed-container {
        padding: 0 10px;
    }
    .lightwidget-widget {
        height: 400px; /* Altura menor em telas pequenas */
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .sobre h2, .acomodacoes h2, .galeria h2, .contato h2, .instagram-galeria h2 {
        font-size: 1.8em;
    }

    .card h3 {
        font-size: 1.2em;
    }

    .whatsapp-link {
        padding: 10px 20px;
        font-size: 1em;
    }

    .gallery-item img {
        height: 120px;
    }

    /* Nova seção Instagram - Responsividade */
    .instagram-galeria {
        padding: 40px 15px;
    }
    .lightwidget-widget {
        height: 300px; /* Ainda menor para celulares */
    }
}

/* Script para o menu mobile (precisa do script.js) */
/* Este é apenas um lembrete, o JS real está no script.js */
/* document.querySelector('.menu-toggle').addEventListener('click', function() {
    document.querySelector('nav').classList.toggle('active');
}); */