/*======================================
Theme Name: Pikaia
Theme URI: https://www.pikaia.eu/
Description: Tema per Pikaia. Derivato da Dynamic News Lite di ThemeZee. Versione 2: compatibile con PHP 8.4, responsive, slider In evidenza integrato.
Version: 2.1.1
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Author: ilcetti
Author URI: https://blog.ilcetti.it
Tags: two-columns, right-sidebar, left-sidebar, custom-background, custom-header, custom-logo, custom-menu, editor-style, featured-images, full-width-template, threaded-comments, theme-options
Text Domain: pikaia
Domain Path: /languages/
License: GNU General Public License v2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
======================================*/


/* CSS Reset | http://meyerweb.com/eric/tools/css/reset/ | v2.0
-------------------------------------------------------------- */
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,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* General Styles
-------------------------------------------------------------- */
html {
	font-size: 100.01%;
}
body {
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	font-size: 1em;
	border: 0;
	color: #000;
	background-color: #e5e5e5;
/*background: #6699cc;
background: -moz-linear-gradient(top, #fff 0%, #6699cc 100%) ;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#6699cc)) ;
background: -webkit-linear-gradient(top, #fff 0%,#6699cc 100%) ;
background: -o-linear-gradient(top, #fff 0%,#6699cc 100%);
background: -ms-linear-gradient(top, #fff 0%,#6699cc 100%) ;
background: linear-gradient(to bottom, #fff 0%,#6699cc 100%) ;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#6699cc',GradientType=0 );*/
}

/* Links */
a, a:link, a:visited{
	color: #2C5886;
	text-decoration: none;
}
a:hover, a:active {
	color: #cc9900;
	text-decoration: underline;
}

/* Form Elements */
input, textarea {
	padding: 0.7em;
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1.0em;
	color: #6699cc;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
}
input[type="submit"] {
	border: none;
	color: #fff;
	background: #6699cc;
}
input[type="submit"]:hover {
	background-color: #303030;
	cursor: pointer;
}

/* Clearing Floats */
.clearfix:before, .clearfix:after {
	content: " ";
	display: table;
}
.clearfix:after {
	clear: both;
}
.clearfix {
}

/* Make Form Elements responsive */
input, textarea, select {
	max-width: 100%;
}

/* Basic Structure
-------------------------------------------------------------- */
#wrapper {
	max-width: 1280px;
	width: 93%;
	margin: 0 auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: #fff;
}
#header-wrap {
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	background-image: url(../../uploads/2014/12/sfondo_testata_frattale1.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
#header {
	padding: 0.6em 1.5em 0px 5em;
}
#wrap {
	clear: both;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;		
	padding: 0 1.5em 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#content {
	
	float: left;
	width: 70%;
	padding-right: 1.5em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#sidebar {

	float: right;
	width: 29%;
}

/* Header
-------------------------------------------------------------- */
#logo {
	float: left;
	
	max-width: 100%;
}
#logo .logo-image {
	border: 0;
	max-width: 100%;
	height: auto;
}
#logo .site-title {
	font-size: 2.5em;
	font-weight: bold;
	color: #6699cc;
	font-family: Tahoma, Verdana, Arial;
}
#logo a:hover {
	text-decoration: none;
}
#logo a:hover .site-title {
	color: #333;
	text-decoration: none;
}
#logo .site-description {
	font-size: 1.3em;
	margin: 0 0 1em 0.75em;
	color: #2C5886;
}

/* Header Content */
#header-content {
	
	
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#header-content div {
	display: block;
	float:right;
	margin-top: 2.6em;
	margin-left: 1.2em;
	
}

#header-text {
	margin-top: 0.3em;
	
	line-height: 1.4em;
	font-size: 1.3em;
	color: #000;

}
#header-social icons{
	
} 

#header-search #s {
margin-left: 1em;
 
}

/* Custom Header Image */
#custom-header {
	margin-top: 1px;
}
#custom-header img {
	max-width: 1340px;
	vertical-align: top;
	width: 100%;
	height: auto;
}
/* Navigation Menu
-------------------------------------------------------------- */
#mainnav-icon {
	display: none;
	
}
#navi-wrap {
	background: #6699cc;
	text-align: center;
}
#mainnav-menu {
	list-style-type: none;
	list-style-position: outside;
	position: relative;
}
#mainnav-menu li{
	/*float: left;*/
display:inline-block;
	position:relative;
	margin-right: 1px;
}
#mainnav-menu a {
	display: block;
	padding: 0.8em;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 0.8em;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	font-weight: Bold;
	-webkit-transition: all 0.1s ease-out;
	-moz-transition: all 0.1s ease-out;
	-ms-transition: all 0.1s ease-out;
	-o-transition: all 0.1s ease-out;
	transition: all 0.1s ease-out;
}
#mainnav-menu a:link, #mainnav-menu a:visited{
	color: #fff;
	text-decoration: none;
}
#mainnav-menu a:hover {
	background: #cc9900;
}
#mainnav-menu ul {
	position: absolute;
	display: none;
	z-index: 99;
	background: #fff;
	box-shadow: 0 0 2px #444;
	text-align:center;
}
#mainnav-menu ul li{
	margin: 0;
	display:inline;
}
#mainnav-menu ul a {
	width: 250px;
	width: 16rem;
	padding: 1em;
	/*float: left;*/
	font-weight: normal;
	color: #333;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display:inline-block;
}
#mainnav-menu ul a:link, #mainnav-menu ul a:visited{
	color: #333;
	font-size: 0.9em;
	text-decoration: none;
}
#mainnav-menu ul a:hover {
	color: #fff;
	background: #6699cc;
}
#mainnav-menu li ul ul {
	margin-left: 250px;
	margin-left: 16rem;
}
#mainnav-menu li:hover ul ul, #mainnav-menu li:hover ul ul ul, #mainnav-menu li:hover ul ul ul ul{
	display:none;
}
#mainnav-menu li:hover ul, #mainnav-menu li li:hover ul, #mainnav-menu li li li:hover ul, #mainnav-menu li li li li:hover ul{
	display:block;
}
#mainnav-menu li.current_page_item a, #mainnav-menu li.current-menu-item a {
	text-decoration: underline;
}
#mainnav-menu li.current_page_item ul li a, #mainnav-menu li.current-menu-item ul li a{
	text-decoration: none;
}
#mainnav-menu ul li.current_page_item a, #mainnav-menu ul li.current-menu-item a {
	text-decoration: underline;
}
#mainnav-menu ul li.current_page_item ul li a, #mainnav-menu ul li.current-menu-item ul li a{
	text-decoration: none;
}


