/*--------------------------------
	ExtraGeek Theme
	Francesco Mori - www.extrageek.com
	Compatibility: ExtraGeek-BlogEngine 4
	Colori presi dal logo del canale YouTube ExtraGeek.
----------------------------------*/

/*----------------------------
	Font: Open Sans (SIL Open Font License, fonts/OFL.txt), ospitato nel tema:
	nessuna richiesta ai server di Google, quindi nessun consenso necessario.
----------------------------*/

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(fonts/open-sans-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(fonts/open-sans-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url(fonts/open-sans-italic-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url(fonts/open-sans-italic-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*----------------------------
	Palette (dal logo)
----------------------------*/

:root {
	--eg-night: #0a1227;       /* sfondo, angoli del logo */
	--eg-deep: #0f1d3d;        /* interno delle lenti, campi dei moduli */
	--eg-card: #13244b;        /* riquadri */
	--eg-card-hover: #19305f;
	--eg-line: #28608c;        /* linee del circuito */
	--eg-line-soft: #21406e;
	--eg-sky: #38bdf8;         /* lenti e scritta EXTRA */
	--eg-sky-light: #7dd3fc;
	--eg-orange: #fb923c;      /* prompt >_ */
	--eg-orange-dark: #f97316;
	--eg-white: #f8fafc;       /* scritta GEEK */
	--eg-text: #dbe5f1;        /* testo dei post */
	--eg-muted: #94c5e6;       /* sottotitolo del banner */
	--eg-radius: 12px;
	color-scheme: dark;
}

body {
	color: var(--eg-text);
	background-color: var(--eg-night);
	background-image: url(images/circuit.svg), radial-gradient(ellipse at 50% 0%, #152750 0%, var(--eg-night) 70%);
	background-size: 360px 360px, 100% 100%;
	background-attachment: fixed;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--eg-white);
	line-height: 1.3;
}

a {
	color: var(--eg-sky);
	text-decoration: none;
}

a:hover {
	color: var(--eg-sky-light);
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--eg-orange);
	outline-offset: 2px;
}

img {
	border: none;
}

::selection {
	background: var(--eg-sky);
	color: var(--eg-night);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--eg-orange);
	color: var(--eg-night);
	padding: 8px 14px;
	z-index: 10;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

.hilite {
	background-color: rgba(251, 146, 60, 0.35);
	color: var(--eg-white);
}

.fade {
	color: #6b86a6;
}

/*
	Layout: al massimo 1200px, contenuto a sinistra e barra laterale fissa a 320px (annunci 300x250 compresi).
	Lo sfondo blu notte con il circuito resta visibile ai lati, come nel banner del canale.
*/
#all-document {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 20px 20px;
	box-sizing: border-box;
}

#body {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

#content {
	flex: 1 1 auto;
	min-width: 0;
}

#sidepanel {
	flex: 0 0 320px;
	width: 320px;
}

/*----------------------------
	Testata: occhiali + EXTRA GEEK
----------------------------*/

#header {
	text-align: center;
	padding: 34px 0 18px 0;
}

#header #logo {
	display: inline-block;
	max-width: calc(100% - 32px);
	text-decoration: none;
}

/* Logo orizzontale: EXTRA, gli occhiali, GEEK. */
#header #logo img {
	display: block;
	width: 520px;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
}

#header .tagline {
	margin: 14px 0 0 0;
	color: var(--eg-muted);
	font-size: 17px;
}

/*----------------------------
	Menu
----------------------------*/

#menu {
	background: rgba(15, 29, 61, 0.88);
	border: 1px solid var(--eg-line-soft);
	border-radius: var(--eg-radius);
	padding: 6px 10px;
	margin-bottom: 28px;
}

#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

#menu ul li a,
#menu ul li .welcome {
	display: block;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--eg-muted);
	border-radius: 8px;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

#menu ul li .welcome {
	color: var(--eg-orange);
}

#menu ul li a:hover,
#menu ul li a:focus {
	background-color: var(--eg-sky);
	color: var(--eg-night);
	text-decoration: none;
}

#menu ul li a.feed {
	color: var(--eg-orange);
}

#menu ul li a.feed:hover {
	background-color: var(--eg-orange);
	color: var(--eg-night);
}

/*----------------------------
	Riquadri comuni
----------------------------*/

