* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* paleta inspirada na logo */
    --brand-dark: #0a3832;
    /* fundo profundo da logo */
    --brand: #007a61;
    /* verde principal */
    --gold: #c6a65d;
    /* dourado quente */
    --white: #FFFFFF;
    --muted-bg: #f8f7f5;
    --text-dark: #1e2f2d;
    --header-height: 80px;
    --footer-height: 80px;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100%;
    background: var(--muted-bg);
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(180deg, rgba(10, 56, 50, 0.98), rgba(10, 56, 50, 0.92));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(198, 166, 93, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    width: auto;
    height: 55px;
    object-fit: cover;
    display: block;
}

/* Menu Hamburguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: 23px;
}

.line {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .line1 {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .line2 {
    opacity: 0;
}

.menu-toggle.active .line3 {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navegação Desktop */
.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(203, 168, 90, 0.1);
}

.nav-link.cta-link {
    background: linear-gradient(90deg, var(--gold), #d8b35a);
    color: var(--brand-dark);
    font-weight: 500;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.nav-link.cta-link:hover {
    background: linear-gradient(90deg, #d8b35a, var(--gold));
    color: var(--brand-dark);
}

.nav-link.cta-link:hover {
    background: linear-gradient(90deg, #d8b35a, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(203, 168, 90, 0.3);
}

/* ===== SEÇÃO HERO ===== */
.hero-section {
    /* minimizar overflow causado por header fixo: usa viewport minus header */
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Garante que o overlay não vaze */
    padding-top: var(--header-height);
    /* ajusta para o header */
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 58, 52, 0.993) 70%, rgba(0, 122, 97, 0.38) 60%);
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(198, 166, 93, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    display: grid;
    /* columns: main text flexible + visual column fixed-ish */
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    /* Colunas mais flexíveis */
    gap: 2.5rem;
    align-items: center;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* keeps image column from shrinking too much on wide screens */
    max-width: 520px;
    width: 100%;
}

/* Avoid hero-image overlapping text on larger displays */
@media (min-width: 900px) {
    .hero-content {
        display: flex; /* Alterado para flexbox */
        flex-direction: column; /* Empilha os itens verticalmente */
        align-items: center; /* Centraliza os itens */
        gap: 3rem;
    }

    .hero-image {
        order: -1; /* Coloca a imagem acima do texto */
        justify-self: center; /* Centraliza a imagem na coluna */
        max-width: 520px;
    }

    .hero-text {
        order: 1; /* Coloca o texto abaixo da imagem */
        text-align: center; /* Centraliza o texto */
        padding-right: 0; /* Remove padding lateral desnecessário */
        position: relative;
        z-index: 3;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        gap: 4rem;
        /* even larger gap on wide desktop */
    }

    .hero-image {
        max-width: 600px;
        /* allow larger hero image but still within column width */
    }

    .hero-text {
        padding-right: 2rem;
        /* more breathing room */
    }
}

/* On very wide screens increase visual presence slightly */
@media (min-width: 1400px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 600px);
        gap: 3.5rem;
    }

    .hero-image {
        max-width: 600px;
    }
}

.hero-text {
    color: var(--white);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    z-index: 100;
    line-height: 1.2;
    color: var(--white); /* Adicionado para garantir a cor branca */
}

/* Container for the canvas-powered particle title reveal */
.hero-title-wrapper {
    display: inline-block;
    position: relative;
    line-height: 1.2;
    vertical-align: middle;
}

/* Canvas overlay that draws the particles. The DOM H1 remains in place for accessibility and SEO */
.title-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* allow clicks to pass through to the CTA */
    z-index: 5;
    mix-blend-mode: screen;
    /* subtle color blend over the background */
}



