/*
Theme Name: PDEII
Theme URI: https://jundiai.sp.br/pdeii
Author: CIJUN
Author URI: https://cijun.sp.gov.br/
Description: Hotsite do Plano Municipal de Desenvolvimento Econômico, Inovação e Internacionalização
Version: 1.0
*/

/* ----- TABELA DE CORES DA GESTÃO --------------------------------------------------- */

:root {

	--azulgestao: #003371;
	--turquesa: #00a898;
	--verde: #70be43;
	--amarelo: #ffdd00;
	--laranja: #faa518;
	--magenta: #b41d8d;
	--ciano: #00b9f1;
	--azul: #0474bc;

	--vermelho: #ed1c24;
	--tooltip: #E1FE0A;

	--cinza-clarissimo: #f3f7fb;

	--gap: 40px;
}


/* ----- ELEMENTOS BÁSICOS ----------------------------------------------------------- */

body {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 20px;
	font-weight: 400;
}

a:link,
a:visited {
	color: var(--azul);
}

a:hover {
	color: var(--azulgestao);
}

b, strong {
	font-weight: 600
}

/* ----- BLOCOS DO WORDPRESS --------------------------------------------------------- */

.wp-block-columns {
	gap: var(--gap);
}

.wp-block-group.has-background {
	padding: 40px 40px 20px;
}

.wp-block-file {
	font-size: 1em !important;
}

/* galerias */

.wp-block-gallery {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.wp-block-gallery .wp-block-image {
	flex-grow: 1;
}

.wp-block-table table {
	background: #fff;
}

.wp-block-table:not(.is-style-stripes) table,
.wp-block-table:not(.is-style-stripes) table td,
.wp-block-table:not(.is-style-stripes) table th {
	border-color: var(--azulgestao);
}

.wp-block-table:not(.is-style-stripes) table thead,
.wp-block-table:not(.is-style-stripes) table tfoot {
	background: var(--azulgestao);
	color: #fff;
}


@media only screen and (min-width: 600px) {
	
	.wp-block-gallery.columns-3 .wp-block-image {
		width: calc(33.3% - var(--gap)) !important;
	}
		
	.wp-block-gallery.columns-4 .wp-block-image {
		width: calc(25% - var(--gap)) !important;
	}

	.wp-block-gallery.columns-5 .wp-block-image {
		width: calc(20% - var(--gap)) !important;
	}

	.wp-block-gallery.columns-6 .wp-block-image {
		width: calc(17% - var(--gap)) !important;
	}

}

/* ----- CABEÇALHO ------------------------------------------------------------------- */

#header {
	background: #fff;
	width: 100%;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}

.barra-plataforma {
	background: var(--azulgestao);
	background: linear-gradient(to right, var(--turquesa) 0%, var(--turquesa) 14%, var(--verde) 14%, var(--verde) 29%, var(--amarelo) 29%, var(--amarelo) 43%, var(--laranja) 43%, var(--laranja) 57%, var(--magenta) 57%, var(--magenta) 72%, var(--ciano) 72%, var(--ciano) 86%, var(--azul) 86%, var(--azul) 100%);
	width: 100%;
	height: 5px;
	font-size: 1px;
}

#header .container {
	padding: 20px;
}

.brasao {
	grid-area: brasao;
	aspect-ratio: 48/13;
	width: 150px;
	height: auto;
}

@media only screen and (min-width: 800px) {

	.brasao {
		width: 200px;
	}

}

@media only screen and (min-width: 1024px) {
	
	#header .container {
		display: grid;
		grid-template-columns: 200px 1fr;
		grid-template-areas: "brasao" "menu" ;
	}
	
}


/* ----- TÍTULO DO SITE -------------------------------------------------------------- */

