:root {
    --fundo: #0d0c0e;
    --fundo-claro: #1f1a21;
    --texto: #f0e6f6;
    --destaque: #c796e0;
    --botao: #a368c9;
    --bordas: #32283b;
    --fonte: 'Georgia', serif;
    --font-sans: 'Roboto', sans-serif;
    --trans-dur: 0.3s;
    --radius: 12px;
}

/* Reset básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--trans-dur) ease;
    min-height: 100vh;
}

/* Header com overlay degradê para foco no texto */
header {
    background: var(--fundo-claro);
    color: var(--texto);
    text-align: center;
    padding: 0rem 1rem 0rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 8px var(--destaque);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    user-select: none;
}

header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    letter-spacing: 0.05em;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* Section geral */
section {
    padding: 3rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Carousel - suavizar sombras, bordas arredondadas, hover no botão */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.carousel-container-middle {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    flex: 0 0 100%;
    background: var(--fundo-claro);
    border-radius: var(--radius);
    padding: 3rem 4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    color: var(--texto);
    font-size: 1.1rem;
    line-height: 1.5;
    user-select: text;
    transition: background-color var(--trans-dur);
}

.slide h3 {
    color: var(--destaque);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 6px var(--destaque);
}

.slide ul {
    padding-left: 2.5rem;
    list-style-type: disc;
    color: #ddd;
}

/* Carousel buttons */
.carousel-button {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    background-color: var(--botao);
    color: var(--texto);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 0 15px var(--botao);
    transition: background-color var(--trans-dur), transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 20;
}

.carousel-button:hover,
.carousel-button:focus {
    background-color: var(--destaque);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 25px var(--destaque);
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

/* Imagem ilustrativa */
.illustration {
    display: block;
    margin: 3rem auto 0;
    max-width: 65%;
    border-radius: var(--radius);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
}

.illustration:hover {
    transform: scale(1.03);
}

/* FAQ estilizado */
#faq details {
    margin-bottom: 1.8rem;
    background: var(--fundo-claro);
    border-left: 5px solid var(--destaque);
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color var(--trans-dur);
}

#faq details[open] {
    background-color: #2a2531;
}

#faq summary {
    font-weight: 700;
    color: var(--destaque);
    font-size: 1.2rem;
    user-select: none;
    outline: none;
}

#faq summary::-webkit-details-marker {
    display: none;
}

/* Footer elegante */
footer {
    background-color: #111111;
    color: #bbbbbb;
    text-align: center;
    font-size: 0.95em;
    font-family: var(--font-sans);
    border-top: 1px solid #2a2a2a;
    padding: 1.5rem 1rem;
    user-select: none;
}

footer a {
    color: #9e6fff;
    text-decoration: none;
    transition: color var(--trans-dur);
}

footer a:hover,
footer a:focus {
    color: #c7aaff;
    outline: none;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    margin: 0 10px;
    display: inline-block;
    font-size: 1.3em;
    transition: color var(--trans-dur);
}

footer .social-icons a:hover {
    color: #ffd700;
}

/* Call to Action principal */
.cta {
    background-color: #1c1c1c;
    border: 2px solid #9e6fff;
    color: #ffffff;
    padding: 18px 32px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(158, 111, 255, 0.35);
    transition: all var(--trans-dur) ease;
    text-decoration: none;
    user-select: none;
}

.cta:hover,
.cta:focus {
    background-color: #9e6fff;
    color: #111111;
    box-shadow: 0 0 20px rgba(158, 111, 255, 0.7);
    transform: scale(1.05);
    outline: none;
}

/* CTA Section */
.cta-section {
    background-color: #121212;
    border-top: 1px solid #2a2a2a;
    padding: 4rem 2rem;
    text-align: center;
    color: #dddddd;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.15rem;
    color: #bbbbbb;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* Títulos gerais */
h1,
h2,
h3 {
    font-family: var(--fonte);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f0e6f6;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    user-select: none;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    color: var(--destaque);
    font-weight: 800;
}

/* Parágrafos */
p {
    margin-bottom: 1.4rem;
    color: #ddd;
    user-select: text;
}

/* Links */
a {
    color: var(--destaque);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--trans-dur);
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus {
    color: var(--botao);
    outline: none;
}

/* Responsividade mínima */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .slide {
        padding: 2rem 2.5rem;
    }

    header {
        padding: 0.1rem 1rem 5rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .slide {
        padding: 1.5rem 1.5rem;
        font-size: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }
}

nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}


.book-section {
    background-color: #111;
    color: #eee;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.book-text {
    flex: 1 1 400px;
    text-align: left;
}

.book-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e0b0ff;
}

.book-subtitle {
    font-style: italic;
    margin-bottom: 1rem;
    color: #ccc;
}

.book-excerpt {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.book-button {
    padding: 0.8rem 1.5rem;
    background-color: #e0b0ff;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: #c08bd9;
}

.book-image img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
    }

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

    .book-button {
        display: inline-block;
        margin-top: 1rem;
    }
}

.contact-section {
    background-color: #111;
    color: #eee;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
}

.contact-section h2 {
    font-size: 2rem;
    color: #e0b0ff;
    margin-bottom: 0.5rem;
}

.contact-intro {
    font-style: italic;
    margin-bottom: 2rem;
    color: #bbb;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    background-color: #222;
    color: #eee;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e0b0ff;
    outline: none;
}