.post,
#page,
.archive-page,
.contact-page,
.searchpage,
.error404,
#archive,
#contact,
#relatedPosts,
#commentlist #comment-form,
#comment-form,
div.widget {
	background: var(--eg-card);
	border: 1px solid var(--eg-line-soft);
	border-radius: var(--eg-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/*----------------------------
	Widget
----------------------------*/

div.widgetzone {
	padding: 0;
	background: none;
}

div.widget {
	padding: 14px 16px;
	font-size: 15px;
	margin-bottom: 18px;
	min-width: 1px;
	line-height: 1.45;
	color: var(--eg-text);
}

div.widget .content,
div.widget .widget-content {
	line-height: 1.45;
	color: var(--eg-text);
}

div.widget h4 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--eg-sky);
	border-bottom: 1px solid var(--eg-line);
	padding-bottom: 8px;
	margin: 0 0 8px 0;
}

div.widget h4:before {
	content: ">_ ";
	color: var(--eg-orange);
	font-family: Consolas, "Cascadia Mono", Menlo, monospace;
}

div.widget a.edit {
	font-size: 11px;
	font-weight: normal;
	float: right;
}

div.widget a.delete {
	font-weight: bold;
	color: var(--eg-muted);
	float: right;
	margin-left: 5px;
}

div.widget a.delete:hover {
	color: var(--eg-orange);
}

.widgetzone .widget ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.widgetzone .widget ul li {
	margin-bottom: 4px;
}

.widgetzone .pagelist ul ul {
	margin-left: 12px;
}

.widgetzone img.rssButton {
	margin-right: 3px;
}

.widget .post-item-list {
	list-style: none;
	margin: 0 0 6px 0;
	padding: 0;
}

.widget .post-item-img {
	display: none;
}

.widget h5.post-item-title {
	font-size: 1em;
	font-weight: normal;
	border: none;
	margin: 0;
}

.widget .post-item-desc {
	margin: 2px 0;
	color: var(--eg-muted);
}

.widget .post-item-date {
	display: block;
	color: var(--eg-muted);
	font-size: 13px;
}

/* Post recenti e Commenti recenti: una riga per elemento, con barra azzurra, titolo e data */
.widgetzone .widget ul.recent-posts {
	margin: 0 -4px;
}

.widgetzone .widget ul.recent-posts li {
	margin: 0;
	border-bottom: 1px solid var(--eg-line-soft);
}

.widgetzone .widget ul.recent-posts li:last-child {
	border-bottom: none;
}

.widget ul.recent-posts li a {
	display: block;
	padding: 8px 6px 8px 12px;
	border-left: 3px solid var(--eg-sky);
	margin: 6px 0;
	border-radius: 0 6px 6px 0;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.widget ul.recent-posts li a:hover,
.widget ul.recent-posts li a:focus {
	background: var(--eg-card-hover);
	border-left-color: var(--eg-orange);
	text-decoration: none;
}

.widget .recent-post-title {
	display: block;
	color: var(--eg-white);
	font-weight: 600;
	line-height: 1.35;
}

.widget ul.recent-posts li a:hover .recent-post-title {
	color: var(--eg-sky-light);
}

.widget .recent-post-desc {
	display: block;
	margin-top: 3px;
	color: var(--eg-text);
	font-size: 14px;
	line-height: 1.4;
}

.widget .recent-post-date {
	display: block;
	margin-top: 3px;
	color: var(--eg-muted);
	font-size: 13px;
}

.widget .recent-post-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 5px;
	border-radius: 6px;
}

.widget .recent-comment-author {
	display: block;
	color: var(--eg-white);
	font-weight: 600;
}

.widget .recent-comment-text {
	display: block;
	margin-top: 2px;
	color: var(--eg-text);
	font-style: italic;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.widget .recent-comment-text:before { content: "\201C"; }
.widget .recent-comment-text:after { content: "\201D"; }

.widget .recent-comment-post {
	color: var(--eg-sky);
}

.widget .recent-comments-feed {
	margin: 8px 0 0 0;
	font-size: 13px;
}

.widget .recent-comments-feed img {
	vertical-align: -2px;
}

/* Annunci */
div.widget.advertisement {
	text-align: center;
	overflow: hidden;
}

div.widget.advertisement .ad-label {
	display: block;
	font-size: 11px;
	color: var(--eg-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
}

/*----------------------------
	Post
----------------------------*/

.post {
	padding: 22px 26px;
	margin-bottom: 26px;
	line-height: 1.6;
}

.post .post-header {
	margin-bottom: 16px;
}

.post .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 8px 0;
	font-size: 14px;
	color: var(--eg-muted);
}

.post .post-meta .prompt {
	color: var(--eg-orange);
	font-family: Consolas, "Cascadia Mono", Menlo, monospace;
	font-weight: 700;
}

.post .post-meta .sep {
	color: var(--eg-line);
}

.post .post-meta a.author {
	color: var(--eg-muted);
	font-weight: 600;
}

.post .post-meta a.category {
	display: inline-block;
	padding: 1px 10px;
	border: 1px solid var(--eg-line);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--eg-sky);
}