#site-titulo {
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center 100px;
	margin-top: 40px;
	margin-bottom: 40px;
	aspect-ratio: 2/1;
	padding: 20px;
	display: grid;
	gap: 10px;
	grid-template-areas: "edicao" "titulo" ;
	grid-template-columns: 1fr;
	align-content: start;
	align-items: center;
	justify-content: stretch;
	justify-items: stretch;	

}

#site-titulo #titulo {
	background: var(--azulgestao);
	color: #fff;
	border: 10px solid var(--turquesa);
	max-width: 650px;
	padding: 20px;
	display: block;
	grid-area: titulo;
	align-self: start;
	line-height: 1;
	font-weight: 900;
	font-size: 26px;
	text-decoration: none;
}

#site-titulo #edicao {
	color: var(--turquesa);
	letter-spacing: 0.2em;
	grid-area: edicao;
	align-self: center;
	justify-self: end;
	font-size: 26px;
}

@media only screen and (min-width: 600px) {

	#site-titulo #titulo {
		font-size: 32px;
	}

}

@media only screen and (min-width: 800px) {
	
	#site-titulo {
		background-position: center 120px;
		margin-top: 80px;
	}
	
	#site-titulo #titulo {
		font-size: 48px;
	}

}

@media only screen and (min-width: 1024px) {
	
	#site-titulo {
		aspect-ratio: 2.5/1;
	}
	
	#site-titulo #edicao {
		font-size: 50px;
	}

}


/* ----- MENU ------------------------------------------------------------------------ */

#conteudo-menu {
	width: 100%;
}

#menu-botao,
#menu-fechar {
	background: #fff;
	color: var(--azulgestao);
	position: absolute;
	right: 20px;
}

#menu-botao {
	top: 30px;
	z-index: 100;
}

#menu-fechar {
	background: none;
	border: none;
	top: 23px;
	z-index: 300;
}

#menu-fechar .hamburguer {
	font-size: 28px;
}

#menu-fechar span {
	display: inline-block;
	vertical-align: middle;
}

#menu-header {
	background: var(--cinza-clarissimo);
	border-bottom: 5px solid var(--azulgestao);
	box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
	padding: 40px 20px 0;
	position: absolute;
	top: 5px;
	left: 0;
	z-index: 200;
	grid-area: menu;
}

.menu-header {
	list-style: none;
	margin: 0;
}

.menu-header a {
	color: var(--azulgestao);
	border-bottom: 1px solid var(--azulgestao);
	width: 100%;
	padding: 10px;
	display: block;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.menu-header a:hover {
	color: var(--turquesa);
}

.menu-header li:last-of-type a {
	border: none;
}

@media only screen and (min-width: 1024px) {

	#menu-fechar {
		display: none;
	}

	#menu-header {
		background: transparent;
		border: none;
		box-shadow: none;
		width: fit-content;
		height: fit-content;
		margin: auto;
		padding-top: 10px;
		display: block;
		position: static;
		text-align: right;
		align-self: center;
		justify-self: start;
	}

	.menu-header li {
		display: inline-block;
	}

	.menu-header a {
		line-height: 1;
		border: none;
		width: auto;
		margin-left: 5px;
		display: inline-block;
	}

	.menu-header a:hover {
		background: #fff;
		color: var(--azulgestao)
	}
	
}


/* ----- CONTEÚDO -------------------------------------------------------------------- */

.imagem-topo {
	width: 100%;
}

#conteudo .bloco-home {
	padding: 40px 0 20px;
}


#conteudo .bloco-home:nth-child(even) {
	background: var(--cinza-clarissimo);
}

#conteudo .titulo-home {
	border-bottom: 5px solid var(--azulgestao);
	color: var(--turquesa);
	width: fit-content;
	margin: 0 0 2em;
	padding-bottom: 0.2em;
	font-size: 30px;
	font-weight: 900;
}

#conteudo .texto-home {
	word-break: break-word;
}

/* dúvidas frequentes */

#conteudo .bloco-home .duvidas-frequentes {
	background: #fff;
	padding: 40px 40px 20px;
}

