:root {
    --bg-color: #f0f0f0;
    /* Light gray */
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-dim: #666666;
    --accent: #b5952c;
    --expresso: #00617d;
    --transition: all 0.4s ease-out;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

h1,
h2,
h3 {
    font-family: var(--font-serif);
    color: var(--text-main);

}

h1 {
    font-size: 3.5rem;
    line-height: 4rem;
    padding-bottom: 30px;

}

h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-family: var(--font-sans);
    margin-bottom: 10px;
    margin-top: 70px;
    margin-bottom: 20px;
}

.antetitulo {
    font-family: var(--font-sans);
    text-align: center;
    background-color: var(--expresso);
    max-width: 600px;
    margin: 0 auto;
    color: white;
    text-transform: uppercase;
    line-height: 1.5rem;
    padding: 10px;


}



.div-fora {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}



.entrada {
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: var(--text-dim);
    font-family: var(--font-sans);
    color: black;
    text-align: center;
    padding-bottom: 50px;
    font-weight: 800;
}


.destaque {
    font-size: 2.2rem;
    line-height: 2.8rem;
    color: var(--expresso);
    font-family: var(--font-serif);
    text-align: center;
    margin: 80px -40px;
    padding: 100px 60px;
    border-top: solid 1px #b4b4b4;
    border-bottom: solid 1px #b4b4b4;
    font-weight: 500;

}


.destaque100 {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-size: 2.4em;
    line-height: 1.25;
    letter-spacing: 0em;
    font-family: var(--font-serif);
    text-align: center;
    color: #00536C;
    border-top: solid 1px #b4b4b4;
    border-bottom: solid 1px #b4b4b4;
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 80px 10%;
    font-weight: 500;
}

p {
    font-size: 1.2rem;
    line-height: 2rem;
    color: var(--text-dim);
    font-family: var(--font-sans);

}

.capitular {
    font-size: 1.2rem;
    line-height: 2rem;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
}

.capitular::first-letter {
    float: left;
    font-size: 8rem;
    line-height: 0.8;
    font-family: var(--font-serif);
    font-weight: 700;
    margin-right: 0.15em;
    margin-left: 0.05em;
    margin-top: 0;
    color: var(--text-main);
}



html {
    height: 100%;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Contêiner do visualizador da revista */
#magazine-viewer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 40px 20px;
    gap: 20px;
    /* Espaço entre botões e a abertura na área de trabalho */
}


.spread-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: auto;
    min-height: 80vh;
    width: auto;
    /* Alterado de 100% para permitir que os botões fiquem ao lado */
    max-width: calc(100% - 160px);
    /* Espaço reservado para botões */
    transition: var(--transition);
}


.magazine-page {
    height: auto;
    max-height: 85vh;
    /* Garante que cabe na tela */
    box-shadow: var(--shadow);
    cursor: default;
    transition: var(--transition);
    position: relative;
    display: flex;
}

.magazine-page img {
    height: auto;
    max-height: 85vh;
    width: auto;
    display: block;
    object-fit: contain;
}

.magazine-page.has-article {
    cursor: pointer;
}

.magazine-page.has-article:hover {
    filter: brightness(0.95);
    transform: scale(1.02);
}


/* Ficha técnica */

.ficha {
	border: solid 2px;
		border-color: #e0e0e0;
			background-color:#f1f1f1;
		padding:50px;
        margin-top: 80px;;

	
	}

.ficha p {
		
		font-family: 'Montserrat', sans-serif;
		font-size:14px;
		line-height:20px;
		
	}
.ficha h1 {
		font-family: 'Montserrat', sans-serif;
		font-size:28px;
		font-weight:800;
		width:100%;
		text-align:center;
		margin-bottom:10px
	}	

.ficha strong{
	font-family: 'Montserrat', sans-serif;
		font-size:14px;
		line-height:20px;
		font-weight:800
	
	
	}



/* Indicação de leitura de artigo */
.read-more-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: var(--transition);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.magazine-page:hover .read-more-hint {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) scale(1.05);
}

.read-more-hint::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Navigation */
.nav-btn {
    position: relative;
    /* Alterado de absoluto para ficar ao lado do conteúdo */
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    width: 50px;
    height: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: white;
    width: 55px;
}

.nav-btn.prev {
    border-radius: 40px 0 0 40px;
    /* Arredondado para fora da página - "bola virada ao contrário" */
    order: -1;
    /* Garante que permaneça à esquerda */
}

