/* ==============================
    Variáveis CSS (Paleta de Cores Consistente)
============================== */
:root {
    --main-color: #4CAF9E; /* a */
    --primary-color: #000000; /* */
    --secondary-color: var(--main-color); /* */
    
    --text-color: var(--primary-color); /* */
    --light-text-color: #4a4a4a; /* */
    
    --background-color: #f7f7f7; /* */
    --white: #FFFFFF; /* */
    --light-gray: #e0e0e0; /* */
    --dark-gray: var(--primary-color); /* */
    
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    /* */
    transition: color var(--transition-speed); 
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

/* ==============================
    Botões
============================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn.primary.large {
    background-color: #4CAF9E;
    color: var(--white);
}

.btn.primary.large:hover {
    background-color: var(--primary-color);
    color: var(--main-color);
}

.btn.secondary {
    /* */
    background-color: var(--secondary-color); 
    color: var(--primary-color); /* */
}

.btn.secondary:hover {
    background-color: #4CAF9E; /* */
}

.btn.small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn.large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.btn.full-width {
    width: 100%;
    margin-top: 15px;
}

/* */
.btn.secondary.small {
    /* Fundo Branco */
    background-color: #eae8e8;
    /* Texto Preto */
    color: var(--primary-color);
    /* */
    border: 1px solid var(--light-gray); 
}

.btn.secondary.small:hover {
    /* */
    background-color: var(--secondary-color);
    /* */
    color: var(--primary-color); 
    border-color: var(--secondary-color);
}


/* ==============================
    Layout Geral YSO
============================== */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* *** AQUI É ONDE O ESPAÇAMENTO É REDUZIDO/REMOVIDO: ***
    Mudança de 'padding: 20px;' para 'padding: 0 20px 20px 20px;'
    */
    padding: 0 20px 20px 20px;
}

.section-padded {
    padding: 40px 0; /* */
}

