/*!
Theme Name: MAG The Farmer Fair
Description: MAG The Farmer Fair tema dedicato
Author: The Bottega Digitale
Author URI: https://thebottega.digital/
Version: 1.0.0
Text Domain: magfarmerfair
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

magfarmerfair is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.2;
	-webkit-text-size-adjust: 100%;
	font-size: 18px;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: 600;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-size: 100%;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 2px solid blue;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #444;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

p:not(.elementor-widget-text-editor p) {
    font-weight: 300;
}

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

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
	overflow-x: hidden;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	font-size: 1rem;
	font-weight: 300;
	padding-left: 20px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: var(--weight-bold);
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a,
a:visited {
	color: var(--color-2);
	text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: var(--color-1);
}

*:focus-visible {
  outline: 2px solid blue;
  outline-offset: 3px;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
	width: 100%;
	color: #333;
	font-size: 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 15px 20px;
	transition: border-color 0.2s;
	background-color: var(--color-bg);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
		outline: 2px solid var(--color-2);
		outline-offset: 0px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
  color: #6f6f6f;
}

select option:first-of-type {
  color: #6f6f6f;
}

option:not(:first-of-type) {
  color: #333;
}

button,
select,
label,
input[type="submit"] {
	cursor: pointer;
}

textarea {
	width: 100%;
}

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

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.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;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: var(--weight-bold);
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


/* ------------------ Inizio tema  ------------------ */

:root {
	--color-1: #288100;
	--color-2: #2976a0;
 	--color-3: #80bc04;
	--color-bg: #f2f4f7;
	--color-bg-2: #071534;
	--color-text: #333;
	--weight-bold: 700;
	--wave-angle: 45deg;
}

@property --color-3 {
  syntax: '<color>';
  initial-value: #80bc04;
  inherits: false;
}


#primary {
	overflow: hidden!important;
}

/* UTILITA' */

.site-container {
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 80px;
}

.site-container-small {
	max-width: 1280px;
  	margin: 0 auto;
	padding: 0 40px;
}

@media screen and (max-width: 1360px) {
	.site-container {
		padding: 0 40px;
	}
}

@media screen and (max-width: 480px) {
	.site-container,
	.site-container-small {
		padding: 0 20px;
	}
}

h1,
h2,
.main-title {
	font-size: 36px;
	color:var(--color-1);
	line-height: 1.2;
}

body:where(:not(.single-post):not(.home)) .site-main h1:where(:not(.basic-title):not(.page-title)),
:where(.post-content, .site-main) h2:where(:not(.basic-title):not(.page-title)),
.main-title,
.text-gradient {
	display: inline-block;
	margin: 0;
  	background-image: linear-gradient(to right, var(--color-2), var(--color-1));
  	-webkit-background-clip: text;
  	background-clip: text;
  	-webkit-text-fill-color: transparent;
}

.basic-title.elementor-widget-heading .elementor-heading-title  {
	background-image: none!important;
  	-webkit-background-clip: inherit!important;
  	background-clip: inherit!important;
  	-webkit-text-fill-color: inherit!important;
}

.border-gradient,
.border-gradient.elementor-widget-n-accordion .e-n-accordion-item {
	border-image-source: linear-gradient(to right, var(--color-2), var(--color-3));
	border-image-slice: 1; 
}

.gradient-img, .gradient-img-2 {
	overflow: hidden;
	background-size: cover;
  	background-position: center;
  	background-repeat: no-repeat;
  	background-blend-mode: multiply; 
}

.gradient-img {
	background-image: linear-gradient(45deg, var(--color-2), var(--color-3)), url("img/mag_bg_01.jpg");
}

.gradient-img-2 {
	background-image: linear-gradient(45deg, var(--color-2), var(--color-1)), url("img/mag_bg_01.jpg");
}