/* Widget Styling
-------------------------------------------------------------- */
.widget {
	margin-bottom: 0.5em;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
	padding: 1em 1em 0.5em 1em;
	
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}
.widgettitle {
	font-size: 0.9em;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	padding: 0.8em;
	margin: -0.5em -0.5em 0.2em -0.5em;
	background: #6699cc;
	color: #fff;
/*	text-transform: uppercase; */
}
.widget .textwidget {
	line-height: 1.5em;
}
.widget .textwidget p {
	margin-bottom: 1em;
}
.widget ul, .widget ol {
	line-height: 1.5em;
}
.widget ul {
	list-style: disc inside;
	color: #555;
}
.widget ul .children, .widget ol .children {
	padding: 0;
	margin: 0.5em 0 0.5em 3em;
	list-style: circle;
}
.widget a:link, .widget a:visited  {
	text-decoration: none;
	color: #2C5886;
}
.widget a:hover, .widget a:active {
	text-decoration: underline;
	color: #cc9900;
}
.widget img {
	max-width: 100%;
	height: auto;
}

#text-4 {
	padding: 0;
	}
#text-11 {
    padding: 0 0.8em 0 0.8em;
	}



/* Custom Widgets
-------------------------------------------------------------- */


/* Theme Search Widget */
.search-form {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	/* overflow:hidden; */
}
.search-form .screen-reader-text {
	display: none;
}
.search-form .search-field {
	display: inline-block;
	margin: 0;
	width: 100%;
	padding: 0.7em 45px 0.7em 0.7em;
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1.0em;
	color: #333;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
}
.search-form .search-submit {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	background: transparent;
	padding: 0.8em 0.7em 0 0;
	cursor: pointer;
}
.search-form .search-submit .genericon-search {
	display: inline-block;
	width: 24px;
	height: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 24px;
	line-height: 1;
	font-family: 'Genericons';
	text-decoration: inherit;
	font-weight: normal;
	font-style: normal;
	vertical-align: text-bottom;
	color: #777;
	content: '\f400';
}
.search-form .search-submit:hover .genericon-search {
	color: #333;
}

/* Theme Calendar Widget */
#wp-calendar {
	margin: 0;
	width: 100%;
	color: #444;
	line-height: 1.6em;
}
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption {
	text-align: center;
}
#wp-calendar caption {
	padding: 0.4em 0;
	margin: 0 -0.4em 0.8em;
	text-align: center;
	text-transform: uppercase;
	font-size: 0.9em;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
#wp-calendar th {
	font-weight: bold;
	font-size: 0.85em;
	padding-bottom: 0.6em;
}
#wp-calendar tbody td {
	color: #888;
}
#wp-calendar tbody td a {
	font-weight: bold;
}
#wp-calendar tbody #today {
	font-weight: bold;
	color: #333;
}
#wp-calendar tfoot tr td {
	padding-top: 0.8em;
}
#wp-calendar #prev {
	text-align: left;
}
#wp-calendar #next {
	padding-right: 0.4em;
	text-align: right;
}


/* Posts and Pages
-------------------------------------------------------------- */
.type-post, .type-page, .type-attachment  {
	margin: 0 0 1.5em 0;
	padding: 0.8em 1.5em 1.5em;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
	background-color: rgba(0,187,255,0.04);
	background-size: auto 100%;
	background-opacity: .3;
}
.page-title, .post-title {
	font-weight: bold;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	color: #2C5886;
	line-height: 1em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	/* text-transform: uppercase; */
	padding: 0.2em 0;
	border-bottom: 1.5px solid #6699cc;
}
.page-title {
    font-size: 2.0em;
}
.post-title {
    font-size: 1.5em;
}
.post-title a:link, .post-title a:visited {
	color: #6699cc;
	text-decoration: none;
}
.post-title a:hover, .post-title a:active{
	color: #cc9900;
}
.sticky {
	border-left: 10px solid #ccc;
}

/* Page Links | wp_link_pages() */
.page-links {
	margin: 0;
	word-spacing: 1em;
}

/* Postmeta */
.postmeta {
	display: block;
	color: #fff;
	margin: 0;
	padding: 0.7em 1em;
	background: #6699cc;
}
.postmeta span, .postmeta .post-edit-link {
	font-size: 0.9em;
	line-height: 1.5em;
	
}
.postmeta a:link, .postmeta a:visited {
	color: #fff;
	padding:0.89em;
	/* text-decoration: underline; */
}
.postmeta a:hover, .postmeta a:active{
	background: #cc9900;
	text-decoration: none;
}
.postmeta .sep, .postmeta .post-edit-link  {
	padding-left: 0.8em;
	margin-left: 0.7em;
	/* border-left: 1px solid #aaa; */
}
.postinfo {
	clear: both;
	line-height: 1.5em;
}
.postinfo .meta-category {
	display: block;
	color: #333;
	margin: 0;
	font-size: 0.9em;
}
.postinfo .meta-category a {
	display: inline-block;
	float: left;
	color: #fff;
	background: #6699cc;
	padding: 0.4em 1em;
	margin: 0 1px 1px 0;
}
.postinfo .meta-category a:hover, .postinfo .meta-category a:active {
	background: #cc9900;
	text-decoration: none;
}
.postinfo .meta-tags {
	display: block;
	margin: 0.5em 0;
}
/* Read more Link */
.more-link {
	display: none;
	margin: 0.5em 0;
	padding: 0.6em 1em;
	text-decoration: none;
	color: #fff;
	text-transform: uppercase;
	background-color: #6699cc;
}
.more-link:link, .more-link:visited  {
	color: #fff;
}
.more-link:hover, .more-link:active {
	background-color: #303030;
	text-decoration: none;
}
.content-excerpt .more-link  {
	margin: 0.5em 0 1em;
}

