/*!
Theme Name: Lazio Culturale Diffuso
Theme URI: https://www.jobers.it
Author: Emanuele Widenhorn
Author URI: https://www.jobers.it
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lazioculturale
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.

lazioculturale 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
--------------------------------------------------------------*/
:root {
	--stone: #F1EAD9;
	--stone-dark: #E4D8BE;
	--paper: #FBF8F1;
	--ink: #241C15;
	--ink-soft: #5B5245;
	--brick: #A8412A;
	--brick-dark: #82301D;
	--bronze: #3C5A46;
	--bronze-dark: #28402F;
	--gold: #B8862F;
	--board-bg: #1E2A22;
	--board-fg: #E9E2C9;
	--board-amber: #D8A23A;
	--line: rgba(36, 28, 21, 0.12);

	--serif: "Fraunces", Georgia, serif;
	--sans: "Inter", -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", monospace;

	--radius: 2px;
	--wrap: 1180px;
}

/* 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.15;
	-webkit-text-size-adjust: 100%;
}

/* 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: 2.3rem;
	line-height: 100%;
}

h2 {
	font-size: 1.8rem;
	line-height: 2.5rem;
}

h3 {
	font-size: 1.5rem;
	line-height: 2rem;
	margin-bottom: 1rem;
}

h4 {
	font-size: 1.25rem;
	line-height: .75rem;
}
@media screen and (max-width: 767.98px) {
	h1 {
		font-size: 1.8rem;
		line-height: 100%;
	}

	h2 {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	h3 {
		font-size: 1.25rem;
		line-height: 1.5rem;
		margin-bottom: .75rem;
	}

	h4 {
		font-size: 1.125rem;
		line-height: .75rem;
	}
	.wp-block-accordion-heading__toggle-title {
		font-size: 1.5rem;
		line-height: 2rem;
	}
}
/* 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: bolder;
}

/**
 * 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-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	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: 1px dotted ButtonText;
}

/**
 * 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: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

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

p {
	margin-bottom: 1.5em;
}

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;
}

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

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: 700;
}

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 {
	color: var(--brick);
	font-weight: 600;
	text-decoration: underline;
}

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

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* 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"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

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,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

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

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

/* Navigation
--------------------------------------------- */
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: auto;
	min-width: 280px;
	white-space: nowrap;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Menu toggle (burger button)
--------------------------------------------- */
.menu-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
	z-index: 100002;
}

.menu-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease;
}

.main-navigation.toggled .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.main-navigation.toggled .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.main-navigation.toggled .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay navigation
--------------------------------------------- */
.menu-overlay-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(36, 28, 21, .55);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
	z-index: 100000;
}

.main-navigation.toggled .menu-overlay-backdrop {
	opacity: 1;
	visibility: visible;
}

@media screen and (max-width: 767.98px) {

	.main-navigation ul#primary-menu {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: min(82vw, 320px);
		height: 100vh;
		margin: 0;
		padding: 6rem 2rem 2rem;
		background: var(--paper);
		box-shadow: 6px 0 30px rgba(0, 0, 0, .25);
		transform: translateX(-100%);
		transition: transform .35s ease;
		z-index: 100001;
		overflow-y: auto;
	}

	.main-navigation.toggled ul#primary-menu {
		transform: translateX(0);
	}

	.main-navigation ul#primary-menu li {
		width: 100%;
	}

	.main-navigation ul#primary-menu li a {
		font-size: 1.1rem;
		padding: .85rem 0;
		border-bottom: 1px solid var(--line);
	}

	.main-navigation ul#primary-menu li.menu-item-has-children,
	.main-navigation ul#primary-menu li.page_item_has_children {
		position: relative;
	}

	.main-navigation ul#primary-menu li.menu-item-has-children > a,
	.main-navigation ul#primary-menu li.page_item_has_children > a {
		padding-right: 2.5rem;
	}

	.main-navigation ul#primary-menu ul.sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		padding-left: 1rem;
		margin: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s ease;
	}

	.main-navigation ul#primary-menu li.submenu-open > ul.sub-menu {
		max-height: 1000px;
	}

	.main-navigation ul#primary-menu ul.sub-menu a {
		white-space: normal;
		min-width: 0;
		width: 100%;
		font-size: 1rem;
		padding: .65rem 0;
	}

	.submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		width: 44px;
		height: 44px;
		background: transparent;
		border: none;
		padding: 0;
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: '';
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--ink);
		border-bottom: 2px solid var(--ink);
		transform: rotate(45deg);
		transition: transform .3s ease;
	}

	.submenu-open > .submenu-toggle::before {
		transform: rotate(-135deg);
	}

	body.menu-open {
		overflow: hidden;
	}
}

