/*!Theme Name: cesec_lp_25anos*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* 
===========================================
    VARS
=========================================== 
*/
:root {
    --color-espresso: #2B271E;
    --color-ivory: #DFDBD7;
    --color-olive: #708564;
    --color-coral: #F37066;
    --color-stone: #7E7B76;
    --color-lime: #B3CD77;
    --color-sky: #99D7E6;
    --color-teal: #61C0B8;
    --color-sun: #FEC64E;
    --color-brick: #9F4141;
	--color-navy: #00314A;
}


/* 
===========================================
    RESET
=========================================== 
*/

*,
:after,
:before {
    box-sizing: border-box
}

:focus {
    outline: none
}

html {
    font-size: 10px
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    margin: 0
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0
}

button:focus {
    outline: 0
}

input,
select {
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    font-family: inherit;
    padding: 10px
}

input[type=submit] {
    background-color: #000;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: .8rem;
    text-transform: uppercase;
    transition: .3s
}

iframe {
    border: none
}

figure {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    margin: 0
}

a {
    color: inherit;
    text-decoration: none;
    transition: .25s
}

a:hover {
    text-decoration: underline
}

figure {
    margin: 0;
    padding: 0
}

table {
    border-collapse: collapse
}

ol,
ul {
    padding-left: 1rem
}

address {
    font-style: normal
}

hr {
    border: 0;
    border-top: 1px solid;
    display: block;
    height: 0;
    margin: 1rem 0
}

/* 
===========================================
    TOPO
=========================================== 
*/

header {
    align-items: center;
    background-color: var(--color-espresso);
    display: flex;
    height: 50px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;

    h1 {
        height: 100%;

        a {
            height: 100%;
            display: block;

            svg {
                padding: 1rem;
                display: block;
                height: 100%;
                width: auto;
            }
        }
    }

    &+* {
        padding-top: 50px
    }
}

.menu-container {
    flex-grow: 1;
}

.menu {
    position: absolute;
    top: 50px;
    right: 0;
    transform: translateX(100.2%);
    list-style: none;
    margin: 0;
    padding-left: 0;
    transition: .5s;
    background-color: var(--color-espresso);
    color: white;

    li {
        border-top: 1px solid var(--color-stone);

        a {
            font: 1.4rem sans-serif;
            display: block;
            padding: 1rem 1.25rem;
            letter-spacing: .05em;

            &:hover {
                text-decoration: none;
                background: var(--color-stone);
            }
        }
    }

    &.ativo {
        transform: translateX(0);
    }
}

#menuBt {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
    height: 50px;
    position: relative;
    width: 50px;

    &:focus {
        outline: none
    }

    .stripes {
        height: 30px;
        left: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: all .2s;
        width: 100%;

        .stripe {
            background-color: var(--color-ivory);
            display: block;
            height: 4px;
            left: 0;
            margin: auto;
            position: absolute;
            right: 0;
            transition: all .3s;
            width: 30px;

            &.stripe-top {
                top: 2px
            }

            &.stripe-x1 {
                top: 13px
            }

            &.stripe.stripe-x2 {
                bottom: 13px
            }

            &.stripe.stripe-bot {
                bottom: 2px
            }
        }
    }

    &.ativo {
        .stripes {
            .stripe {
                &.stripe-top {
                    opacity: 0;
                    top: 36px;
                    transition: all .3s
                }

                &.stripe-x1 {
                    transform: rotate(45deg);
                    transition: transform .3s .1s
                }

                &.stripe-x2 {
                    transform: rotate(-45deg);
                    transition: transform .3s .1s
                }

                &.stripe-bot {
                    bottom: 35px;
                    opacity: 0;
                    transition: all .3s
                }
            }
        }
    }
}

/* 
===========================================
    ATF
=========================================== 
*/