h3 {
	font-size: 24px;
	color: var(--color-2);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.section-title:not(.elementor-widget-heading),
.section-title.elementor-widget-heading .elementor-heading-title {
	font-size: 24px;
	text-transform: uppercase;
	font-weight: var(--weight-bold);
	position: relative;
	margin: 0;
	color: var(--color-2);
	min-width: fit-content;
	width: 100%;
	display: flex;
	align-items: center;
	text-align: center;
	background-image: none;
  	-webkit-background-clip: unset;
  	background-clip: unset;
  	-webkit-text-fill-color: unset;
	margin-bottom: 20px;
}

.section-title:not(.elementor-widget-heading)::before,
.section-title.elementor-widget-heading .elementor-heading-title::before, 
.section-title:not(.elementor-widget-heading)::after,
.section-title.elementor-widget-heading .elementor-heading-title::after {
	content: "";
	height: 1px;
	background-color: var(--color-2);
	flex: 1;
	background-image: linear-gradient(to left, var(--color-2), var(--color-3));
}

.section-title:not(.elementor-widget-heading)::after,
.section-title.elementor-widget-heading .elementor-heading-title::after {
	background-image: linear-gradient(to left, var(--color-3), var(--color-2));
}

.section-title.white:not(.elementor-widget-heading)::before,
.section-title.white.elementor-widget-heading .elementor-heading-title::before, 
.section-title.white:not(.elementor-widget-heading)::after,
.section-title.white.elementor-widget-heading .elementor-heading-title::after {
	background-color: rgba(255,255,255,0.2);
	background-image: inherit;
}

.section-title:not(.elementor-widget-heading)::before,
.section-title.elementor-widget-heading .elementor-heading-title::before {
	margin-right: 16px;
}

.section-title:not(.elementor-widget-heading)::after,
.section-title.elementor-widget-heading .elementor-heading-title::after {
	margin-left: 16px;
}


.site-main a {
	font-weight: var(--weight-bold);
}

.elementor-page .elementor-heading-title {
	line-height: 1.2;
}

.site-main :is(p, ul) {
	line-height: 1.6;
}

.page article.page a,
.single article:is(.post, .agrifestival) .entry-content a {
	font-weight: 600;
}

@media screen and (max-width: 768px) {
	h1,
	h2,
	.main-title {
		font-size: 28px;
	}
	h3 {
		font-size: 22px;
	}
}

ul.menu,
ul.list-style,
.site-footer ul,
.single-post .post-content .entry-content ul,
.elementor-widget-text-editor ul {
	padding-left: 0px;
	list-style: none;
}

ol.list-style,
.single-post .post-content .entry-content ol,
.elementor-widget-text-editor ol {
	 counter-reset: item;
	 padding-left: 0px;
 	 list-style: none;
}

:is(ul, ol).list-style li,
.single-post .post-content .entry-content :is(ul, ol) li,
.elementor-widget-text-editor :is(ul, ol) li {
	position: relative;
	padding-left: 1.25em;
}

ul.list-style li::before,
.single-post .post-content .entry-content ul li::before,
.elementor-widget-text-editor ul li::before {
  content: "";
  border: solid var(--color-2);
	width: 6px;
	height: 6px;
	border-radius: 6px;
	top: 12px;
	position: absolute;
	left: 2px;
}

ol.list-style li::before,
.single-post .post-content .entry-content ol li::before,
.elementor-widget-text-editor ol li::before {
	content: counter(item) ". ";
	counter-increment: item;
	position: absolute;
	left: 2px;
	color: var(--color-2);
	font-size: 0.8em;
	font-weight: 400;
	top: 4px;
}

ul.nude, ol.nude {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

a.button,
button.button,
.wp-block-button > a,
.elementor-widget-button:not(.nostile) a.elementor-button {
	text-decoration: none;
	color: #fff;
	background-color: var(--color-2);
	padding: 18px 24px;
	display: inline-block;
	transition: padding 0.5s, background-color 0.5s, color 0.5s;
	font-weight: 500;
	font-size: 15px;
	border-radius: 10px;
	text-transform: uppercase;
	border: none;
	line-height: 1.2;
}

a.button:not(.no-arrow)::after,
button.button:not(.no-arrow)::after,
.wp-block-button:not(.no-arrow) > a::after,
.elementor-widget-button:not(.nostile):not(.no-arrow) a.elementor-button .elementor-button-text::after  {
	content: "";
	border-style: solid;
	border-width: 0 2px 2px 0;
	display: inline-block;
	  padding: 3px;
	transform: rotate(-45deg) scale(1);
	margin-left: 5px;
	position: relative;
	top: -1px;
	transition: opacity 0.5s, transform 0.5s;
}

a.button:hover,
button.button:hover,
.wp-block-button > a:hover,
.elementor-widget-button:not(.nostile) a.elementor-button:hover {
	background-color: var(--color-1);
}

a.button:not(.no-arrow):hover,
button.button:not(.no-arrow):hover,
.wp-block-button:not(.no-arrow) > a:hover,
.elementor-widget-button:not(.nostile):not(.no-arrow) a.elementor-button:hover {
	padding-left: 30px;
	padding-right: 18px;
}

a.button:not(.no-arrow):hover::after,
button.button:not(.no-arrow):hover::after,
.wp-block-button:not(.no-arrow) > a:hover::after,
.elementor-widget-button:not(.nostile):not(.no-arrow) a.elementor-button:hover .elementor-button-text::after   {
	opacity: 0;
	transform: rotate(-45deg) scale(0.1);
}

.elementor-widget-button:not(.nostile) a.elementor-button .elementor-button-content-wrapper {
	display: inline-block;
}

button.nude {
	background-color: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
	font-weight: inherit;
	text-transform: inherit;
}

@property --wave-angle {
  syntax: '<angle>';
  initial-value: 45deg;
  inherits: false;
}

@keyframes gradientAni {
	0% {
		--wave-angle: 45deg; 
	}
	40% {
		--wave-angle: 405deg;
	}
	100% {
		--wave-angle: 405deg;
	}
}

.mag-box,
.blog-container article:is(.post, .agrifestival) {
	border: 2px solid transparent;
	background-image: linear-gradient(#ffffff, #ffffff), 
                    linear-gradient(var(--wave-angle), var(--color-2), var(--color-3));
	background-origin: border-box;
	background-clip: padding-box, border-box;
	border-radius: 20px!important;
	outline: 4px solid #fff;
	outline-offset: 0px;
}

.mag-box {
	animation: gradientAni 10s ease-in-out infinite;
}


.hide {
	display: none;
}

@media screen and (min-width: 1201px) {
	.hide-desktop {
		display: none;
	}
}

@media screen and (max-width: 1200px) {
	.hide-mobile {
		display: none;
	}
}

.link-white a {
	font-weight: 300!important;
	color: #fff;
	transition: color 0.2s;
}


.link-white a:hover {
	color: var(--color-3);
}


/* Elementor */

.user-is-tabbing .elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

@media screen and (min-width: 1025px) {
	.col-img .elementor-widget-image {
		height: 0;
		min-height: 100%;
	}
}

@media screen and (max-width: 1200px) {
	.elementor-element.br br {
		display: none;
	}
}

.dialog-type-lightbox.dialog-type-lightbox {
	z-index: 99999;
}

.dialog-type-lightbox .elementor-slideshow__footer {
	display: none;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery .gallery-item {
	max-width: none;
}

.elementor-widget-image-gallery .elementor-image-gallery .gallery {
    grid-gap: 10px;
}

.elementor-counter-title {
	text-align: center;
}

.elementor-widget-video .elementor-open-inline .elementor-custom-embed-image-overlay {
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	border-radius: 12px;
	inset: 10px !important;
}

.elementor-widget-video .elementor-open-inline {
    border-radius: 12px;
	overflow: hidden;
}

.elementor-widget-video .elementor-open-inline iframe {
	height: calc(100% + 2px)!important;
}

.border-gradient.elementor-widget-n-accordion .e-n-accordion-item {
	border-bottom: 1px solid!important;
}

.border-gradient.elementor-widget-n-accordion .e-n-accordion-item-title {
	padding: 20px 0 22px!important;
}

.border-gradient.elementor-widget-n-accordion .elementor-widget-text-editor p {
	margin-top: 0;
}

.elementor-widget-google_maps .elementor-custom-embed {
	border-radius: 10px;
	overflow: hidden;
}

@media screen and (max-width: 768px) {
	.elementor-heading-title br {
		display: none;
	}
}

.elementor-element.elementor-pagination-position-outside .swiper-pagination {
	bottom: 0px!important;
}

.elementor-image-carousel {
	padding-top: 10px;
}

.elementor-widget-image-carousel .swiper-slide a[data-elementor-open-lightbox] {
	transition: transform 0.5s;
	transform: translateY(0px);
	display: inline-block;
}

.elementor-widget-image-carousel .swiper-slide a[data-elementor-open-lightbox]:hover {
	transform: translateY(-10px);
}


/* iubenda */

.iubenda-nostyle {
  width: auto!important;
	height: auto!important;
}

#iubenda-iframe #purposes-content-container .purposes-header .purposes-header-title {
  font-size: 40px !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
}

@media (max-width: 799px) {
 #iubenda-iframe #purposes-content-container .purposes-header .purposes-header-title {
    font-size: 24px !important;
  }
}


/* header titolo */

#title-header {
	min-height: 280px;
	height: auto;
	position: relative;
	padding: 40px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 60px;
}

#title-header p,
#title-header .page-title {
	color: #fff;
	text-align: center;
	line-height: 1.2;
	margin: 0;
	font-size: 20px;
}

