@font-face {
    font-family: "Fortzilla";
    src: url("../fonts/Fortzilla-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OfficeCodePro";
    src: url("../fonts/officecodepro-regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OfficeCodePro";
    src: url("../fonts/officecodepro-regularitalic.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "OfficeCodePro";
    src: url("../fonts/officecodepro-bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "OfficeCodePro";
    src: url("../fonts/officecodepro-bolditalic.otf") format("opentype");
    font-weight: bold;
    font-style: italic;
}

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

body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background: url("/img/fondo.gif") center top / cover no-repeat fixed;
    background-color: #000;
    min-height: 100vh;
}

/* Layout principal com coluna do poema */
.pagina-layout {
    display: flex;
    width: 100%;
    padding: 1.5rem 3% 0;
    gap: 0.5rem;
}

.coluna-poema {
    width: 30%;
    min-width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.coluna-conteudo {
    flex: 1;
    min-width: 0;
}

.poema-caixa {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    padding: 1.2rem;
    font-family: "Fortzilla", sans-serif;
    border: 1px solid #8854f5;
    box-shadow: 0 0 4px #8854f5;
}

.poema-titulo {
    color: #9ef663;
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.poema-corpo {
    color: #fef826;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.poema-assinatura {
    color: #9ef663;
    text-align: right;
    font-size: 0.95rem;
}

.poema-imagem img {
    width: 60%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pagina-layout {
        flex-direction: column;
    }
    .coluna-poema {
        width: 100%;
        min-width: unset;
        position: static;
        max-height: unset;
        flex-direction: column;
        align-items: stretch;
    }
    .poema-caixa {
        flex: 1;
    }
    .poema-imagem {
        width: 100%;
        flex-shrink: 0;
        order: 1;
    }
    .poema-imagem img {
        width: 40%;
    }
}

/* Menu de idiomas */
.idiomas {
    text-align: right;
    padding: 1rem 2rem 0;
}

.idiomas a {
    color: #fff;
    text-decoration: none;
    font-family: "Fortzilla", sans-serif;
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px double #fef826;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.idiomas a.ativo {
    color: #fef826;
    font-weight: bold;
}

.idiomas a:hover {
    color: #fef826;
}

/* Cabeçalho */
header {
    text-align: center;
    padding: 2rem 1rem 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-box {
    margin: 0 auto 1.5rem;
}

.logo-img {
    max-height: 120px;
    width: auto;
}

.subtitulo-faixa {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.75);
    padding: 0.4rem 0;
    white-space: nowrap;
}

.subtitulo-scroll {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.subtitulo-scroll span {
    display: inline-block;
    padding: 0 1rem;
    font-family: "Fortzilla", sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fef826;
    text-transform: uppercase;
}

.subtitulo-scroll span::after {
    content: " \00b7 ";
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Container das seções */
main {
    width: 100%;
    padding: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Seções / banners colapsáveis */
.secao {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--cor-borda, #fd3389);
    box-shadow: 0 0 4px var(--cor-borda, #fd3389);
    background: color-mix(in srgb, var(--cor-borda, #fd3389) 25%, transparent);
}

.banner {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: transparent;
    position: relative;
}

.banner::-webkit-details-marker {
    display: none;
}

.banner h2 {
    color: var(--cor-titulo, var(--cor-borda, #fd3389));
    font-family: "Fortzilla", sans-serif;
    font-size: 2.1rem;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 2rem;
    flex: 1;
    position: relative;
}

/* Indicador +/− */
.indicador {
    color: var(--cor-borda, #fd3389);
    font-size: 2.1rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.indicador::after {
    content: "+";
}

.secao[open] .indicador::after {
    content: "−";
}

/* Cores ao abrir: borda violeta, título verde, fundo violeta */
.secao[open] {
    border-color: #8854f5;
    box-shadow: 0 0 4px #8854f5;
    background: color-mix(in srgb, #8854f5 25%, transparent);
}

.secao[open] .banner h2 {
    color: #9ef663;
}

.secao[open] .indicador {
    color: #9ef663;
}

.secao[open] .texto-vazado {
    -webkit-text-stroke-color: #9ef663;
}

.memoria {
    font-style: italic;
    text-align: right;
    margin-top: 1.5rem;
}

.memoria-titulo {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.memoria-assinatura {
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Corpo colapsável — tipo texto */
.secao-corpo {
    padding: 0;
    color: #000000;
}

.secao-texto {
    background: rgba(158, 246, 99, 0.8);
    padding: 1.5rem 2rem;
    color: #000000;
    font-family: "OfficeCodePro", monospace;
}

.secao-texto-centrado {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.secao-texto p {
    margin-bottom: 1rem;
}

.secao-texto a {
    color: #0e09fb;
}

.secao-texto ul,
.secao-texto ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Corpo — tipo texto + imagem */
.secao-com-imagem .secao-corpo {
    display: flex;
    gap: 0;
}

.secao-com-imagem .secao-texto {
    flex: 1;
    min-width: 0;
}

.secao-imagem {
    flex-shrink: 0;
    width: 40%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
}

.secao-imagem img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .secao-com-imagem .secao-corpo {
        flex-direction: column;
    }
    .secao-imagem {
        width: 100%;
    }
}

/* Imagem flutuante dentro do texto */
.imagem-float {
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 0 0 1rem 1.5rem;
    background: #000;
    padding: 1rem;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .imagem-float {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 1rem 0;
    }
}

/* Grid de objetivos */
.grid-objetivos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-objetivos-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.nivel-caixa-destaque {
    grid-column: 1 / -1;
}

.objetivo-caixa {
    border: 1px solid var(--cor-borda, #8854f5);
    border-radius: 0;
    padding: 1rem;
    color: #fff;
    font-size: 1.05rem;
}

/* Grid de niveles */
.grid-niveles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nivel-caixa {
    border: 1px solid #8854f5;
    border-radius: 0;
    color: #ffffff;
    font-size: 1.05rem;
    background-color: rgba(0, 0, 0, 0.95);
}

.nivel-titulo {
    font-family: "Fortzilla", sans-serif;
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    list-style: none;
    text-align: center;
    color: #8854f5;
}

.nivel-titulo::-webkit-details-marker {
    display: none;
}

.nivel-corpo {
    padding: 0 1rem 1rem;
    font-family: "OfficeCodePro", monospace;
}

.nivel-corpo table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.nivel-corpo th,
.nivel-corpo td {
    border: 1px solid #8854f5;
    padding: 0.5rem 0.8rem;
    text-align: left;
}

.nivel-corpo th {
    background: rgba(136, 84, 245, 0.2);
    font-weight: bold;
}

@media (max-width: 768px) {
    .grid-niveles {
        grid-template-columns: 1fr;
    }
}

.texto-vazado {
    color: transparent;
    -webkit-text-stroke: 2px var(--cor-titulo, #fd3389);
}

.destaque {
    color: #000000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .grid-objetivos {
        grid-template-columns: 1fr;
    }
    .grid-objetivos-3 {
        grid-template-columns: 1fr;
    }
}

/* Título separador entre seções */
.titulo-separador {
    color: #fff;
    font-size: 1.7rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 1rem 0 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .logo-img {
        max-height: 60px;
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }
}

/* Rodapé */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ef663;
    font-family: "Fortzilla", sans-serif;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