@media screen and (min-width: 768px) {

	.menu-toggle {
		display: none;
	}

	.menu-overlay-backdrop {
		display: none;
	}

	.submenu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}

	.main-navigation ul ul {
		display: block;
		column-count: 2;
		column-gap: 2rem;
		width: 560px;
		max-width: calc(100vw - 4rem);
		box-sizing: border-box;
		padding: 1rem 1.5rem;
		background: var(--paper);
	}

	.main-navigation ul ul li {
		break-inside: avoid;
	}

	.main-navigation ul ul a {
		white-space: normal;
		min-width: 0;
	}
}
.site-main {
	padding-top: 5rem;
}
.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: 0 0 5rem 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: 700;
	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;
}
/**************** UTILITY *********************/
.amber {
	color: var(--board-amber)
}
.brick {
	color: var(--brick)!important;
}
.stone__light {
	color: var(--stone);
}
.stone__dark {
	color: var(--stone-dark);
}
/**************** SITE STYLE ******************/
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--stone);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}
h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 500;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--board-fg);
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 2rem;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--brick);
	display: inline-block;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 14px;
	padding: 13px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--brick);
	color: #fff;
}
.btn-primary:hover {
	background: var(--brick-dark);
	border: 1px solid transparent;
}
.btn-primary:active, .btn-primary:focus {
	background: var(--board-bg)!important;
	border: 1px solid transparent!important;
	color: #fff;
}
.btn-secondary {
	background: var(--bronze);
	color: #fff;
}
.btn-secondary:hover {
	background: var(--bronze-dark);
	border: 1px solid transparent;
}
.btn-secondary:active, .btn-secondary:focus {
	background: var(--board-bg)!important;
	border: 1px solid transparent!important;
	color: #fff;
}
.btn-ghost {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.btn-ghost:hover {
	background: var(--ink);
	color: var(--stone);
}

.btn-light {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--line);
}

section {
	padding: 88px 0;
}

@media (max-width:760px) {
	section {
		padding: 56px 0;
	}
}

/* ============================== HEADER ============================== */
header {
	position: sticky;
	top: 0;
	z-index: 100000;
	background: rgba(241, 234, 217, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	max-width: var(--wrap);
	margin: 0 auto;
}

.logo {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .01em;
}

.logo span {
	color: var(--brick);
}

.nav-links {
	display: flex;
	gap: 28px;
	align-items: center;
}

.nav-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.nav-links a:hover {
	color: var(--ink);
	border-color: var(--brick);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 18px;
}

.lang-switch {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .05em;
	display: flex;
	gap: 8px;
	color: var(--ink-soft);
}

.lang-switch b {
	color: var(--brick);
}

.nav-toggle {
	display: none;
}

@media (max-width: 980px) {
	.nav-links {
		display: none;
	}

	.nav-toggle {
		display: block;
		font-family: var(--mono);
		font-size: 12px;
	}
}
#section__subheader {
	background: #5c2012 url(img/tile-culturale.svg) no-repeat top right;
    background-blend-mode: screen;
}
#section__subheader h1 {
	color: var(--paper);
	margin-bottom: 1.5rem;
}
#section__subheader p {
	color: var(--paper);
	font-size: 1.25rem;
}
/************ MENU ****************/