#title-header .page-subtitle {
	font-size: 20px;
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	margin-bottom: 5px;
	letter-spacing: 0.5px;
}

#title-header .page-title {
	font-size: 48px;
	font-weight: var(--weight-bold);
}


@media screen and (max-width: 1360px) {
	#title-header {
		padding: 40px;
	}
}

@media screen and (max-width: 1200px) {
	#title-header::after {
		background-image: url("img/mag_bg_01_mobile_1.jpg");
	}
}

@media screen and (max-width: 768px) {
	#title-header .page-subtitle {
		font-size: 18px;
	}
	#title-header .page-title {
		font-size: 32px;
	}
}

@media screen and (max-width: 480px) {
	#title-header {
		padding: 40px 20px;
		margin-bottom: 40px;
	}
}


/* NAV */

#masthead {
	background-color: #fff;
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 9999;
	height: 80px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

body:not(.home) #masthead,
body.home.scrolling #masthead {
	transition: background-color 0.5s;
}

body.scrolling #masthead::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 10px;
  left: 0;
  bottom: -10px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05), transparent);
  transition: top 0.2s;
}

#masthead.toggled {
	background-color: var(--color-bg-2);
}

#masthead .header-container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#masthead :is(.nav-header-left, .nav-header-right) {
	width: 100%;
}

#masthead #secondary-menu {
	display: flex;
	font-size: 15px;
	text-transform: uppercase;
}

#masthead #secondary-menu li {
	padding-top: 5px;
	padding-bottom: 5px;
}

#masthead #secondary-menu li:not(:last-child) {
	padding-right: 40px;
}

#masthead #secondary-menu li:not(:first-child) {
	padding-left: 40px;
	border-left: 1px solid #ccc;
	transition: border-color 0.5s
}

#masthead.toggled .nav-header-right > :not(:last-child),
#masthead.toggled #secondary-menu li:not(:first-child) {
	border-color: #2f3f64;
}

#masthead #secondary-menu a {
	color: var(--color-text);
}

#masthead #secondary-menu a:hover {
	color: var(--color-2);
}

#masthead.toggled #secondary-menu a {
	color: #2f3f64;
}

#masthead .site-branding {
	position: relative;
	z-index: 9;
	padding-top: 5px;
}

#masthead .site-branding img {
	min-width: 180px;
}

#masthead .nav-header-right {
	display: flex;
	justify-content: flex-end;
}

#masthead .nav-header-right > *:not(:last-child) {
	padding-right: 30px;
	border-right: 1px solid #ccc;
	border-radius: 0;
	transition: border-color 0.5s
}

#masthead .nav-header-right > *:not(:first-child):not(:last-child) {
  padding-left: 30px;
}

/* NAV icone */

#masthead #secondary-menu a::before,
#main-menu #contact-menu li a::before,
#main-menu #social-menu a::before,
.site-footer .footer-contact ul.menu a::before {
	content:"";
	background-repeat: no-repeat;
	position: relative;
	width: 20px;
	height: 20px;
	margin-right: 12px;
	display: inline-block;
	top: 5px;
	background-size: contain;
	background-position: center;
}

#main-menu #contact-menu li,
.site-footer .footer-contact ul.menu li {
	margin-bottom: 24px;
	position: relative;
	line-height: 1.5;
}

#main-menu #contact-menu a {
	padding-left: 50px;
}

#main-menu #contact-menu .indirizzo a {
	max-width: 240px;
}

#main-menu #contact-menu a:hover {
	padding-left: 60px;
}

#main-menu #contact-menu li a:before,
.site-footer .footer-contact #menu-menu-contatti a::before  {
	filter: invert(100%) brightness(100%) contrast(100%);
	position: absolute;
	left: 0;
	margin: 0;
	top: 2px;
}

#main-menu #social-menu a,
.site-footer .footer-contact #menu-menu-social a {
	font-size: 0;
	width: 40px;
	padding: 0;
	justify-content: center;
	text-indent: -99999px;
	height: 40px;
	display: flex;
	align-items: center;
}

#main-menu #social-menu a::before,
.site-footer .footer-contact #menu-menu-social a::before {
	filter: invert(100%) brightness(100%) contrast(100%);
	margin: 0;
	top: 0;
	transform: scale(1);
	transition: transform 0.2s;
}

#main-menu #social-menu a:hover::before {
	transform: scale(1.4);
}

#masthead #secondary-menu .ticket a::before {
	background-image: url("img/ticket.svg");
}

#masthead #secondary-menu .area-riservata a::before {
	background-image: url("img/person.svg");
}

#masthead #secondary-menu a[href^="tel:"]::before,
.site-footer ul.menu a[href^="tel:"]::before {
	background-image: url("img/phone.svg");
}

#main-menu #contact-menu li a[href^="tel:"]::before,
.site-footer ul.menu a[href^="tel:"]::before {
	background-image: url("img/phone.svg");
}

#main-menu #contact-menu li a[href^="mailto:"]::before,
.site-footer ul.menu a[href^="mailto:"]::before {
	background-image: url("img/mail.svg");
}

#main-menu #contact-menu li.indirizzo a::before,
.site-footer .footer-contact li.indirizzo a::before {
	background-image: url("img/location.svg");
}

#main-menu #social-menu a[href^="https://www.facebook.com/"]::before,
.site-footer .footer-contact ul.menu a[href^="https://www.facebook.com/"]::before {
	background-image: url("img/facebook-f.svg");
}

#main-menu #social-menu a[href^="https://x.com/"]::before,
.site-footer .footer-contact ul.menu a[href^="https://x.com/"]::before {
	background-image: url("img/x-twitter.svg");
}

#main-menu #social-menu a[href^="https://www.youtube.com/"]::before,
.site-footer .footer-contact ul.menu a[href^="https://www.youtube.com/"]::before {
	background-image: url("img/youtube.svg");
}

#main-menu #social-menu a[href^="https://www.instagram.com/"]::before,
.site-footer .footer-contact ul.menu a[href^="https://www.instagram.com/"]::before {
	background-image: url("img/instagram.svg");
}

#masthead #secondary-menu a:hover::before {
	filter: invert(39%) sepia(51%) saturate(651%) hue-rotate(157deg) brightness(93%) contrast(89%);
}

#masthead.toggled #secondary-menu a::before {
	filter: invert(21%) sepia(12%) saturate(2158%) hue-rotate(184deg) brightness(100%) contrast(91%);
}

/* NAV wpml */

.wpml-floating-language-switcher {
	padding: 3px 20px 0 0 !important;
}

.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions  {
	padding: 0;
}

.wpml-floating-language-switcher li {
	font-size: 15px;
}