/* Archives and Search Heading */
.archive-title {
	font-weight: bold;
	color: #333;
	background: #fff;
	padding: 1.5em;
	margin-bottom: 1.5em;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
	text-transform: uppercase;
}
.archive-title span{
	color: #6699cc;
}

/* Content Pagination */
.post-pagination {
	margin-bottom: 1.5em;
	font-weight: bold;
	padding: 0.8em 1em;
	color: #333;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
	background: #fff;
	text-transform: uppercase;
}
.post-pagination a {
	padding: 0.6em 0.8em;
	margin-right: 0.2em;
	display: inline-block;
    text-align: center;
	text-decoration: none;
	color: #333;
}
.post-pagination a:link, .post-pagination a:visited {
	color: #333;
}
.post-pagination a:hover {
	color: #6699cc;
}
.post-pagination .current {
	padding: 0.5em 0.9em;
	margin-right: 0.2em;
	color: #6699cc;
	text-decoration: underline;
}
.riassunto {}
.sin {margin:0 0 2em 1em; 
padding:0 2em 0 0 ; 
width:40%; 
background:transparent;
float:left;    
 
}
.des {margin:2em 1.2em 2em 0; 
text-align:center;
line-height: 1.6em;
padding:1em ; 
width:47%; 
background-color: rgba(0,187,255,0.14);
/* background:transparent;  */
float:left;    
color: #2C5886;
}


/* Text Elements
-------------------------------------------------------------- */
.entry {
	line-height: 1.4em;
	margin: 0.5em 0;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	font-size: 0.9em;
}

.articolo {
	line-height: 1.4em;
	margin: 3.5em 0 0 0;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	font-size: 0.9em;
}
.entry p, .comment p {
	/* margin: 0.75em 0; */
 	
}
.entry h1, .comment h1,
.entry h2, .comment h2,
.entry h3, .comment h3,
.entry h4, .comment h4,
.entry h5, .comment h5,
.entry h6, .comment h6 {
	color: #222;
	font-weight: bold;
	line-height: 1.0em;
	margin: 1.2em 0 0.3em;
}
.entry h1, .comment h1 {
	font-size: 3.0em;
}
.entry h2, .comment h2 {
	font-size: 2.25em;
}
.entry h3, .comment h3 {
	font-size: 1.5em;
}
.entry h4, .comment h4 {
	font-size: 1.25em;
}
.entry h5, .comment h5 {
	font-size: 1.125em;
	margin: 1.3em 0 0;
}
.entry h6, .comment h6 {
	font-size: 1.0em;
	margin: 1.3em 0 0;
}
.entry ul, .comment ul{
	list-style: square inside;
	margin: 0 0 1.5em 2em;
}
.entry ol, .comment ol{
	list-style: decimal inside;
	margin: 0 0 1.5em 2em;
}
.entry ol ol, .comment ol ol{
	list-style: upper-alpha inside;
}
.entry ol ol ol, .comment ol ol ol{
	list-style: lower-roman inside;
}
.entry ol ol ol ol, .comment ol ol ol ol{
	list-style: lower-alpha inside;
}
.entry ul ul, .comment ul ul,
.entry ol ol, .comment ol ol,
.entry ul ol, .comment ul ol
.entry ol ul, .comment ol ul {
	margin-bottom: 0.2em;
}
dl {
	margin: 1em 0;
}
dt {
	font-weight: bold;
}
dd {
	margin-bottom: 1.5em;
}
strong {
	font-weight: bold;
}
cite,
em,
i {
	font-style: italic;
}
big, .big_tag {
	font-size: 1.3em;
}
ins {
	padding: 1px 2px;
	background: #ffa;
	text-decoration: none;
}
code, pre {
	padding: 3px 8px;
	margin: 0 1px;
	background: #eeeeee;
	color: #222;
	font-size: 0.9em;
	font-family: Monospace, "Courier New", Courier;
	overflow: auto;
	line-height: 1.4em;
}
del, strike, s{
	text-decoration: line-through;
}
pre {
	font-family: "Courier 10 Pitch", Courier, monospace;
}
small {
	font-size: 0.7em;
}
abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
sup,
sub {
	height: 0;
	line-height: 1;
	position: relative;
	vertical-align: baseline;
	font-size: 0.8em;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
.entry var, .entry kbd, .entry tt, .entry .tt_tag {
	font-size: 1.1em;
	font-family: "Courier 10 Pitch", Courier, monospace;
}
blockquote {
	background:#f5f5f5;
	border-left: 10px solid #ccc;
	margin: 1.5em 0;
	padding: 0.8em 1.5em;
}
blockquote p {
	display: inline-block;
}
blockquote cite {
	display: block;
	margin: 0.5em 0 0 0.5em;
	color: #777;
}
.entry table {
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid #ddd;
	margin: 1em 0;
	text-align: left;
	width: 100%;
}
.entry tr th,
.entry thead th {
	background: #e5e5e5;
	font-weight: bold;
	padding: 0.2em 1em;
}
.entry tr td {
	border-top: 1px solid #ddd;
	padding: 0.2em 1em;
}
.entry tr.alternate td {
	background: #f5f5f5;
}

/* Images | Gallery | Videos
-------------------------------------------------------------- */
article .wp-post-image {
	max-width: 100%;
	margin: 1em 0 0;
	height: auto; 
}
.entry img {
	max-width: 100%;
	height: auto;
}
.wp-caption {
	max-width: 100%;
	height: auto;
	text-align: center;
	margin: 1em 0;
}
.wp-caption .wp-caption-text {
	margin: 0;
	padding: 0;
	font-size: 0.9em;
	text-align: center;
}
.alignleft {
	float: left;
	display: inline;
	margin: 1em 2em 1em 0;
}
.alignright	{
	float: right;
	display: inline;
	margin: 1em 0 1em 2em;
}
.aligncenter {
	margin: 1em auto;
	display: block;
}

/* Gallery Styling */
.gallery {
	padding-top: 1em;
}
.gallery-item {
	padding: 0.3em 1em 0 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.gallery img {
	margin: 0;
	padding: 0;
	border: none !important;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.gallery-caption {
	max-width: 100%;
	height: auto;
	text-align: center;
	margin: 0.5em 0;
}

/* Make Vidoes responsive */
embed, iframe, object, video {
	max-width: 100%;
}

/* Image.php Navigation */
#image-nav {
	margin: 1.5em 0;
	padding: 0.6em 1em;
	font-weight: bold;
	color: #333;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
	background: #fff;
	text-transform: uppercase;
}
#image-nav .nav-previous {
	float: left;
}
#image-nav .nav-next {
	float: right;
}
#image-nav .nav-previous a, #image-nav .nav-next a {
	font-size: 0.9em;
	text-decoration: none;
	color: #6699cc;
}
#image-nav .nav-previous a:hover, #image-nav .nav-next a:hover {
	text-decoration: underline;
}