#primary-menu li {
	list-style-type: none;
}
#primary-menu li a {
	display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    transition: all .3s ease-in-out;
    position: relative;
}
#primary-menu li a:after {
    content: '';
    height: 4px;
    position: absolute;
    bottom: 0;
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brick);
    transition: width .3s ease-in-out;
}
#primary-menu li a:hover, #footer__menu li a:hover {
    color: var(--brick);
}
#primary-menu li a:hover:after {
    width: 80%;
}
#primary-menu li ul {
	display: block;
	background: var(--paper);
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}
/* ============================== HERO ============================== */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 50% at 88% 8%, rgba(184, 134, 47, 0.14), transparent 60%),
		var(--stone);
	padding: 0;
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: end;
	padding-bottom: 56px;
}

.hero h1, .hero h2 {
	font-size: clamp(40px, 5.4vw, 68px);
	line-height: 1.03;
	letter-spacing: -0.01em;
	max-width: 18ch;
	color: #fff;
}

.hero .sub {
	margin-top: 22px;
	font-size: 18px;
	max-width: 46ch;
	color: #fff;
}

.hero .sub strong {
	color: var(--board-amber);
	font-weight: 600;
}

.hero-ctas {
	display: flex;
	gap: 14px;
	margin-top: 30px;
	flex-wrap: wrap;
}

/* Owl Carousel hero slider */
.hero-slider .owl-stage-outer {
	overflow: visible;
}

.hero-slider .owl-item .item {
	min-height: 1px;
	background-position: center center;
	background-size: cover;

}
.hero-slider .owl-item .overlay__mask {
	padding: 5rem 0 5rem 0;
	background: rgba(0, 0, 0, 0.5);
}
.hero-slider .owl-dots {
	display: flex;
	gap: 10px;
	margin-top: 34px;
	position: absolute;
	left: 50%;
	bottom: 30px;
}

.hero-slider .owl-dot span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgb(233, 233, 233);
	transition: background .25s ease, transform .25s ease;
}

.hero-slider .owl-dot.active span {
	background: var(--gold);
	transform: scale(1.25);
}

/* mini departure-board teaser embedded in hero, right column */
.hero-board {
	background: var(--board-bg);
	color: var(--board-fg);
	border-radius: var(--radius);
	padding: 22px 22px 18px;
	font-family: var(--mono);
	box-shadow: 0 24px 48px -20px rgba(30, 42, 34, 0.55);
}

.hero-board .hb-title {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--board-amber);
	display: flex;
	justify-content: space-between;
	border-bottom: 1px dashed rgba(233, 226, 201, 0.25);
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.hb-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(233, 226, 201, 0.1);
}

.hb-row:last-child {
	border-bottom: none;
}

.hb-dest {
	letter-spacing: .02em;
}

.hb-time {
	color: var(--board-amber);
	font-weight: 600;
}

.hero-strip {
	background: var(--board-bg);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.hero-strip .wrap {
	display: flex;
	padding: 20px 24px;
	gap: 40px;
	overflow-x: auto;
	align-items: center;
}

.hs-stat {
	white-space: nowrap;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--board-fg);
}

.hs-stat b {
	color: var(--board-amber);
	font-size: 15px;
}

/* ============================== INTRO ============================== */
.intro {}

.intro .wrap {
	display: grid;
	grid-template-columns: 0.4fr 0.6fr;
	gap: 56px;
}

.intro h2 {
	font-size: 30px;
	line-height: 1.2;
	max-width: 12ch;
}

.intro p {
	color: var(--ink-soft);
	font-size: 17px;
	margin: 0 0 16px;
}

.intro p:last-child {
	margin-bottom: 0;
}