.wpml-floating-language-switcher li:first-child:after {
	content:"::";
}

.wpml-floating-language-switcher li:first-child a {
	padding-right: 3px;
	display: inline-block;
}

.wpml-floating-language-switcher li:last-child a {
	padding-left: 7px;
}

body.home:not(.scrolling) .wpml-floating-language-switcher li a {
	color:#fff
}

body.home:not(.scrolling) .wpml-floating-language-switcher li a:hover {
	color: var(--color-3);
}

:is(body.home.scrolling, body:not(.home)) .wpml-floating-language-switcher li a {
	color: var(--color-text);
}

:is(body.home.scrolling, body:not(.home)) .wpml-floating-language-switcher li a:hover {
	color: var(--color-2);
}

.wpml-floating-language-switcher li:not(.wpml-ls-current-language) a {
	opacity: 0.7;
}

.wpml-floating-language-switcher li:not(.wpml-ls-current-language) a:hover {
	opacity: 1;
}


/* NAV search */

#masthead .search-button {
	transition: color 0.2s;
	position: relative;
	z-index: 9;
	padding: 10px;
	height: 35px;
	background-color: transparent;
	border: 0;
}

#masthead .search-button::before,
#search-model .search-ico::before {
	content: "";
	border: 2px solid #333;
	width: 15px;
	height: 15px;
	display: block;
	border-radius: 50%;
	position: relative;
	top: -4px;
	left: -4px;
}

#masthead .search-button::after,
#search-model .search-ico::after {
	content: "";
	display: block;
	position: relative;
	height: 1px;
	border-top: 2px solid #333;
	width: 14px;
	top: -3px;
	left: 6px;
	transform: rotate(45deg);
}

body:not(.home) #masthead .search-button::after,
body:not(.home) #masthead .search-button::before,
body.home.scrolling #masthead .search-button::after,
body.home.scrolling #masthead .search-button::before  {
	transition: border-color 0.2s;
}

#masthead .search-button:hover::before,
#masthead .search-button:hover::after {
	border-color: var(--color-2);
}

#masthead.toggled .search-button::before,
#masthead.toggled .search-button::after {
	border-color: #2f3f64;
}

#search-model {
	border: 0;
	background-color: transparent;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.5s, transform 0.5s;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 20px;
	max-width: 100%;
	max-height: 100%;
}

#search-model[open] {
	opacity: 1;
	display: flex;
	transform: scale(1);
	@starting-style {
		opacity: 0;
		transform: scale(0.9);
	}
}

#search-model::backdrop {
	background-color: rgba(41, 118, 160, 0);
	transition: background-color 0.5s;
}

#search-model[open]::backdrop {
  background: rgba(41, 118, 160, 0.95);
  @starting-style {
    background-color: rgba(41, 118, 160, 0);
  }
}

#search-model[open].is-closing {
  opacity: 0;
  transform: scale(0.9);
}

#search-model[open].is-closing::backdrop {
  background-color: rgba(41, 118, 160, 0);
}

@media (prefers-reduced-motion: reduce) {
    #search-model {
      transition-duration: 0.05s!important;
      transform: none!important;
    }
    #search-model::backdrop {
      transition: none!important;
    }
}


#search-model .search-content {
	position: relative;
	max-width: 500px;
	width: 100%;
	margin-bottom: 80px;
}

#search-model *:focus-visible {
	outline-color: #fff;
}

#search-model #search-title {
	background-image: none;
	color: #fff;
	text-transform: uppercase;
	font-size: 20px;
	text-align: center;
	font-weight: 500;
	margin: 0;
}

#search-model #search-description {
	margin: 5px 0 20px;
	color: #fff;
	text-align: center;
}

#search-model .search-field {
	padding: 24px 60px 24px 30px;
	background-color: #fff;
}

#search-model .search-field:focus {
	border-color: none;
	outline: 1px solid #fff;
	outline-offset: 4px;
}

#search-model .search-ico {
  position: absolute;
  bottom: 18px;
  right: 14px;
  padding: 10px;
  transition: top 0.2s;
  pointer-events: none;
  z-index: 999;
}

#search-model .search-submit {
  background-color: transparent;
  border: 0;
  width: 68px;
  height: 73px;
  position: absolute;
  right: 0px;
  bottom: 0px;
  font-size: 0;
  text-indent: -999999px;
  z-index: 999;
  border-radius: 10px;
  border: 2px solid #fff;
  transition: background-color 0.2s;
}

#search-model .search-submit:hover {
	background-color: var(--color-bg);
}

#search-model .search-submit:focus-visible {
	outline-offset: -4px;
	outline-color: blue;
}

#search-model .search-close-button {
  width: 40px;
  height: 40px;
  background-color: transparent;
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px;
  border-radius: 10px;
  border: 0;
  z-index: 99;
  transition: background-color 0.2s;
}

#search-model .search-close-button:hover {
	background-color: #fff;
}

#search-model .search-close-button::before, #search-model .search-close-button::after {
  content: "";
  width: 24px;
  height: 2px;
  display: block;
  background-color: #fff;
  position: relative;
  transition: background-color 0.2s;
}

#search-model .search-close-button::before {
  transform: rotate(-45deg);
}

#search-model .search-close-button::after {
  transform: rotate(45deg);
  top: -2px;
}

#search-model .search-close-button:hover::before,
#search-model .search-close-button:hover::after {
  background-color: var(--color-2);
}


/* NAV icon */

.nav-icon {
	width: 26px;
	height: 35px;
	transform: rotate(0deg);
	z-index: 99;
	background-color: transparent;
	border: 0;
	padding: 0;
	margin-left: 80px;
}

@media screen and (min-width: 1201px) {
	.nav-icon::before {
		content: "menu";
		text-transform: uppercase;
		font-size: 15px;
		position: relative;
		left: -62px;
		padding: 8px 15px 8px 8px;
		font-weight: 300;
	}
	body:not(.home) .nav-icon::before,
	body.home #main-menu .nav-icon::before,
	body.home.scrolling .nav-icon::before {
		transition: color 0.5s;
	}
}

.nav-icon span {
	display: block;
	position: absolute;
	height: 2px;
	width: 100%;
	background: var(--color-text);
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
}

.nav-icon span:nth-child(1) {
	top: 10px;
}

.nav-icon span:nth-child(2),.nav-icon span:nth-child(3) {
	top: 18px;
}

.nav-icon span:nth-child(4) {
	top: 26px;
}

.nav-icon:hover {
	color: var(--color-2);
}

.nav-icon:hover span {
	background-color: var(--color-2);
}

#masthead.toggled .nav-icon {
	opacity: 0;
}