/* fallback for users that prefer reduced motion */
.hero-title-wrapper.reduced-motion .hero-title {
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Respect prefer-reduced-motion: hide the particle canvas and show H1 */
@media (prefers-reduced-motion: reduce) {
    .title-canvas {
        display: none !important;
    }

    .hero-title-wrapper .hero-title {
        color: var(--white) !important;
    }
}

/* Smaller screens: reduce particle density and keep the canvas aligned */
@media (max-width: 900px) {
    .title-canvas {
        mix-blend-mode: normal;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold), #d8b35a);
    color: var(--brand-dark);
    box-shadow: 0 10px 25px rgba(198, 166, 93, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(198, 166, 93, 0.35);
    background: linear-gradient(90deg, #d8b35a, var(--gold));
}

.btn-ghost {
    background: rgba(238, 161, 61, 0.705);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.89);
}

.btn-ghost:hover {
    background: rgb(74, 100, 73);
    border-color: var(--white);
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(198, 166, 93, 0.2);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* keep column width bounded */
    max-width: 520px;
    width: 100%;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    /* Ocupa toda a coluna do grid */
    height: 100%;
    /* Ocupa toda a altura disponível */
    margin: 0 auto;
}

/* Specific sizing for hero slideshow wrapper to ensure a wide rectangular hero */
.image-wrapper.hero-slideshow {
    max-width: 100%;
    /* Remove max-width fixo para se adaptar ao grid */
    width: 100%;
    height: 600px;
    margin: 0 auto;
    border-radius: 20px;
}

/* Smaller screens: stack hero content and reduce hero height */
@media (max-width: 900px) {
    .hero-section {
        padding-top: 100px;
        /* Mais espaço no topo em telas menores */
        padding-bottom: 4rem;
        min-height: auto;
        /* Altura automática para se ajustar ao conteúdo */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
        /* Centraliza o texto quando empilhado */
    }

    .hero-image {
        order: -1;
        /* coloca a imagem acima do texto no mobile */
        max-width: 100%;
        margin-bottom: 0.75rem;
    }

    .image-wrapper.hero-slideshow {
        height: 400px;
        max-width: 98vw;
        border-radius: 12px;
    }

    .image-wrapper img {
        object-position: center center;
    }
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    /* reduz ligeiramente a área para evitar overflow visual */
    background: radial-gradient(circle at 30% 30%, rgba(198, 166, 93, 0.15), transparent 70%);
    border-radius: 20px;
    z-index: -1;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    height: 100%;
    /* Faz a imagem preencher o wrapper */
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    /* Garante que a imagem cubra o espaço sem distorcer */
}

/* Specific sizing for hero slideshow wrapper to ensure a wide rectangular hero */
.image-wrapper.hero-slideshow {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    /* prefer aspect handled in inline head styles, but keep fallback */
}

.image-wrapper.hero-slideshow .hero-slide,
.image-wrapper.hero-slideshow img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: var(--header-height);
        /* Altura do novo header */
        height: calc(100vh - var(--header-height) - var(--footer-height));
        left: 0;
        right: 0;
        top: 63px;
        background: linear-gradient(180deg, rgba(11, 63, 58, 0.99), rgba(11, 63, 58, 0.95));
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 998;
    }

    .navbar.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        text-align: left;
        display: block;
    }

    .nav-link.cta-link {
        margin-top: 1rem;
        text-align: center;
    }

    /* Hero Section Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1.5rem;
        /* Espaço entre imagem e texto */
    }

    .image-wrapper {
        max-width: 350px;
    }

    /* Media query para telas maiores, restaurando o layout desktop e escondendo o hambúrguer */
    @media (min-width: 960px) {
        .menu-toggle {
            display: none; /* Esconde o ícone de hambúrguer */
        }

        .navbar {
            position: static; /* Remove o posicionamento fixo */
            height: auto; /* Altura automática */
            background: transparent; /* Fundo transparente */
            backdrop-filter: none; /* Remove o filtro de desfoque */
            flex-direction: row; /* Volta a ser horizontal */
            justify-content: flex-end; /* Alinha à direita */
            padding: 0; /* Remove padding */
            transform: translateX(0); /* Garante que esteja visível */
            overflow-y: visible; /* Torna o overflow visível */
            z-index: auto; /* Reseta o z-index */
        }

        .nav-list {
            flex-direction: row; /* Volta a ser horizontal */
            width: auto; /* Largura automática */
            gap: 0.5rem; /* Espaçamento padrão */
        }

        .nav-link {
            width: auto; /* Largura automática */
            text-align: center; /* Centraliza o texto */
            display: inline-block; /* Exibição em linha */
        }

        .nav-link.cta-link {
            margin-top: 0; /* Remove margin-top */
            text-align: center; /* Centraliza o texto */
        }
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        width: 100px;
        height: 40px;
    }

    .hero-badges {
        gap: 0.5rem;
    }

    .badge-item {
        font-size: 0.85rem;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CREDENTIALS SECTION ===== */
.credentials-section {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #e8e5e1;
}

.credentials-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.credential-item svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.credential-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.credential-label {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Linktree Section */
.linktree-section {
    min-height: 100vh;
    /* degrade semi-transparente para permitir ver o vídeo por baixo (fallback poster permanece em img/Dra. Bruna.jpg) */
    background: linear-gradient(135deg, rgba(11, 63, 58, 0.48) 0%, rgba(0, 111, 90, 0.38) 60%);
    /* background-size / position deixados como fallback caso o vídeo não carregue */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    color: var(--white);
    overflow: hidden;
    /* importante para esconder overflow do vídeo */
}

/* vídeo de fundo */
.linktree-section .bg-video {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    /* evita interferir em cliques */
    filter: brightness(.56) saturate(.95);
    /* ajuste visual para melhor contraste sobre conteúdo */
}

/* garantir que o conteúdo fique sobre o vídeo */
.profile-container {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(6px);
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(11, 63, 58, 0.12), rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(203, 168, 90, 0.12);
}

.profile-photo {
    width: clamp(110px, 18vw, 180px);
    height: clamp(110px, 18vw, 180px);
    border-radius: 50%;
    border: 4px solid rgba(198, 166, 100, 0.95);
    object-fit: cover;
    object-position: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.06);
    display: block;
    transition: transform .35s ease, box-shadow .25s ease;
}

.profile-photo:focus,
.profile-photo:hover {
    transform: translateY(-4px) scale(1.04);
    outline: 3px solid rgba(198, 166, 100, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* Nome, título e ênfases com cores da logo */
.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.profile-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

/* botões claros com destaque em dourado ao hover */
.link-button {
    background: var(--brand);
    color: var(--white);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 8px 30px rgba(3, 28, 26, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 45, 42, 0.04);
}

.link-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-button:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 97, 0.18);
}

.link-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.link-button:hover:before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(6, 45, 42, 0.18);
    background: var(--gold);
    color: var(--white);
}

