/*
Theme Name: Erika Sarti 4.0
Theme URI: https://erikasarti.com/
Author: Erika Sarti
Author URI: https://erikasarti.com/
Description: Layout do blog pessoal.
Version: 4.0
*/

/* ----- TABELA DE CORES -------------------------------------------------------- */

/* ----- RESET ------------------------------------------------------------------ */

* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	font-size: 100%;
	font: inherit;
}

html {font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}
body {font-size: 1em;}

blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}

table {border-collapse: collapse; border-spacing: 0;}
td {vertical-align: top;}

a:hover, a:active {outline: 0;}

p, pre {margin-bottom: 1.5em;}

strong, b {font-weight: bold;}
em, i {font-style: italic;}
pre, code, tt {font: 1em/1.5em monospace;}
sup {line-height: 100%; font-size: 70%; vertical-align: top;}
sub {line-height: 100%; font-size: 70%; vertical-align: bottom;}
small {font-size: 80%;}
del, strike {text-decoration: line-through;}

img {display: block; -ms-interpolation-mode: bicubic; vertical-align: middle;}

button, input, select, textarea {font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle;}
label {cursor: pointer;}
legend {border: 0; padding: 0; white-space: normal;}
button, input {line-height: normal;}
button, input[type="button"], input[type="reset"], input[type="submit"] {cursor: pointer; -webkit-appearance: button; *overflow: visible;}
button[disabled], input[disabled] {cursor: default;}
input[type="checkbox"], input[type="radio"] {box-sizing: border-box; padding: 0; *width: 13px; *height: 13px;}
input[type="search"] {-webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box;}
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {-webkit-appearance: none;}
button::-moz-focus-inner, input::-moz-focus-inner {border: 0; padding: 0;}
textarea {overflow: auto; vertical-align: top; resize: vertical;}

/* ----- ELEMENTOS GENERICOS ---------------------------------------------------- */

.clear {
	height: 0;
	clear: both;
}

.clearfix {
	overflow: auto;
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

.hidden {
	display: none;
}

.container {
	min-width: 300px;
	max-width: 1280px;
	margin: auto;
	padding: 0 20px;
}

.border-radius-5 {
	-webkit-border-radius: 5px;
	-moz-border-radius:    5px;
	border-radius:         5px;
}

.border-radius-10 {
	-webkit-border-radius: 10px;
	-moz-border-radius:    10px;
	border-radius:         10px;
}

/* ----- ACESSIBILIDADE --------------------------------------------------------- */

a:active,
a:focus {
	outline: 1px dotted #666;
}

/* https://make.wordpress.org/accessibility/handbook/markup/the-css-class-screen-reader-text/ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

#acessibilidade {
	position: absolute;
	left: -10000px;
	top: -10000px;
}

#acessibilidade-navegacao {
	list-style: none;
}

/* ----- APARÊNCIA -------------------------------------------------------------- */

body,
button,
input,
select,
textarea {
	background: #fff;
	color: #333;
}

a:link,
a:visited {
	color: var(--azul);
}

a:hover {
	color: var(--vermelho);
}

hr {
	background: #CCC;
	color: #CCC;
	border: none;
	margin: 5px auto 20px;
	height: 1px;
}

/* ----- IMAGENS E VÍDEOS ------------------------------------------------------- */

img {
	max-width: 100%;
	height: auto;
}

/* HTML antigo para elementos que não são blocos (como widgets) */

img.alignleft {
	float: left;
	margin: 0 1em 1em 0;
}

img.alignright {
	float: right;
	margin: 0 0 1em 1em;
}

img.aligncenter {
	margin: 1em auto;
}

/* imagens alinhadas à esquerda e à direita aparecem centralizadas no mobile */

@media only screen and (max-width: 600px) {

	.wp-block-image .alignleft,
	.wp-block-image .alignright {
		margin-left: auto;
		margin-right: auto;
		float: none;
		clear: both;
	}
	
}

iframe {
	max-width: 100%;
}

/* ----- TIPOGRAFIA ------------------------------------------------------------- */

html, * {
	font-family: 'Sarabun', sans-serif;
	font-weight: 400;
	font-size: 16px;
}

strong, b {
	font-weight: 600;
}

body {
	line-height: 1.4;
}

code, pre {
	color: #666;
	font-family: 'Roboto Mono', monospace;
	font-size: 90%;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1;
	font-weight: 600;
}

h2 {
	margin-bottom: 0.5em;
	font-size: 150%;
	font-weight: 600;
}

blockquote {
	color: #666;
	border-left: 2px solid #eee;
	margin-left: 2em;
	margin-bottom: 2em;
	padding-left: 1em;
	font-style: italic;
}

cite:before {
	content: '\2014 ';
}

@media only screen and (min-width: 1280px) {

	html, * {
		font-size: 18px;
	}

}

/* ----- FORMULARIOS ------------------------------------------------------------ */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="tel"],
input[type="password"],
textarea,
select {
	border: 1px solid #CCC;
	padding: 5px;
}