.nav-btn.next {
    border-radius: 0 40px 40px 0;
    /* Arredondado para fora da página - "bola virada ao contrário" */
    order: 1;
    /* Garante que permaneça à direita */
}


/* Sobreposição de artigo */
#article-reader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 0;
    /* Não ocupa espaço por defeito */
    height: 0;
    overflow: hidden;
    background: var(--bg-color);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-out, visibility 0.4s;
    padding: 0;
}

#article-reader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 60px 20px;
    z-index: 200;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-body h1 {
    font-family: var(--font-serif);
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
}

.article-body p {
    margin-bottom: 20px;
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        align-items: flex-start;
    }

    #magazine-viewer {
        height: auto;
        min-height: 100dvh;
        overflow-y: visible;
        align-items: flex-start;
        padding: 60px 10px;
    }

    .spread-container {
        flex-direction: column;
        height: auto;
        width: 100%;
        gap: 30px;
    }

    .magazine-page {
        width: 100%;
        height: auto;
    }



    .magazine-page img {
        width: 100%;
        height: auto;
    }

    .nav-btn {
        position: absolute;
        /* Volta a ser absoluto para mobile */
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 60px;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }

    .nav-btn.prev {
        left: 10px;
        border-radius: 0 30px 30px 0;
        /* Arredondamento normal para mobile */
    }

    .nav-btn.next {
        right: 10px;
        border-radius: 30px 0 0 30px;
        /* Arredondamento normal para mobile */
    }


    .article-body h1 {
        font-size: 2.5rem;
        line-height: 2.9rem;
    }

    .destaque {
        margin: 40px 0;
        padding: 40px 20px;
        border-top-width: 1px;
        border-bottom-width: 1px;
    }

.entrada {
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: var(--text-dim);
    font-family: var(--font-sans);
    color: black;
    text-align: center;
    padding-bottom: 50px;
    font-weight: 800;
}


.destaque100{

    font-size: 2.4rem;
        line-height: 3rem;
}

.entrada {
    font-size: 1.4rem;
    line-height: 2rem;
   
}

h2 {
    font-size: 1.3rem;
    line-height: 1.8rem;


}


.antetitulo {
    font-size: 0.9rem;
    line-height: 1.2rem;
    padding: 8px 15px;
}


}

/* Foto com Fundo Cinza - Full Width */
.foto--fundo {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #e6e6e6;
    /* Cinza de destaque */
    padding: 50px 0;
    margin-top: 60px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}



.foto--semfundo {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  
    padding: 40px 0;
    margin-top: 60px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}


.foto--mobile {
    max-width: 1100px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.foto--mobile img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.foto--mobile > .credito-foto {
    position: absolute;
    bottom: 240px;
    right: 3px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    text-transform: none;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: right bottom;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}





@media (max-width: 960px) {
    .foto--mobile {
        align-items: flex-start;
    }

    .foto--mobile > .credito-foto {
        position: absolute;
        bottom: 160px;
        right: 10px;
        transform: rotate(-90deg);
        transform-origin: right bottom;
        white-space: nowrap;
        margin-top: 0;
        display: block;
        font-size: 0.6rem;
    }






}

.foto--legenda {
    width: 100%;
    margin-top: 15px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dim);
    text-align: left;
    border-left: 2px solid var(--accent);
    padding-left: 15px;
}

/* Foto no Meio - Ligeiramente mais larga que o texto */
.foto--meio {
    width: 100%;
    margin: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Media query para expandir além de 800px em telas grandes */
@media (min-width: 960px) {
    .foto--meio {
        width: 120%;
        margin-left: -10%;
    }
}

.foto--meio img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: var(--shadow);
}

.foto--legenda--meio {
    width: 100%;
    margin-top: 15px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dim);
    text-align: left;
    font-style: italic;
    opacity: 0.8;
}

/* Galeria de Fotos */
.galeria {
    position: relative;
    width: 120%;
    /* Mais largo que o texto */
    margin: 80px 0;
    margin-left: -10%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #000;
}

@media (max-width: 960px) {
    .galeria {
        width: 100%;
        margin-left: 0;
    }
}

.galeria-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}

.galeria-slide {
    min-width: 100%;
    position: relative;
}

.galeria-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.galeria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.galeria-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.galeria-btn.prev {
    left: 20px;
}

.galeria-btn.next {
    right: 20px;
}

.galeria-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.galeria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}