.link-icon {
    font-size: 1.5rem;
}

.scroll-indicator {
    position: fixed;
    bottom: calc(var(--footer-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(11, 63, 58, 0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease;
    outline: none;
    animation: bounce 2.2s infinite;
}

.scroll-indicator:focus,
.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.scroll-arrow {
    width: 44px;
    height: 44px;
    display: block;
}

/* Main Content Sections */
.main-content {
    background: var(--muted-bg);
}

/* ...existing code... */

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* títulos de seção e acentos em verde/dourado */
.section-title {
    font-size: 2.5rem;
    color: var(--brand);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), rgba(198, 166, 93, 0.85));
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.about-text {
    color: var(--text-dark, #203230);
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
    color: #2f4a44;
}

/* destaque do CRM */
.about-text strong {
    color: var(--brand-dark);
}

/* foto da Dra. — crop seguro, contraste e borda sutil */
.about-photo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 40px rgba(3, 28, 26, 0.12);
    border: 1px solid rgba(11, 63, 58, 0.06);
}

/* espaçamento entre parágrafos caso HTML contenha <br> */
.about-text br {
    display: none;
}

/* responsivo: empilha e amplia imagem */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-photo {
        max-width: 420px;
        margin: 0 auto;
        width: 88%;
    }

    .about-text {
        font-size: 1rem;
    }
}

/* PN Inclusiva Slider (continuidade suave) */
.pn-slider {
    /* Transformado em um card de destaque */
    background: linear-gradient(180deg, rgba(198, 166, 93, 0.03), rgba(10, 56, 50, 0.02));
    padding: 2.5rem;
    border-radius: 20px;
}

.pn-slider .slider-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--brand-dark);
    font-size: 1.6rem;
    line-height: 1.3;
}

