/*
Theme Name: Fondazione Foti
Description: Tema istituzionale della Fondazione Ignazio Foti. Riproduce l'aspetto del precedente tema Everal con HTML, CSS e JavaScript nativi: nessun page builder, nessun framework, nessuna libreria esterna.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Iteranea
Author URI: https://www.iteranea.it/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fondazione-foti
*/

/* ==========================================================================
   Colori e font
   I font sono quelli dichiarati dal tema precedente: Lato e Open Sans non
   venivano mai caricati, quindi il sito si e' sempre visto con Tahoma per il
   testo e con il sans-serif di sistema per i titoli. Stesse dichiarazioni,
   stesso risultato, nessuna richiesta a Google Fonts.
   ========================================================================== */

:root {
	--ff-rosso: #DD370A;
	--ff-rosso-trasparente: rgba(221, 55, 10, 0.7);
	--ff-testo: #333;
	--ff-link: #2B2B2C;
	--ff-meta: #b5b5b5;
	--ff-sfondo: #f1f1f1;
	--ff-font-testo: "Lato Slab", "Open Sans", Tahoma;
	--ff-font-titoli: "Lato", sans-serif;
	--ff-font-footer: "Open Sans", sans-serif;
	--ff-ombra-card: 0 4px 11px rgba(0, 0, 0, 0.09);
}

/* ==========================================================================
   Reset e base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 10px;
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
abbr, cite, code, del, dfn, em, ins, kbd, q, s, samp, small, strong, sub, sup,
var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: 300;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, main, nav, section {
	display: block;
}

[hidden] {
	display: none;
}

body {
	background-color: var(--ff-sfondo);
	color: var(--ff-testo);
	font-family: var(--ff-font-testo);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	margin: 0;
}

a {
	background: transparent;
	color: var(--ff-link);
	text-decoration: none;
	transition: all ease-in-out 0.2s;
}

a:hover,
a:active {
	color: var(--ff-rosso);
	outline: 0;
	text-decoration: none;
}

a:focus-visible {
	outline: 2px solid var(--ff-rosso);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	color: inherit;
	font-family: var(--ff-font-titoli);
	font-weight: 300;
	margin: 36px 0 12px;
	text-transform: uppercase;
}

h1 { font-size: 26px; line-height: 1.3846153846; }
h2 { font-size: 24px; line-height: 1; }
h3 { font-size: 22px; line-height: 1.0909090909; }
h4 { font-size: 20px; line-height: 1.2; }
h5 { font-size: 18px; line-height: 1.3333333333; }
h6 { font-size: 12px; line-height: 1.1; }

b,
strong {
	font-weight: 700;
}

cite, dfn, em, i {
	font-style: italic;
}

p {
	margin-bottom: 24px;
}

dl {
	margin-bottom: 24px;
}

dt {
	font-weight: bold;
}

ul,
ol {
	margin: 0 0 24px 20px;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li > ul,
li > ol {
	margin: 0 0 0 20px;
}

img {
	border: 0;
	vertical-align: middle;
}

svg:not(:root) {
	overflow: hidden;
}

/* ==========================================================================
   Moduli
   ========================================================================== */

button,
input,
select,
textarea {
	color: #2b2b2b;
	font-family: "Lato";
	font-size: 100%;
	line-height: 1.5;
	margin: 0;
	max-width: 100%;
	vertical-align: baseline;
}

button,
input {
	line-height: normal;
}

button,
select {
	text-transform: none;
}

input,
textarea {
	background-color: #fff;
	background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 2px;
	color: #2b2b2b;
	font-size: 15px;
	font-weight: 300;
	padding: 8px 10px 7px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
	background-color: var(--ff-rosso);
	border: 0;
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 17px;
	font-weight: 300;
	letter-spacing: normal;
	line-height: 36px;
	min-height: 36px;
	overflow: visible;
	padding: 2px 24px;
	text-align: center;
	transition: all 0.2s linear 0s;
	vertical-align: middle;
}