#main-menu .nav-icon-container {
	position: absolute;
	width: 100%;
	z-index: 999;
	inset: 0;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 80px;
}

#main-menu .nav-icon {
	color: #fff;
}

#main-menu .nav-icon:hover {
	color: var(--color-3);
}

#main-menu .nav-icon span { 
	background: #fff;
	transition: background 0.5s;
}

#main-menu .nav-icon:hover span { 
	background: var(--color-3);
}

#main-menu[open] .nav-icon span:nth-child(1),
#main-menu[open] .nav-icon span:nth-child(4) {
	top: 12px;
	width: 0%;
	left: 50%;
}
#main-menu[open] .nav-icon span:nth-child(2) {
	transform: rotate(45deg);
}

#main-menu[open] .nav-icon span:nth-child(3) {
	transform: rotate(-45deg);
}


/* NAV home */


body.home.scrolling #masthead {
	position: fixed;
}

body.home:not(.scrolling) #masthead:not(.toggled) {
	height: 200px;
	position: absolute;
	border-bottom: 0;
	background-color: transparent;
}

body.home:not(.scrolling) #masthead:not(.toggled) :is(.nav-header-left, .nav-header-right) {
	border-bottom: 1px solid rgba(255,255,255,.4);
}

body.home:not(.scrolling) #masthead:not(.toggled) .nav-header-right {
	padding: 15px 0;
}

body.home:not(.scrolling) #masthead:not(.toggled) #secondary-menu a,
body.home:not(.scrolling) #masthead:not(.toggled) .nav-icon::before,
body.home:not(.scrolling) #masthead:not(.toggled) .wpml-floating-language-switcher {
	color: #fff;
}

body.home:not(.scrolling) #masthead:not(.toggled) #secondary-menu a:hover,
body.home:not(.scrolling) #masthead:not(.toggled) .nav-icon:hover::before {
	color: var(--color-3);
}

body.home:not(.scrolling) #masthead:not(.toggled) #secondary-menu a::before {
	filter: invert(100%) brightness(100%) contrast(100%);
}

body.home:not(.scrolling) #masthead:not(.toggled) #secondary-menu a:hover::before,
.site-footer .footer-contact :is(#menu-menu-contatti,  #menu-menu-social) li a:hover::before {
	filter: invert(73%) sepia(43%) saturate(4376%) hue-rotate(38deg) brightness(96%) contrast(97%);
}

body.home:not(.scrolling) #masthead:not(.toggled) #secondary-menu li:not(:first-child),
body.home:not(.scrolling) #masthead:not(.toggled) .nav-header-right > :not(:last-child) {
	border-color: rgba(255,255,255,0.2);
}

body.home:not(.scrolling) #masthead:not(.toggled) .search-button::after,
body.home:not(.scrolling) #masthead:not(.toggled) .search-button::before {
	border-color: #fff;
}

body.home:not(.scrolling) #masthead:not(.toggled) .search-button:hover::after,
body.home:not(.scrolling) #masthead:not(.toggled) .search-button:hover::before {
	border-color: var(--color-3);
}

body.home:not(.scrolling) #masthead:not(.toggled) .nav-icon span {
	background: #fff;
}

body.home:not(.scrolling) #masthead:not(.toggled) .nav-icon:hover span {
	background: var(--color-3);
}

body.home:not(.scrolling) #masthead:not(.toggled) .site-branding {
	padding: 0 40px;
	top: 40px;
}

body.home:not(.scrolling) #masthead:not(.toggled) .site-branding .custom-logo-link {
	width: 200px;
	height: 200px;
	position: relative;
}

body.home:not(.scrolling) #masthead:not(.toggled) .site-branding .custom-logo-link::before {
	content: "";
	background: url("img/mag-logo-2.png") center/cover;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: block;
	filter: brightness(0) invert(1);
}

body.home:not(.scrolling) #masthead:not(.toggled) .site-branding img {
	display: none;
}

@media screen and (max-width: 1360px) {
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding .custom-logo-link {
  		width: 160px;
  		height: 160px;
	}
}

@media screen and (max-width: 1200px) {
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding .custom-logo-link {
  		width: 100px;
  		height: 100px;
	}
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding {
  		top: 20px;
	}
	body.home:not(.scrolling) #masthead:not(.toggled) {
 		height: 140px;
	}
}

@media screen and (max-width: 1024px) {
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding {
  		padding-left: 0px;
	}
}

@media screen and (max-width: 480px) {
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding .custom-logo-link {
		width: 80px;
		height: 80px;
	}
	body.home:not(.scrolling) #masthead:not(.toggled) .site-branding {
    	padding-right: 20px;
  	}
	body.home:not(.scrolling) #masthead:not(.toggled) {
    	height: 100px;
 	}
}


/* NAV responsive */

@media screen and (max-width: 1200px) {
	#masthead #secondary-menu li:not(:last-child),
	#masthead .nav-header-right > :not(:last-child) {
  		padding-right: 20px;
	}
	#masthead #secondary-menu li:not(:first-child),
	#masthead .nav-header-right > :not(:first-child):not(:last-child) {
  		padding-left: 20px;
	}
	.nav-icon {
  		margin-left: 24px;
	}
}

@media screen and (max-width: 1024px) {
	#masthead .nav-header-left {
		display: none;
	}
	#masthead .nav-header-right {
  		max-width: none;
	}
}

@media screen and (max-width: 768px) {
	#masthead .nav-header-right > :not(:last-child) {
  		border-width: 0;
	}
	#masthead .nav-header-right > :not(:last-child) {
  		padding-right: 12px;
	}
	#masthead .nav-header-right > :not(:first-child):not(:last-child) {
  		padding-left: 12px;
	}
}

@media screen and (max-width: 480px) {
	#masthead .site-branding img {
  		min-width: 120px;
	}
	.wpml-floating-language-switcher {
  		padding-right: 6px!important;
	}
	.nav-icon {
  		margin-left: 12px;
	}
}


/* NAV hamburger */

#main-menu {
	border: 0;
	width: 100%;
	height: 100%;
    max-width: 100%;
	max-height: 100%;
	margin: 0;
	color: #fff;
	opacity: 0;
	padding: 0;
	transition: opacity 0.5s, transform 0.5s;
	background: transparent;
	overflow: hidden;
}

#main-menu[open] {
	opacity: 1;
	@starting-style {
		opacity: 0;
	}
}

#main-menu::backdrop {
	background-color: transparent; 
}

#main-menu[open].is-closing {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #main-menu {
		transition-duration: 0.05s!important;
		transform: none!important;
    }
   	#main-menu::backdrop {
		transition: none!important;
    }
	#main-menu .main-menu-container::after,
	#main-menu .main-menu-container::before {
		animation-name: none!important;
	}
	#masthead,
	#masthead .nav-header-right > :not(:last-child) {
		transition: none!important;
	}
}