#conteudo .bloco-home:nth-child(odd) .duvidas-frequentes {
	background: var(--cinza-clarissimo);
}

/* PDF */

.wp-block-file:not(.wp-element-button) {
	background-image: url(https://src.cijun.sp.gov.br/img/icones-arquivos/arquivo-pdf-16x16.png);
	background-repeat: no-repeat;
	background-position: center left;
	padding-left: 22px;
}

@media only screen and (min-width: 800px) {

	#conteudo .bloco-home {
		padding: 60px 0 40px;
	}

	#conteudo .titulo-home {
		font-size: 32px;
	}

}

@media only screen and (min-width: 1024px) {

	#conteudo .bloco-home {
		padding: 80px 0 60px;
	}

	#conteudo .titulo-home {
		font-size: 36px;
	}

}


/* ----- LISTA DE NOTÍCIAS ----------------------------------------------------------- */

#conteudo #imprensa {
	padding-bottom: 40px;
}

.noticias-lista {
	margin: 0 0 2em;
	list-style: none;
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	align-content: center;
    justify-items: center;
}

.noticias-lista a:link,
.noticias-lista a:visited {
	text-decoration: none;
}

.noticias-lista a:hover {
	color: var(--azulgestao);
	text-decoration: underline;
}

.noticias-lista .noticia-item {
	width: 100%;
	overflow: hidden;
}

.noticias-lista .noticia-data {
	color: #666;
	display: inline-block;
	font-size: 13px;
}

.noticias-lista .noticia-titulo {
	color: var(--azulgestao);
	margin: 0 0 0.3em;
	line-height: 1.3;
	font-weight: 600;
}

.noticias-lista .noticia-foto {
	background-color: #eee;
	background-position: center center;
	background-size: cover;
	margin-bottom: 0.5em;
	width: 100%;
	max-width: 100%;
	height: 250px;
}

.noticias-lista .noticia-resumo {
	display: none;
}

.nenhuma-noticia {
	text-align: center;
}

#imprensa .saiba-mais {
    background: var(--azulgestao);
    color: #fff;
	border-radius: 3px;
	width: fit-content;
	max-width: 250px;
    padding: 8px 8px 6px;
    display: inline-block;
    float: right;
    clear: both;
	line-height: 1;
    font-size: 14px;
	font-weight: 600;
	text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

@media only screen and (min-width: 600px) {

	.noticias-lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media only screen and (min-width: 900px) {

	.noticias-lista {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.noticias-lista .noticia-foto {
		height: 200px;
	}

}


/* ----- MENU SOCIAL ----------------------------------------------------------------- */

#menu-social-container {
	margin-top: 40px;
	margin-bottom: 20px;
}

#menu-social a{
	filter: invert(1);
}

@media only screen and (min-width: 1024px) {

	#menu-social-container {
		margin-top: 120px;
		margin-bottom: 0;
	}

}

/* ----- RODAPÉ ---------------------------------------------------------------------- */

#rodape {
	background: #fff;
	border-top: 1px solid #eee;
	margin-top: 0;
	padding-top: 40px;
	padding-bottom: 80px;
}

#rodape a:link,
#rodape a:visited {
	color: #000;
	text-decoration: underline;
}

#rodape .container {
	display: grid;
	gap: 40px;
}

#rodape .widget-titulo {
	color: #000;
	margin-bottom: 1em;
	font-size: 14px;
}

#rodape #realizacao {
	margin: 0 auto;
}

#desenvolvido-por {
	padding: 20px 20px 0;
}

#botao-topo {
	background: #000;
	position: fixed;
}

#botao-topo img {
	filter: invert(1);
}


@media only screen and (min-width: 1024px) {

	#rodape .container {
		margin-bottom: 60px;
		gap: 60px;
		grid-template-columns: 350px 1fr 200px;
	}

}