@media (max-width: 820px) {
	.intro .wrap {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ============================== CLUSTER NAV ============================== */
.clusters {
	background: var(--stone-dark) url(img/tile.png) no-repeat bottom center;
}

.section-head {
	margin-bottom: 40px;
}

.section-head h2 {
	font-size: 32px;
	margin-top: 8px;
}

.section-head p {
	color: var(--ink-soft);
	max-width: 46ch;
	margin: 8px 0 0;
}

.cluster-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.cluster-card {
	background: var(--paper);
	padding: 26px 20px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-height: 190px;
	transition: background .15s ease;
	box-shadow: 0px 3px 6px #00000029;
}

.cluster-card:hover {
	background: #fff;
}

.cluster-tag {
	font-family: var(--mono);
	font-size: 11px;
	padding: .3rem .5rem;
	color: var(--board-fg);
	background: var(--board-bg);
	letter-spacing: .08em;
	align-self: flex-start;
}

.cluster-card h3 {
	font-size: 1.5rem;
	line-height: 1.25;
	border-bottom: 1px solid #5b524526;
	padding-bottom: .5rem;
	padding-top: 2rem;
	color: var(--ink);
}

.cluster-card p {
	font-size: 1rem;
	color: var(--ink-soft);
	margin: 0;
	flex-grow: 1;
	font-weight: 400;
}

.cluster-card .go {
	font-size: 1rem;
	font-weight: 600;
	align-self: flex-start;
}

@media (max-width: 980px) {
	.cluster-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.cluster-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================== ITINERARI CARDS ============================== */
.card__itinerari__home {
	text-decoration: none;
}
.card__selected__itinerari {
	text-decoration: none;
}
.card__places {
	text-decoration: none;
}
#cards__repeater-relazionali .itin-card {
	background: #fff;
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
#section__child .itin-card {
	background: var(--paper);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
#section__child .itin-card h3, #cards__repeater-relazionali h3 {
	border-bottom: 1px solid #5b524526;
	padding: 1rem;
	color: var(--ink);
}
.itin-card {
	background: #fff;
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
.itin-media {
	height: 290px;
	background-position: center center;
	background-size: cover;
	position: relative;
	overflow: hidden;
	transition: all .3s ease-in-out;
}
.itin .itin-media {
	height: 190px;
}
.itin-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all .3s ease-in-out;
}
.itin-card:hover img {
	transform: scale(110%);
}
.itin-card:hover img {
	box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.itin-media .badge {
	position: absolute;
	top: 25px;
	left: 25px;
	background: var(--ink);
	color: var(--stone);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .06em;
	padding: 5px 10px;
	border-radius: var(--radius);
}

.itin-body {
	padding: 22px 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
}
.card__itinerari__home:hover h3,
.card__selected__itinerari:hover h3,
.card__places:hover h3 {
	text-decoration: underline;
}
.itin-body h3 {
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--ink);
}

.itin-body p {
	color: var(--ink-soft);
	font-size: 1rem;
	margin: 0;
	flex-grow: 1;
	font-weight: 400;
}
.itin-body a {
	text-decoration: none;
}
.itin-cta {
	font-size: 14px;
	font-weight: 600;
	color: var(--brick);
	display: flex;
	align-items: center;
	gap: 6px;
}

@media (max-width: 980px) {
	.itin-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================== PARTI DA ROMA / DEPARTURE BOARD ============================== */
.board-section {
	background: var(--board-bg);
	color: var(--board-fg);
}

.board-section .eyebrow {
	color: var(--board-amber);
}

.board-section .eyebrow::before {
	background: var(--board-amber);
}

.board-section h2 {
	color: var(--board-fg);
	font-size: 32px;
}

.board-section>.wrap>p {
	color: rgba(233, 226, 201, 0.72);
	max-width: 60ch;
	margin-top: 12px;
}

.board {
	margin-top: 40px;
	border: 1px solid rgba(233, 226, 201, 0.18);
	font-family: var(--mono);
}

.board-row {
	display: grid;
	grid-template-columns: 2.2fr 1fr 1fr 2fr;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid rgba(233, 226, 201, 0.12);
	align-items: center;
	font-size: 14px;
}

.board-row.head {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--board-amber);
	background: rgba(216, 162, 58, 0.07);
}

.board-row:last-child {
	border-bottom: none;
}

.board-row .dest {
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: .01em;
}

.board-row .time {
	color: var(--board-amber);
	font-weight: 600;
}

@media (max-width: 700px) {
	.board-row {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.board-row>*:nth-child(4) {
		display: none;
	}
}

/* ============================== UNESCO TRUST BAR ============================== */
.trust {
	background: var(--bronze);
	color: var(--stone);
}

.trust .wrap {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
}

.trust h2 {
	color: #fff;
	font-size: 30px;
	line-height: 1.2;
}

.trust-num {
	font-family: var(--mono);
	font-size: 64px;
	color: var(--gold);
	line-height: 1;
}

.trust-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 28px;
}

.trust-list div {
	font-size: 14px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(241, 234, 217, 0.18);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.trust-list b {
	font-family: var(--mono);
	color: var(--gold);
	font-weight: 600;
}

@media (max-width: 820px) {
	.trust .wrap {
		grid-template-columns: 1fr;
	}

	.trust-list {
		grid-template-columns: 1fr;
	}
}

/* ============================== FOOTER ============================== */
.logo__footer {
	width: 196px;
}
footer {
	background: var(--ink);
	color: var(--stone);
	padding-top: 5rem;
	padding-bottom: 2rem;
}

.foot-top .wrap {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 64px 24px 40px;
}

.foot-brand .logo {
	color: var(--stone);
}

.foot-brand .logo span {
	color: var(--gold);
}

.foot-brand p {
	color: rgba(241, 234, 217, 0.6);
	font-size: 14px;
	max-width: 32ch;
	margin-top: 14px;
}

footer h4 {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 16px;
}

footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

footer a {
	font-size: 14px;
	color: rgba(241, 234, 217, 0.78);
}

footer a:hover {
	color: #fff;
}

.foot-bottom {
	border-top: 1px solid rgba(241, 234, 217, 0.14);
	padding: 20px 24px;
	font-size: 12.5px;
	color: rgba(241, 234, 217, 0.5);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
#sub__footer {
	font-size: .8725rem;
	color: rgba(241, 234, 217, 0.6);
}
/* ============================== MAPPA — full width, sotto la hero ============================== */
.map-section {
	background: var(--stone-dark);
	border-bottom: 1px solid var(--line);
	padding: 0;
}

.map-head {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 32px 24px 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}

.map-head h2 {
	font-size: 26px;
}

.map-head p {
	color: var(--ink-soft);
	font-size: 14.5px;
	max-width: 52ch;
	margin: 6px 0 0;
}

.map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10000;
}

.map-legend button {
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink-soft);
	cursor: pointer;
	transition: all .15s ease;
}

.map-legend button .dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: none;
}