#main-menu .main-menu-container {
	background: linear-gradient(45deg, var(--color-2), var(--color-1));
	border-top: 1px solid var(--color-3);
	margin-top: 80px;
	position: relative;
	height: calc(100% - 80px);
	overflow: hidden;
}

#main-menu .main-menu-container::before {
	content:"";
	background: url("img/mag_bg_01.jpg") center/cover;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: block;
	mix-blend-mode: multiply;
	filter: blur(3px);
	animation-name: bgAni;
	animation-duration: 12s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: ease-in-out; 
}

@keyframes bgAni {
	from {
		transform: scale(1.1) rotate(0.1deg); 
		filter: blur(2px);
	}
	to {
		transform: scale(1.0) rotate(0.1deg); 
		filter: blur(5px);
	}
}

#main-menu .main-menu-container::after,
.site-footer section.footer-widget:nth-of-type(2)::after {
	content:"";
	background: url("img/MAG_logo.svg") center/cover;
	width: 480px;
	height: 480px;
	position: absolute;
	bottom: -100px;
	right: -100px;
	display: block;
	filter: invert(100%) brightness(100%) contrast(100%);
	opacity: 0.1;
	pointer-events: none; 
}

#main-menu .main-menu-container::after {
	animation-name: logoAni;
	animation-duration: 12s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: ease-in-out; 
}

@keyframes logoAni {
	from {
		transform: scale(1.0) rotate(0.1deg); 
		filter: invert(100%) brightness(100%) contrast(100%) blur(2px);
		opacity: 0.06;
	}
	to {
		transform: scale(1.1) rotate(0.1deg); 
		filter: invert(100%) brightness(100%) contrast(100%) blur(0px);
		opacity: 0.1;
	}
}


#main-menu #site-navigation {
	max-width: 1920px;
	margin: 0 auto;
	padding: 60px 80px;
	display: grid;
	grid-template-columns: 75% 25%;
	grid-template-rows: max-content 1fr;
	position: relative;
	z-index: 0;
	overflow-y: auto;
	height: 100%;
	scrollbar-width: thin;
	scrollbar-color: var(--color-3) rgba(0, 0, 0, 0.1);
}

#main-menu #primary-menu {
	display: grid;
	grid-template-columns: auto auto auto;
	grid-area: 1 / 1 / span 2 / 1;
}

#main-menu .menu-item a {
	color: #fff;
	font-weight: 400;
	transform: translateX(0px);
  	display: block;
	padding-right: 10px;
	transition: padding 0.5s;
}

#main-menu .menu-item a:focus-visible {
  outline-color: #fff;
}

#main-menu .menu-item a[href]:hover {
	padding-left: 10px;
	padding-right: 0px;
}

#main-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#main-menu :is(.main-col, .col-menu),
#main-menu #contact-menu {
	padding: 0 10%;
}

#main-menu .main-col .sub-menu {
	font-size: 30px;
}

#main-menu .main-col .sub-menu li {
	border-bottom: 1px solid rgba(255,255,255,0.2);
	padding: 12px 0;
}

#main-menu .col-menu {
	padding-top: 24px;
}

#main-menu .col-menu > .sub-menu > .menu-item {
	margin-bottom: 60px;
}

#main-menu .col-menu > .sub-menu > .menu-item  > a {
	text-transform: uppercase;
	font-weight: 500;
	border-bottom: 1px solid var(--color-3);
	padding-bottom: 16px;
	margin-bottom: 16px;
	display: block;
}

#main-menu .col-menu > .sub-menu > .menu-item  > .sub-menu > li {
	margin: 10px 0;
}

#main-menu :is(.main-col, .col-menu) > a:not([href]) {
	display: none;
}

#main-menu #contact-menu {
	font-size: 16px;
	grid-area: 1 / 2 / 1 / 2;
	padding-top: 24px;
}

#main-menu #social-menu {
	grid-area: 2 / 2 / 2 / 2;
	border-top: 1px solid rgba(255,255,255,0.2);
	padding-top: 30px;
	display: flex;
	margin-left: 10%;
	padding-right: 10%;
	margin-top: 10px;
}

#main-menu #social-menu li:not(:last-child) {
	margin-right: 10px;
}


@media screen and (max-width: 1360px) {
	#main-menu .nav-icon-container {
		padding: 0 40px;
	}
	#main-menu #site-navigation {
  		padding: 40px;
	}
}

@media screen and (max-width: 1200px) {
	#main-menu :is(#contact-menu, #social-menu) {
		display: none;
	}
	#main-menu #site-navigation {
  		grid-template-columns: 100%;
	}
	#main-menu .main-menu-container::before {
		background-image: url("img/mag_bg_01_mobile_1.jpg");
	}
}

@media screen and (min-width: 1025px) {
	#main-menu .menu-mobile {
		display: none;
	}
}

@media screen and (max-width: 1024px) {
	#main-menu #primary-menu .col-menu:last-child {
		padding-top: 0;
	}
	#main-menu .col-menu > .sub-menu > .menu-item {
  		margin-bottom: 40px;
	}
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
	#main-menu #primary-menu {
 		grid-template-columns: auto auto;
	}
	#main-menu #primary-menu .col-menu:last-child {
		grid-area: 2 / 2 / 2 / 2;
	}
}

@media screen and (max-width: 768px) {
	#main-menu #primary-menu {
    	margin-top: 0;
  	}
	#main-menu .main-col {
		padding-right: 6%;
		padding-left: 0;
	}
	#main-menu .col-menu {
		padding-left: 6%;
		padding-right: 0;
	}
	#main-menu .main-menu-container::after {
  		width: 360px;
  		height: 360px;
		bottom: -80px;
  		right: -80px;
	}
	#main-menu .main-menu-container::before {
		background-image: url("img/mag_bg_01_mobile_2.jpg");
	}
}

@media screen and (max-width: 600px) {
	#main-menu #primary-menu {
 		grid-template-columns: auto;
	}
	#main-menu .main-col {
		padding-right: 0;
	}
	#main-menu .col-menu {
		padding-left: 0;
		margin-top: 30px;
	}
}

@media screen and (max-width: 480px) {
	#main-menu .nav-icon-container {
		padding: 0 20px;
	}
	#main-menu #site-navigation {
  		padding: 20px;
	}
	#main-menu .main-menu-container::after {
  		width: 280px;
  		height: 280px;
		bottom: -60px;
  		right: -60px;
	}
}


/* Blog - struttura post blog/archivio */

.blog-container .slick-list {
	padding-top: 20px;
}

.blog-container article:is(.post, .agrifestival) {
	padding: 5px;
	transition: transform 0.5s, --color-3 0.5s;
}