.hero-banner {
    background-color: #ccc;
    aspect-ratio: 3;
    border-radius: .8rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	a {
		display: block;
		height: 100%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		transition: .3s;
		&:hover {
			text-decoration: none;
			background-color: rgba(0,0,0,.5)
		}
		article {
			font-weight: bold;
			max-width: 600px;
			margin: auto;
			padding: 20px;
			text-align: center;
			font-size: 2.5rem;
			color: white;
			> * {
				margin: 0;
				&:last-child {
					font-size: 1.2em;
					margin-top: .5em;
				}
			}
			span {
				background-color: var(--color-navy);
			}
		}
	}
    @media(max-width:1000px) {
        margin-top: 2rem;
        margin-bottom: 3rem;
        aspect-ratio: 16/9;
    }
    @media(max-width:680px) {
        margin-top: 0;
        aspect-ratio: 3/2;
        border-radius: 0;
        margin-left: -2rem;
        width: calc(100% + 4rem);
    }
	@media(max-width:380px) {
        aspect-ratio: 1;
    }
}

.intro {
	color: var(--color-espresso);
	text-align: center;
	
	p {
		font-family: Merriweather, 'serif';
		font-size: 2.4rem;
		line-height: 1.75;
		margin-top: 0;
		&:last-of-type {
			margin-bottom: 4rem;
		}
	}
	@media(max-width:680px) {
		p {
			font-size: 2rem;
		}
	}
}

/* 
===========================================
    TIMELINE
=========================================== 
*/

.toggle_all-wrapper {
	text-align: center;
	margin-bottom: 2rem;
	button {
		font-size: 1.2rem;
		cursor: pointer;
		text-transform: uppercase;
		padding: .5em 1em;
		letter-spacing: .2em;
		&:hover {
			text-decoration: underline;
		}
	}
}

.posts {

    .ano {
		display: flex;
		flex-direction: column;
		justify-content: center;
        .ano-title {
			align-self: center;
			font-family: 'Merriweather'; serif;
            color: var(--color-espresso);
            padding: 0 .5em;
            position: relative;
            cursor: pointer;
            transition: .3s;
			font-size: 6.4rem;
			letter-spacing: .2em;
			border-bottom: .2em solid;

            &:hover {
                opacity: .8;
            }

            &:after {
                content: "-";
				letter-spacing: 0;
				font-size: 3rem;
				position: absolute;
				display: block;
				right: 0;
				bottom: 2.5rem;
				width: 3rem;
                height: 3rem;
				line-height: 3rem;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				background-color: var(--color-espresso);
				color: var(--color-ivory);
				border-radius: 50%;
            }
			@media(max-width:767px) {
				align-self: unset;
				padding-left: 0;
			}
        }

        .post {
            display: flex;
            >* {
                padding-top: 3rem;
                padding-bottom: 3rem;
                flex: 0 0 50%;
            }

            article {
				h3 {
                    font-size: 3.2rem;
                    font-family: 'Merriweather', serif;
					font-weight: normal;
					margin: .5em 0 .25em;
                }
				p {
					font-family: 'Merriweather';
					line-height: 1.5;
					color: var(--color-stone);
					&:first-of-type {
						margin-top: 0;
					}
					&:last-of-type {
						margin-bottom: 0;
					}
				}
                .post-category {

                    .ficha {
                        display: inline-block;
                        color: var(--color-ivory);
                        padding: .5rem 1rem;
                        font-weight: bold;
                        border-radius: .5rem;

                        &.cesec {
                            background: var(--color-brick);
                        }

                        &.brasil {
                            background: var(--color-olive);
                        }
                    }
                }
            }

            .imgs-placeholder {
				display: flex;
				justify-content: center;
				width: 100%;
                .imgs {
                    border-radius: .5rem;
                    align-self: flex-start;
                    position: relative;

                    figure {
                        height: 100%;
                        width: 100%;
						text-align: center;
						
						img {
							display: block;
							margin: auto;
							max-width: 100%;
							height: auto;
							max-height: 100%;
						}

                        figcaption {
							color: #999;
							margin-top: 1em;
                            font-size: 1rem;
                        }
                    }

                    .carrossel {
                        overflow: hidden;
                        height: 100%;

                        .slides {
                            height: 100%;
                            display: flex;
							align-items: center;

                            figure {
                                flex: 0 0 100%;
                            }
                        }
                    }

                    .carrossel-btn {
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        height: 4rem;
                        width: 4rem;
                        font-size: 4rem;
                        opacity: .5;
						display: flex;
						flex-direction: column;
						justify-content: center;
						align-items: center;
						transition: .3s;
						
						svg {
							display: block;
							fill: var(--color-espresso);
						}

                        &.next {
                            right: 0;
                        }
						&:hover {
							opacity: 1;
						}
                    }
                }
            }
			
			&.post-cesec {
				h3 {
					color: var(--color-brick);
				}
			}
			
			&.post-brasil {
				h3 {
					color: var(--color-olive);
				}
			}

            &.post-odd {
                article {
					padding-right: 20px;
                    border-right: 1px dashed;
                }
				.imgs-placeholder {
                    padding-left: 20px;
                }
            }

            &.post-even {
                flex-direction: row-reverse;
				article {
					padding-left: 20px;
				}
                .imgs-placeholder {
					padding-right: 20px;
                    border-right: 1px dashed;
                }
            }

            @media(max-width:767px) {
                display: block;

                article {
                    padding-bottom: 2rem;
					h3 {
						font-size: 2.4rem;
					}
					p {
						font-size: 1.6rem;
					}
                }

                .imgs-placeholder {
                    padding-top: 0;
                    overflow: hidden;
                }

                &.post-odd {
                    article {
                        padding-right: 0;
                        border-right: none;
                    }

                    .imgs-placeholder {
                        padding-left: 0;
                    }
                }

                &.post-even {
                    article {
                        padding-left: 0;
                    }

                    .imgs-placeholder {
                        padding-right: 0;
                        border-right: unset;
                    }
                }
            }
        }

        &.active {
            .ano-title {
                &:after {
					content: '+';
                    /* transform: translateY(-50%) rotate(45deg); */
                }
            }

            .post {
                display: none;
            }
        }
    }
}

