/*
Theme Name: FENS 2024
Theme URI: https://jundiai.sp.br/fens
Author: CIJUN
Author URI: https://cijun.sp.gov.br/
Description: Hotsite da Feira do Empreendedor, Negócios e Serviços
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 ----------------------------------------------------------- */

a:link,
a:visited {
	color: var(--azul);
}

a:hover {
	color: var(--azulgestao);
}

/* ----- 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: var(--azulgestao);
	color: #fff;
	box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
	width: 100%;
	padding: 20px;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}

#header .container {
	padding: 0;
	display: grid;
	gap: 0;
	/* grid-template-areas: "logotipo logotipo menu"; */
	grid-template-areas: ". . menu";
	grid-template-columns: 120px 1fr;
	align-content: center;
	align-items: center;
	justify-content: stretch;
	justify-items: stretch;	
	
	height: 30px;
}

#site-titulo {
	background-image: url(images/logo-fens-3ano.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center center;
	aspect-ratio: 50 / 28;
	display: block;
	width: 80px;
	grid-area: logotipo;
	text-indent: -1000px;
	
	display: none;
}

.imagem-topo {
	width: 100%;
}

/* FENS nos Bairros */
.bairros #site-titulo {
	background-image: url(images/fens-nos-bairros-oeste.png);
	aspect-ratio: 10.7 / 7.3;
}

@media only screen and (min-width: 1024px) {

	#header .container {
		padding: 0 10px;
		gap: 40px;
		/* grid-template-areas: "logotipo menu"; */
		grid-template-areas: "menu";
		/* grid-template-columns: 150px 1fr; */
		grid-template-columns: 1fr;
		align-content: center;
	}
	
	#site-titulo {
		width: 150px;
	}
	
}


/* ----- MENU ------------------------------------------------------------------------ */

#conteudo-menu {
	width: 100%;
	grid-area: menu;
	align-self: center;
	justify-self: center;
}

#menu-botao,
#menu-fechar {
	color: #fff;
	position: absolute;
	right: 20px;
}

#menu-botao {
	top: 20px;
	z-index: 100;
}

#menu-fechar {
	background: none;
	border: none;
	top: 15px;
	z-index: 300;
}

#menu-fechar .hamburguer {
	font-size: 28px;
}

#menu-fechar span {
	display: inline-block;
	vertical-align: middle;
}

#menu-header {
	background: var(--azulgestao);
	padding: 20px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 200;
}

.menu-header {
	list-style: none;
	margin: 0;
}

.menu-header a {
	color: #fff;
	border-bottom: 1px solid #ffffff50;
	width: 100%;
	padding: 10px;
	display: block;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.menu-header li:last-of-type a {
	border: none;
}

@media only screen and (min-width: 1024px) {

	#conteudo-menu {
		align-self: end;
		padding-top: 20px;
	}
	
	#menu-fechar {
		display: none;
	}

	#menu-header {
		height: fit-content;
		padding-top: 0;
		display: block;
		position: static;
		text-align: right;
		
		background: transparent;
		width: fit-content;
		margin: auto;
	}

	.menu-header li {
		display: inline-block;
	}

	.menu-header a {
		line-height: 1;
		border: none;
		border-radius: 5px;
		width: auto;
		margin-left: 5px;
		display: inline-block;
	}

	.menu-header a:hover {
		background: #fff;
		color: var(--azulgestao)
	}
	
}


/* ----- CONTEÚDO -------------------------------------------------------------------- */

#conteudo .bloco-home {
	padding: 40px 0 20px;
}


#conteudo .bloco-home:nth-child(even) {
	background: var(--cinza-clarissimo);
}

#conteudo .titulo-home {
	border-bottom: 1px solid var(--azulgestao);
	color: var(--azulgestao);
	margin: 0 0 2em;
	padding-bottom: 0.2em;
	font-size: 22px;
	font-weight: 600;
	text-transform: uppercase;
}

#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 */

#conteudo .texto-home p a[href$=".pdf"]:not(#conteudo .texto-home .wp-block-file__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;
}

/* Depoimentos */

.wp-block-group.depoimentos {
	max-width: 700px;
	margin: auto;
}

.wp-block-group.depoimentos .wp-block-columns {
	gap: 20px;
}

.wp-block-group.depoimentos .wp-block-quote {
	border-left: 0;
	margin-left: 0;
	padding-left: 0;
	position: relative;
	z-index: 40;
}

.wp-block-group.depoimentos .wp-block-quote:before
/* .wp-block-group.depoimentos .wp-block-quote:after */ {
	content: ' ';
	background: url(images/quote.svg) no-repeat center center/100% 100%;
    width: 100px;
	height: 100px;
	display: block;
    position: absolute;
	z-index: -10;
    opacity: 0.2;
}