.blog-container article:is(.post, .agrifestival):hover {
	transform: translateY(-10px);
	--color-3: #2976a0;
}

.blog-container article:is(.post, .agrifestival) a {
	padding: 5px;
	transition: transform 0.5s;
}

.blog-container article:is(.post, .agrifestival) img {
	max-height: 300px;
	aspect-ratio: 16/10;
	object-fit: cover;
	border-radius: 15px 15px 0 0;
}

.blog-container article:is(.post, .agrifestival) .text-content {
	padding: 20px;
}

.blog-container article:is(.post, .agrifestival) .text-content .entry-meta {
	text-transform: uppercase;
	color: var(--color-1);
	font-size: 16px;
	font-weight: 600;
}

.blog-container article:is(.post, .agrifestival) .text-content .entry-title {
	margin: 5px 0 10px;
	font-weight: var(--weight-bold);
	line-height: 1.2;
	font-size: 23px;
}

.blog-container article:is(.post, .agrifestival) a {
	display: block;
}

.blog-container article:is(.post, .agrifestival) a:hover,
.blog-container article:is(.post, .agrifestival) a:focus {
	color: var(--color-1);
}

.blog-container article:is(.post, .agrifestival) .text-content p {
	font-size: 15px;
	font-weight: initial;
	color: var(--color-text);
	margin: 0;
}


@media screen and (max-width: 560px) {
	.blog-container article:is(.post, .agrifestival) .text-content {
  		padding: 20px 10px;
	}
	.blog-container article:is(.post, .agrifestival) .text-content .entry-title {
  		font-size: 20px;
	}
	div.blog-slider.slick-slider .slick-slide {
  		margin: 0 5px;
	}
}


/* CF7 form */


.wpcf7-form p {
  margin: 0 0 10px;
  line-height: 1.2;
}

.wpcf7-form h3 {
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 24px;
	margin-top: 32px;
	display: flex;
	align-items: center;
	text-align: center;
}

.wpcf7-form h3::after {
	content: "";
	height: 1px;
	background-color: var(--color-2);
	flex: 1;
	margin-left: 24px;
}

.wpcf7-form textarea {
  resize: none;
  max-height: 160px;
}

.wpcf7-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.wpcf7-form legend {
	margin-bottom: 4px;
	line-height: 1.2;
	display: block;
	position: relative;
	width: 100%;
}