/* Social Icons | based upon http://kovshenin.com/2014/social-menus-in-wordpress-themes/
-------------------------------------------------------------- */
#social-icons-menu {
	list-style-type: none;
	list-style-position: outside;
	line-height: 1em;
}
#social-icons-menu li {
	float: left;
	margin: 0 1px 1px 0;
	padding: 0;
}
#social-icons-menu li a {
	position: relative;
	display: inline-block;
	padding: 0.8em;
	background: #6699cc;
	text-decoration: none;
	color: #fff;
}
#social-icons-menu li a:hover {
	text-decoration: none;
	background: #cc9900;
}
#social-icons-menu li a:before {
	color: #fff;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 16px;
	line-height: 1;
	font-family: 'Genericons';
	text-decoration: inherit;
	vertical-align: top;
}
#social-icons-menu li a .screen-reader-text {
	display: none;
}
.social-icons-wrap .social-icons-hint {
	font-size: 0.8em;
	color: #777;
	max-width: 300px;
	line-height: 1.2em;
}

/* Add Genericons */
#social-icons-menu li a:before { content: '\f408'; } /* Default Icon */
#social-icons-menu li a[href*="codepen.io"]:before  { content: '\f216'; }
#social-icons-menu li a[href*="digg.com"]:before { content: '\f221'; }
#social-icons-menu li a[href*="dribbble.com"]:before { content: '\f201'; }
#social-icons-menu li a[href*="facebook.com"]:before { content: '\f203'; }
#social-icons-menu li a[href*="flickr.com"]:before { content: '\f211'; }
#social-icons-menu li a[href*="plus.google.com"]:before { content: '\f206'; }
#social-icons-menu li a[href*="github.com"]:before { content: '\f200'; }
#social-icons-menu li a[href*="instagram.com"]:before { content: '\f215'; }
#social-icons-menu li a[href*="linkedin.com"]:before { content: '\f207'; }
#social-icons-menu li a[href*="pinterest.com"]:before { content: '\f209'; }
#social-icons-menu li a[href*="polldaddy.com"]:before { content: '\f217'; }
#social-icons-menu li a[href*="getpocket.com"]:before { content: '\f224'; }
#social-icons-menu li a[href*="reddit.com"]:before { content: '\f222'; }
#social-icons-menu li a[href*="skype.com"]:before,
#social-icons-menu li a[href*="skype:"]:before { content: '\f220'; }
#social-icons-menu li a[href*="stumbleupon.com"]:before { content: '\f223'; }
#social-icons-menu li a[href*="tumblr.com"]:before { content: '\f214'; }
#social-icons-menu li a[href*="twitter.com"]:before { content: '\f202'; }
#social-icons-menu li a[href*="vimeo.com"]:before  { content: '\f212';}
#social-icons-menu li a[href*="mail"]:before  { content: '\f410'; }
#social-icons-menu li a[href*="wordpress.org"]:before,
#social-icons-menu li a[href*="wordpress.com"]:before { content: '\f205'; }
#social-icons-menu li a[href*="youtube.com"]:before { content: '\f213'; }
#social-icons-menu li a[href*="/feed"]:before,
#social-icons-menu li a[href*="/feed/"]:before,
#social-icons-menu li a[href*="?feed=rss2"]:before,
#social-icons-menu li a[href*="feedburner.google.com"]:before,
#social-icons-menu li a[href*="feedburner.com"]:before { content: '\f413'; }

/* Comments
-------------------------------------------------------------- */
#comments {
	margin: 0 0 1.5em 0;
	padding: 1em 1.5em;
	background: #fff;
	box-shadow: 0 0 4px #ddd;
	border: 1px solid #ddd;
}
#comments .comments-title, #respond #reply-title {
	font-weight: bold;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	color: #555;
	line-height: 1.4em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	text-transform: uppercase;
	padding: 0.3em 0;
	border-bottom: 5px solid #555;
	font-size: 1.5em;
}
.commentlist {
	display: block;
	margin: 1.5em 0;
}
.commentlist .comment{
	display: block;
	margin: 1.5em 0 0;
	list-style: none;
	line-height: 1.5em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}