.post .post-meta a.category:hover {
	background: var(--eg-sky);
	border-color: var(--eg-sky);
	color: var(--eg-night);
	text-decoration: none;
}

.post .post-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.2px;
	line-height: 1.25;
}

.post .post-title a {
	color: var(--eg-white);
}

.post .post-title a:hover {
	color: var(--eg-sky);
	text-decoration: none;
}

.post .text {
	font-size: 17px;
	line-height: 1.75;
	color: var(--eg-text);
	margin-bottom: 20px;
	overflow-wrap: break-word;
}

/* Gli articoli importati possono contenere colori scritti nel testo: sul fondo scuro restano leggibili */
.post .text [style*="color"],
#page [style*="color"] {
	color: inherit !important;
}

.post .text [style*="background"],
#page [style*="background"] {
	background: transparent !important;
}

.post .text [style*="border"],
#page [style*="border"] {
	border-color: var(--eg-line) !important;
}

.post .text table[style*="border"],
#page table[style*="border"] {
	border-width: 1px !important;
}

.post .text h2,
.post .text h3,
.post .text h4,
#page h2,
#page h3,
#page h4 {
	margin: 1.6em 0 0.5em 0;
}

.post .text h2,
#page h2 {
	font-size: 22px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--eg-line-soft);
}

.post .text h3,
#page h3 {
	font-size: 19px;
	color: var(--eg-sky-light);
}

.post .text strong,
.post .text b,
#page strong,
#page b {
	color: var(--eg-white);
}

.post .text a,
#page a {
	text-decoration: underline;
	text-decoration-color: rgba(56, 189, 248, 0.45);
	text-underline-offset: 3px;
}

.post .text a:hover,
#page a:hover {
	text-decoration-color: var(--eg-sky-light);
}

.post .text img,
#page img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.post .text iframe,
#page iframe {
	max-width: 100%;
	border-radius: 8px;
}

.post .text ul li::marker,
#page ul li::marker {
	color: var(--eg-orange);
}

.post .text blockquote,
#page blockquote {
	margin: 1.2em 0;
	padding: 10px 18px;
	border-left: 3px solid var(--eg-sky);
	background: var(--eg-deep);
	border-radius: 0 8px 8px 0;
	color: var(--eg-muted);
}

.post .text code,
#page code {
	font-family: Consolas, "Cascadia Mono", Menlo, monospace;
	font-size: 0.9em;
	padding: 1px 6px;
	background: var(--eg-deep);
	border: 1px solid var(--eg-line-soft);
	border-radius: 4px;
	color: var(--eg-orange);
}

.post .text pre,
#page pre {
	font-family: Consolas, "Cascadia Mono", Menlo, monospace;
	font-size: 14px;
	line-height: 1.5;
	padding: 14px 16px;
	background: var(--eg-night);
	border: 1px solid var(--eg-line);
	border-radius: 8px;
	overflow-x: auto;
	color: var(--eg-text);
}

.post .text pre code,
#page pre code {
	padding: 0;
	border: none;
	background: none;
	color: inherit;
}

.post .text table,
#page table {
	border-collapse: collapse;
	max-width: 100%;
	margin: 1em 0;
	font-size: 15px;
}

.post .text th,
.post .text td,
#page th,
#page td {
	border: 1px solid var(--eg-line);
	padding: 6px 10px;
}

.post .text th,
#page th {
	background: var(--eg-deep);
	color: var(--eg-white);
}

.post .text hr,
#page hr {
	border: none;
	border-top: 1px solid var(--eg-line);
	margin: 2em 0;
}