.pn-content-wrapper {
    /* Layout simplificado para texto acima da galeria */
    text-align: center;
}

.pn-text-content {
    flex-grow: 1;
    /* Permite que o conteúdo de texto ocupe o espaço disponível */
    /* Largura máxima para o bloco de texto */
    line-height: 1.7;
    color: #2f4a44;
    font-size: 1.02rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.pn-text-content p {
    margin-bottom: 1rem;
}

.pn-issues-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem auto;
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pn-issues-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: #2f4a44;
}

.pn-issues-list li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--gold);
    /* Usa uma cor da marca para o ícone */
    flex-shrink: 0;
    padding-top: 0.1em;
    /* Ajuste fino para alinhamento */
}

.pn-issues-list li .icon svg {
    width: 20px;
    height: 20px;
}

.pn-slider .viewport {
    /* Novo estilo para galeria rolável */
    overflow-x: auto;
    padding: 1rem 0;
    /* Adiciona espaço para a sombra e a barra de rolagem */
    -webkit-overflow-scrolling: touch;
    /* Scroll suave em iOS */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.pn-slider .track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    /* Permite que o conteúdo ultrapasse a viewport */
}

.pn-slider .slide {
    height: 400px;
    /* Altura fixa e menor para as imagens */
    width: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 63, 58, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pn-slider .slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(11, 63, 58, 0.15);
}

.pn-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Garante que a imagem inteira seja visível */
    background-color: #eef2f1;
    /* Fundo para preencher espaço vazio */
}

/* small screens */
@media (max-width: 720px) {
    .pn-slider {
        padding: 1.5rem;
    }

    .pn-content-wrapper {
        text-align: left;
    }

    .pn-slider .slide {
        height: 350px;
    }
}

/* Primeiro Sinal (Seção explicativa) */
.first-sign-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 63, 58, 0.06);
}

.first-sign-figure {
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.first-sign-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.first-sign-content {
    display: grid;
    grid-template-columns: 1fr;
    /* Default for mobile */
    gap: 1.5rem;
    align-items: center;
}

.first-sign-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    color: var(--brand-dark);
}