.commentlist .comment .avatar {
	float: left;
	margin: 1em 1.5em 0.5em 0;
}
.commentlist .comment .avatar:after {
	clear: both;
}
.comment-author {
	line-height: 1.5em;
	background: #eee;
}
.comment-author .comment-meta {
	display: inline-block;
	font-size: 0.8em;
	margin: 0.5em 1.2em 0;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	color: #222;
}
.comment-author .fn {
	display: inline-block;
	float: left;
	font-family: Tahoma, Verdana, Arial;
	font-size: 1.0em;
	color: #fff;
	background: #333;
	padding: 0.4em 1em;
}
.comment-meta a:link, .comment-meta a:visited,
.comment-meta a:active, .comment-meta a:hover {
	color: #222;
}
.comment-author .fn a:link, .comment-author .fn a:visited {
	color: #fff;
	text-decoration: underline;
}
.comment-author .fn a:hover, .comment-author .fn a:active {
	text-decoration: none;
}
.bypostauthor .fn, .comment-author-admin .fn {
	background: #6699cc;
}
#comments .children {
	margin-left: 1.5em;
}
.nocomments {
	color: #444;
	padding: 1em;
}
.commentlist .pingback {
	display: block;
	margin: 0.6em 0 0;
	padding: 0.8em 0 0;
	border-top: 1px solid #ddd;
	list-style: none;
	line-height: 1.3em;
}

/* Comment Pagination */
.comment-pagination {
	font-size: 0.9em;
	padding: 0 1em;
	background: #eee;
	margin-bottom: 1.5em;
}
.comment-pagination .alignleft {
	float: left;
}
.comment-pagination .alignright {
	float: right;
}

/* Comment Form */
#respond {
	margin: 0;
}
#commentform {
	padding: 1em 0 0;
}
#commentform p {
	margin: 1em 0;
}
#commentform input[type="text"], #commentform textarea {
	display: inline-block;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#commentform label {
	display: block;
	margin: 0.6em 0 0.2em;
}
#commentform #submit {
	display: block;
	border: none;
	margin-top: 1em;
	padding: 1em 4em;
	text-decoration: none;
	color: #fff;
	background: #6699cc;
}
#commentform #submit:hover {
	background-color: #303030;
	cursor: pointer;
	text-decoration: none;
}

/* Page Templates
-------------------------------------------------------------- */

/* Fullwidth Template */
.template-fullwidth #content {
	float: none;
	width: 100%;
	padding: 0;
}

/* Front Page Template and Widgets
-------------------------------------------------------------- */

/* Front Page Slideshow */
#frontpage-slider-wrap {
	padding: 0;
	margin-bottom: 2.6em;
	/* All other Slideshow Styles in flexslider.css */
}

.frontpage-magazine-no-widgets, .frontpage-slider-empty-posts {
	line-height: 1.5em;
	margin-bottom: 1.5em;
}
/* Category Posts Widgets */
#frontpage-magazine-widgets .widgettitle {
	margin: 0 0 0.4em 0;
}
.widget-category-posts .type-post {
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
}
.widget-category-posts .type-post .post-title {
	font-size: 1.0em;
}
.widget-category-posts .type-post .wp-post-image {
	margin: 0 0 0.5em 0;
}
.widget-category-posts .more-posts .type-post {
	float: left;
	display: block;
	width: 100%;
	margin: 0 0 1em 0;
	background: #ddd;
}
.widget-category-posts .more-posts .wp-post-image {
	float: left;
	margin: 0 0.8em 0 0;
	max-width: 30%;
}
.widget-category-posts .more-posts .more-posts-content {
	padding: 0.4em 0.8em;
}
.widget-category-posts .more-posts .post-title{
	border: none;
	margin: 0;
	font-size: 0.95em;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
}
.widget-category-posts .more-posts .postmeta {
	display: inline-block;
	background: none;
	padding: 0 0.3em 0.3em 0;
	font-size: 0.9em;
}
.widget-category-posts .more-posts .postmeta .sep  {
	padding-left: 0.5em;
	margin-left: 0.4em;
	border-left: 1px solid #aaa; 
}



/* Category Posts Boxed Widget */
#widget-category-posts-boxed .first-post {
	float: left;
	width: 50%;
	padding-right: 1.5em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#widget-category-posts-boxed .more-posts {
	width: 50%;
	margin-left: 50%;
}

/* Category Posts Grid Widget */
#widget-category-posts-grid .category-posts-grid-row {
	margin-right: -1.5em;
}
#widget-category-posts-grid .category-posts-grid-row .type-post {
	float: left;
	width: 50%;
	padding-right: 1.5em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/* Front Page Category Area Thre (two columns) */
#widget-category-posts-columns .category-posts-column-left {
	float: left;
	width: 50%;
	padding-right: 0.75em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#widget-category-posts-columns .category-posts-column-right {
	margin-left: 50%;
	width: 50%;
	padding-left: 0.75em;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
#widget-category-posts-columns .category-posts-columns .more-posts .type-post {
	float: left;
	display: block;
	width: 100%;
	margin: 1em 0 0;
	background: #eee;
}

/* Footer
-------------------------------------------------------------- */
#footer-wrap {
	background: #333;
}
#footer {
	padding: 1em 1.5em;
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}
#footer a {
	color: #6699cc;
}
#footer a:hover {
	color: #cc9900;
}
#footer #credit-link {
	float: right;
	font-size: 0.9em;
}