/* "Prosegue..." (marcatore [more]): pulsante arancio, come il prompt del logo */
.post .text a.more {
	display: inline-block;
	margin-top: 10px;
	padding: 9px 20px;
	background: var(--eg-orange);
	color: var(--eg-night);
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.post .text a.more:after {
	content: " \2192";
}

.post .text a.more:hover,
.post .text a.more:focus {
	background: var(--eg-orange-dark);
	color: var(--eg-night);
	text-decoration: none;
	box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25);
}

.post .ads-post-bottom {
	margin: 20px 0;
	text-align: center;
	overflow: hidden;
}

.post .tags {
	margin: 0 0 14px 0;
	font-size: 14px;
	color: var(--eg-muted);
}

.post .tags .label {
	font-weight: 600;
	margin-right: 4px;
}

.post .tags a {
	display: inline-block;
	margin: 2px 4px 2px 0;
	padding: 1px 9px;
	background: var(--eg-deep);
	border: 1px solid var(--eg-line-soft);
	border-radius: 6px;
	color: var(--eg-muted);
}

.post .tags a:hover {
	border-color: var(--eg-sky);
	color: var(--eg-sky);
	text-decoration: none;
}

.post .footer {
	font-size: 14px;
	border-top: 1px solid var(--eg-line-soft);
	padding-top: 12px;
	margin-top: 10px;
}

.post .social-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.post .social-share .label {
	font-weight: 600;
	color: var(--eg-muted);
	margin-right: 4px;
}

.post a.share {
	padding: 4px 11px;
	border-radius: 6px;
	border: 1px solid var(--eg-line);
	color: var(--eg-text);
	font-weight: 600;
	font-size: 13px;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.post a.share:hover {
	color: #ffffff;
	text-decoration: none;
}

.post a.share.whatsapp:hover { background: #25D366; border-color: #25D366; color: #0a1227; }
.post a.share.telegram:hover { background: #0088cc; border-color: #0088cc; }
.post a.share.x:hover { background: #000000; border-color: #f8fafc; }
.post a.share.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.post a.share.facebook:hover { background: #1877F2; border-color: #1877F2; }

.post .post-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--eg-line);
}

.post .post-links a {
	color: var(--eg-muted);
}

.post .post-links a.permalink {
	color: var(--eg-sky);
	font-weight: 600;
}

.post .rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px 0;
	font-size: 14px;
	color: var(--eg-muted);
}

.post .rating p {
	margin: 0;
	position: static;
}

.post .rating .star-rating {
	order: -1;
	flex: none;
}

/* Le stelline del voto sono immagini scure: invertite per il fondo blu notte (l'oro resta oro). */
.post .rating .star-rating {
	filter: invert(0.9) hue-rotate(180deg);
}

/*----------------------------
	Piè di pagina
----------------------------*/

#credits {
	margin-top: 30px;
	padding: 24px 0 10px 0;
	border-top: 1px solid var(--eg-line-soft);
	font-size: 13px;
	text-align: center;
	color: var(--eg-muted);
}

#credits img {
	opacity: 0.85;
}

#credits p {
	margin: 6px 0;
}

#credits .powered {
	color: #6b86a6;
}

/*----------------------------
	Post precedente / successivo
----------------------------*/

.post-nav {
	display: flex;
	gap: 15px;
	margin-bottom: 24px;
}

.post-nav a,
.post-nav .nav-empty {
	flex: 1 1 0;
	min-width: 0;
}

.post-nav a {
	display: block;
	padding: 12px 16px;
	background: var(--eg-card);
	border: 1px solid var(--eg-line-soft);
	border-radius: var(--eg-radius);
	text-decoration: none;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.post-nav a:hover,
.post-nav a:focus {
	background: var(--eg-card-hover);
	border-color: var(--eg-sky);
	text-decoration: none;
}

.post-nav a.nav-prev {
	border-left: 3px solid var(--eg-sky);
}

.post-nav a.nav-next {
	border-right: 3px solid var(--eg-sky);
	text-align: right;
}

.post-nav .nav-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--eg-orange);
	margin-bottom: 3px;
}

.post-nav .nav-title {
	display: block;
	color: var(--eg-white);
	font-weight: 600;
	line-height: 1.35;
}

/*----------------------------
	Post correlati
----------------------------*/

#relatedPosts {
	padding: 10px 18px;
	margin-bottom: 24px;
}

#relatedPosts ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#relatedPosts li {
	margin: 0 0 10px 0;
}

#relatedPosts li p {
	margin: 2px 0 0 0;
}