.first-sign-content p {
    line-height: 1.7;
    color: #344a45;
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.first-sign-list {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.first-sign-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.first-sign-item svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 4px;
}

.first-sign-note {
    border-left: 3px solid rgba(198, 166, 93, 0.18);
    padding-left: 1rem;
    color: #2f4a42;
    font-style: italic;
    background: rgba(198, 166, 93, 0.02);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.first-sign-cta {
    margin-top: 1.15rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-ghost {
    background: var(--muted-bg);
    border: 1px solid rgba(248, 248, 248, 0.582);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all .22s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold), #d8b35a);
    color: var(--brand-dark);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: none;
}

.first-sign-signature {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.signature-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.signature-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.signature-meta {
    color: #27463f;
}

.signature-meta strong {
    display: block;
    color: var(--brand-dark);
}

@media (min-width: 901px) {
    .first-sign-content {
        grid-template-columns: minmax(300px, 440px) 1fr;
        /* Coluna flexível para evitar overflow */
        gap: 2.25rem;
        grid-template-areas:
            "figure title"
            "figure text"
            "figure list"
            "figure note"
            "figure cta"
            "figure signature";
    }

    .first-sign-figure {
        grid-area: figure;
        align-self: start;
        max-height: 500px;
    }
}

/* Specialties Section */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 63, 58, 0.08);
    box-shadow: 0 8px 25px rgba(3, 28, 26, 0.04);
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(11, 63, 58, 0.12);
    border-color: rgba(198, 166, 93, 0.5);
}

.specialty-icon {
    margin-bottom: 1rem;
    color: var(--gold);
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.specialty-icon svg {
    width: 52px;
    height: 52px;
}

.specialty-title {
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.specialty-description {
    line-height: 1.6;
    color: #344a45;
    font-size: 0.95rem;
}

/* Impact Banner */
.impact-banner {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    position: relative;
    overflow: hidden;
}

.impact-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: left;
}

.impact-banner:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(198, 166, 93, 0.08) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.impact-image-wrapper {
    width: 100%;
    max-width: 450px;
    grid-area: image;
    /* Nomeia a área para o grid */
    justify-self: center;
}

.impact-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.impact-content {
    display: flex;
    grid-area: content;
    /* Nomeia a área para o grid */
    flex-direction: column;
    gap: 1.5rem;
}

.impact-text {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.impact-text svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    flex-shrink: 0;
}

.impact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.impact-locations {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.location-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 166, 93, 0.15);
    padding: 1.5rem;
    border-radius: 16px;
    flex: 1;
    backdrop-filter: blur(5px);
}

.location-item svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.impact-cta {
    background: var(--gold);
    color: var(--brand-dark);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.impact-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #d8b35a;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .impact-banner-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "content"
            "image";
        /* Define a ordem para mobile */
        text-align: center;
    }

    .impact-cta {
        align-self: center;
    }
}

@media (min-width: 901px) {
    .impact-banner-grid {
        grid-template-areas: "image content";
        /* Define a ordem para desktop */
    }
}


/* Contact Section */
.contact-grid {
    display: grid;
    /* Garante que o grid seja aplicado */
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    color: var(--brand);
    background: var(--white);
    border: 1px solid rgba(11, 63, 58, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(3, 28, 26, 0.04);
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(11, 63, 58, 0.12);
    border-color: rgba(198, 166, 93, 0.5);
}

.contact-icon {
    color: var(--gold);
    /* Corrigido para usar a variável CSS correta */
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.map-container {
    position: relative;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio (change this value for different ratios) */
    height: 0;
    overflow: hidden;
    grid-column: 2 / -1;
    /* default to second column on desktop */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* single column on mobile */
    }

    .contact-info,
    .map-container {
        grid-column: 1 / -1;
        /* full width on mobile */
    }

    .map-container {
        padding-bottom: 56.25%;
        /* 16:9 Aspect Ratio for mobile */
    }
}

/* Responsividade da Seção de Contato */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Empilha as colunas em telas menores */
    }
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--brand-dark), #04332e);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ajustes rápidos para ícones sociais */
.social-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--brand-dark);
    text-decoration: none;
    transition: transform .28s ease, background .2s ease;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.03);
    background: #e6c37a;
}

/* Footer social icons: use the glyph icons (Font Awesome), no background circle; brand color for the glyph */
footer .social-icons .social-icon {
    background: none;
    width: auto;
    height: auto;
    padding: .25rem .4rem;
    border-radius: 6px;
    box-shadow: none;
}

footer .social-icons .social-icon i {
    font-size: 20px;
    display: inline-block;
}

footer .social-icons .social-icon.social-whatsapp i {
    color: #25D366;
}

footer .social-icons .social-icon.social-instagram i {
    color: #E1306C;
}

footer .social-icons .social-icon.social-email i {
    color: var(--white);
}

