/* Theme Name: Gabriele Romanato
 * Author: Gabriele Romanato
 * Version: 1.0
*/

@import url('icons.css');
@import url('highlight.css');
@import url('devicon/devicon.min.css');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-size: 100%;
	list-style: none;
	font-family: inherit;
}

html {
	font-size: 21px;
}

@media screen and (max-width: 768px) {
	html {
		font-size: 18px;
	}
}

:root {
	--primary-color: #f2849e;
	--secondary-color: #f2849e;
	--tertiary-color: #ff8d5e;
	--quaternary-color: #ff9c5c;
	--quinary-color: #ffab5b;
	--senary-color: #ffba59;
	--septenary-color: #ffc958;
	--octonary-color: #ffd857;
	--nonary-color: #ffe756;
	--denary-color: #fff655;
	--error-color: #d00000;
	--success-color: #00a000;
	--light-gray: #f6f6f6;
	--medium-gray: #e0e0e0;
	--dark-gray: #585858;
	--black: #000;
	--white: #fff;
	--font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
	--font-family-secondary: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
	--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	--font-size: 1rem;
	--font-weight: 300;
	--line-height: 1.75;
	--letter-spacing: 0.1rem;
	--border-radius: 0.25rem;
	--transition: all 0.3s linear;
	--max-width: 1170px;
	--fixed-width: 620px;
	--small-spacing: 0.25rem;
	--medium-spacing: 0.5rem;
	--large-spacing: 1rem;
	--extra-large-spacing: 2rem;
}

*:focus,
*:active {
	outline: none;
	box-shadow: none;
	color: inherit;
}



body {
	background: var(--white);
	color: var(--dark-gray);
	font-family: var(--font-family);
	line-height: var(--line-height);
	font-size: var(--font-size);
	font-weight: var(--font-weight);
}

@media (min-width: 768px) {
	html, body {
		min-height: 100vh;
		height: 100%;
	}

	#site {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	#site-info {
		margin-top: auto;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family);
}

a {
	text-decoration: none;
}

a:not([class]):hover {
	text-decoration: underline;
}

a:not([class]) {
	color: var(--primary-color);
}

h1 {
	font-weight: 900;
}

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

button {
	cursor: pointer;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
}

figure a,
figure a:hover {
	display: block;
	text-decoration: none;
}

.container {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--max-width);
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.container {
		padding: 0;
	}
}

.button,
.read-more {
	background: var(--dark-gray);
	border: none;
	color: var(--white);
	cursor: pointer;
	display: inline-block;
	font-size: 0.8em;
	font-weight: 900;
	line-height: 3.45em;
	height: 3.5em;
	padding: 0 1.25em 0 1.6em;
	text-align: center;
	text-transform: uppercase;
	transition: var(--transition);
	text-decoration: none;
	border-radius: 4px;
	letter-spacing: 0.35em;
	font-family: var(--font-family);
}

.button:hover,
.read-more:hover {
	background: var(--secondary-color);
	text-decoration: none;
}

.button-alt {
	background: var(--white);
	color: var(--dark-gray);
	border: 1px solid var(--dark-gray);
}
.button-alt:hover {
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	background: var(--white);
}

.section-intro {
	padding: 2.5rem 0 0 0;
	text-align: center;
}

body.single .section-intro {
	padding: 2.5rem 0;
}

.section-title {
	font-size: 2.75em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1em 0;
	letter-spacing: -0.035em;

}

.section-header {
	margin-bottom: var(--large-spacing);
}

.section-header h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: var(--medium-spacing);
}

.section-header p {
	line-height: 1.7;
}

.section-image {
	margin: 1.2rem 0;
	height: 380px;
	overflow: hidden;
}

.section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	max-width: initial;
}

.flex {
	display: flex;
	flex-wrap: wrap;
}

.flex-middle {
	align-items: center;
}

.flex-between {
	justify-content: space-between;
}

.flex-center {
	justify-content: center;
}

.section-vpadding {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.section-vmargin {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.none {
	display: none !important;
}

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

.bg-alt {
	background: var(--light-gray);
}

#site-header {
	width: 100%;
}

#site-logo {
	margin-right: 2em;
}

#site-logo svg text {
	fill: #000 !important;
}

#site-logo a {
	display: block;
	width: 60px;
	height: 60px;
	text-decoration: none;
}

#site-logo img,
#site-logo svg {
	width: 100%;
	height: 100%;
	display: block;
}

#content {
	width: 100%;
}

#site-info {
	padding: 2rem 0;
	color: var(--dark-gray);
}

#copyright {
	text-align: center;
	margin-bottom: 1rem;
	font-size: 0.85rem;
}

#copyright a {
	color: var(--dark-gray);
	text-decoration: none;

}

#copyright a:hover {
	color: var(--dark-gray);
	text-decoration: none;
}

#social {
	justify-content: center;
}

#social li {
	margin-left: 1rem;
	display: block;
}