.map-legend button.is-active {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.map-legend button.is-active .dot {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.map-frame {
	position: relative;
	width: 100%;
}

#site-map {
	width: 100%;
	height: 560px;
	background: var(--stone-dark);
}

@media (max-width:760px) {
	#site-map {
		height: 420px;
	}
}

.map-hint {
	position: absolute;
	z-index: 500;
	bottom: 14px;
	left: 14px;
	background: rgba(36, 28, 21, 0.82);
	color: var(--stone);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .03em;
	padding: 7px 12px;
	border-radius: var(--radius);
	pointer-events: none;
}

.map-hint-touch {
	display: none;
}

@media (max-width:760px) {
	.map-hint-desktop {
		display: none;
	}

	.map-hint-touch {
		display: inline;
	}
}

/* Leaflet — adattamento alla palette del sito */
.leaflet-tile-pane {
	filter: grayscale(38%) sepia(14%) saturate(85%) brightness(1.04) contrast(0.96);
}

.leaflet-container {
	font-family: var(--sans);
	background: var(--stone-dark);
}

.leaflet-popup-content-wrapper {
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -16px rgba(36, 28, 21, 0.4);
}

.leaflet-popup-content {
	margin: 14px 16px;
	font-family: var(--sans);
}

.lp-eyebrow {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brick);
	display: block;
	margin-bottom: 4px;
}