input[type="submit"] {
	background: #CCC;
	color: #000;
	border: 1px solid #BBB;
	padding: 5px;
	
	background: -moz-linear-gradient(top,  #cccccc 0%, #aaaaaa 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cccccc), color-stop(100%,#aaaaaa));
	background: -webkit-linear-gradient(top,  #cccccc 0%,#aaaaaa 100%);
	background: -o-linear-gradient(top,  #cccccc 0%,#aaaaaa 100%);
	background: -ms-linear-gradient(top,  #cccccc 0%,#aaaaaa 100%);
	background: linear-gradient(to bottom,  #cccccc 0%,#aaaaaa 100%);
}

input[type="submit"]:hover {
	background: #AAA;
	border: 1px solid #BBB;

	background: -moz-linear-gradient(top,  #aaaaaa 0%, #cccccc 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#aaaaaa), color-stop(100%,#cccccc));
	background: -webkit-linear-gradient(top,  #aaaaaa 0%,#cccccc 100%);
	background: -o-linear-gradient(top,  #aaaaaa 0%,#cccccc 100%);
	background: -ms-linear-gradient(top,  #aaaaaa 0%,#cccccc 100%);
	background: linear-gradient(to bottom,  #aaaaaa 0%,#cccccc 100%);
}

/* ----- CABEÇALHO -------------------------------------------------------------- */

#header {
	margin: 20px 0 60px;
	min-height: 120px;
}

#header .container {
	position: relative;
}

#blog-titulo {
	margin-bottom: 0.2em;
	font-size: 200%;
	font-weight: 800;
	text-align: center;
}

#blog-titulo a {
	display: block;
	text-decoration: none;
}

#blog-descricao {
	color: #666;
	margin-bottom: 1em;
	font-size: 90%;
	font-style: italic;
	text-align: center;
}

@media only screen and (min-width: 600px) {

	#header {
		margin: 40px 0 60px;
		min-height: 150px;
	}

}

@media only screen and (min-width: 1024px) {

	#header {
		min-height: fit-content;
	}

	#blog-titulo {
		text-align: left;
	}

	#blog-titulo {
		font-size: 300%;
	}

	#blog-descricao {
		font-size: 130%;
		text-align: left;
	}

}

/* ----- CAMPO DE BUSCA --------------------------------------------------------- */

#form-busca {
	width: calc(100% - 90px);
	position: absolute;
	top: 80px;
	right: 70px;
}

#form-busca input[type="text"],
#form-busca input[type="submit"]	{
	border-color: #ccc;
	padding: 10px;
}

#form-busca input[type="text"] {
	border-right: none;
	width: 85%;

	-webkit-border-bottom-left-radius: 5px;
	-webkit-border-top-left-radius:    5px;
	-moz-border-radius-topleft:        5px;

	-moz-border-radius-bottomleft:     5px;
	border-bottom-left-radius:         5px;
	border-top-left-radius:            5px;
}

#form-busca input[type="submit"] {
	background: #fff url(https://erikasarti.com/wp-content/themes/erika-sarti-4.0/images/busca.svg) no-repeat center center/20px 20px;
	color: transparent;
	border-left: none;
	width: 15%;

	-webkit-border-bottom-right-radius: 5px;
	-webkit-border-top-right-radius:    5px;
	-moz-border-radius-topright:        5px;

	-moz-border-radius-bottomright:     5px;
	border-bottom-right-radius:         5px;
	border-top-right-radius:            5px;
}