#relatedPosts span {
	color: var(--eg-muted);
	font-size: 13px;
}

/*----------------------------
	Pagine
----------------------------*/

#page,
.archive-page,
.contact-page,
.searchpage,
.error404,
#archive,
#contact {
	padding: 22px 26px;
	margin-bottom: 26px;
}

.page-global-title,
h2.post-list-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--eg-white);
	margin: 0 0 14px 0;
}

h2.post-list-title {
	padding: 0 4px;
}

#page h1 {
	margin-top: 0;
	font-size: 26px;
	font-weight: 800;
}

#page {
	font-size: 17px;
	line-height: 1.75;
}

/*----------------------------
	Archivio
----------------------------*/

#archive h2 {
	font-size: 17px;
	color: var(--eg-sky);
	border-bottom: 1px solid var(--eg-line);
	margin: 22px 0 6px 0;
	padding-bottom: 4px;
}

#archive h2 img,
#archive h3 img {
	margin-right: 5px;
	vertical-align: middle;
}

#archive h3 {
	font-size: 15px;
	border-bottom: 1px dotted var(--eg-line);
	margin: 15px 0 5px 0;
}

#archive ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#archive table {
	width: 100%;
	border-collapse: collapse;
}

#archive table td,
#archive table th {
	padding: 4px 6px;
	text-align: left;
}

#archive table th {
	color: var(--eg-muted);
	font-weight: 600;
}

#archive table td {
	border-bottom: 1px solid var(--eg-line-soft);
}

#archive .date {
	white-space: nowrap;
	width: 100px;
	color: var(--eg-muted);
}

#archive .comments,
#archive .rating {
	text-align: center;
	width: 60px;
}

/*----------------------------
	Ricerca
----------------------------*/

#searchbox {
	display: flex;
	gap: 6px;
}

#searchbox input[type="text"],
#searchbox input[type="search"],
#searchbox #txt-search {
	flex: 1 1 auto;
	min-width: 0;
}

.searchresult {
	margin-bottom: 18px;
}

.searchresult a {
	font-weight: 700;
	font-size: 17px;
}

.searchresult span.text {
	display: block;
}

.searchresult span.type,
.searchresult span.url {
	display: block;
	color: var(--eg-muted);
	font-size: 13px;
}

/*----------------------------
	Tag cloud
----------------------------*/

.tagcloud ul, ul.tagcloud {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tagcloud li {
	display: inline;
	margin-right: 6px;
}

.tagcloud a.biggest { font-size: 150%; color: var(--eg-orange); }
.tagcloud a.big { font-size: 125%; }
.tagcloud a.medium { font-size: 105%; }
.tagcloud a.small { font-size: 90%; color: var(--eg-muted); }
.tagcloud a.smallest { font-size: 80%; color: var(--eg-muted); }

/*----------------------------
	Calendario
----------------------------*/

.calendar {
	width: 100%;
}

.calendar .weekend {
	background: var(--eg-deep);
}

.calendar .other {
	color: #4d6b8f;
}

.calendar a.exist {
	font-weight: bold;
	color: var(--eg-orange);
}

.calendar td {
	text-align: center;
}

/*----------------------------
	Contatti
----------------------------*/

#contact label {
	display: block;
	padding-top: 8px;
	color: var(--eg-muted);
}

#contact input.field,
#contact input[type="text"],
#contact input[type="email"] {
	width: 340px;
	max-width: 100%;
}

#contact textarea {
	display: block;
	overflow: auto;
	width: 100%;
	height: 170px;
	margin: 0;
	box-sizing: border-box;
}

/*----------------------------
	Commenti
----------------------------*/

#commentlist {
	padding-top: 10px;
}

.comment {
	padding: 5px 0;
	margin-bottom: 12px;
}

.comment_header {
	min-height: 36px;
	display: block;
	padding: 0 10px;
	background-color: var(--eg-card);
	border-radius: 8px 8px 0 0;
	border: 1px solid var(--eg-line-soft);
}

.comment_header:after {
	content: "";
	display: table;
	clear: both;
}

.comment_body {
	padding: 0 10px;
	background-color: var(--eg-deep);
	border-radius: 0 0 8px 8px;
	border: 1px solid var(--eg-line-soft);
	border-top: none;
}

.comment .gravatar {
	float: left;
	margin: 5px 10px 5px 0;
}

.comment .gravatar img {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	border: 1px solid var(--eg-line);
	margin: 0;
	padding: 0;
}