.section-header {
    text-align: center;
    margin-bottom: 40px; /* */
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-header .subtitle {
    font-family: 'Inter', sans-serif; /* */
    font-size: 1.1em; 
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 20px auto;
    font-weight: 400; /* */
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1em;
    outline: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.search-input:focus {
    border-color: var(--secondary-color); /* */
    box-shadow: 0 0 0 3px rgba(90, 189, 171, 0.4); /* */
}

.hidden {
    display: none !important;
}

.contact-info-card.single-card {
    max-width: 500px;
    margin: 40px auto 0 auto;
    padding: 30px;
    /* */
    background-color: var(--white); 
    border: 1px solid var(--light-gray);
    color: var(--dark-gray);
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-card.single-card h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.contact-info-card.single-card p {
    color: var(--light-text-color);
    margin-bottom: 25px;
}

.contact-info-card.single-card .info-item {
    display: block;
    margin-bottom: 15px;
}

.contact-info-card.single-card .info-item strong {
    display: block;
    color: var(--dark-gray);
    margin-right: 0;
    margin-bottom: 5px;
}

.contact-info-card.single-card .info-item span,
.contact-info-card.single-card .contact-link {
    color: var(--light-text-color);
}

.contact-info-card.single-card .btn-whatsapp {
    color: #25D366; /* Cor padrão do WhatsApp */
    font-weight: 600;
}

.contact-info-card.single-card .btn-whatsapp:hover {
    color: #128C7E;
}
/* */

/* ==============================
    Header (Logo e Menu)
============================== */
.main-header {
    /* C */
    background-color: var(--main-color);
    padding: 15px 20px; /* Mantido em 15px top/bottom */
    /* */
    border-bottom: 1px solid #4CAF9E; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    width: auto;
    display: flex;
    align-items: center;
}

.logo-area .site-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

/* Menu Desktop */
.main-nav {
    flex-grow: 1;
    text-align: right;
}

.main-nav .nav-menu {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.main-nav .nav-menu li a {
    display: inline-block;
    /* */
    color: var(--white); 
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px transparent inset;
    transition: all var(--transition-speed);
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a.active {
    /* */
    box-shadow: 0 0 0 2px var(--primary-color) inset; 
    background-color: rgba(0, 0, 0, 0.1); /* */
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

/* */

/* ==============================
    Hero Section
============================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

/* ==============================
    Cards
============================== */
.cards-grid,
.featured-ads {
    display: grid;
    /* */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card,
.ad-card {
    /* */
    cursor: pointer; 
    /* */
    background-color: #FFFFFF
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    position: relative; /* */
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.card:hover,
.ad-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* N */
    transform: translateY(-2px);
}

.card-image,
.ad-image {
    width: 100%;
    /* */
    height: 180px; 
    object-fit: cover;
    margin-bottom: 0; /* */
}

/* */
.ad-logo {
    width: 160px; /* */
    height: 160px; 
    border-radius: 50%;
    border: 4px solid var(--white); /* */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    /* */
    position: absolute; 
    top: 130px; /* D */
    left: 50%; 
    transform: translateX(-50%); 
    margin: 0;
    z-index: 10; 
    object-fit: cover; 
}

.card-content,
.ad-content {
    padding: 20px;
    /* */
    background: #eae8e8;
    padding-top: 90px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-content h3,
.ad-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p,
.ad-content p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

/* ==============================
    Detalhes (Restaurante/Galeria)
============================== */
.estabelecimento-detail-container {
    max-width: 900px;
    margin: 40px auto;
    /* */
    background-color: var(--white); 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

/* */

.btn-back {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: color var(--transition-speed);
}

.btn-back:hover {
    color: var(--secondary-color);
}

.detail-header h2 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.detail-gallery .main-image {
    width: 480px; /* */
    height: 480px; /* */
    /* o */
    object-fit: cover; /* */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-responsive-container {
    margin: 20px auto 30px auto;
    width: 100%;
    max-width: 668px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-gallery .thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent; /* */
    transition: all var(--transition-speed);
}

.thumbnail-gallery .thumbnail:hover,
.thumbnail-gallery .thumbnail.active {
    border-color: var(--secondary-color); /* D */
    transform: scale(1.05);
}

.detail-info {
    padding: 10px 0;
}

.detail-info h3 {
    font-size: 1.8em;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.detail-info p {
    font-size: 1em;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.info-item strong {
    min-width: 90px;
    color: var(--dark-gray);
    margin-right: 10px;
}

.info-item span,
.info-item .contact-link {
    color: var(--light-text-color);
    word-break: break-word;
}

.contact-link {
    display: inline-block;
    margin-right: 8px;
    transition: color var(--transition-speed);
}
.contact-link:hover {
    color: var(--secondary-color);
}

/* ==============================
    Lightbox
============================== */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: transparent;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ddd;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin-bottom: 15px;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}


.lightbox-description {
    color: #fff;
    font-size: 1.2em;
    text-align: center;
}


/* ==============================
    Footer
============================== */
.main-footer {
    /* */
    background-color: var(--main-color);
    color: var(--primary-color); /* */
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
}

/* */

.main-footer p {
    margin: 0;
    font-size: 0.9em;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    font-weight: 600;
}

.footer-links a:hover {
    color: black;
}

/* ==============================
    Rodapé - Ícones Sociais (5181225)
============================== */
.social-icons {
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--primary-color); /* */
}

.social-icons a:hover {
    color: var(--white); /* */
}

.social-icons img {
    height: 30px;
    width: 30px;
    /* */
    filter: none; 
    transition: opacity var(--transition-speed);
}

.social-icons a:hover img {
    opacity: 0.8;
}

/* ==============================
    Responsividade
============================== */

/* Tablet/Mobile (até 1024px) */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo-area {
        margin-bottom: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding-bottom: 15px;
        /* */
        border-bottom: 3px solid var(--white); 
    }

    .logo-area .site-logo {
        height: 90px;
        width: auto;
        max-width: 350px;
    }

    .detail-gallery .main-image {
    /* Estilos base para telas maiores ou padrão */
    width: 480px; /* */
    height: 480px; /* */
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Media query para telas menores (ex: celulares) */
@media (max-width: 768px) { /* */
    .detail-gallery .main-image {
        width: 100%; /* */
        height: auto; /* */
        max-width: 549px; /* */

    }
}


@media (max-width: 480px) {
    .detail-gallery .main-image {
/
    }
}

    .main-nav {
        width: 100%;
        text-align: center;
        padding-top: 15px;
    }

    .main-nav .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        padding: 0;
        justify-content: center;
    }

    .main-nav .nav-menu li {
        list-style: none;
    }

    /* INVERSÃO DE CORES APLICADA AQUI */
    .main-nav .nav-menu li a {
        display: block;
        text-align: center;
        padding: 12px 0;
        border-radius: 6px;
        /* */
        background: var(--main-color); 
        /* */
        color: var(--white); 
        font-weight: 600;
        box-shadow: none; /* */
    }

    .main-nav .nav-menu li a:hover,
    .main-nav .nav-menu li a.active {
        box-shadow: 0 0 0 2px var(--primary-color) inset;
        /* */
        background-color: var(--white); 
        /* */
        color: var(--primary-color);
    }
}

/* Smartphones médios (até 768px) */
@media (max-width: 768px) {
    /* Menu */
    .main-nav .nav-menu {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* */
    .cards-grid,
    .featured-ads {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}
}