.wp-block-group.depoimentos .wp-block-quote:before {
    top: -40px;
    left: -40px;
	transform: scaleX(-1);
}

/*
.wp-block-group.depoimentos .wp-block-quote:after {
    bottom: -10px;
    right: -20px;
}
*/

.wp-block-group.depoimentos .wp-block-quote p:last-of-type {
	margin-bottom: 0.5em;
}

.wp-block-group.depoimentos .wp-block-quote cite {
	color: #000;
	font-style: normal;
	font-weight: 600;
}

@media only screen and (min-width: 800px) {

	#conteudo .bloco-home {
		padding: 60px 0 40px;
	}

	#conteudo .titulo-home {
		font-size: 28px;
	}

}

@media only screen and (min-width: 1024px) {

	#conteudo .bloco-home {
		padding: 80px 0 60px;
	}

	#conteudo .titulo-home {
		font-size: 36px;
	}

}


/* ----- SLIDESHOW DA HOME ------------------------------------------------------ */

/*
#slideshow .container {
	padding-left: 60px;
	padding-right: 60px;
}
*/

.glider-contain {
	max-width: 99%;
}

/* ----- DÚVIDAS FREQUENTES ---------------------------------------------------------- */

#visitante summary {
    background: #f5f5f5;
    border: 1px solid #eee;
    margin-bottom: 0.5em;
    padding: 5px 15px;
    font-weight: 600;
}


/* ----- 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 {
	margin-bottom: 0.3em;
	line-height: 1.3;
	font-size: 18px;
	font-weight: 600;
}

.noticias-lista .noticia-foto {
	background-color: #eee;
	background-position: center center;
	background-size: cover;
	margin-bottom: 1em;
	width: 100%;
	max-width: 100%;
	height: 250px;
}

.noticias-lista .wp-post-image {
	width: 100px;
	height: auto;
	margin: 0 10px 10px 0;
	float: left;
}

.nenhuma-noticia {
	text-align: center;
}

#imprensa .saiba-mais {
    background: var(--azulgestao);
    color: #fff;
	border-radius: 3px;
	width: fit-content;
	max-width: 250px;
    padding: 5px 8px;
    display: inline-block;
    float: right;
    clear: both;
    font-size: 14px;
	font-weight: 600;
	text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

@media only screen and (min-width: 740px) {

	.noticias-lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media only screen and (min-width: 1024px) {

	.noticias-lista {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.noticias-lista .noticia-foto {
		height: 200px;
	}

}


/* ----- PARCEIROS (APOIO) ------------------------------------------------------ */

#parceiros .parceiros {
	color: #999;
	margin: 0 auto;
	text-align: center;
}

#parceiros .parceiros {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-content: center;
	justify-items: center;
	align-items: center;
}

#parceiros img {
	width: 100%;
	max-width: 80px;
	height: auto;
	margin: 0 auto;
	display: block;
}

@media only screen and (min-width: 480px) {

	#parceiros .parceiros {
		grid-template-columns: repeat(4, 1fr);
	}

}

@media only screen and (min-width: 600px) {

	#parceiros .parceiros {
		grid-template-columns: repeat(5, 1fr);
	}

}

@media only screen and (min-width: 800px) {

	#parceiros .parceiros {
		grid-template-columns: repeat(8, 1fr);
	}

}

@media only screen and (min-width: 1024px) {

	#parceiros .parceiros {
		grid-template-columns: repeat(6, 1fr);
	}

}


/* ----- 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;
}

#rodape #realizacao .logos {
	width: 300px;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
}

#rodape .brasao,
#rodape .jundiai-empreendedora {
	width: 100%;
	max-width: 150px;
	margin: auto;
}

#rodape .brasao {
	aspect-ratio: 48 / 13;
}

#rodape .jundiai-empreendedora {
	background-image: url(images/jundiai-empreendedora.png);
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	aspect-ratio: 25 / 14;
	display: block;
	text-indent: -10000px;
}

#desenvolvido-por {
	padding: 20px 20px 0;
}

#botao-topo {
	background: #000;
	position: fixed;
}

#botao-topo img {
	filter: invert(1);
}

#botao-whatsapp {
	background: url(//src.cijun.sp.gov.br/img/icones-sociais/icone-colorido-whatsapp.svg) no-repeat center center/100% 100%;
	width: 60px;
	height: 60px;
	display: block;
	position: fixed;
	bottom: 20px;
	right: 20px;
	text-indent: -10000px;
}

@media only screen and (min-width: 1024px) {

	#rodape .container {
		margin-bottom: 60px;
		gap: 60px;
		grid-template-columns: 350px 1fr 200px;
	}

	#rodape .widget-titulo {
		margin-bottom: 1.5em;
	}

	#rodape #realizacao .logos {
		width: 350px;
		gap: 40px;
	}

}