.comment img.flag {
	margin-left: 5px;
}

.visitor {
	padding: 9px 0;
	color: var(--eg-white);
	font-weight: 600;
}

.visitor .date {
	float: right;
	font-size: 13px;
	font-weight: normal;
	color: var(--eg-muted);
}

.comment .content {
	min-height: 25px;
	margin: 1px;
	padding: 8px 2px;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-line;
}

.comment .author {
	margin: 0;
	padding: 3px 2px 6px 2px;
	font-size: 14px;
	min-height: 16px;
}

.comment .author .reply {
	float: right;
}

.self .comment_header {
	border-left: 3px solid var(--eg-orange);
}

.self .comment_body {
	border-left: 3px solid var(--eg-orange);
}

.comment-replies {
	padding: 0 0 0 18px;
	margin: 8px 0 0 6px;
	border-left: 2px solid var(--eg-line);
}

#addcomment, #comment {
	font-size: 120%;
	font-weight: 700;
	color: var(--eg-white);
}

#commentlist #comment-form,
#comment-form {
	padding: 16px;
	margin: 12px 0;
}

.commentForm textarea {
	width: 100%;
	height: 160px;
	box-sizing: border-box;
}

.commentForm label {
	display: block;
	padding-top: 6px;
	color: var(--eg-muted);
}

.commentForm input[type="text"],
.commentForm input[type="email"] {
	width: 340px;
	max-width: 100%;
	margin: 2px 0;
}

.commentForm select {
	width: 352px;
	max-width: 100%;
}

/*----------------------------
	Campi e pulsanti
----------------------------*/

select,
textarea,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"] {
	box-sizing: border-box;
	max-width: 100%;
	padding: 7px 10px;
	font: inherit;
	font-size: 15px;
	color: var(--eg-white);
	background: var(--eg-deep);
	border: 1px solid var(--eg-line);
	border-radius: 8px;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="password"]:focus {
	border-color: var(--eg-sky);
	outline: none;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

::placeholder {
	color: #6b86a6;
}

input[type="submit"], input[type="button"], button {
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--eg-night);
	background: var(--eg-sky);
	border: 1px solid var(--eg-sky);
	border-radius: 8px;
	padding: 7px 16px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover {
	background: var(--eg-sky-light);
	border-color: var(--eg-sky-light);
}

input[type="file"] {
	color: var(--eg-text);
}

/*----------------------------
	Paginazione
----------------------------*/

#PostPager {
	list-style: none;
	margin: 10px 0 24px 0;
	padding: 0;
	text-align: center;
}

#PostPager li {
	display: inline-block;
	margin: 0 3px;
	padding: 4px 10px;
	border: 1px solid var(--eg-line-soft);
	border-radius: 6px;
	background: var(--eg-card);
}

#PostPager li.PagerLinkCurrent {
	font-weight: bold;
	background: var(--eg-orange);
	border-color: var(--eg-orange);
	color: var(--eg-night);
}

#PostPager li.PagerLinkDisabled {
	color: #4d6b8f;
}

/*--------------------------------
	Schermi piccoli
----------------------------------*/

@media screen and (max-width: 900px) {
	body {
		background-attachment: scroll;
	}

	#all-document {
		padding: 0 12px 12px 12px;
	}

	#body {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	#content,
	#sidepanel {
		flex: none;
		width: 100%;
	}

	#header {
		padding: 22px 0 12px 0;
	}

	#header #logo img {
		width: 340px;
	}

	#header .tagline {
		font-size: 15px;
	}

	#menu {
		margin-bottom: 18px;
	}

	#menu ul li a,
	#menu ul li .welcome {
		padding: 6px 10px;
	}

	.post,
	#page,
	.archive-page,
	.contact-page,
	.searchpage,
	.error404,
	#archive,
	#contact {
		padding: 16px;
	}

	.post .post-title {
		font-size: 22px;
	}

	.post-nav {
		flex-direction: column;
		gap: 10px;
	}

	.post-nav .nav-empty {
		display: none;
	}

	/* Le immagini affiancate al testo vanno sopra il testo, centrate. */
	.post .text [style*="float"],
	#page [style*="float"],
	.post .text img,
	#page img {
		float: none !important;
		display: block !important;
		margin: 10px auto !important;
	}

	.post .text table,
	#page table {
		display: block;
		overflow-x: auto;
	}
}