/* Ensure FA glyphs are rendered correctly and visible */
footer .social-icons .social-icon i {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", "Font Awesome 5 Free";
    /* fallback */
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

footer .social-icons .social-icon i.fas,
footer .social-icons .social-icon i.fa-solid {
    font-weight: 900;
}

/* Social brand-specific styles */
/* previously had per-social backgrounds; now using Font Awesome glyphs and footer-specific styles */

.developer-credit {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.developer-credit a img {
    height: 28px;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1.02);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Reviews Section */
.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviews-summary .google-logo svg {
    width: 80px;
    height: auto;
}

.reviews-rating {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.reviews-stars {
    color: #fbbc05;
    /* Google yellow */
    display: flex;
}

.reviews-stars svg {
    width: 24px;
    height: 24px;
}

.reviews-count {
    color: #5f6368;
    /* Google grey */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(11, 63, 58, 0.08);
    box-shadow: 0 8px 25px rgba(3, 28, 26, 0.04);
    display: flex;
    flex-direction: column;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--brand-dark);
}

.review-text {
    color: #344a45;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

/* Reviews carousel contínuo (substitui/acompanha .reviews-grid) */
.reviews-carousel {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    margin-top: 1.5rem;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    /* inicia sem animação, JS define duração dinâmica */
    animation: scroll 30s linear infinite;
    will-change: transform;
}

/* força largura mínima nos cards para evitar colapso e manter ritmo lento */
.reviews-track .review-card {
    flex: 0 0 320px;
    min-width: 320px;
}

/* pausar no hover / foco para permitir leitura */
.reviews-carousel:hover .reviews-track,
.reviews-track:focus {
    animation-play-state: paused;
}

/* animação contínua que move metade da largura (assumindo duplicação via JS) */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* acessibilidade: reduz movimento se preferências do usuário pedirem */
@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        animation: none;
    }

    .reviews-carousel {
        overflow-x: auto;
    }
}

/* garante responsividade */
@media (max-width: 720px) {
    .reviews-track .review-card {
        flex: 0 0 86%;
        min-width: 86%;
    }
}

/* ===== INTERACTIVE SECTION ===== */
.interactive-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* interactive carousel styles (moved from inline head style for responsiveness) */
.interactive-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.interactive-carousel .carousel-viewport {
    overflow: hidden;
    width: 100%;
    flex: 1;
    /* take remaining space inside the flex container */
    min-width: 0;
    /* allow proper shrinking in flex layout */
}

.interactive-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.interactive-carousel .carousel-slide {
    flex: 0 0 auto;
    width: calc(100% - 2rem);
    /* mobile default: single slide with small page padding */
}

.interactive-carousel .carousel-btn {
    background: var(--gold, #cba85a);
    color: #fff;
    border: none;
    padding: .5rem .75rem;
    border-radius: .375rem;
    cursor: pointer;
    font-weight: 600;
}

.interactive-carousel .carousel-btn:focus {
    outline: 3px solid rgba(203, 168, 90, 0.25);
}

.interactive-carousel .carousel-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: .75rem;
}

.interactive-carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.interactive-carousel .dot.active {
    background: var(--gold, #cba85a);
}

.interactive-carousel .dot:focus {
    outline: 3px solid rgba(203, 168, 90, 0.2);
    box-shadow: 0 0 0 4px rgba(203, 168, 90, 0.06);
}

/* tablet: 2 columns */
@media (min-width: 640px) and (max-width: 959px) {
    .interactive-carousel .carousel-slide {
        width: calc((100% - 1rem) / 2);
    }
}

/* desktop: 3 columns */
@media (min-width: 960px) {
    .interactive-carousel .carousel-slide {
        width: calc((100% - 2rem) / 3);
    }
}


.interactive-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 56, 50, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(10, 56, 50, 0.05);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 56, 50, 0.12);
}