/* 
===========================================
    FOOTER
=========================================== 
*/

footer {
    margin-top: 5rem;
    background-color: var(--color-espresso);
    color: var(--color-ivory);

    .footer-wrapper {
        padding: 4rem;
        display: flex;
        justify-content: space-between;

        .logos-social {
            display: flex;
            align-self: flex-start;
            align-items: flex-end;

            .logo-footer {
                display: block;

                img {
                    display: block;
                    width: 200px;
                    height: auto;
                }
            }
        }

        .social {
            margin-left: 2rem;
            display: flex;

            li {
                a {
                    display: block;
                    margin-right: 1rem;

                    svg {
                        display: block;
                        height: 30px;
                        width: auto;
                    }
                }
            }
        }

        .menu-footer {
            li:not(:last-of-type) {
                margin-bottom: 1rem;
            }
        }

        .contato {
            a:not([href*="mailto"]) {
                display: block;
                font-weight: bold;
                font-size: 2rem;
                margin-bottom: 1rem;

                span {
                    font-weight: normal;
                    font-size: .5em;
                }
            }
        }

        .apoiadores {
            li:not(:last-of-type) {
                margin-bottom: 2rem;
            }

            a {
                display: block;

                img {
                    display: block;
                    height: 50px;
                    width: auto;
                }
            }
        }

        @media(max-width:1000px) {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
        }

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

    .copyright {
        color: var(--color-ivory);
        padding: 2rem;
        text-align: center;
        font-size: 1.2rem;
        background-color: var(--color-stone);
    }

    h5 {
        color: var(--color-stone);
        text-transform: uppercase;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }
}

/* 
===========================================
    UTIL
=========================================== 
*/

.max1600,
.max1200,
.max768,
.max640 {
    display: block;
    margin: auto;
    padding: 0 2rem;
    width: 100%
}

.max1200 {
    max-width: 1200px
}

.max1024 {
    max-width: 1024px
}

.max768 {
    max-width: 768px
}

.max640 {
    max-width: 640px
}

.screen-reader-text,
.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px
}

#wpadminbar {
    top: unset;
    bottom: 0;
	position: fixed;
}