#social a {
	color: var(--dark-gray);
	text-decoration: none;
	display: block;
}

#social a:hover {
	color: var(--dark-gray);
	text-decoration: none;
}

#oops figcaption {
	margin-top: 2rem;
	text-align: center;
	font-size: 2rem;
	font-weight: bold;
	color: #999;
}

#oops figcaption:after {
	content: ":-(";
	display: inline-block;
	margin-left: 1rem;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: var(--large-spacing);
	margin: 2.5rem 0;
	padding: 1rem var(--large-spacing);
	background-color: #f5f5f5;
}

.grid .card {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
	padding: var(--large-spacing);
	transition: var(--transition);
	font-size: 18px;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.grid .card .card-image {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: var(--medium-spacing);
}

.grid .card .card-image img {
	display: block;
	max-width: 50%;
	height: auto;
}

.grid .card:hover {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.grid .card > * {
	flex: 1;
}

.grid .card h2 {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 var(--medium-spacing) 0;
	letter-spacing: -0.035em;
}

.grid .card p {
	line-height: 1.7;
	margin-bottom: var(--medium-spacing);
}

.grid .card a {
	display: inline-block;
}

.grid .card .card-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: var(--medium-spacing);
}

.pagination {
	display: flex;
	align-items: center;
	margin-top: 2.5rem;
	justify-content: center;
}

.pagination a {
	display: block;
	padding: 0.5rem 1rem;
	margin-right: 0.5rem;
	border: 1px solid #ccc;
	color: #000;
	text-decoration: none;
}

.pagination a:hover {
	background: #f6f6f6;
	text-decoration: none;
}

.site-contact {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 100%;
	min-height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	overflow: auto;
	z-index: 9998;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	display: none;
}

.site-contact.visible {
	display: flex;
}

.form-loader {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9999;
}

.form-loader.visible {
	display: block;
}

.form-loader .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, 0.2);
	border-top-color: #000;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#site-contact-close {
	position: absolute;
	right: 0;
	top: 0;
	cursor: pointer;
	padding: 10px;
	color: #fff;
	font-size: 1.5em;
}

.site-contact-container {
	padding: 16px;
	background: #fff;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;
}

.form-group {
	margin-bottom: 16px;
	font-size: 16px;
}

.form-group label {
	display: block;
	margin-bottom: 0.5em;
	color: #000;
}

.form-group input,
.form-group textarea {
	display: block;
	width: 100%;
	padding: 0.5em;
	border: 1px solid #ddd;
	font-size: 1em;
	color: #000;
}

.form-group textarea {
	min-height: 100px;
}

#contact-form button[type="submit"] {
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 8px 16px;
	font-size: 16px;
	cursor: pointer;
}

#captcha-question {
	margin-bottom: 0.5em;
	font-size: 16px;
	color: #000;
}

.form-message {
	margin: 11px 0;
	font-size: 14px;
}

.form-message.success {
	color: var(--success-color);
}

.form-message.error {
	color: var(--error-color);
}

article.single-app {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.single-app-image {
	margin: 1.2rem 0;
}

.single-app-image-thumbnail {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.single-app-title {
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1em 0;
}

.single-app-content {
	line-height: 1.7;
}

.single-app-actions {
	margin-top: 2.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.single-app-meta {
	display: flex;
	align-items: center;
	margin-top: 1.2rem;
}

.single-app-meta-item {
	margin-right: 0.5rem;
	padding: 0.2rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--dark-gray);
	background-color: #f0f0f0;
}

@media (min-width: 768px) {
	.single-app-wrapper {
		display: flex;
		flex-wrap: wrap;
	}
	.single-app-image {
		width: 30%;
	}
	.single-app-details {
		width: 70%;
		padding-left: 2rem;
	}
	.single-app-content {
		font-size: 1.2em;
	}
}

.single-app-listing {
	margin-top: 2.5rem;
	padding-top: 0.5em;
	border-top: 1px solid #ddd;
	font-size: 16px;
}

.file-item {
	margin-bottom: 1em;
	padding: 0 0 0.5em 0;
	border-bottom: 1px solid #ddd;
}
.file-item a,
.file-item a:hover {
	text-decoration: none;
	color: var(--dark-gray);
}

.file-viewer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	overflow: auto;
	z-index: 9998;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.file-viewer.visible {
	display: flex;
}
.file-viewer-close {
	position: absolute;
	right: 0;
	top: 0;
	cursor: pointer;
	padding: 10px;
	color: #fff;
	font-size: 1.5em;
}

.file-viewer-content {
	padding: 16px;
	background: #fff;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;
	max-height: 400px;
	overflow-y: auto;
}

@media (min-width: 768px) {
	.file-viewer-content {
		max-width: 600px;
		width: 600px;
	}
}

.file-viewer-content pre,
.file-viewer-content code {
	display: block;
	white-space: pre-wrap;
	word-break: break-word;
	font: 16px/1.5 var(--font-family-monospace);
}