/* CSS Reset e Variáveis de Cor */
:root {
    --verde: #006847;
    --branco: #F9F9F9;
    --vermelho: #CE2B37;
    --dourado: #D4AF37;
    --terracota: #E07856;
    --preto: #2C2C2C;
    --cinza: #6B6B6B;

    --font-title: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-highlight: 'Great Vibes', cursive;

    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Ajuste para o header fixo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--branco);
    color: var(--preto);
    line-height: 1.6;
}

/* Estrutura e Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow: hidden;
    /* Para animações */
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--verde);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--dourado);
    margin: 15px auto 0;
}

p {
    margin-bottom: 20px;
    color: var(--cinza);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--vermelho);
    color: var(--branco);
    border-color: var(--vermelho);
}

.btn-primary:hover {
    background-color: #a8222c;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--branco);
    border-color: var(--dourado);
}

.btn-secondary:hover {
    background-color: var(--dourado);
    color: var(--preto);
}

/* Efeito de Animação no Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: top 0.3s;
}

.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-highlight);
    font-size: 2.5rem;
    color: var(--dourado);
    text-decoration: none;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--branco);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dourado);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--branco);
    transition: all 0.3s ease-in-out;
}

/* Seção Hero */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/ambiente.png') no-repeat center center/cover;
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-content {
    max-width: 800px;
}

#hero h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--branco);
}

#hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--dourado);
    margin-bottom: 30px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

#hero .hero-buttons .btn {
    margin: 0 10px;
}

#hero .support-text {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Seção Sobre */
#sobre .about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

#sobre .about-image {
    flex: 1;
    max-width: 400px;
    width: 100%;
    /* Garante que a imagem seja responsiva */
    height: 450px;
    /* Define uma altura fixa para consistência */
    object-fit: cover;
    /* Garante que a imagem cubra o espaço sem distorcer */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#sobre .about-text {
    flex: 1;
}

/* Seção Cardápio e Vinhos */
#cardapio,
#vinhos {
    background-color: #fdfaf6;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.menu-item,
.wine-item {
    background-color: var(--branco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover,
.wine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-item h3,
.wine-item h3 {
    font-size: 1.5rem;
    color: var(--preto);
    margin-bottom: 10px;
}

.wine-item .wine-details {
    font-size: 0.9rem;
    color: var(--vermelho);
    font-weight: bold;
    margin-top: 15px;
}

/* Seção Ambiente e Shows */
#ambiente {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/show.png') no-repeat center center/cover;
    color: var(--branco);
}

#ambiente h2,
#shows h2 {
    color: var(--branco);
}

#ambiente p,
#shows p {
    color: rgba(255, 255, 255, 0.9);
}

#shows {
    background-color: var(--terracota);
}

/* Seção Depoimentos */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background-color: #fdfaf6;
    padding: 30px;
    border-left: 5px solid var(--dourado);
    border-radius: 0 8px 8px 0;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.testimonial cite {
    font-weight: bold;
    color: var(--verde);
}

/* Seção Contato */
#contato .contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.contact-info,
.contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--preto);
}

.contact-info p {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    fill: var(--verde);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: none;
}

/* Rodapé */
.footer {
    background-color: var(--preto);
    color: var(--branco);
    padding: 40px 0;
    text-align: center;
}

.footer .logo {
    font-size: 2rem;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    margin: 0 15px;
    color: var(--branco);
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--dourado);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--dourado);
    color: var(--preto);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #c5a035;
}

/* Responsividade */
@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Altura do header */
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #hero h1 {
        font-size: 2.8rem;
    }

    #hero .subtitle {
        font-size: 1.5rem;
    }

    #sobre .about-content {
        flex-direction: column;
    }

    #sobre .about-image {
        height: 300px;
        /* Ajusta a altura para telas menores */
        max-width: 100%;
        /* Permite que a imagem ocupe toda a largura */
    }
}