.card-image-container {
    height: 220px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.interactive-card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d4b16a);
    color: var(--white);
    display: grid;
    place-items: center;
    margin-top: -3.5rem;
    margin-bottom: 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-cta {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .interactive-grid {
        /* This is already handled by auto-fit, but can be explicit */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .card-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .card-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        width: 200px;
    }

    .card-cta {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
}

/* ===== MODAL STYLES ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 56, 50, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-backdrop:not([aria-hidden="true"]) {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 650px;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Image lightbox overrides */
.modal.modal-image {
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.95);
    /* dark background to highlight image */
    border-radius: 12px;
}

.modal.modal-image .image-modal-content {
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
}

.modal.modal-image img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: inline-block;
    margin: 0 auto;
    border-radius: 8px;
}

.modal.modal-image .modal-close {
    color: var(--white);
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

/* Fullscreen gallery modal (carousel inside modal) */
.modal.modal-gallery {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 1rem;
    border-radius: 0;
    background: transparent;
    /* backdrop is handled by #modal-backdrop */
}

.modal.modal-gallery .gallery-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.modal-gallery .gallery-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal.modal-gallery .gallery-track {
    display: flex;
    gap: 0;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.modal.modal-gallery .gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.modal-gallery .gallery-slide img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal.modal-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
}

.modal.modal-gallery .gallery-prev {
    left: 1rem;
}

.modal.modal-gallery .gallery-next {
    right: 1rem;
}

.modal.modal-gallery .gallery-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 999;
}

.modal.modal-gallery .gallery-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
}

.modal.modal-gallery .gallery-dots button.active {
    background: var(--gold);
}

@media (max-width: 900px) {
    .modal.modal-gallery .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .modal.modal-gallery .gallery-viewport {
        height: calc(100vh - 56px);
    }
}

.modal.modal-lg {
    max-width: 800px;
}

.modal:not([aria-hidden="true"]) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-dark);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Make the close button visible on the fullscreen gallery modal */
.modal.modal-gallery .modal-close {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    top: 6.5rem;
    right: 1.5rem;
    z-index: 1001;
    /* put above gallery content */
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Image lightbox overrides */
.modal.modal-image {
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.95);
    /* dark background to highlight image */
    border-radius: 12px;
}

.modal.modal-image .image-modal-content {
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
}