/* Footer Navigation Menu */
#footernav-icon {
	display: none;
}
#footernav {
	float: left;
}
#footernav-menu {
	float: left;
	list-style-type: none;
	list-style-position: outside;
	position: relative;
}
#footernav-menu li {
	float: left;
	position: relative;
	padding-right: 2em;
}
#footernav-menu a {
	display: inline-block;
	text-decoration: none;
	font-size: 0.9em;
}
#footernav-menu a:link, #footernav-menu a:visited{
	color: #cc9900;
	text-decoration: none;
}
#footernav-menu a:hover {
	text-decoration: underline;
}

.ilcetti {
    display:inline-block;
width: 46px;
height: 30px;
    background-image: url(../../uploads/2014/12/ilcetti.png);
}
.ilcetti:hover {
    background-image: url(../../uploads/2014/12/senapetti.png);
}

.icon-box {
    margin-bottom: 0em;
}




/*============================ PIKAIA 2.0: AGGIUNTE ============================*/

/* Sfondo frattale: livello fisso separato, così funziona anche su iPhone/iPad
   (background-attachment: fixed su mobile non è supportato). */
body::before {
	content: "";
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	background: url(../../uploads/2014/12/Fractal1.jpg) no-repeat center center;
	background-size: 100% 100%;
	pointer-events: none;
}

/* Logo: prima l'altezza era scritta direttamente nell'HTML */
#logo .site-title {
	margin: 0;
	line-height: 0;
}
#logo .logo-image {
	display: block;
	height: 140px;
	width: auto;
	max-width: 100%;
}
#logo .site-description {
	line-height: 1.3;
}

/* Testo per lettori di schermo e link "Vai al contenuto" */
.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;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 0.5em;
	left: 0.5em;
	z-index: 100000;
	padding: 0.8em 1.2em;
	background: #fff;
	color: #2C5886;
	font-weight: bold;
	box-shadow: 0 0 4px #444;
}

/* Focus visibile per chi naviga con la tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid #cc9900;
	outline-offset: 2px;
}

/* Pulsanti dei menu (su desktop nascosti) */
#mainnav-icon,
#footernav-icon {
	display: none;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	cursor: pointer;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Menu a tendina su desktop accessibili anche da tastiera */
#mainnav-menu li:focus-within > ul {
	display: block;
}

/* Spazio tra la riga data/autore e il titolo dell'articolo
   (prima c'era un <br> nel codice) */
.single .postmeta + .post-title {
	margin-top: 0.9em;
}

/* Testata dell'articolo: immagine e riassunto affiancati */
.riassunto {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5em;
	margin: 1.5em 0 0;
}
.riassunto .sin {
	flex: 0 1 42%;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}
.riassunto .sin img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
.riassunto .des {
	flex: 1 1 14em;
	width: auto;
	margin: 0;
	float: none;
}
.articolo {
	margin: 2em 0 0;
}

/* Contenuto degli articoli: niente può uscire dalla colonna */
.articolo img,
.articolo video,
.articolo iframe,
.articolo embed,
.articolo object {
	max-width: 100%;
}
.articolo img {
	height: auto;
}
.articolo .wp-caption,
.articolo figure {
	max-width: 100% !important;
}
.articolo pre {
	overflow-x: auto;
}
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,
.wp-has-aspect-ratio iframe {
	width: 100%;
}

/* Footer */
#footer .footer-curator {
	display: inline-block;
	margin: 0.5em 0;
	font-size: 0.9em;
	font-weight: bold;
	vertical-align: middle;
}
#footer .ilcetti {
	vertical-align: middle;
}

/*============================ SLIDER "IN EVIDENZA" (2.1) ============================*/

.pikaia-slider {
	position: relative;
	margin: 0 0 1em;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 0 4px #ddd;
}

/* Scorrimento affidato al browser: si sfoglia con il dito anche senza JavaScript */
.pikaia-slider__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	outline: none;
}
.pikaia-slider__viewport::-webkit-scrollbar {
	display: none;
}
.pikaia-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pikaia-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Scheda: immagine a sinistra, testo a destra */
.pikaia-slider__card {
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
	align-items: center;
	gap: 1.6em;
	padding: 1.2em;
}
.pikaia-slider__media {
	display: block;
	overflow: hidden;
	line-height: 0;
}
.pikaia-slider__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 400 / 327;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.pikaia-slider__media:hover .pikaia-slider__img {
	transform: scale(1.03);
}
.pikaia-slider__media--empty {
	aspect-ratio: 400 / 327;
	background: linear-gradient(135deg, #6699cc 0%, #2C5886 100%);
}

.pikaia-slider__text {
	padding-right: 0.4em;
}
.pikaia-slider__title {
	margin: 0 0 0.6em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #6699cc;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial;
	font-size: 25px;
	line-height: 34px;
	font-weight: bold;
}
.pikaia-slider__title a:link,
.pikaia-slider__title a:visited {
	color: #2C5886;
	text-decoration: none;
	transition: color 0.2s ease;
}
.pikaia-slider__title a:hover,
.pikaia-slider__title a:active {
	color: #cc9900;
}
.pikaia-slider__excerpt {
	margin: 0;
	color: #444;
	font-size: 16px;
	line-height: 24px;
}

/* Comandi: compaiono solo quando il JavaScript è pronto */
.pikaia-slider__controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0 1.2em 1em;
}
.pikaia-slider.is-ready .pikaia-slider__controls {
	display: flex;
}
.pikaia-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #6699cc;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.pikaia-slider__btn:hover {
	background: #2C5886;
}
.pikaia-slider__toggle {
	margin-left: 0.6em;
	background: transparent;
	color: #6699cc;
	box-shadow: inset 0 0 0 2px #6699cc;
}
.pikaia-slider__toggle:hover {
	background: #6699cc;
	color: #fff;
}
.pikaia-slider__icon-play,
.pikaia-slider__toggle.is-stopped .pikaia-slider__icon-pause {
	display: none;
}
.pikaia-slider__toggle.is-stopped .pikaia-slider__icon-play {
	display: block;
}