@media only screen and (min-width: 600px) {

	#form-busca {
		top: 100px;
	}

	#form-busca input[type="text"] {
		width: 90%;
	}

	#form-busca input[type="submit"] {
		width: 10%;
	}

}

@media only screen and (min-width: 1024px) {

	#form-busca {
		width: 450px;
		top: 60px;
	}

}

/* ----- MENU PRINCIPAL --------------------------------------------------------- */

#botao-menu {
	border: 1px solid #ccc;
	color: #666;
	width: auto;
	padding: 5px 4px 6px 8px;
	display: block;
	position: absolute;
	top: 80px;
	right: 20px;

	line-height: 1;
	text-decoration: none;
}

#botao-menu .hamburguer {
	font-size: 30px;
}

#botao-menu span {
	padding-right: 5px;
	display: inline-block;
	vertical-align: middle;
}

#menu-principal-container {
	display: none;
	clear: both;
}

#menu-principal {
	height: auto;
	margin-top: 80px;
	margin-bottom: 0;
	list-style: none;
}

#menu-principal a:link,
#menu-principal a:visited {
	color: #444;
	padding: 10px;
	display: block;
	border-bottom: 1px solid #ddd;
	text-decoration: none;
}

#menu-principal a:hover,
#menu-principal a:active {
	background: #444;
	color: #FFF;
	text-decoration: none;
}

#menu-principal li {
	border-bottom: 1px solid #ddd;
	display: inline;
}

/* segundo nível */
#menu-principal li ul a:link,
#menu-principal li ul a:visited {
	padding-left: 30px;
}

/* não mostra o terceiro nível no mobile */
#menu-principal li ul ul {
	display: none;
}

@media only screen and (min-width: 600px) {

	#botao-menu {
		top: 100px;
	}

	#menu-principal {
		margin-top: 100px;
	}

}

@media only screen and (min-width: 1024px) {

	#botao-menu {
		top: 60px;
	}

	#menu-principal {
		margin-top: 0;
	}

	#menu-principal-container {
		background: #fff;
		width: auto;
		max-width: 50%;
		min-width: 400px;
		position: absolute;
		top: 120px;
		right: 20px;
		z-index: 10;
		border: 1px solid #eee;
		border-bottom: 3px solid #999;
	}

}

/* ----- MENU SOCIAL ------------------------------------------------------------ */

.menu-social {
	list-style: none;
	margin: 0 auto;
	width: auto;
	display: table;
}

.menu-social li {
	display: table-cell;
}

.menu-social a {
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center center;
	width: 24px;
	height: 24px;
	margin: 5px;
	display: block;
	text-indent: -10000px;
}

/* https://www.iconfinder.com/iconsets/picons-social */

.menu-social .threads a {
	background-image: url(images/threads.svg);
}

.menu-social .instagram a {
	background-image: url(images/instagram.svg);
}

.menu-social .twitter a {
	/* background-image: url(https://erikasarti.com/wp-content/themes/erika-sarti-4.0/images/twitter.svg); */
	background-image: url(images/x.svg);
}

.menu-social .amazon a {
	background-image: url(images/amazon.svg);
}

#menu-social-header {
	display: none;
}

#menu-social-rodape {
	margin-bottom: 2em;
}

@media only screen and (min-width: 1024px) {

	#menu-social-header {
		display: block;
		position: absolute;
		top: 0;
		right: 20px;
	}

}

/* ----- CONTEÚDO --------------------------------------------------------------- */

.pagina h2 {
	margin-bottom: 1em;
}

.sharethis-inline-share-buttons {
	margin-top: 4em;
}

@media only screen and (min-width: 1280px) {

	.conteudo {
		float: left;
		width: 60%;
	}

}

/* ----- LISTA DE POSTS (INDEX.PHP) --------------------------------------------- */

.arquivo-posts {
	color: #999;
	margin-bottom: 2em;
	font-size: 120%;
}

#lista-posts .post {
	margin-bottom: 2em;
}

#lista-posts .post-titulo a:link,
#lista-posts .post-titulo a:visited {
	text-decoration: none;
}