.modal.modal-image img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.modal.modal-image .modal-close {
    color: var(--white);
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Quiz Styles */
.quiz-question {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-explanation {
    background-color: var(--muted-bg);
    border-left: 4px solid var(--gold);
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
}

.quiz-nav {
    text-align: center;
    margin-top: 1.5rem;
}

/* Emotions Wheel Styles */
.emotions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.emotion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0rem;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.emotion-item:hover {
    background-color: var(--muted-bg);
    transform: scale(1.05);
}

.emotion-item.selected {
    background-color: rgba(198, 166, 93, 0.15);
    transform: scale(1.1);
}

.emotion-emoji {
    font-size: 3rem;
}

.emotion-label {
    font-weight: 500;
    color: var(--brand-dark);
}

.emotion-feedback-box {
    min-height: 60px;
    background-color: var(--muted-bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* ===== Monte a Carinha Game Styles ===== */
.carinha-game-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.face-canvas {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background-color: #fff4e6;
    border-radius: 50%;
    border: 2px dashed var(--gold);
    overflow: hidden;
}

.face-base {
    width: 300px;
    height: 300px;
    object-fit: cover;
    opacity: 0.5;
}

.parts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background-color: var(--muted-bg);
    padding: 1rem;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.draggable-part {
    width: 50px;
    height: 50px;
    cursor: grab;
    transition: transform 0.2s ease;
}

.draggable-part:hover {
    transform: scale(1.1);
}

.dropped-part {
    position: absolute;
    width: 80px;
    height: 80px;
    user-select: none;
}

/* Estilos específicos para os acessórios */
.dropped-part.accessory-part {
    width: 225px;
    height: 80px;
}

@media (min-width: 768px) {
    .carinha-game-container {
        flex-direction: row;
    }

    .parts-container {
        flex: 1;
        max-height: 300px;
    }
}

/* ===== Ache o Animal Game Styles ===== */
.animal-game-container {
    text-align: center;
}

.animal-question {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 2rem;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.animal-option {
    background-color: var(--white);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.animal-option:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(10, 56, 50, 0.1);
}

.animal-option img {
    width: 100%;
    max-width: 120px;
    height: auto;
    pointer-events: none;
    /* Clicks should be on the parent div */
}

.animal-option.correct {
    animation: correct-answer-pulse 0.5s ease;
    border: 3px solid #4caf50;
}

@keyframes correct-answer-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animal-feedback {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.animal-celebration {
    font-size: 2em;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    margin-top: 1rem;
}

/* Confetti styles */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    /* Cor padrão, será sobrescrita pelo JS */
    animation: fall 2s forwards;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Botão Flutuante do WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--brand);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 990;
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(198, 166, 93, 0.4);
    animation-play-state: paused;
    /* Pausa a animação no hover */
    background: var(--gold);
    color: var(--brand);
}

/* Ajuste para telas menores para não ficar sobre o footer */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .image-wrapper.hero-slideshow .hero-slide,
    .image-wrapper.hero-slideshow img {
        height: 451px;
    }
}

/* Accessible utility: visually hides content but keeps it available to screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fale Comigo badge (appears behind the floating WhatsApp button, cycles on/off) */
.fale-badge {
    position: fixed;
    right: 72px;
    /* same location as whatsapp button */
    bottom: 25px;
    /* same location as whatsapp button */
    z-index: 989;
    /* behind the whatsapp button (which is 990) */
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-dark);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    /* won't block clicks to whatsapp */
    user-select: none;
}

.fale-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .fale-badge {
        display: block;
    }

    /* hide badge on very small screens */
}

@media (prefers-reduced-motion: reduce) {
    .fale-badge {
        transition: none;
    }
}

/* Slideshow visual improvements */
.hero-slideshow {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
}

.hero-slideshow .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    display: block;
}

.hero-slideshow .hero-slide.visible {
    opacity: 1;
}

.hero-slideshow-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.hero-slideshow-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
}

.hero-slideshow-dots button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.hero-slideshow-dots button.active {
    background: var(--gold);
}

.dragging-touch-part {
    opacity: 0.7;
    position: absolute;
    pointer-events: none;
    /* Avoid blocking elements underneath */
    z-index: 1000;
}

/* Estilos para o cursor de toque em mobile */
.touch-cursor {
    position: absolute;
    width: 60px;
    /* Tamanho do círculo */
    height: 60px;
    border-radius: 50%;
    background-color: rgba(var(--color-primary-rgb), 0.5);
    /* Semi-transparente */
    border: 2px solid var(--color-primary);
    pointer-events: none;
    /* Garante que não interfira com outros elementos */
    transform: translate(-50%, -50%);
    /* Centraliza o cursor no toque */
    z-index: 999;
    /* Garante que fique acima de outros elementos */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.touch-cursor.over-canvas {
    background-color: rgba(var(--color-secondary-rgb), 0.7);
    /* Cor diferente quando sobre a área de soltura */
    border-color: var(--color-secondary);
}

/* Estilos específicos para o botão CTA do Quiz */
.quiz-cta-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    /* Limita a largura em telas maiores */
    margin: 1rem auto 0 auto;
    /* Centraliza e adiciona margem superior */
    padding: 0.8em 1.5em;
    /* Ajusta o preenchimento para um melhor visual */
    text-align: center;
    box-sizing: border-box;
    /* Garante que padding e border sejam incluídos na largura */
}

/* Em telas menores, ajusta para ocupar toda a largura */
@media (max-width: 600px) {
    .quiz-cta-btn {
        max-width: 90%;
        /* Ocupa mais espaço em telas pequenas */
    }
}