.form-button {
    background-color: #e0b0ff;
    color: #111;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #c08bd9;
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .imagem {
        padding-top: 100px;
    }

    .form-button {
        width: 100%;
    }

    p {
        margin-left: 10px;
        margin-right: 10px;
        padding: 1rem 1rem;

    }
}

.carousel-container {
    position: relative;
    height: 50vh;
    background: url('images/banner.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.carousel-text {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.carousel-text.hidden {
    opacity: 0;
}

.carousel-text h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.carousel-text p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff00aa;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #e60095;
}

.hidden {
    opacity: 0;
}

.imagem ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.imagem {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 100px;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #8B008B;
    /* roxo escuro mágico */
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: #A020F0;
    transform: scale(1.05);
}

.social-icons {
    margin-top: 2rem;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.6rem;
    color: #c796e0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #f0e6f6;
    transform: scale(1.2);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebc5a;
    transform: scale(1.1);
}

.whatsapp-float i {
    line-height: 1;
}

/* ===== Contêiner do menu (sticky/fixo no topo se quiser) ===== */
.menu-livro {
    position: sticky;
    /* ou `fixed` se preferir ficar sempre visível */
    top: 0;
    width: 100%;
    background-color: var(--fundo-menu);
    z-index: 1000;
    /* garante que o menu fique acima do conteúdo */
}

/* ===== Banda interna para alinhar conteúdo ===== */
.menu-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== Botão do menu (mobile) ===== */
.menu-toggle {
    display: none;
    /* será exibido via media query para mobile */
    background: none;
    border: none;
    color: var(--texto-menu);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== Lista principal ===== */
.menu-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* ===== Link simples (Início, Contato) ===== */
.menu-links a {
    color: var(--texto-menu);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: var(--destaque);
}

/* ===== Configuração do item que terá submenu ===== */
.submenu-toggle {
    position: relative;
}

/* ===== Botão que abre o submenu (“Sessões”) ===== */
.submenu-btn {
    background: none;
    border: none;
    color: var(--texto-menu);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.submenu-btn:hover {
    color: var(--destaque);
}

/* ===== Submenu (oculto por padrão) ===== */
.submenu-links {
    display: none;
    /* invisível até a classe .open ser aplicada */
    position: absolute;
    top: calc(100% + 0.5rem);
    /* 0.5rem abaixo do item “Sessões” */
    left: 0;
    background-color: var(--fundo-menu);
    border: 1px solid var(--bordas);
    list-style: none;
    padding: 1rem;
    min-width: 200px;
    z-index: 200;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
    /* acima do conteúdo, mas abaixo do menu principal */
}

/* Espaçamento entre itens do submenu */
.submenu-links li {
    margin: 0.5rem 0;
}

/* Links dentro do submenu */
.submenu-links a {
    color: var(--texto-menu);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.submenu-links a:hover {
    color: var(--destaque);
}

/* ===== Exibe o submenu quando a classe “open” está ativa no pai ===== */
.submenu-toggle.open .submenu-links {
    display: block;
}

/* ===== Responsividade Básica ===== */
@media (max-width: 768px) {

    /* Passa a exibir o botão ☰ apenas no mobile */
    .menu-toggle {
        display: block;
    }

    /* Faz o menu ficar oculto (display: none) por padrão no mobile */
    .menu-links {
        display: none;
        /* ← por padrão, menu sumido no mobile */
        flex-direction: column;
        /* ao aparecer, vai em coluna */
        gap: 1rem;
        width: 100%;
        background-color: rgba(14, 13, 13, 0.8);
        padding: 1rem 2rem;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    /* Quando o JS adicionar “.active”, o menu aparece com display:flex */
    .menu-links.active {
        display: flex;
    }

    /* Submenu no mobile: passa a ficar “inline” no fluxo, sem position:absolute */
    .submenu-links {
        position: relative;
        top: 0;
        left: 0;
        border: none;
        background: none;
        padding-left: 1rem;
    }

    .submenu-links li {
        margin: 0.3rem 0;
    }

    .logo-img {
        max-width: 150px;

    }
}

.voltar-home {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #9e6fff;
    color: #111;
    padding: 0.6rem 1rem;
    font-weight: bold;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(158, 111, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voltar-home:hover {
    background-color: #c796e0;
    transform: scale(1.05);
    color: #000;
}

.logo-header {
    padding: 1rem 2rem;
    background-color: transparent;
    /* ou defina conforme o fundo */
    display: flex;
    align-items: center;
    padding: 0.1rem 0.1rem 0.1rem 3rem;
}

.logo-link {
    text-decoration: none;
}

.logo-img {
    max-height: 200px;
    height: auto;
    width: auto;
    display: block;
}

.carousel-text {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;
    transition: opacity 0.5s ease, filter 0.5s ease;
    opacity: 1;
}

.carousel-text.fade-out {
    opacity: 0;
    filter: brightness(2.5);
}

@media (max-width: 768px) {
    .carousel-text {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .carousel-text h2 {
        font-size: 1.4rem;
    }

    .carousel-text p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}



@media (max-width: 480px) {
    .carousel-text {
        padding: 1rem;
    }

    .carousel-text h2 {
        font-size: 1.2rem;
    }

    .carousel-text p {
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

.carousel-text {
    word-wrap: break-word;
}

#backToTop {
    position: fixed;
    bottom: 30px;

    background: var(--botao);
    color: var(--texto);
    border: none;
    border-radius: 50%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    background: var(--destaque);
    transform: scale(1.1);
    color: #000;
}