#lista-posts .post-titulo a:hover,
#lista-posts .post-titulo a:active {
	text-decoration: underline;
}

/* categorias */

.post-categories,
.post-tags {
	display: inline-block;
	list-style: none;
	margin-top: 0.5em;
}

.post-categories li,
.post-tags li {
	display: inline-block;
}

.post-categories a,
.post-tags a {
	background: #888;
	color: #fff;
	border-radius: 3px;
	margin-right: 3px;
	padding: 3px 5px;
	display: inline-block;
	font-size: 70%;
	text-decoration: none;
}

/* ----- SINGLE.PHP ------------------------------------------------------------- */

.post-data {
	color: #666;
	margin: 2em 0;
	font-size: 80%;
}

.post .post-categories {
	margin-bottom: 2em;
}

/* ----- WIDGETS ---------------------------------------------------------------- */

.widget {
	margin-bottom: 2em;
}

.widget-titulo {
	margin-bottom: 0.5em;
	font-size: 120%;
	font-weight: 600;
}

.widget ul {
	list-style: none;
}

.widget li {
	margin-bottom: 0.3em;
}

.widget li:before {
	content: "\22C5 \00a0";
}

.widget li ul {
	margin-top: 0.3em;
	margin-left: 1em;
}

.widget_archive select,
.widget_categories select {
	width: 100%;
	max-width: 500px;
}

/* ----- SIDEBAR ---------------------------------------------------------------- */

#sidebar {
	border-top: 3px solid #999;
	margin-top: 2em;
	margin-bottom: 2em;
	padding-top: 2em;
}

@media only screen and (min-width: 1280px) {

	#sidebar {
		border-top: 0;
		width: 30%;
		margin-top: 0;
		padding-top: 0;
		float: right;
	}

}

/* ----- RODAPÉ ----------------------------------------------------------------- */

#rodape {
	margin-top: 2em;
	font-size: 90%;
	text-align: center;
}

#rodape a:link,
#rodape a:visited {
	text-decoration: none;
}

#rodape a:hover {
	text-decoration: underline;
}

@media only screen and (min-width: 1280px) {
	
	#rodape .container {
		border-top: 3px solid #999;
		padding-top: 2em;
	}
	
}

/* ----- PÁGINA 404 ------------------------------------------------------------- */

.erro-404-titulo,
.erro-404-texto {
	text-align: center;
}

.erro-404-titulo {
	margin-top: 4em;
	margin-bottom: 1em;
}

.erro-404-texto {
	margin-bottom: 8em;
}

/* ----- PAGINACAO -------------------------------------------------------------- */

.paginacao { /* funcao definida no functions.php */
	margin: 2em auto;
	display: table;
	clear: both;
}

.paginacao span,
.paginacao a {
	width: auto;
	padding: 5px 8px;
	display: block;
	float: left;
	font-weight: 600;
	font-size: 140%;
}

.paginacao a:link,
.paginacao a:hover,
.paginacao a:visited,
.paginacao a:active {
	text-decoration: none !important;
}
 
.paginacao a:hover {
	background: #000;
	color: #fff;
	text-decoration: none;
}

.paginacao .current {
	background: none;
	color: #999;
}

.paginacao .label {
	font-size: 90%;
	font-weight: normal;
}

.paginacao a.label {
	margin-top: 4px;
}

.paginacao .page {
	color: #666;
	padding: 12px 8px 4px 8px;
}

/* ----- ANÚNCIOS --------------------------------------------------------------- */

.widget-ad {
	background: #f5f5f5;
	width: auto;
	margin: 40px auto;
	padding: 10px;
	display: table;
}

.widget-ad-titulo {
	color: #666;
	margin: 0 0 0.3em;
	font-size: 10px;
}

.conteudo .google-auto-placed {
	margin-bottom: 1.5em;
}

/* ----- IMPRESSÃO -------------------------------------------------------------- */

.print {
	display: none;
}

@media print {

	.print {
		display: block;
	}

	.no-print {
		display: none !important;
	}

	.url {
		margin-bottom: 1em;
		text-align: left;
	}

	#header-impresso {
		height: auto;
		margin-bottom: 0.5em;
		font-size: 14pt;
		text-align: center;
	}

}