button[disabled],
input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input[type="checkbox"],
input[type="radio"] {
	line-height: normal;
	margin: 4px 0 0;
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

input[type="file"] {
	display: block;
}

select[size] {
	height: auto;
}

textarea {
	overflow: auto;
	vertical-align: top;
	width: 100%;
}

label {
	display: inline-block;
	max-width: 100%;
}

/* ==========================================================================
   Tabelle
   ========================================================================== */

table,
th,
td {
	border: 1px solid rgba(0, 0, 0, 0.1);
}

table {
	background-color: transparent;
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	margin-bottom: 24px;
	width: 100%;
}

caption,
th,
td {
	font-weight: normal;
	text-align: left;
}

th {
	border-width: 0 1px 1px 0;
	font-weight: bold;
}

td {
	border-width: 0 1px 1px 0;
}

/* Classe .table usata da alcuni plugin (era fornita da Bootstrap). */
.table {
	margin-bottom: 20px;
	max-width: 100%;
	width: 100%;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td {
	border-top: 1px solid #ddd;
	line-height: 1.42857143;
	padding: 8px;
	vertical-align: top;
}

.table > thead > tr > th {
	border-bottom: 2px solid #ddd;
	vertical-align: bottom;
}

.table > thead:first-child > tr:first-child > th,
.table > thead:first-child > tr:first-child > td {
	border-top: 0;
}

/* ==========================================================================
   Griglia (sottoinsieme compatibile con le classi gia' presenti nei contenuti)
   ========================================================================== */

.container {
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.row {
	margin-left: -15px;
	margin-right: -15px;
}

.container::before, .container::after,
.row::before, .row::after,
.clearfix::before, .clearfix::after {
	content: " ";
	display: table;
}

.container::after,
.row::after,
.clearfix::after {
	clear: both;
}

.col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-12,
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
	min-height: 1px;
	padding-left: 15px;
	padding-right: 15px;
	position: relative;
}

@media (min-width: 768px) {
	.col-sm-3, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-12 { float: left; }
	.col-sm-12 { width: 100%; }
	.col-sm-8  { width: 66.66666667%; }
	.col-sm-6  { width: 50%; }
	.col-sm-4  { width: 33.33333333%; }
	.col-sm-3  { width: 25%; }
}

@media (min-width: 992px) {
	.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 { float: left; }
	.col-md-12 { width: 100%; }
	.col-md-8  { width: 66.66666667%; }
	.col-md-6  { width: 50%; }
	.col-md-4  { width: 33.33333333%; }
	.col-md-3  { width: 25%; }
}

/* ==========================================================================
   Accessibilita' e utilita' WordPress
   ========================================================================== */

.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 {
	background-color: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	clip-path: none;
	color: var(--ff-link);
	display: block;
	font-size: 14px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	background: #fff;
	border: 1px solid #f0f0f0;
	max-width: 96%;
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone,
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.sticky {
	background: #FDFDFD !important;
	border-top: 3px solid var(--ff-rosso);
}

/* Gallerie native di WordPress */
.gallery {
	margin-bottom: 20px;
}

.gallery-item {
	float: left;
	margin: 0 4px 4px 0;
	overflow: hidden;
	position: relative;
}

.gallery-columns-1 .gallery-item { max-width: 100%; }
.gallery-columns-2 .gallery-item { max-width: calc(50% - 4px); }
.gallery-columns-3 .gallery-item { max-width: calc(33.3% - 4px); }
.gallery-columns-4 .gallery-item { max-width: calc(25% - 4px); }
.gallery-columns-5 .gallery-item { max-width: calc(20% - 4px); }

.gallery-columns-1 .gallery-item:nth-of-type(1n),
.gallery-columns-2 .gallery-item:nth-of-type(2n),
.gallery-columns-3 .gallery-item:nth-of-type(3n),
.gallery-columns-4 .gallery-item:nth-of-type(4n),
.gallery-columns-5 .gallery-item:nth-of-type(5n) {
	margin-right: 0;
}

/* Animazione d'ingresso delle immagini in evidenza */
.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}

.bounceIn {
	animation-duration: 0.75s;
	animation-name: bounceIn;
}

@keyframes bounceIn {
	0%, 20%, 40%, 60%, 80%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0%   { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
	20%  { transform: scale3d(1.1, 1.1, 1.1); }
	40%  { transform: scale3d(0.9, 0.9, 0.9); }
	60%  { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
	80%  { transform: scale3d(0.97, 0.97, 0.97); }
	100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@media (prefers-reduced-motion: reduce) {
	.animated { animation: none; }
}

/* Icone dei metadati (stesso font del tema precedente) */
@font-face {
	font-display: block;
	font-family: "Glyphicons Halflings";
	src: url("fonts/glyphicons-halflings-regular.woff") format("woff");
}

.glyphicon {
	display: inline-block;
	font-family: "Glyphicons Halflings";
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	position: relative;
	top: 1px;
	-webkit-font-smoothing: antialiased;
}

.glyphicon-eye-open::before { content: "\e105"; }
.glyphicon-calendar::before { content: "\e109"; }
.glyphicon-comment::before  { content: "\e111"; }
.glyphicon-tag::before      { content: "\e041"; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background-color: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
	position: relative;
	z-index: 100;
}

/* Riga del logo alta 100px, menu centrato sotto. */
.site-header .header-content {
	line-height: 100px;
	position: relative;
}

.site-title {
	float: left;
	height: 100px;
	padding: 0 15px;
	position: relative;
	text-align: center;
	width: 100%;
}

/* Header fisso durante lo scorrimento (solo schermi larghi, gestito da theme.js) */
.site-header.fixed {
	position: fixed;
	top: -100%;
	transition: top 0.7s ease-in-out 0s;
	width: 100%;
}

.site-header.shrink {
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
	top: 0;
}

.site-header.shrink .header-content {
	line-height: 61px;
}

.site-header.shrink .site-title {
	height: 61px;
}

/* --- Menu principale ------------------------------------------------------ */

/* Il menu sta sotto il logo, centrato: "table" stringe la larghezza alle voci. */
.site-navigation {
	clear: both;
	display: table;
	font-size: 14px;
	line-height: 30px;
	margin: 0 auto;
	padding: 0 15px;
	position: relative;
	text-align: left;
	z-index: 100;
}

.nav-menu {
	display: table-cell;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
	vertical-align: middle;
}

.nav-menu li {
	list-style: none;
	position: relative;
}

.nav-menu > li {
	display: inline-block;
	text-align: center;
	vertical-align: middle;
}

.nav-menu > li > a {
	border-radius: 2px;
	color: #333;
	display: block;
	font-size: 12px;
	font-weight: 500;
	overflow: hidden;
	padding: 7px 10px;
	position: relative;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s ease-in-out 0s;
	z-index: 251;
}

/* Il pallino rosso che si espande al passaggio del mouse */
.nav-menu > li > a::after {
	background-color: var(--ff-rosso);
	border-radius: 500px;
	content: "";
	height: 5px;
	left: 50%;
	margin-left: -2.5px;
	opacity: 0;
	position: absolute;
	top: 15px;
	transition: all 0.5s ease-in-out 0s, color 0.2s ease-in-out 0s;
	width: 5px;
	z-index: -1;
}

.nav-menu > li:hover > a,
.nav-menu > li:focus-within > a {
	color: #fff;
}

.nav-menu > li:hover > a::after,
.nav-menu > li:focus-within > a::after {
	opacity: 1;
	transform: scale(50);
}

.nav-menu .sub-menu {
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	left: -9999px;
	list-style: none;
	margin: 0 0 0 20px;
	opacity: 0;
	padding: 0;
	position: absolute;
	text-align: left;
	transform: translateY(-20px);
	transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
	width: 200px;
	z-index: 250;
}

/* Ponte invisibile tra voce e sottomenu, per non perdere l'hover */
.nav-menu .sub-menu::before {
	background-color: transparent;
	content: "";
	display: block;
	height: 31px;
	position: absolute;
	top: -31px;
	width: 100%;
	z-index: 10;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
	left: auto;
	opacity: 1;
	right: 0;
	transform: translateY(10px) scale(1);
}

.nav-menu .sub-menu a {
	color: #555;
	display: block;
	font-size: 14px;
	padding: 5px 20px;
	transition: all 0.15s ease 0s;
}

.nav-menu .sub-menu a:hover {
	color: var(--ff-rosso);
}

/* --- Pulsante del menu mobile ---------------------------------------------- */

.menu-toggle {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	display: none;
	float: right;
	height: 36px;
	line-height: 36px;
	margin: 30px 15px 8px 0;
	min-height: 0;
	opacity: 0.8;
	padding: 10px 10px 8px;
	position: relative;
	width: 44px;
}

.site-header.shrink .menu-toggle {
	margin-top: 10px;
}

.menu-toggle .icon-bar {
	background-color: var(--ff-rosso);
	border-radius: 1px;
	display: block;
	height: 2px;
	width: 22px;
}

.menu-toggle .icon-bar + .icon-bar {
	margin-top: 4px;
}

@media (max-width: 991px) {
	.site-header {
		margin-bottom: 40px;
	}

	.menu-toggle {
		display: block;
	}

	.site-navigation {
		border-top: 1px solid transparent;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
		display: none;
		overflow: auto;
		padding: 0;
		width: 100%;
	}

	.site-navigation.is-open,
	.site-navigation.is-animating {
		display: block;
	}

	.site-navigation.is-animating {
		overflow: hidden;
		transition: height 0.35s ease;
	}

	.nav-menu {
		display: block;
	}

	.nav-menu li {
		clear: left;
		display: block;
		float: left;
		text-align: left;
		width: 100%;
	}

	.nav-menu > li > a {
		border-radius: 0;
		color: #fff;
		width: 100%;
	}

	/* Su mobile il pallino e' gia' espanso: la voce appare come una fascia rossa */
	.nav-menu > li > a::after {
		opacity: 1;
		transform: scale(150);
		transition: none;
	}

	.nav-menu > li:hover > a::after,
	.nav-menu > li:focus-within > a::after {
		transform: scale(150);
	}

	.nav-menu .sub-menu,
	.nav-menu > li:hover > .sub-menu,
	.nav-menu > li:focus-within > .sub-menu {
		background-color: transparent;
		left: 0;
		opacity: 1;
		position: relative;
		transform: none;
		width: auto;
	}

	.nav-menu .sub-menu::before {
		display: none;
	}

	.nav-menu .sub-menu li {
		border-bottom: 1px solid #ddd;
		padding-left: 15px;
	}

	.nav-menu .sub-menu li:last-child {
		border: 0;
	}

	.nav-menu .sub-menu a,
	.nav-menu .sub-menu a:hover {
		background-color: transparent;
		padding: 10px 20px;
	}
}

@media (max-width: 991px) {
	.site-title {
		padding-left: 20px;
		text-align: left;
		width: 75%;
	}

	.site-header .header-content {
		line-height: 95px;
	}
}

/* ==========================================================================
   Slider della home
   ========================================================================== */

.featured-slider {
	margin-bottom: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	top: -30px;
	width: 100%;
}

.featured-content {
	background-color: #222;
	height: 600px;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

/* Sfumatura scura sotto le schede */
.featured-content::after {
	bottom: -100px;
	box-shadow: 0 -70px 70px rgba(0, 0, 0, 0.3);
	content: "";
	height: 100px;
	left: 0;
	position: absolute;
	right: 0;
}

.featured-content-inner {
	height: 100%;
	position: relative;
}

/* Slide sovrapposte: si passa dall'una all'altra in dissolvenza incrociata */
.slide {
	color: #fff;
	height: 600px;
	inset: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	transition: opacity 1.5s ease, visibility 0s linear 1.5s;
	visibility: hidden;
	z-index: 0;
}

.slide.is-active {
	opacity: 1;
	transition: opacity 1.5s ease, visibility 0s;
	visibility: visible;
	z-index: 1;
}

/* Velo scuro sopra la foto */
.slide::before {
	background: rgba(0, 0, 0, 0.5);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.slide .slide-image {
	background-color: #555;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	transform: translateX(0) translateY(0) scale(1.03);
	transition: transform 2s ease 1s;
	width: 100%;
	z-index: -1;
}

/* Lento zoom della foto attiva */
.slide.is-active .slide-image {
	transform: translateX(-15px) translateY(15px) scale(1.1);
	transition: transform 15s ease 0s;
}

.slide .slide-inner {
	margin: 0 auto;
	width: 58.33333333%;
}

.slide .entry-header {
	margin-top: 100px;
	position: relative;
	z-index: 3;
}

.slide .entry-title {
	color: #fff;
	font-family: var(--ff-font-titoli);
	font-size: 60px;
	font-weight: 500;
	line-height: 65px;
	margin-bottom: 30px;
	text-transform: uppercase;
	width: 70%;
}

.slide .slider-content {
	width: 85%;
}

.slide .slider-content p {
	color: #fff;
	font-size: 140%;
	font-weight: 100;
	line-height: 32px;
	position: relative;
	z-index: 3;
}

/* --- Schede sotto lo slider ------------------------------------------------ */

.featured-slider .tabs-container {
	position: relative;
}

.featured-slider .tabs {
	bottom: 0;
	margin: 0 auto;
	padding: 0 15px;
	position: absolute;
	width: 100%;
	z-index: 10;
}

.featured-slider .tabs a {
	border-bottom: 4px solid transparent;
	color: #fff;
	display: table-cell;
	float: none;
	font-size: 18px;
	font-weight: 900;
	height: 95px;
	line-height: 1.1;
	outline: none;
	padding: 25px 25px 15px;
	position: relative;
	text-align: left;
	text-transform: uppercase;
	transition: all 0.2s ease-in-out 0s;
	vertical-align: bottom;
	width: 25%;
}

.featured-slider .tabs a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.featured-slider .tabs a.active {
	color: #fff;
	padding: 0 25px;
}

/* Le due meta' del riempimento rosso della scheda attiva */
.featured-slider .tabs a::before,
.featured-slider .tabs a::after {
	background: var(--ff-rosso-trasparente);
	border-bottom: 4px solid var(--ff-rosso-trasparente);
	bottom: -4px;
	content: "";
	opacity: 1;
	position: absolute;
	right: 50%;
	width: 0;
	z-index: -1;
}

.featured-slider .tabs a::before {
	left: 50%;
	right: auto;
}

.featured-slider .tabs a.active::before,
.featured-slider .tabs a.active::after {
	animation: ff-riempi 0.5s 1;
	border-bottom: 4px solid transparent;
	height: 100%;
	width: 50%;
}

.featured-slider .tabs a:not(.active):hover::before,
.featured-slider .tabs a:not(.active):hover::after {
	animation: ff-allarga 0.5s 1;
	height: 0;
	width: 50%;
}

@keyframes ff-riempi {
	0%   { height: 0; width: 50%; }
	100% { height: 100%; width: 50%; }
}

@keyframes ff-allarga {
	0%   { height: 0; width: 0%; }
	100% { width: 50%; }
}

.featured-slider .tabs .tab-date {
	display: block;
	font-size: 80%;
	font-weight: 300;
	margin-bottom: 10px;
}

.featured-slider .tabs .tab-title {
	display: block;
	font-family: var(--ff-font-titoli);
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 1px;
	line-height: 1;
	margin: 0 0 12px;
}

@media (max-width: 992px) {
	.featured-slider .tabs {
		display: none;
	}

	.slide .entry-header {
		margin-top: 50px;
	}

	.slide .slide-inner {
		width: 80%;
	}

	.slide .slider-content,
	.slide .entry-title {
		width: 90%;
	}

	.featured-content::after {
		box-shadow: none;
	}

	.slide .slide-image,
	.slide.is-active .slide-image {
		transform: none;
		transition: none;
	}
}

@media (max-width: 767px) {
	.slide .entry-title {
		font-size: 50px;
		line-height: 45px;
	}

	.slide .slider-content p {
		font-size: 120%;
		line-height: 28px;
	}
}

@media (max-width: 570px) {
	.slide .entry-title {
		font-size: 40px;
		line-height: 35px;
	}

	.slide .slider-content p {
		font-size: 100%;
		line-height: 24px;
	}
}

@media (max-width: 480px) {
	.slide .entry-title {
		font-size: 30px;
		line-height: 25px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slide,
	.slide.is-active,
	.slide .slide-image,
	.slide.is-active .slide-image {
		transition: none;
	}

	.slide.is-active .slide-image {
		transform: scale(1.03);
	}
}

/* ==========================================================================
   Contenuti
   ========================================================================== */

.site-main {
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

.content-area #content {
	margin-top: 73px;
}

/* --- Card di articoli e pagine --------------------------------------------- */

.site-content article {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: var(--ff-ombra-card);
	display: block;
	float: left;
	margin: 0 0 22px;
	max-width: 100%;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.site-content article .entry-header {
	padding: 35px 30px 25px;
	text-align: left;
}

.page .site-content article .entry-header {
	padding-bottom: 15px;
}

.site-content article .entry-header .entry-title {
	font-size: 33px;
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 0;
	text-align: left;
}

.site-content article .entry-meta {
	color: var(--ff-meta);
	font-size: 14px;
	text-align: left;
	text-transform: uppercase;
}

.site-content article .entry-meta span {
	border-radius: 2px;
	display: inline-block;
	font-weight: 300;
	margin: 1px;
	padding: 0 12px 0 0;
}

.site-content article .entry-meta .glyphicon {
	padding-right: 5px;
}

.site-content article .entry-meta a {
	color: var(--ff-meta);
}

.site-content article .entry-meta a:hover {
	color: #000;
}

.site-content article .post-thumbnail img {
	height: auto;
	margin-bottom: 40px;
	max-width: 100%;
}

.site-content article .entry-summary,
.site-content article .entry-content {
	font-size: 17px;
	line-height: 1.5;
	margin: 0;
	padding: 0 15px 30px;
}

.site-content article .entry-content img {
	height: auto;
	margin-bottom: 30px;
	max-width: 100%;
}

.site-content article .entry-content div {
	max-width: 100%;
}

.site-content article .entry-content .wp-caption {
	margin-bottom: 30px;
}

.site-content article .entry-content .wp-caption img {
	margin-bottom: 15px;
}

article .entry-content dl {
	margin-bottom: 30px;
}

/* Tabelle nei contenuti (anche quelle dell'albo pretorio) */
article .entry-content table {
	border: 0;
	width: 100%;
}

article .entry-content table thead {
	background: #f7f7f7;
}

article .entry-content table td,
article .entry-content table th {
	border: 0;
	padding: 10px;
}

article .entry-content table th {
	font-weight: 400;
}

article .entry-content table thead th {
	font-weight: bold;
	text-align: left;
}

article .entry-content table td {
	font-weight: 300;
}

article .entry-content table tr:nth-child(even) {
	background: #f7f7f7;
}

/* --- Titoli di archivio e ricerca ------------------------------------------ */

.page-header {
	border: 0;
	margin-bottom: 16px;
	margin-top: 63px;
	padding-bottom: 9px;
}

.page-header h1 {
	margin-bottom: 9px;
	margin-top: -69px;
	text-transform: uppercase;
}

/* --- Paginazione ----------------------------------------------------------- */

.entry-content .page-links,
.pagination {
	clear: both;
	font-size: 13px;
	line-height: 25px;
	margin: 20px auto;
	text-align: center;
	width: 100%;
}

.entry-content .page-links a,
.entry-content .page-links > span:not(.page-links-title),
.pagination a,
.pagination .page-numbers.current {
	background-color: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 2px;
	color: #777;
	display: inline-block;
	margin-left: 5px;
	padding: 9px 19px;
	text-align: center;
}

.entry-content .page-links > span:not(.page-links-title),
.pagination .page-numbers.current,
.entry-content .page-links a:hover,
.pagination a:hover {
	background-color: var(--ff-rosso);
	border: 1px solid var(--ff-rosso);
	color: #fff;
}

.pagination .page-numbers.dots {
	margin-left: 5px;
}

/* --- Pagina 404 ------------------------------------------------------------ */

.error404 .page-header h1 {
	font-size: 250px;
	font-weight: 100;
	line-height: 250px;
}

.error404 .page-content {
	margin-top: 50px;
}

.error404 .page-content p {
	font-size: 25px;
	font-weight: 300;
	line-height: 42px;
	text-align: center;
}

.error404 .search-form {
	text-align: center;
}

.error404 .search-form .search-field {
	border-color: #dfdfdf;
	display: inline-block;
	height: 40px;
	line-height: 39px;
	position: relative;
	top: 3px;
}

.error404 .search-form .search-submit {
	margin-left: 10px;
}

/* --- Widget ---------------------------------------------------------------- */

.widget p,
.widget table {
	margin: 0;
	padding: 0;
}

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

.widget img:hover {
	opacity: 0.7;
	transition: all 0.2s;
}

.widget h3.widget-title,
.widget-title {
	border-bottom: 3px solid var(--ff-rosso);
	padding-bottom: 1px;
	position: relative;
	z-index: 1;
}

.widget .divider {
	position: relative;
}

/* Linea grigia sotto il titolo del widget, su cui poggia quella rossa */
.widget .divider::after {
	border-bottom: 1px solid rgb(219, 219, 219);
	bottom: 29px;
	content: "";
	position: absolute;
	right: 0;
	width: 100%;
	z-index: 0;
}

/* --- Barra laterale della home --------------------------------------------- */

.content-sidebar {
	margin-top: 73px;
}

.content-sidebar .widget {
	margin-bottom: 30px;
}

.content-sidebar .widget h3.widget-title {
	display: inline-block;
	font-size: 18px;
	line-height: 25px;
	margin: 0 0 29px;
	padding: 5px 10px;
}

/* Il contenuto del widget sta in una card, come gli articoli */
.content-sidebar .widget > :not(.divider) {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: var(--ff-ombra-card);
	font-size: 15px;
	line-height: 1.5;
	padding: 25px;
	position: relative;
}

.content-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.content-sidebar .widget li + li {
	border-top: 1px solid #eee;
	margin-top: 10px;
	padding-top: 10px;
}

/* Widget "Albo On Line": schede Dati atti / Atti correnti */
.content-sidebar #pp-tabs-container > ul {
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 4px;
	margin-bottom: 15px;
}

.content-sidebar #pp-tabs-container > ul > li,
.content-sidebar #pp-tabs-container > ul > li + li {
	border: 0;
	margin: 0;
	padding: 0;
}

.content-sidebar #pp-tabs-container > ul > li > a {
	border-bottom: 3px solid transparent;
	color: #777;
	display: block;
	font-size: 13px;
	padding: 6px 10px;
	text-transform: uppercase;
}

.content-sidebar #pp-tabs-container > ul > li.ui-tabs-active > a,
.content-sidebar #pp-tabs-container > ul > li > a:hover {
	border-bottom-color: var(--ff-rosso);
	color: var(--ff-testo);
}

.content-sidebar #pp-tabs-container li br {
	display: none;
}

/* Neutralizza la cornice grigia del tema jQuery UI caricato dal plugin */
.content-sidebar #pp-tabs-container,
.content-sidebar #pp-tabs-container .ui-widget-header,
.content-sidebar #pp-tabs-container .ui-tabs-nav li,
.content-sidebar #pp-tabs-container .ui-tabs-panel {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.content-sidebar #pp-tabs-container .ui-tabs-nav {
	border-bottom: 1px solid #eee;
}

.content-sidebar #pp-tabs-container .ui-tabs-nav li a {
	float: none;
}

@media (max-width: 767px) {
	.content-sidebar {
		margin-top: 30px;
	}
}

/* --- Contact Form 7 -------------------------------------------------------- */

/* Etichette e campi stanno in paragrafi separati: niente spazio tra l'una e l'altro */
.wpcf7-form p {
	clear: both;
	margin: 0;
	position: relative;
}

.wpcf7-form p input,
.wpcf7-form p textarea {
	width: 100%;
}

.wpcf7-form p br {
	display: none;
}

/* Casella di accettazione della privacy: spunta e testo sulla stessa riga */
.wpcf7-form span.wpcf7-list-item {
	display: block;
	margin: 12px 0 0;
}

.wpcf7-form .wpcf7-list-item label {
	align-items: flex-start;
	display: flex;
	font-size: 14px;
	gap: 10px;
	line-height: 1.5;
}

.wpcf7-form p .wpcf7-list-item input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 4px;
	width: auto;
}

.wpcf7-submit {
	margin-top: 20px;
}

/* --- Elenco del direttivo (shortcode [direttivo] del mu-plugin ff-direttivo) */

.entry-content .ff-direttivo {
	gap: 40px 25px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
	margin: 0 0 24px;
	padding: 0 10px;
}

.ff-direttivo__foto img {
	margin-bottom: 0;
	max-width: 100%;
}

.entry-content .ff-direttivo__nome {
	color: #666;
	font-family: var(--ff-font-testo);
	font-size: 14px;
	line-height: 1.4;
	margin: 12px 10px 4px;
	text-transform: none;
}

.entry-content .ff-direttivo__carica {
	color: #666;
	font-size: 12px;
	line-height: 1.4;
	margin: 0 10px;
}

.entry-content .ff-direttivo__bio {
	font-size: 14px;
	margin: 8px 10px 0;
}

/* --- Layout della pagina Contatti (sostituisce il page builder) ------------ */

.ff-mappa {
	margin-bottom: 40px;
}

.ff-mappa::after {
	clear: both;
	content: "";
	display: table;
}

.ff-colonne {
	column-gap: 13%;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ff-colonne > div {
	min-width: 0;
}

.ff-colonne .widget-title {
	font-size: 22px;
	line-height: 24px;
	margin: 0 0 12px;
}

.ff-colonne .ff-referente {
	border-bottom: 1px solid #eee;
}

.ff-colonne .ff-ruolo {
	color: #808080;
}

@media (max-width: 780px) {
	.ff-colonne {
		display: block;
	}

	.ff-colonne > div + div {
		margin-top: 30px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer-wrapper {
	background: #fff;
	box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.09);
	clear: both;
	margin-top: 100px;
}

.error404 .site-footer-wrapper {
	margin-top: 110px;
}

.site-footer {
	font-family: var(--ff-font-footer);
	font-size: 90%;
	margin-top: 30px;
	position: relative;
}

.footer-column-2 {
	padding-bottom: 10px;
	text-align: center;
}

.site-footer .widget h3.widget-title {
	display: inline-block;
	font-family: var(--ff-font-titoli);
	font-size: 18px;
	font-weight: 300;
	line-height: 25px;
	margin: 0 0 29px;
	padding: 5px 10px;
	text-align: left;
	text-transform: uppercase;
}

.site-info {
	background-color: #333;
	border-top: 2px solid var(--ff-rosso);
	color: #A5A5A5;
	font-family: "Open sans", sans-serif;
	font-weight: 300;
	height: 70px;
	line-height: 70px;
	margin-top: 50px;
	padding: 0 15px;
	position: relative;
	width: 100%;
}

.site-info a {
	color: #fff;
}

.site-info a:hover {
	color: var(--ff-rosso);
}

.site-info-content,
.site-info .copyright {
	text-align: center;
}

/* Su schermi stretti il copyright va su piu' righe: la fascia scura si allunga */
@media (max-width: 767px) {
	.site-info {
		height: auto;
		line-height: 24px;
		min-height: 70px;
		padding: 23px 15px;
	}
}

/* Icone telefono ed email della pagina Contatti (SVG incorporati, nessun font esterno) */
.ff-tel::before,
.ff-email::before {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 16px;
	margin-right: 8px;
	-webkit-mask: var(--ff-icona) no-repeat center / contain;
	mask: var(--ff-icona) no-repeat center / contain;
	vertical-align: -2px;
	width: 16px;
}

.ff-tel {
	--ff-icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.ff-email {
	--ff-icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}