.lp-title {
	font-family: var(--serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 4px;
}

.lp-desc {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0 0 8px;
	line-height: 1.45;
}

.lp-link {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brick);
}

.pin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--paper);
	box-shadow: 0 2px 6px rgba(36, 28, 21, 0.35);
}

.leaflet-control-attribution {
	font-size: 10px;
}

/**** GTRANSLATE CUSTOM SELECT ****/
.gtranslate-custom-select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent url("data:image/svg+xml,%3Csvg width='7' height='4' viewBox='0 0 7 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.57779 3.6127C3.39649 3.79577 3.10206 3.79577 2.92076 3.6127L0.135976 0.800747C-0.0453252 0.617677 -0.0453252 0.320372 0.135976 0.137302C0.317277 -0.0457674 0.61171 -0.0457674 0.793011 0.137302L3.25 2.61826L5.70699 0.138767C5.88829 -0.0443023 6.18272 -0.0443023 6.36402 0.138767C6.54533 0.321837 6.54533 0.619143 6.36402 0.802212L3.57924 3.61416L3.57779 3.6127Z' fill='%23000000'/%3E%3C/svg%3E") no-repeat 36px center;
	border: 1px solid #000;
	border-radius: 6px;
	color: var(--color-primary);
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 4px 18px 4px 14px;
	text-transform: uppercase;
}

#gtranslate__mobile .glink {
	font-size: 1rem;
	color: var(--color-primary);
	border-right: 1px solid var(--color-primary);
	padding-right: 1rem;
	margin-right: 1rem;
}
/******** SIDEBAR *************/
.sidebar__info {
    box-shadow: 0px 3px 6px #00000029;
    padding: 1.5rem;
    background: var(--paper);
}
.sidebar__info-item {
    border-bottom: 1px solid var(--board-fg);
    margin-top: 1rem;
}
/***** SINGLE ****/
#section__map, #section__gallery {
	padding-top: 0
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--paper)!important;
}
.wp-block-accordion {
    border: 2px solid var(--stone-dark);
    padding: 1rem;
    background: var(--board-fg);
	margin-bottom: 3rem;
}
.wp-block-accordion h3 {
    margin-bottom: 0;
}
.wp-block-accordion-heading {
	font-size: 1.8rem;
}
/***** GALLERY *****/
.gallery__grid {
	margin-top: 2rem;
}

.gallery__column {
	margin-bottom: 1.5rem;
}

.gallery__image {
	position: relative;
	overflow: hidden;
}

.gallery__image img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	transition: transform 0.3s ease;
	border: 4px solid var(--paper);
}

.gallery__image a:hover img {
	transform: scale(1.05);
}

/* Loading animation */
.gallery__loading {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #77B34C;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.lb-overlay {
	z-index: 9999 !important;
}

.lb-outerContainer {
	z-index: 10000 !important;
}

/* Responsive */
@media (max-width: 768px) {
	.gallery__item {
		padding: 20px 15px;
	}

	.owl-carousel .owl-item {
		padding: 0;
	}

	.gallery__slide {
		gap: 10px;
	}

	.gallery__row {
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.gallery__row {
		flex-direction: column;
		gap: 10px;
	}
}
.lightboxOverlay {
    z-index: 100001!important;
}
.lightbox {
    z-index: 100002!important;
}
/**** MAP SINGLE ***/
.leaflet-container {
	border: 4px solid var(--paper);
}