.wpcf7-form .wpcf7-radio {
	background-color: var(--color-bg);
	padding: 14px 10px;
	width: 100%;
	display: inline-block;
	border-radius: 10px;
	margin-bottom: 5px;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item {
	padding: 2px 0;
}

.wpcf7-form .wpcf7-radio input[type="radio"] {
	margin-right: 6px;
}

.wpcf7-form .wpcf7-select {
	padding: 17px 20px;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item-label {
	margin-right: 10px;
}

.wpcf7-form-control-wrap {
  margin-top: 2px;
  margin-bottom: 20px;
  display: block;
}

.wpcf7-form p > label > span,
.wpcf7-form legend > span {
	color: red;
}

.wpcf7-form :is(input, select, textarea) {
	margin: 4px 0 5px;
}
.wpcf7-form .wpcf7-submit {
	min-width: 160px;
	color: #fff;
	background-color: var(--color-2);
	padding: 18px 20px;
	transition: background-color 0.5s, color 0.5s;
	font-weight: 500;
	font-size: 16px;
	text-transform: uppercase;
	border: none;
	border-radius: 10px;
	margin-top: 10px;
}

.wpcf7-form .wpcf7-submit:disabled {
	opacity: 0.5;
}

.wpcf7-form .wpcf7-submit:not(:disabled):hover {
	background-color: var(--color-1);
}

.wpcf7-form .policy-privacy-text {
	margin: 20px 0;
}

.wpcf7-form .policy-privacy-text label input[type="checkbox"] {
	position: absolute;
	left: 0;
	margin-top: 3px;
}

.wpcf7-form .policy-privacy-text label .wpcf7-list-item-label {
	padding-left: 10px;
	display: block;
	line-height: 1.2;
	font-size: 15px;
}

.wpcf7-form :is(input, select, textarea).wpcf7-not-valid:not(:focus) {
	border: 1px solid red;
}

.wpcf7-not-valid-tip {
	font-size: 14px;
	letter-spacing: 1px;
}

.wpcf7 form.wpcf7-form .wpcf7-response-output {
	font-size: 16px;
	line-height: 1.2;
	padding: 10px 20px;
	margin: 10px 0 0;
}

@media screen and (max-width: 768px) {
	.wpcf7-form .wpcf7-radio .wpcf7-list-item {
		margin-top: 2px;
		margin-bottom: 2px;
	}
}

/* CF7 form colonne */

.wpcf7-form .row {
	position: relative;
}

@media screen and (min-width: 1025px) {
  .wpcf7-form .row {
		display: flex;
		column-gap: 40px;
	}
	.wpcf7-form .row > * {
		width: 50%;
	}
	.wpcf7-form .row p {
		margin: 0;
	}
}

/* CF7 campi condizionali */

.wpcf7-form .conditional-field {
    display: none;
}

/* CF7 tooltip */

.wpcf7-form .info {
	color: var(--color-2);
	font-weight: 700;
	display: flex;
	border: 1px solid var(--color-2);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	position: absolute;
	right: 4px;
	top: -4px;
	justify-content: center;
	align-items: center;
	line-height: 1;
	transform: scale(1);
	transition: color 0.5s, border-color 0.5s, transform 0.5s;
}

.wpcf7-form fieldset:hover .info {
	transform: scale(1.15);
	color: var(--color-1);
	border-color: var(--color-1);
}

.wpcf7-form .tooltip {
	background-color: var(--color-2);
	padding: 30px 30px 20px;
	border-radius: 10px;
	margin: 10px 0 20px;
	position: relative;
}

.wpcf7-form .tooltip::before {
	content: "";
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 7px solid var(--color-2);
	position: absolute;
	top: -6px;
	left: calc(50% - 10px);
}

.wpcf7-form .tooltip p {
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
}

.wpcf7-form .tooltip p:not(:last-child) {
	margin-bottom: 8px;
}

@media screen and (min-width: 1025px) {
  	.wpcf7-form .tooltip {
		padding: 30px 30px 20px;
		position: absolute;
		z-index: 9;
		top: 90px;
		width: calc(50% - 20px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
		transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
	}
	.wpcf7-form fieldset:hover .tooltip,
	.wpcf7-form fieldset:focus-within .tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateY(0px);
	}
}

@media screen and (max-width: 480px) {
	.wpcf7-form .tooltip {
		padding: 20px 20px 10px;
	}
}

/* CF7 file */

.wpcf7-form .foto-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	margin-top: 20px;
	border-bottom: 1px solid var(--color-2);
	padding-bottom: 30px;
}

.wpcf7-form .foto-box {
	width: calc(50% - 20px);
	background-color: var(--color-bg);
	border-radius: 10px;
	padding: 30px 40px 25px;
	display: flex;
	align-items: center;
	overflow: auto;
}

.wpcf7-form .foto-box .wpcf7-form-control-wrap {
	margin: 0;
}

.wpcf7-form .foto-box .wpcf7-file {
	margin: 8px 0 0;
	font-size: 16px;
	width: 100%;
}

.wpcf7-form .foto-box .file-info {
	color: #666;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 400;
	word-break: break-word;
}

@media screen and (max-width: 1024px) {
	.wpcf7-form .foto-box {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.wpcf7-form .foto-box {
		padding: 20px 20px 15px;
	}
}


/* Pagine */


.home-scroll a {
	font-weight: 400!important;
	padding: 10px;
	opacity: 1;
	visibility: visible;
	transition: opacity 1s, visibility 1s;
}

.home-scroll a::before {
	content: "";
	border: solid #fff;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 6px;
	transform: rotate(45deg);
	left: 0;
	right: 0;
	bottom: -18px;
	width: 16px;
	height: 16px;
	position: absolute;
	margin: 0 auto;
	transition: bottom 0.2s;
}

.home-scroll a:hover::before {
	bottom: -22px;
}

body.scrolling .home-scroll a {
	opacity: 0;
	visibility: hidden;
}

.mezzi .elementor-widget-text-editor p {
	margin: 20px 0;
}

.mezzi .elementor-widget-text-editor ul li {
	margin: 5px 0;
}

.mezzi .elementor-widget-text-editor ul li::before {
	border-color: #fff;
}

.mezzi .elementor-icon-box-title {
	display: flex;
	align-items: center;
}

.mezzi .elementor-icon-box-title span {
	white-space: nowrap;
}

.mezzi .elementor-icon-box-title::after {
	content: "";
	width: 100%;
	height: 1px;
	background-color: rgba(255,255,255,0.2);
	display: block;
	margin-left: 20px;
}

.box-pdf.elementor-widget-heading .elementor-heading-title a {
	background-color: var(--color-2);
	padding: 32px 60px 36px 100px;
	border-radius: 20px;
	display: block;
	font-style: italic;
	font-size: 20px!important;
	color: #fff!important;
	line-height: 1.4!important;
	position: relative;
	font-weight: 400;
	border-style: solid;
  	border-color: var(--color-2);
  	border-width: 4px 0 0 4px;
	transition: border-color 0.2s;
}

.box-pdf.elementor-widget-heading .elementor-heading-title a:hover {
	border-color: var(--color-3);
	background-color: #288100;
}

.box-pdf.elementor-widget-heading a::before {
	content: "";
	background-image: url("img/pdf_icon.png");
	background-color: var(--color-3);
	background-repeat: no-repeat;
	background-position: center;
	width: 80px;
	height: 80px;
	display: block;
	position: absolute;
	border-radius: 12px;
	border: 3px solid #fff;
	left: -20px;
	top: -20px;
	transition: top 0.5s;
}

.box-pdf.elementor-widget-heading .elementor-heading-title a:hover::before {
	top: -30px;
}

@media screen and (max-width: 480px) {
	.box-pdf.elementor-widget-heading .elementor-heading-title a {
		padding: 24px 20px 28px 70px;
		font-size: 18px !important;
  		line-height: 1.3 !important;
	}
	.box-pdf.elementor-widget-heading a::before {
		width: 70px;
		height: 70px;
		background-size: 35px 45px;
	}
}

.box-contatti .elementor-icon-box-title {
	border-bottom: 1px solid rgba(255,255,255,0.2);
	padding-bottom: 24px;
}

.programma .elementor-divider-separator::after {
	border-image-source: linear-gradient(to left, var(--color-3), var(--color-2));
	border-image-slice: 1; 
}

.programma .elementor-widget-heading {
	min-width: 90px!important;
}

.programma .elementor-heading-title {
	background-color: var(--color-2);
	color: #fff;
	padding: 20px 0;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1;
	width: 90px;
	text-align: center;
}

.programma .elementor-widget-text-editor p {
	margin: 4px 0;
	line-height: 1.3;
}

@media screen and (max-width: 480px) {
	.programma .elementor-widget-heading {
		min-width: 80px!important;
	}
	.programma .elementor-heading-title {
		width: 80px;
	}
}

.testo-contatti .elementor-widget-text-editor a[href^="mailto:"] {
	overflow-wrap: anywhere;
	line-height: 1.2;
	display: inline-block;
}

.testo-contatti .elementor-widget-text-editor strong {
	font-size: 20px;
	text-transform: uppercase;
	line-height: 1.2;
	display: inline-block;
}

.premiazioni.elementor-widget-text-editor em {
	font-style: normal;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 400;
}

.premiazioni.elementor-widget-text-editor hr {
	background-color: #ccc;
}

.premiazioni.elementor-widget-text-editor p {
	margin: 10px 0;
}


/* Easy Social Feed */

.efbl-halfwidth-skin {
  border-radius: 20px;
  border: 2px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(45deg, var(--color-2), var(--color-3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 40px 40px 20px;
}

.efbl-halfwidth-skin .efbl-feed-content .description > * {
	font-size: 16px;
}

.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-post-footer :is(.efbl-view-on-fb,.esf-share-wrapper .esf-share) {
	background-color: var(--color-2);
	color: #fff;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
	padding: 16px 20px;
  	border-radius: 10px;
	font-family: inherit;
	transition: background-color 0.2s;
}

.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-post-footer :is(.efbl-view-on-fb,.esf-share-wrapper .esf-share):hover {
	background-color: var(--color-1);
}

.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col a img {
	outline: none;
	border-radius: 20px;
	background-color: transparent !important;
}

.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col a .efbl-overlay {
	border-radius: 20px;
}

.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col {
	border: none;
}

@media screen and (max-width: 500px) {
	.efbl-post-footer .efbl-view-share {
		flex-direction: column;
	}
	.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-post-footer .esf-share-wrapper {
		padding-left: 0;
  		margin-top: 10px;
	}
	.efbl-halfwidth-skin {
  		padding: 20px;
	}
	.efbl-halfwidth-skin .efbl-row {
		margin: 0;
	}
	.efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col,
	.efbl-halfwidth-skin .efbl-feed-content  {
		padding: 0;
	}
}

/* DearFlip Book */

.df-element {
	border-radius: 16px;
}