.pikaia-slider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.15em;
	margin: 0 0.4em;
}
/* Pallino visibile piccolo, area da toccare grande */
.pikaia-slider__dot {
	position: relative;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.pikaia-slider__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 2px #6699cc;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.pikaia-slider__dot:hover::before {
	background: #6699cc;
}
.pikaia-slider__dot[aria-current="true"]::before {
	background: #cc9900;
	box-shadow: none;
	transform: scale(1.25);
}

/* Schermi sotto i 1024px (come il vecchio slider) */
@media only screen and (max-width: 64em) {
	.pikaia-slider__card {
		gap: 1.2em;
	}
}
/* Sotto i 768px */
@media only screen and (max-width: 48em) {
	.pikaia-slider__title {
		font-size: 18px;
		line-height: 24px;
	}
	.pikaia-slider__excerpt {
		font-size: 14px;
		line-height: 20px;
	}
}
/* Telefono: immagine sopra, testo sotto */
@media only screen and (max-width: 40em) {
	.pikaia-slider {
		box-shadow: none;
	}
	.pikaia-slider__card {
		grid-template-columns: 1fr;
		gap: 0.8em;
		padding: 0.8em;
	}
	.pikaia-slider__title {
		font-size: 17px;
		line-height: 23px;
		margin-bottom: 0.4em;
	}
	/* Comandi più compatti: 8 pallini restano su una riga anche a 320px */
	.pikaia-slider__controls {
		gap: 0.25em;
		padding: 0 0.5em 0.8em;
	}
	.pikaia-slider__btn {
		flex: 0 0 auto;
		width: 2em;
		height: 2em;
	}
	.pikaia-slider__toggle {
		margin-left: 0.25em;
	}
	.pikaia-slider__dots {
		flex: 0 1 auto;
		flex-wrap: nowrap;
		gap: 0;
		min-width: 0;
		margin: 0 0.15em;
	}
	.pikaia-slider__dot {
		flex: 0 1 24px;
		min-width: 16px;
		width: 24px;
	}
	.pikaia-slider__dot::before {
		width: 9px;
		height: 9px;
		margin: -4.5px 0 0 -4.5px;
	}
}

/*============================ MEDIA QUERIES ============================*/

/* ---------- Schermi medi | < 1360px ---------- */
@media only screen and (max-width: 85em) {
	#wrapper {
		width: 96%;
	}
	#wrap {
		padding: 0 1em;
	}
}

/* ---------- Tablet e schermi piccoli | < 960px ----------
   Una sola colonna, sidebar sotto, menu a scomparsa. */
@media only screen and (max-width: 60em) {

	#wrapper {
		width: 100%;
	}
	#wrap {
		padding: 0 1em;
		border: none;
	}
	#header-wrap {
		border: none;
	}
	#header {
		padding: 1em 1.5em 0.5em;
	}
	#logo {
		float: left;
		max-width: 60%;
	}
	#logo .logo-image {
		height: 100px;
	}
	#header-content div {
		margin-top: 1.5em;
		margin-left: 0;
	}
	#header-social-icons {
		display: none;
	}

	/* Colonne */
	#content {
		float: none;
		width: 100%;
		padding-right: 0;
		padding-left: 0;
	}
	#sidebar {
		clear: both;
		float: none;
		width: 100%;
		margin: 2em 0 0;
	}

	/* Menu principale mobile */
	#mainnav {
		padding: 0;
	}
	#mainnav-icon {
		display: block;
		width: 100%;
		padding: 0.9em 1em;
		text-align: left;
		text-transform: uppercase;
		font-size: 1em;
		font-weight: bold;
		color: #fff;
		background: rgba(255, 255, 255, 0.1);
	}
	#mainnav-icon:hover,
	#mainnav.is-open #mainnav-icon {
		background: #2C5886;
	}
	#mainnav-icon:after {
		float: right;
		content: '\f419';
		font: normal 24px/1 Genericons;
		-webkit-font-smoothing: antialiased;
	}
	#mainnav.is-open #mainnav-icon:after {
		content: '\f406';
	}
	#mainnav-menu {
		display: none;
		text-align: left;
		border-top: 1px solid rgba(255, 255, 255, 0.5);
	}
	#mainnav.is-open #mainnav-menu {
		display: block;
	}
	#mainnav-menu li {
		display: block;
		margin: 0;
	}
	#mainnav-menu a {
		padding: 1em 1.2em;
		font-size: 0.9em;
		border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	}
	/* Sottomenu: sempre aperti e rientrati */
	#mainnav-menu ul,
	#mainnav-menu li:hover ul,
	#mainnav-menu li:focus-within > ul {
		display: block;
		position: static;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.12);
		text-align: left;
	}
	#mainnav-menu ul a,
	#mainnav-menu ul a:link,
	#mainnav-menu ul a:visited {
		width: auto;
		display: block;
		padding: 0.9em 1.2em 0.9em 2.2em;
		color: #fff;
	}
	#mainnav-menu ul ul a,
	#mainnav-menu ul ul a:link,
	#mainnav-menu ul ul a:visited {
		padding-left: 3.2em;
	}
	#mainnav-menu li ul ul {
		margin-left: 0;
	}

	/* Riquadri */
	.widget, .type-post, .type-page, .type-attachment, #comments {
		padding: 1em 1.2em;
	}
	.widgettitle {
		margin: -0.3em -0.4em 1em;
	}

	/* Sfondo frattale: su tablet e telefono è coperto dal contenuto,
	   quindi non si mostra e non si scarica */
	body::before {
		display: none;
	}
}

/* ---------- Tablet verticale | < 800px ---------- */
@media only screen and (max-width: 50em) {

	.widget, .type-post, .type-page, .type-attachment, #comments {
		box-shadow: none;
	}
	.page-title {
		font-size: 1.7em;
	}
	.entry h1, .comment h1 {
		font-size: 2.2em;
	}
	.entry h2, .comment h2 {
		font-size: 1.8em;
	}
	.entry h3, .comment h3 {
		font-size: 1.4em;
	}

	/* Tabelle larghe: scorrono orizzontalmente invece di uscire dalla pagina */
	.entry table,
	.articolo table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.entry tr th, .entry thead th, .entry tr td {
		padding: 0.2em 0.4em;
	}

	/* Testata articolo: immagine sopra, riassunto sotto */
	.riassunto {
		display: block;
	}
	.riassunto .sin {
		margin: 0 0 1em;
	}
	.riassunto .des {
		margin: 0;
	}

	/* Menu del footer */
	#footernav {
		float: none;
	}
	#footernav-icon {
		display: inline-block;
		padding: 0.5em 0;
		font-size: 1em;
		color: #fff;
		background: none;
	}
	#footernav-icon:after {
		margin-left: 0.4em;
		content: '\f419';
		font: normal 16px/1 Genericons;
		vertical-align: text-bottom;
	}
	#footernav-menu {
		display: none;
		float: none;
		width: 100%;
		padding-bottom: 1em;
	}
	#footernav.is-open #footernav-menu {
		display: block;
	}
	#footernav-menu li {
		float: none;
		display: block;
		padding: 0.7em 0.4em;
	}
	#footer #credit-link {
		float: none;
		margin-top: 0.5em;
	}
}

/* ---------- Smartphone | < 640px ---------- */
@media only screen and (max-width: 40em) {

	#header {
		padding: 1em 1em 0.5em;
	}
	#logo,
	#header-content {
		float: none;
		max-width: 100%;
		text-align: center;
	}
	#logo .logo-image {
		height: 80px;
		margin: 0 auto;
	}
	#header-content #header-search,
	#header-content #header-text,
	#header-content #header-social-icons {
		float: none;
		margin: 0.8em 0 0;
	}
	#header-content #header-text {
		font-size: 1.1em;
	}
	#wrap {
		padding: 0 0.6em;
	}
	.widget, .type-post, .type-page, .type-attachment, #comments {
		padding: 0.8em;
	}
	.page-title {
		font-size: 1.5em;
	}
	.post-title {
		font-size: 1.3em;
	}
	.archive-title {
		padding: 1em;
		font-size: 0.95em;
	}
	.postmeta a:link, .postmeta a:visited {
		padding: 0.3em 0.2em;
	}
	.postmeta .sep, .postmeta .post-edit-link {
		padding-left: 0.4em;
		margin-left: 0.3em;
	}
	.post-pagination a,
	.post-pagination .current {
		padding: 0.6em;
		margin: 0.1em;
	}
	.alignright, .alignleft {
		float: none;
		margin: 1em auto;
	}

	/* Widget della prima pagina in una colonna */
	.widget-category-posts .type-post {
		margin: 0 0 1.5em 0;
	}
	#widget-category-posts-grid .category-posts-grid-row {
		margin-right: 0;
	}
	#widget-category-posts-grid .category-posts-grid-row .type-post,
	#widget-category-posts-boxed .first-post,
	#widget-category-posts-columns .category-posts-column-left {
		float: none;
		width: 100%;
		padding-right: 0;
	}
	#widget-category-posts-boxed .more-posts,
	#widget-category-posts-columns .category-posts-column-right {
		width: 100%;
		margin-left: 0;
		padding-left: 0;
	}
	#widget-category-posts-columns .category-posts-columns .more-posts .type-post {
		margin: 0 0 1em;
	}
	#widget-category-posts-columns .category-posts-column-right {
		margin-top: 1.5em;
	}

	/* Commenti */
	#comments .children {
		margin-left: 0.6em;
	}
	.commentlist .comment .avatar {
		width: 48px;
		height: 48px;
	}
	#commentform #submit {
		width: 100%;
		padding: 1em;
	}
}

/* ---------- Smartphone piccoli | < 400px ---------- */
@media only screen and (max-width: 25em) {
	.postmeta span {
		display: block;
	}
	.postmeta .sep, .postmeta .post-edit-link {
		margin: 0;
		padding: 0;
	}
	.comment-author .comment-meta {
		display: block;
		margin: 0.5em 0;
		clear: both;
	}
}

/* ---------- Desktop ---------- */
@media only screen and (min-width: 60.0625em) {
	/* Il menu resta sempre visibile */
	#mainnav-menu {
		display: block !important;
	}

	/* Testata: ricerca e icone social sulla stessa riga, centrate rispetto al logo */
	#header-content {
		float: right;
		display: flex;
		align-items: center;
		gap: 1em;
		min-height: 140px;
	}
	#header-content::before,
	#header-content::after {
		display: none;
	}
	#header-content div {
		float: none;
		margin: 0;
	}
	#header-search {
		order: -1;
		flex: 0 1 16em;
		min-width: 8em;
	}
	#header-social-icons {
		flex: 0 0 auto;
	}
	#header-social-icons #social-icons-menu {
		display: flex;
		flex-wrap: nowrap;
	}
	#header-social-icons #social-icons-menu li {
		float: none;
	}
}
@media only screen and (min-width: 50.0625em) {
	#footernav-menu {
		display: block !important;
	}
}

/* Chi ha chiesto meno animazioni al sistema operativo non le riceve */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Stampa ---------- */
@media print {
	body {
		background: white;
		color: black;
		font-family: "Times New Roman", Times, serif;
		font-size: 0.95em;
	}
	body::before,
	#navi-wrap,
	#header-wrap,
	#sidebar,
	#footer-wrap,
	#comments,
	.skip-link {
		display: none;
	}
	#wrap {
		padding: 0;
		border: none;
	}
	#content {
		float: none;
		width: 100%;
		padding-right: 0;
	}
}
