/*!
Theme Name: Palazzo Roncale
Theme URI: https://palazzoroncale.arcadia-arte.com/
Author: Arcadia Arte
Author URI: https://arcadia-arte.com/
Description: Tema WordPress personalizzato per la gestione di contenuti culturali strutturati. Progettato per presentare mostre, eventi, visite guidate e attività didattiche, con template dedicati per ogni sezione e logica di aggiornamento automatica basata sulle date. Sviluppato da Arcadia Arte.
Version: 1.0.1
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: palazzo-roncale
*/

/*--------------------------------------------------------------
>>> 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.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: 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: 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: #4169e1;
}

a:visited {
	color: var(--pr-rosso);
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

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 {
	display: block;
	width: 100%;
}

.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: 200px;
}

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

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

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

.post,
.page {
	margin: 0 0 1.5em;
}

.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: 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;
}
/* =============================================
   HEADER — Palazzo Roncale
   ============================================= */

:root {
	--pr-rosso:   #9E1622;
	--pr-nero:    #1a1a1a;
	--pr-bianco:  #ffffff;
	--pr-avorio:  #f5f2ec;
	--pr-grigio:  #6b6b6b;
	--pr-font-serif: 'Orpheus Pro', Georgia, serif;
	--pr-font-sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* Import Google Fonts */

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

body {
	margin: 0;
	font-family: var(--pr-font-sans);
	font-weight: 300;
	color: var(--pr-nero);
	background: var(--pr-bianco);
}

/* ─── HEADER ─── */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 999;
	transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
	padding: 0;
}

/* Header con admin bar */
.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.2rem 3rem;
	max-width: 100%;
	transition: padding 0.35s ease;
}

/* Header trasparente (default) */
.site-header {
	background: transparent;
}

/* Header scrollato — diventa bianco con ombra */
.site-header.scrolled {
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 1px 0 rgba(0,0,0,0.08);
	backdrop-filter: blur(8px);
}
.site-header.scrolled .header-inner {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* Offset contenuto per header fisso */
#page { padding-top: 0; }

/* ─── LOGO ─── */
.site-branding {
	flex-shrink: 0;
}
.custom-logo-link {
	display: block;
	text-decoration: none;
}
.site-logo {
	height: 56px;
	width: auto;
	display: block;
	transition: height 0.35s ease;
}
.site-header.scrolled .site-logo {
	height: 44px;
}
.site-name-text {
	font-family: var(--pr-font-serif);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--pr-rosso);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* ─── NAVIGAZIONE DESKTOP ─── */
.main-navigation {
	display: flex;
	align-items: center;
}
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
}
.main-navigation ul li { position: relative; }

.main-navigation ul li a {
	font-family: var(--pr-font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pr-nero);
	text-decoration: none;
	padding: 0.25rem 0;
	position: relative;
	transition: color 0.2s;
}
.main-navigation ul li a::after {
	content: '';
	position: absolute;
	bottom: -2px; left: 0; right: 0;
	height: 1.5px;
	background: var(--pr-rosso);
	transform: scaleX(0);
	transition: transform 0.25s ease;
	transform-origin: left;
}
.main-navigation ul li a:hover { color: var(--pr-rosso); }
.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current-menu-ancestor a::after,
.main-navigation ul li.current-menu-parent a::after { transform: scaleX(1); }
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current-menu-ancestor a,
.main-navigation ul li.current-menu-parent a { color: var(--pr-rosso); }

/* Didattica attivo su singolo laboratorio */
.single-laboratorio .main-navigation ul li.menu-item-60 a::after { transform: scaleX(1); }
.single-laboratorio .main-navigation ul li.menu-item-60 a { color: var(--pr-rosso); }

/* Su sfondo scuro (hero) le voci diventano bianche — solo su .has-hero */
.has-hero .site-header:not(.scrolled) .main-navigation ul li a {
	color: var(--pr-bianco);
}
.has-hero .site-header:not(.scrolled) .main-navigation ul li a::after {
	background: var(--pr-bianco);
}
.has-hero .site-header:not(.scrolled) .main-navigation ul li a:hover { color: rgba(255,255,255,0.75); }

/* Homepage: nessuna voce sottolineata come attiva */
.home .main-navigation ul li a::after { transform: scaleX(0) !important; }

/* ─── HAMBURGER MOBILE ─── */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}
.menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--pr-bianco);
	transition: background 0.3s, transform 0.3s;
}
.site-header.scrolled .menu-toggle span { background: var(--pr-nero); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
	.header-inner { padding: 1rem 1.5rem; }

	.main-navigation {
		display: none;
		position: fixed;
		top: 0; left: 0; right: 0; bottom: 0;
		background: var(--pr-nero);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		z-index: 998;
	}
	.main-navigation.is-open { display: flex; }
	.main-navigation ul {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}
	.main-navigation ul li a {
		font-size: 1.1rem;
		color: var(--pr-bianco) !important;
	}
	.menu-toggle { display: flex; z-index: 1000; }
}


/* ─── FIX HEADER DEFAULT (pagine senza hero) ─── */
/* Header default: bordo sottile visibile su sfondi chiari */
.site-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
/* Su pagine has-hero il bordo sparisce */
.has-hero .site-header {
    border-bottom: none;
}

/* Hamburger: scuro di default, bianco su hero */
.menu-toggle span {
    background: var(--pr-nero);
}
.has-hero .menu-toggle span {
    background: var(--pr-bianco);
}
.site-header.scrolled .menu-toggle span {
    background: var(--pr-nero);
}

/* Logo bianco su pagine hero */
.has-hero .site-header:not(.scrolled) .site-logo {
    filter: brightness(0) invert(1);
}

/* ─── FIX PADDING HEADER FISSO ─── */
/* L'header fisso alto ~96px: il contenuto deve scendere di conseguenza */
#page {
    padding-top: 96px;
}
/* Con admin bar aggiunge altri 32px */
.admin-bar #page {
    padding-top: 128px;
}
@media screen and (max-width: 782px) {
    .admin-bar #page {
        padding-top: 142px;
    }
}
/* Pagine con hero: nessun padding (il hero copre tutta l'altezza) */
.has-hero #page {
    padding-top: 0;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

/* ─── FOOTER MAIN (sfondo nero) ─── */
.site-footer {
    font-family: var(--pr-font-sans);
}

.footer-main {
    background: #111;
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* ─── COLONNE ─── */
.footer-col {
    flex: 1;
}
.footer-col--info {
    flex: 1.6;
}
.footer-col--social {
    flex: 0.5;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* ─── LOGO ─── */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.footer-logo {
    height: 72px;
    width: auto;
}

/* ─── INDIRIZZO E CONTATTI ─── */
.footer-address {
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.2rem;
}
.footer-contact {
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
}
.footer-contact strong {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.footer-contact a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: var(--pr-rosso);
}

/* ─── TITOLI COLONNE ─── */
.footer-heading {
    font-family: var(--pr-font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0 0 1.2rem;
    letter-spacing: 0.02em;
}

/* ─── LINK FOOTER ─── */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links li::before {
    content: '›';
    color: var(--pr-rosso);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: rgba(255,255,255,1);
}

/* ─── SOCIAL ─── */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.footer-social-link:hover {
    border-color: var(--pr-rosso);
    color: var(--pr-rosso);
}

/* ─── PRIVACY POLICY BAR ─── */
.footer-bottom-links {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}
.footer-bottom-links .footer-inner {
    display: flex;
    align-items: center;
}
.footer-privacy-btn {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--pr-font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.4rem 1rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.footer-privacy-btn:hover {
    border-color: var(--pr-rosso);
    color: var(--pr-bianco);
}

/* ─── FOOTER BAR (rosso) ─── */
.footer-bar {
    background: var(--pr-rosso);
    padding: 0.9rem 0;
}
.footer-bar .footer-inner {
    display: flex;
    align-items: center;
}
.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    margin: 0;
}

/* ─── FOOTER RESPONSIVE ─── */
@media (max-width: 1024px) {
    .footer-inner {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .footer-col--info { flex: 100%; }
    .footer-col { flex: 1; min-width: 140px; }
    .footer-col--social {
        flex: 100%;
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
    }
    .footer-social { flex-direction: row; }
}
@media (max-width: 600px) {
    .footer-inner { padding: 0 1.5rem; }
    .footer-col { flex: 100%; }
    .footer-col--social { flex: 100%; }
}

/* ─── FIX HEADER ALIGNMENT + FONT SIZE ─── */
/* Spinge la nav sul bordo destro */
.main-navigation {
    margin-left: auto;
}
/* Riduce gap tra voci e font size come nel riferimento */
.main-navigation ul {
    gap: 2.5rem;
}
.main-navigation ul li a {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}
/* Fix: header full width */
.site-header {
    width: 100%;
    left: 0;
    right: 0;
}

/* ─── FIX: override _s width:100% sulla nav ─── */
#site-navigation.main-navigation {
    width: auto !important;
    margin-left: auto;
}

/* ─── FIX FONT SIZE NAV — allineato al riferimento (16px, 400, 1px) ─── */
#site-navigation.main-navigation ul li a {
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
}

/* ═══════════════════════════════════════════════
   SINGLE MOSTRA
═══════════════════════════════════════════════ */

/* ─── HERO ─── */
.mostra-hero {
    position: relative;
    min-height: calc(100vh - 150px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.mostra-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.mostra-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    color: #fff;
}
.mostra-hero__title {
    font-family: var(--pr-font-serif);
    font-size: 80px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #fff;
}
.mostra-hero__subtitle {
    font-family: var(--pr-font-serif);
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 1.2rem;
    color: rgba(255,255,255,0.9);
}
.mostra-hero__dates {
    font-family: var(--pr-font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ─── INTRO (due colonne: curatore | lead) ─── */
.mostra-intro {
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}
.mostra-intro__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
.mostra-intro__curatore {
    font-family: var(--pr-font-serif);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}
.mostra-intro__lead {
    font-family: var(--pr-font-serif);
    font-size: 28px;
    line-height: 1.5;
    color: var(--pr-nero);
}

/* ─── DESCRIZIONE ─── */
.mostra-body {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}
.mostra-body__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 3rem;
    font-family: var(--pr-font-sans);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}
.mostra-body__inner p { margin-bottom: 1.2em; }

/* ─── GALLERIA ─── */
.mostra-gallery {
    background: var(--pr-rosso);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.mostra-gallery__track {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.mostra-gallery__slide {
    display: none;
    justify-content: center;
}
.mostra-gallery__slide.active {
    display: flex;
}
.mostra-gallery__slide img {
    max-width: 60%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.mostra-gallery__controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.mostra-gallery__controls button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    font-family: var(--pr-font-sans);
    letter-spacing: 0.1em;
}
.mostra-gallery__controls button:hover { color: #fff; }

/* ─── INFO PRATICHE ─── */
.mostra-info {
    padding: 5rem 0;
    background: var(--pr-avorio);
}
.mostra-info__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}
.mostra-info__heading {
    font-family: var(--pr-font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--pr-nero);
    margin: 0 0 2.5rem;
    letter-spacing: 0.02em;
}
.mostra-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.mostra-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.mostra-info__label {
    font-family: var(--pr-font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pr-rosso);
}
.mostra-info__value {
    font-family: var(--pr-font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

/* ─── RESPONSIVE MOSTRA ─── */
@media (max-width: 768px) {
    .mostra-intro__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .mostra-body__inner { padding: 0 1.5rem; }
    .mostra-info__inner { padding: 0 1.5rem; }
    .mostra-gallery__slide img { max-width: 90%; }
    .mostra-hero { padding: 4rem 0; }
}

/* ─── TOPBAR ─── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--pr-rosso);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 3rem;
}
.topbar span {
    font-family: var(--pr-font-sans);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}

/* Con admin bar la topbar scende di 32px */
.admin-bar .topbar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .topbar {
        top: 46px;
    }
}

/* L'header fisso si sposta sotto la topbar */
.site-header {
    top: 50px !important;
}
.admin-bar .site-header {
    top: 82px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 96px !important;
    }
}

/* Il contenuto della pagina scende di topbar + header */
#page {
    padding-top: 146px !important;
}
.admin-bar #page {
    padding-top: 178px !important;
}
.has-hero #page {
    padding-top: 0 !important;
}

/* ═══════════════════════════════════════════════
   HEADER HEIGHT FIX — header più compatto
   Target: logo 44px, padding 0.75rem → ~68px totale
   Topbar 50px + header 68px = 118px → offset pagina 120px
═══════════════════════════════════════════════ */

/* Riduce altezza logo */
.site-logo {
    height: 44px !important;
}
.site-header.scrolled .site-logo {
    height: 36px !important;
}

/* Riduce padding header-inner */
.header-inner {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
.site-header.scrolled .header-inner {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Offset pagina aggiornato: topbar 50px + header ~68px = 118px */
#page {
    padding-top: 120px !important;
}
.admin-bar #page {
    padding-top: 152px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar #page {
        padding-top: 166px !important;
    }
}

/* Pagine con hero (body.has-hero): nessun padding — il hero parte da sotto il menu */
.has-hero #page {
    padding-top: 0 !important;
}

/* Hero mostra: compensa l'altezza combinata topbar + header */
.mostra-hero {
    margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════
   TEMPLATE STANDARD — header sempre bianco
   Il template per le pagine comuni ha l'header
   sempre solido (bianco). Solo la homepage (body.home.has-hero)
   mantiene l'header trasparente.
═══════════════════════════════════════════════ */

/* Header: sempre bianco e solido di default */
.site-header {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
}

/* Solo sulla homepage con hero: trasparente prima dello scroll */
body.home.has-hero .site-header:not(.scrolled),
body.has-hero.front-page .site-header:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}

/* Su tutte le pagine non-hero: voce menu scura */
body:not(.has-hero) .main-navigation ul li a {
    color: var(--pr-nero) !important;
}
body:not(.has-hero) .main-navigation ul li a:hover {
    color: var(--pr-rosso) !important;
}

/* ─── PAGE HERO (immagine sotto il menu, piena larghezza) ─── */
.page-hero {
    width: 100%;
    height: 60vh;
    min-height: 320px;
    max-height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.page-hero__content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    width: 100%;
}
.page-hero__title {
    font-family: var(--pr-font-serif);
    font-size: 56px;
    font-weight: 300;
    color: var(--pr-bianco);
    margin: 0;
    line-height: 1.15;
}

/* ─── PAGE TITLE BAR (senza immagine) ─── */
.page-title-bar {
    width: 100%;
    background: var(--pr-avorio, #f5f0e8);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.page-title-bar__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}
.page-title-bar__title {
    font-family: var(--pr-font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--pr-nero);
    margin: 0;
    line-height: 1.2;
}

/* ─── PAGE CONTENT ─── */
.page-content {
    padding: 4rem 0;
}
.page-content__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
    font-family: var(--pr-font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--pr-nero);
}
.page-content__inner p { margin-bottom: 1.5em; }
.page-content__inner h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 2em 0 0.75em;
}

/* ─── MOSTRA HERO: parte sotto il menu (non sovrapposto) ─── */
/* Il #page ha già padding-top:120px, il hero parte subito lì */
.mostra-hero {
    min-height: calc(100vh - 120px) !important;
}
.admin-bar .mostra-hero {
    min-height: calc(100vh - 152px) !important;
}

/* ─── HOME HERO ─── */
.home-hero {
    width: 100%;
    min-height: calc(100vh - 150px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--pr-nero);
    position: relative;
    display: flex;
    align-items: center;
}
.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}
.home-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.home-hero__content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.home-hero__mostra-title {
    font-family: var(--pr-font-serif);
    font-size: 70px;
    font-weight: 400;
    color: var(--pr-bianco);
    margin: 0 0 8px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}
.home-hero__mostra-subtitle {
    font-family: var(--pr-font-serif);
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin: 0 0 16px;
    line-height: 1.3;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.home-hero__mostra-dates {
    font-family: var(--pr-font-sans);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin: 0 0 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.home-hero__mostra-btn {
    display: inline-block;
    background: var(--pr-rosso);
    color: #fff !important;
    font-family: var(--pr-font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 30px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.home-hero__mostra-btn:hover {
    background: #7a1019;
    color: #fff !important;
}
@media (max-width: 768px) {
    .home-hero__mostra-title {
        font-size: 40px;
    }
    .home-hero__mostra-subtitle {
        font-size: 20px;
    }
    .home-hero__content-inner {
        padding: 0 24px;
    }
}
.home-hero__title {
    font-family: var(--pr-font-serif);
    font-size: 80px;
    font-weight: 300;
    color: var(--pr-bianco);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}
.home-hero__subtitle {
    font-family: var(--pr-font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* ─── FIX OFFSET #page: il body è già spostato 32px dall'admin bar ─── */
/* Sia con che senza admin bar, il padding-top corretto è uguale:       */
/* topbar (50px) + header (69px) = 119px                                */
#page {
    padding-top: 119px !important;
}
.admin-bar #page {
    padding-top: 119px !important;
}
.has-hero #page {
    padding-top: 0 !important;
}

/* ═══════════════════════════════════════════════
   HEADER 120px — tutto in px
   Logo 56px + padding 32px×2 = 120px esatti
   #page offset: topbar 50px + header 120px = 170px
═══════════════════════════════════════════════ */

.site-logo {
    height: 56px !important;
}
.site-header.scrolled .site-logo {
    height: 40px !important;
}

.header-inner {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
}
.site-header.scrolled .header-inner {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Offset pagina: topbar 50 + header 120 = 170px */
#page {
    padding-top: 170px !important;
}
.admin-bar #page {
    padding-top: 170px !important;
}
.has-hero #page {
    padding-top: 0 !important;
}

/* Mostra hero: riempie il viewport dalla fine del menu */
.mostra-hero {
    min-height: calc(100vh - 170px) !important;
}
.admin-bar .mostra-hero {
    min-height: calc(100vh - 202px) !important;
}

/* Rimuove border-bottom dall'header per ottenere esattamente 120px */
.site-header {
    border-bottom: none !important;
}
/* Il separatore riappare solo nell'header scrollato */
.site-header.scrolled {
    box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
}

/* Rimuove border-bottom dall'header per ottenere esattamente 120px */
.site-header {
    border-bottom: none !important;
}
.site-header.scrolled {
    box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
}

/* Safari adaptive tab bar — background html esplicito bianco.
   Safari campiona html background come colore primario della toolbar,
   prima di leggere qualsiasi elemento fixed. */
html {
    background-color: #ffffff !important;
    color-scheme: light;
}

/* Safari adaptive tab bar: background html esplicito bianco */
html {
    background-color: #ffffff !important;
    color-scheme: light;
}

/* ═══════════════════════════════════════════════
   LAYOUT FINALE — topbar dentro header, header static
   .header-inner sticky → identico al sito di riferimento
   Nessun elemento rosso fixed a top:0 → Safari OK
═══════════════════════════════════════════════ */

/* Header: flusso normale della pagina (non fixed) */
.site-header {
    position: static !important;
    top: auto !important;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Topbar: statica dentro l'header */
.topbar {
    position: static !important;
    top: auto !important;
    height: 50px;
    background: var(--pr-rosso);
    display: flex;
    align-items: center;
    padding: 0 48px;
    width: 100%;
    box-sizing: border-box;
    z-index: auto;
}

/* Header-inner: sticky — si blocca al top dopo che la topbar esce */
.header-inner {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
}

/* Con admin bar: sticky si blocca a 32px (altezza admin bar) */
.admin-bar .header-inner {
    top: 32px !important;
}

/* #page: nessun padding-top, l'header è nel flusso normale */
#page {
    padding-top: 0 !important;
}
.admin-bar #page {
    padding-top: 0 !important;
}
.has-hero #page {
    padding-top: 0 !important;
}

/* Voce menu: colore scuro (header sempre bianco) */
.main-navigation ul li a {
    color: var(--pr-nero) !important;
}
.main-navigation ul li a:hover {
    color: var(--pr-rosso) !important;
}

/* Logo: dimensioni scrolled */
.site-header.scrolled .site-logo {
    height: 40px !important;
}
.site-header.scrolled .header-inner {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Pagine con hero: header trasparente finché non si scrolla */
.has-hero .site-header:not(.scrolled) .header-inner {
    background: transparent !important;
    box-shadow: none !important;
}

/* Mostra hero: riempie viewport dalla fine dell'header static */
.mostra-hero {
    min-height: calc(100vh - 170px) !important;
    width: 100%;
}


/* ═══════════════════════════════════════════════
   LAYOUT STICKY DEFINITIVO
   .topbar  → static (scorre via)
   .site-header → sticky (rimane visibile)
   Nessun fixed → Safari OK
═══════════════════════════════════════════════ */

/* Topbar: flusso normale, nessun positioning speciale */
.topbar {
    position: static !important;
    top: auto !important;
    height: 50px;
    background: var(--pr-rosso);
    display: flex;
    align-items: center;
    padding: 0 48px;
    box-sizing: border-box;
    z-index: auto;
}

/* Header: sticky — si blocca al top dopo che la topbar è uscita */
.site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-bottom: none !important;
}

/* Pagine con hero: header fixed e trasparente prima dello scroll */
.has-hero .site-header {
    position: fixed !important;
    top: 50px !important;
}
.admin-bar.has-hero .site-header {
    top: 82px !important;
}
/* Assicura che la admin bar WordPress sia sempre visibile (Safari fix) */
#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 100000 !important;
}
.has-hero .site-header:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}
.has-hero .site-header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}
/* Voci menu bianche su hero */
.has-hero .site-header:not(.scrolled) .main-navigation ul li a {
    color: var(--pr-bianco) !important;
}
.has-hero .site-header:not(.scrolled) .main-navigation ul li a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Con admin bar: sticky su pagine normali si ancora sotto la admin bar */
.admin-bar .site-header {
    top: 32px !important;
}

/* Header-inner: layout interno, non sticky */
.header-inner {
    position: static !important;
    top: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 48px !important;
    box-sizing: border-box;
    background: transparent !important;
    box-shadow: none !important;
}

/* Logo scrolled: riduce quando header è in stato scrolled */
.site-header.scrolled .site-logo {
    height: 40px !important;
}
.site-header.scrolled .header-inner {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* #page: nessun padding, tutto scorre naturalmente */
#page {
    padding-top: 0 !important;
}
.admin-bar #page {
    padding-top: 0 !important;
}
.has-hero #page {
    padding-top: 0 !important;
}

/* Voci menu: scure (header sempre bianco) */
.main-navigation ul li a {
    color: var(--pr-nero) !important;
}
.main-navigation ul li a:hover {
    color: var(--pr-rosso) !important;
}

/* Mostra hero */
.mostra-hero {
    min-height: calc(100vh - 170px) !important;
}

/* Mostra hero: altezza fissa 610px */
.mostra-hero {
    min-height: 610px !important;
    height: 610px !important;
}
.admin-bar .mostra-hero {
    min-height: 610px !important;
    height: 610px !important;
}

/* Mostra hero: testo centrato orizzontalmente e verticalmente */
.mostra-hero {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
.mostra-hero__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 48px !important;
}

/* Titolo: Orpheus Pro */
.mostra-hero__title {
    font-family: 'Orpheus Pro', Helvetica, Arial, Lucida, sans-serif !important;
}

/* ═══════════════════════════════════════════════════════════
   GALLERIA SLIDER — immagine centrata, responsive, lightbox
   ═══════════════════════════════════════════════════════════ */

/* Contenitore esterno: nasconde overflow sinistro/destro */
.mostra-gallery {
    overflow: hidden;
    padding: 0 0 72px 0;
    background: #ffffff;
}

/* Viewport: non clippa (il parent lo fa) */
.mostra-gallery .gallery__viewport {
    overflow: visible;
    width: 100%;
}

/* Track: riga orizzontale, posizionata via JS con translateX */
.mostra-gallery .gallery__track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    will-change: transform;
}

/* Cella: larghezza responsive */
.mostra-gallery .gallery__cell {
    flex: 0 0 min(85vw, 570px);
    min-width: 0;
    cursor: pointer;
}

@media (min-width: 640px) {
    .mostra-gallery .gallery__cell {
        flex: 0 0 min(70vw, 570px);
    }
}

@media (min-width: 1024px) {
    .mostra-gallery .gallery__cell {
        flex: 0 0 570px;
    }
}

/* Frame: aspect-ratio 3:2, clip, hover scale */
.mostra-gallery .gallery__frame {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.mostra-gallery .gallery__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    draggable: false;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.mostra-gallery .gallery__frame:hover img {
    transform: scale(1.02);
}

/* Navigazione */
.mostra-gallery .gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
}

/* Frecce SVG */
.mostra-gallery .gallery__arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    line-height: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.mostra-gallery .gallery__arrow:hover:not(:disabled) { color: #111; }
.mostra-gallery .gallery__arrow:disabled {
    color: #ccc;
    cursor: default;
}

/* Numeri */
.mostra-gallery .gallery__num {
    background: none;
    border: none;
    cursor: pointer;
    color: #6d6d6d;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 0 2px;
    transition: color 0.2s;
}
.mostra-gallery .gallery__num.is-active {
    color: #111;
    font-weight: 700;
}
.mostra-gallery .gallery__num:hover { color: #555; }

/* ── Lightbox ─────────────────────────────────────────────── */
.gallery__lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    box-sizing: border-box;
}
.gallery__lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    padding: 8px;
    transition: opacity 0.2s;
    line-height: 0;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    opacity: 0.6;
    padding: 12px;
    transition: opacity 0.2s;
    line-height: 0;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════════
   MOSTRA BODY — testi: curatore, intro, descrizione
   ═══════════════════════════════════════════════════════════ */

/* Nasconde label "Curatore:" se presente */
.mostra-body__curatore-label {
    display: none !important;
}

/* Nome curatore: Lato italic, leggero */
.mostra-body__curatore-name {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: var(--pr-nero, #1a1a1a) !important;
}

/* Colonna destra: interlinea generale */
.mostra-body__right {
    line-height: 1.9 !important;
}

/* Testo intro: Orpheus Pro 32px */
.mostra-body__intro,
.mostra-body__intro p {
    font-family: 'Orpheus Pro', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.55 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin-top: 0 !important;
}

/* Spaziatura tra paragrafi intro */
.mostra-body__intro p {
    margin-bottom: 8px !important;
}
.mostra-body__intro p:last-child {
    margin-bottom: 32px !important;
}

/* Descrizione: Lato 18px */
.mostra-body__descrizione,
.mostra-body__descrizione p {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
}


/* ═══════════════════════════════════════════════════════════════
   MOSTRA BODY — layout a due colonne (consolidato)
   ═══════════════════════════════════════════════════════════════ */

.mostra-body {
    padding: 80px 48px !important;
    background: #ffffff !important;
    border-bottom: none !important;
}

/* Inner: flex row */
.mostra-body__inner {
    max-width: 1350px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Colonna sinistra: 450px fissa */
.mostra-body__left {
    width: 450px !important;
    min-width: 450px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
}
.mostra-body__curatore-label {
    display: none !important;
}
.mostra-body__curatore-name {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 !important;
}

/* Colonna destra: flex 1 */
.mostra-body__right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Intro: Orpheus Pro 32px */
.mostra-body__intro,
.mostra-body__intro p {
    font-family: 'Orpheus Pro', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 2 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
}

/* Descrizione: Lato 18px */
.mostra-body__descrizione,
.mostra-body__descrizione p {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Responsive: sotto 900px → singola colonna */
@media (max-width: 900px) {
    .mostra-body__inner {
        flex-direction: column !important;
    }
    .mostra-body__left,
    .mostra-body__right {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
    .mostra-body__left {
        margin-bottom: 40px !important;
    }
    .mostra-body {
        padding: 48px 24px !important;
    }
}


/* ─── Correzione spacing intro (fix_lineheight + fix_intro_gap) ─── */
/* Sovrascrive i valori errati di restore_two_columns.py             */
.mostra-body__intro,
.mostra-body__intro p {
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
}
.mostra-body__intro p:last-child {
    margin-bottom: 0 !important;
}
/* Spazio tra il blocco intro e il blocco descrizione */
.mostra-body__intro {
    margin-bottom: 40px !important;
}


/* ─── PAGINA MOSTRE — sezione titolo ─── */
.mostre-header {
    padding: 80px 0 48px;
    text-align: center;
}

/* ─── PAGINA MOSTRE — titolo ─── */
.mostre-header__title {
    font-family: 'Orpheus Pro', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 400;
    font-size: 80px;
    line-height: 1.1;
    color: var(--pr-nero, #1a1a1a);
    margin: 0;
}


/* ═══════════════════════════════════════════════
   NEWSLETTER CTA
═══════════════════════════════════════════════ */
.newsletter-cta {
    background: #fff;
    border-top: 1px solid #d8d8d8;
    padding: 70px 0;
}
.newsletter-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.newsletter-cta__text {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0;
}
.newsletter-cta__btn {
    display: inline-block;
    background: #9E1622;
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 30px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.newsletter-cta__btn:hover {
    background: #7a1019;
}

@media (max-width: 768px) {
    .newsletter-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 0 24px;
    }
    .newsletter-cta {
        padding: 44px 0;
    }
}


/* ═══════════════════════════════════════════════
   PAGINA MOSTRE — nuovo layout gallery
   (archive-mostra.php)
═══════════════════════════════════════════════ */

/* ── Wrapper generale ── */
.page-wrap {
    background: #fafafa;
}

/* ── Page header ── */
.page-header {
    padding: 100px 0 48px;
    text-align: center;
}
.page-header__title {
    font-family: 'Orpheus Pro', Georgia, serif !important;
    font-size: 80px !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em;
    color: #1a1a1a !important;
    margin: 0;
    line-height: 1.1;
}

/* ── Intro text ── */
.page-intro {
    max-width: 760px;
    margin: 0 auto 80px;
    padding: 0 24px;
    text-align: center;
}
.page-intro p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    line-height: 1.85;
    color: #444;
}

/* ── Main container ── */
.page-main {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

/* ──────────────────────────
   MOSTRA IN CORSO
────────────────────────── */
.mostre-corrente-new__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #9E1622;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}
.mostre-corrente-new__img-link {
    display: block;
    text-decoration: none;
    margin-bottom: 32px;
}
.mostre-corrente-new__img-wrap {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #e8e8e8;
}
.mostre-corrente-new__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    filter: none !important;
    mix-blend-mode: normal !important;
}
.mostre-corrente-new__img-link:hover .mostre-corrente-new__img-wrap img {
    transform: scale(1.03);
}
.mostre-corrente-new__info {
    text-align: center;
}
.mostre-corrente-new__info-link {
    text-decoration: none;
    color: inherit;
}
.mostre-corrente-new__title {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}
.mostre-corrente-new__subtitle {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: #666;
    margin: 0 0 12px;
}
.mostre-corrente-new__date {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    color: #666;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

/* ──────────────────────────
   MOSTRE PASSATE — griglia
────────────────────────── */
.mostre-passate-new__heading {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 48px;
}
.mostre-passate-new__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px 32px;
}
.mostre-passate-new__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.mostre-passate-new__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 24px;
}
.mostre-passate-new__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.mostre-passate-new__link:hover .mostre-passate-new__img-wrap img {
    transform: scale(1.05);
}
.mostre-passate-new__info {
    text-align: center;
    padding: 0 12px;
}
.mostre-passate-new__title {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s;
}
.mostre-passate-new__link:hover .mostre-passate-new__title {
    color: #666;
}
.mostre-passate-new__subtitle {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: #666;
    margin: 0 0 12px;
}
.mostre-passate-new__date {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #6d6d6d;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .mostre-corrente-new__img-wrap {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 680px) {
.page-header { padding: 48px 0 32px; }
.page-intro { margin-bottom: 48px; }
    .mostre-corrente-new__meta {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .mostre-passate-new__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
.page-main { padding: 0 16px 20px; }
}

/* ============================================================
   SINGLE EVENTO
   ============================================================ */

/* ── Wrapper & container ───────────────────────────────────── */
.evento-single {
	background: #fff;
	color: #222;
}

.evento-single__container {
	max-width: 1350px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

@media (min-width: 768px) {
	.evento-single__container {
		padding: 64px 32px 100px;
	}
}

/* ── Header ────────────────────────────────────────────────── */
.evento-single__header {
	margin-bottom: 48px;
}

.evento-single__h1 {
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 72px;
	font-weight: 400;
	line-height: 1.1;
	color: #222;
	margin: 0 0 8px;
}

.evento-single__h2 {
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	color: #333;
	margin: 0 0 20px;
}

.evento-single__pubdate {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0;
}

/* ── Hero banner ───────────────────────────────────────────── */
.evento-single__hero {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 64px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
	.evento-single__hero {
		flex-direction: row;
	}
}

/* Sinistra: immagine */
.evento-single__hero-img {
	width: 100%;
	min-height: 320px;
	background-color: #26544a;
	background-size: cover;
	background-position: center;
}

@media (min-width: 768px) {
	.evento-single__hero-img {
		width: 50%;
		min-height: 520px;
	}
}

/* Destra: contenuto */
.evento-single__hero-content {
	width: 100%;
	background: #26544a;
	color: #fff;
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (min-width: 768px) {
	.evento-single__hero-content {
		width: 50%;
		padding: 56px 64px;
	}
}

.evento-single__hero-datebox {
	display: inline-block;
	background: rgba(0,0,0,0.25);
	padding: 10px 16px;
	margin-bottom: 12px;
}

.evento-single__hero-datebox p {
	font-size: 19px;
	font-weight: 700;
	margin: 0;
	color: #fff;
}

.evento-single__hero-dove {
	font-size: 16px;
	margin: 0 0 24px;
	color: rgba(255,255,255,0.9);
}

.evento-single__hero-title {
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 24px;
}

.evento-single__hero-desc {
	font-size: 19px;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255,255,255,0.9);
	margin: 0 0 32px;
}

.evento-single__hero-mostra {
	margin-top: auto;
}

.evento-single__hero-mostra-label {
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(255,255,255,0.8);
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.evento-single__hero-mostra-name {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	text-decoration: none;
	display: block;
}

a.evento-single__hero-mostra-name:hover {
	text-decoration: underline;
}

/* ── Info grid ─────────────────────────────────────────────── */
.evento-single__info {
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	padding: 40px 0;
	margin-bottom: 80px;
}

.evento-single__info-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 768px) {
	.evento-single__info-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 40px 32px;
	}
}

.evento-single__info-item {
	/* nessun bordo — la griglia separa visivamente */
}

.evento-single__info-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 10px;
}

.evento-single__info-value {
	font-size: 15px;
	color: #333;
	margin: 0;
	line-height: 1.5;
}

.evento-single__info-link {
	font-size: 15px;
	font-weight: 500;
	color: #9b2c2c;
	text-decoration: none;
}

.evento-single__info-link:hover {
	text-decoration: underline;
}

/* ── Hero image full-width (featured image) ────────────────── */
.evento-single__hero-full {
	width: 100%;
	margin-bottom: 64px;
	overflow: hidden;
}

.evento-single__hero-full-img {
	width: 100%;
	height: auto;
	aspect-ratio: 1322 / 745;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* ── Contenuto principale ──────────────────────────────────── */
.evento-single__content {
	max-width: 850px;
	margin: 0 auto;
}

.evento-single__content-inner {
	font-size: 18px;
	line-height: 1.75;
	color: #333;
	margin-bottom: 64px;
}

.evento-single__content-inner p {
	margin: 0 0 24px;
}

.evento-single__content-inner ul,
.evento-single__content-inner ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.evento-single__content-inner li {
	margin-bottom: 10px;
}

.evento-single__content-inner a {
	color: #9b2c2c;
}

.evento-single__content-inner a:hover {
	text-decoration: none;
}

.evento-single__content-inner strong {
	font-weight: 700;
	color: #222;
}

/* ── Social share ──────────────────────────────────────────── */
.evento-single__share-label {
	font-size: 13px;
	font-weight: 700;
	color: #9b2c2c;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 16px;
}

.evento-single__share-icons {
	display: flex;
	gap: 16px;
	align-items: center;
}

.evento-single__share-link {
	color: #9b2c2c;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
}

.evento-single__share-link:hover {
	opacity: 0.7;
}

/* ══════════════════════════════════════════
   PAGINA EVENTI
═══════════════════════════════════════════ */

/* ── Prossimi eventi (sfondo #fcfcfc, eredita dal page-wrap) ── */
.prossimi-eventi {
    width: 100%;
    padding: 0;
}

.prossimi-eventi__inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}
.prossimi-eventi__heading {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 48px;
}

/* ── Eventi passati (sfondo bianco full-width) ── */
.pagina-lista {
    background: #fafafa;
    width: 100%;
}
.pagina-lista__inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}
.pagina-lista__heading {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 48px;
}

/* ══════════════════════════════════════
   EVENTO CARD (griglia prossimi eventi)
   ══════════════════════════════════════ */

.prossimi-eventi__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.evento-card {
    border: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
}

.evento-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: opacity 0.2s;
}

.evento-card__link:hover {
    opacity: 0.85;
}

.evento-card__image-wrap {
    overflow: hidden;
    flex-shrink: 0;
    padding: 16px 16px 0;
}

.evento-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.evento-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 36px 36px;
    flex-grow: 1;
}

.evento-card__title {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.3;
}

.evento-card__meta {
    margin-top: auto;
}

.evento-card__meta-item {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #555;
    margin: 4px 0;
    line-height: 1.5;
}

.evento-card__meta-item:first-child {
    font-style: italic;
}

.prossimi-eventi__empty {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #888;
}

@media (max-width: 768px) {
    .prossimi-eventi__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Archivio eventi link ── */
.pagina-lista__archivio {
    margin-top: 56px;
    text-align: right;
}

.eventi-archivio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s;
}

.eventi-archivio-link:hover {
    opacity: 0.6;
}

.eventi-archivio-link__arrow {
    font-size: 15px;
}

/* ── Archivio: pulsante Carica altri ── */
.archivio-loadmore-wrap {
    text-align: center;
    margin-top: 56px;
    padding-bottom: 80px;
}

.archivio-loadmore-btn {
    display: inline-block;
    background: #9b1c1c;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.archivio-loadmore-btn:hover {
    background: #7a1515;
}

.archivio-loadmore-btn:disabled {
    opacity: 0.6;
    cursor: default;
}


/* ══════════════════════════════════════════
   SINGOLA NOTIZIA
═══════════════════════════════════════════ */

.notizia-single {
	background: #fff;
	color: #222;
}

.notizia-single__container {
	max-width: 1350px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

@media (min-width: 768px) {
	.notizia-single__container {
		padding: 64px 32px 100px;
	}
}

/* ── Header ─────────────────────────────── */
.notizia-single__header {
	margin-bottom: 48px;
}

.notizia-single__h1 {
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 72px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--pr-nero);
	margin: 0 0 8px;
}

.notizia-single__h2 {
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	color: #333;
	margin: 0 0 20px;
}

.notizia-single__pubdate {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0;
}

/* ── Hero image full-width ──────────────── */
.notizia-single__hero-full {
	width: 100%;
	margin-bottom: 64px;
}

.notizia-single__hero-full-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ── Contenuto principale ───────────────── */
.notizia-single__content {
	max-width: 850px;
	margin: 0 auto;
}

.notizia-single__content-inner {
	font-size: 18px;
	line-height: 1.75;
	color: #333;
	margin-bottom: 64px;
}

.notizia-single__content-inner p {
	margin: 0 0 24px;
}

.notizia-single__content-inner ul,
.notizia-single__content-inner ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.notizia-single__content-inner li {
	margin-bottom: 10px;
}

.notizia-single__content-inner a {
	color: var(--pr-rosso);
}

.notizia-single__content-inner a:hover {
	text-decoration: none;
}

.notizia-single__content-inner strong {
	font-weight: 700;
	color: #222;
}

/* ── Social share ───────────────────────── */
.notizia-single__share-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--pr-rosso);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 16px;
}

.notizia-single__share-icons {
	display: flex;
	gap: 16px;
	align-items: center;
}

.notizia-single__share-link {
	color: var(--pr-rosso);
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
}

.notizia-single__share-link:hover {
	opacity: 0.7;
}

/* Notizie + Archivio Notizie: nessun bordo, immagine a tutta larghezza, griglia 2 colonne */
.page-template-page-notizie .evento-card,
.page-template-page-archivio-notizie .evento-card {
	border: none;
}
.page-template-page-notizie .evento-card__image-wrap,
.page-template-page-archivio-notizie .evento-card__image-wrap {
	padding: 0;
}
.page-template-page-notizie .prossimi-eventi__grid,
.page-template-page-archivio-notizie .prossimi-eventi__grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 32px 24px;
}
@media (max-width: 600px) {
	.page-template-page-notizie .prossimi-eventi__grid,
	.page-template-page-archivio-notizie .prossimi-eventi__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Notizia: mostra collegata ─────────────────────────────── */
.notizia-single__mostra {
	max-width: 850px;
	margin: 40px auto 0;
	padding-top: 32px;
	border-top: 1px solid #e0e0e0;
}

.notizia-single__mostra-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 8px;
}

.notizia-single__mostra-name {
	display: block;
	font-family: 'Orpheus Pro', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: var(--pr-nero);
	text-decoration: none;
	margin: 0;
}

a.notizia-single__mostra-name:hover {
	color: var(--pr-rosso);
}


/* ══════════════════════════════════════════════
   PAGINA CONTATTI
   ══════════════════════════════════════════════ */

.contatti-section {
    border-bottom: 1px solid #e5e5e5;
}
.contatti-section--gray  { background: #fafafa !important; }
.contatti-section--white { background: #ffffff; }

.contatti-section__inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}

/* Left column: heading (+ map on last section) */
.contatti-section__heading {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contatti-h2 {
    font-family: 'Orpheus Pro', 'Cormorant Garamond', Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #333333 !important;
    margin: 0;
}

/* Right column: body text */
.contatti-section__body {
    padding-top: 4px;
}

.contatti-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}
.contatti-text p { margin: 0; }

/* CTA Buttons */
.contatti-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}
.contatti-btn {
    display: inline-block;
    background: var(--pr-rosso);
    color: #ffffff !important;
    padding: 12px 24px;
    font-family: var(--pr-font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}
.contatti-btn:hover { background: #7a1218; }
.contatti-btn--upper {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

/* Inline links */
.contatti-link {
    color: var(--pr-rosso);
    text-decoration: underline;
}
.contatti-link:hover { text-decoration: none; }

/* Directions */
.contatti-directions {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contatti-directions__title {
    font-family: var(--pr-font-sans);
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.contatti-directions__item p { margin: 0; }

/* Map */
.contatti-map {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    overflow: hidden;
    background: #d9d9d9;
}
.contatti-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(100%);
}

/* Address block */
.contatti-address { display: flex; flex-direction: column; gap: 2px; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .contatti-section__inner {
        grid-template-columns: 1fr;
        padding: 48px 16px;
        gap: 28px;
    }
    .contatti-map { min-height: 260px; }
}


/* ── mostra-body: h2/h3 e liste (usati anche in pagine come Didattica) ── */

.mostra-body__intro h2,
.mostra-body__intro h3 {
    font-family: 'Orpheus Pro', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 0 24px !important;
}

.mostra-body__descrizione h2,
.mostra-body__descrizione h3 {
    font-family: 'Orpheus Pro', Georgia, serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 0 20px !important;
}

.mostra-body__descrizione ul,
.mostra-body__descrizione ol {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    padding-left: 1.4em !important;
    margin: 0 0 20px !important;
}

.mostra-body__descrizione li {
    margin-bottom: 8px !important;
}


/* ── Didattica: titoli +4px e spazio dopo primo paragrafo ── */

.mostra-body__intro h2,
.mostra-body__intro h3 {
    font-size: 36px !important;
}

.mostra-body__descrizione h2,
.mostra-body__descrizione h3 {
    font-size: 32px !important;
    margin-top: 40px !important;
}





/* ── Pianifica la visita: riduzione spaziature ── */
.page-wrap .mostre-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.contatti-section__inner {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}


/* ── Pianifica la visita: spazio 50px sotto testo intro ── */
.page-wrap .mostre-intro {
    padding-bottom: 50px !important;
}


/* ── Visita guidata: h2 nel corpo testo ── */
.notizia-single__content-inner h2 {
    font-family: 'Orpheus Pro', Georgia, serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 0 24px !important;
}



/* ── Singola visita guidata / notizia: h1 a 50px ── */
.notizia-single__h1 {
    font-size: 50px !important;
}

/* ── Singola news / laboratorio / evento: h1 a 50px ── */
.notizia-single__h1,
.evento-single__h1 {
    font-size: 50px !important;
}


/* ── Didattica: sezione visite guidate grigia ── */
.didattica-visite {
    background: #fafafa;
    padding: 80px 0;
}

/* ── Didattica: archivio visite guidate ── */
.didattica-visite__archivio {
    margin-top: 48px;
    text-align: left;
}

/* ── Didattica: visite guidate section header ── */
.didattica-visite__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.didattica-visite__header 
.prossimi-eventi__inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}
.prossimi-eventi__heading {
    margin-bottom: 0;
}

.didattica-visite__archivio-link {
    margin-left: auto;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   HOME — NOTIZIE SLIDER
   Stessa meccanica della gallery mostra
   ═══════════════════════════════════════════════ */
.home-news-slider {
    overflow: hidden;
    padding: 72px 0 80px;
    background: #fafafa;
}
.home-news-slider__header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.home-news-slider__heading {
    font-family: var(--pr-font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--pr-nero);
    margin: 0;
    line-height: 1;
}
.home-news-slider__all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--pr-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pr-rosso) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.home-news-slider__all:hover { opacity: 0.7; }

/* Viewport e track */
.home-news-slider__viewport { overflow: hidden; margin: 0 40px; }
.home-news-slider__track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    will-change: transform;
}

/* Celle */
.home-news-slider__cell {
    flex: 0 0 min(85vw, 420px);
    min-width: 0;
}
@media (min-width: 640px) {
    .home-news-slider__cell { flex: 0 0 min(60vw, 420px); }
}
@media (min-width: 1024px) {
    .home-news-slider__cell { flex: 0 0 calc((100vw - 128px) / 3); }
}

/* Card */
.home-news-slider__card {
    display: block;
    text-decoration: none !important;
    color: inherit;
}
.home-news-slider__frame {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f0ede8;
    margin-bottom: 20px;
}
.home-news-slider__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.home-news-slider__card:hover .home-news-slider__frame img {
    transform: scale(1.03);
}
.home-news-slider__no-img {
    width: 100%;
    height: 100%;
    background: #e8e4de;
}

/* Testo */
.home-news-slider__info { padding: 0 2px; }
.home-news-slider__date {
    font-family: var(--pr-font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 8px;
}
.home-news-slider__title {
    font-family: var(--pr-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--pr-nero);
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s;
}
.home-news-slider__card:hover .home-news-slider__title {
    color: var(--pr-rosso);
}

/* Navigazione */
.home-news-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    font-family: var(--pr-font-sans);
    font-size: 14px;
    letter-spacing: 0.06em;
}
.home-news-slider__arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    padding: 4px 8px;
    line-height: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.home-news-slider__arrow:hover:not(:disabled) { color: #111; }
.home-news-slider__arrow:disabled { color: #ccc; cursor: default; }
.home-news-slider__num {
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    font-family: var(--pr-font-sans);
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 0 2px;
    transition: color 0.2s;
}
.home-news-slider__num.is-active { color: #111; font-weight: 700; }
.home-news-slider__num:hover { color: #555; }

@media (max-width: 768px) {
    .home-news-slider { padding: 48px 0 56px; }
    .home-news-slider__header { padding: 0 24px; margin-bottom: 28px; }
    .home-news-slider__heading { font-size: 30px; }
}

/* ─── HOMEPAGE HERO: header segue lo scroll come le altre pagine ─── */
/* Prima dello scroll: fixed sotto topbar (trasparente sul hero) */
/* Dopo lo scroll: si porta sotto la sola admin bar, come sticky */
.has-hero .site-header {
    transition: background 0.35s ease, box-shadow 0.35s ease, top 0.35s ease !important;
}
.has-hero .site-header.scrolled {
    top: 0 !important;
}
.admin-bar.has-hero .site-header.scrolled {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar.has-hero .site-header.scrolled {
        top: 46px !important;
    }
}

/* ═══════════════════════════════════════════════
   HOMEPAGE — SEZIONE INFO MOSTRA IN CORSO
═══════════════════════════════════════════════ */
.home-mostra-info {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.home-mostra-info__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 80px;
    align-items: start;
}

/* Testo introduttivo */
.home-mostra-info__lead {
    font-family: var(--pr-font-serif);
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 400;
    line-height: 1.35;
    color: #111;
}
.home-mostra-info__lead strong {
    font-weight: 400;
}
.home-mostra-info__lead em {
    font-style: italic;
}
.home-mostra-info__lead p {
    margin: 0 0 1em;
}
.home-mostra-info__lead p:last-child {
    margin-bottom: 0;
}

/* Griglia 2x2 box */
.home-mostra-info__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding-top: 6px;
}
.home-mostra-info__box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-mostra-info__box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Lato, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}
.home-mostra-info__box-title svg {
    color: var(--pr-rosso);
    flex-shrink: 0;
}
.home-mostra-info__box p {
    font-family: var(--pr-font-sans);
    font-size: 0.88rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .home-mostra-info__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .home-mostra-info__right {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-mostra-info {
        padding: 56px 0;
    }
    .home-mostra-info__inner {
        padding: 0 24px;
    }
    .home-mostra-info__right {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .home-mostra-info__lead {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════
   HOMEPAGE — SEZIONE DIDATTICA
═══════════════════════════════════════════════ */
.home-didattica {
    background: #ffffff;
    padding: 80px 0;
}
.home-didattica__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.home-didattica__image {
    overflow: hidden;
}
.home-didattica__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.home-didattica__image:hover img {
    transform: scale(1.03);
}
.home-didattica__content {
    display: flex;
    align-items: center;
}
.home-didattica__content-inner {
    padding: 0;
    max-width: 560px;
}
.home-didattica__title {
    font-family: var(--pr-font-serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    color: #111;
    margin: 0 0 28px;
    line-height: 1.1;
}
.home-didattica__text {
    font-family: var(--pr-font-sans);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 36px;
}
.home-didattica__link {
    display: inline-block;
    background: var(--pr-rosso);
    color: #fff !important;
    font-family: var(--pr-font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 30px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.home-didattica__link:hover {
    background: #7a1019;
    color: #fff !important;
}

/* Tablet */
@media (max-width: 900px) {
    .home-didattica {
        padding: 60px 0;
    }
    .home-didattica__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-didattica__image {
        min-height: 280px;
    }
    .home-didattica__image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-didattica {
        padding: 48px 0;
    }
    .home-didattica__inner {
        padding: 0 24px;
        gap: 32px;
    }
}

/* ═══════════════════════════════════════════════
   BANNER COLLEZIONE SILVESTRI
   ═══════════════════════════════════════════════ */
.home-silvestri {
    position: relative;
    width: 100%;
    aspect-ratio: 2.85 / 1;
    overflow: hidden;
    background: #111;
}
.home-silvestri__bg {
    position: absolute;
    inset: 0;
    background: url('https://palazzoroncale.arcadia-arte.com/wp-content/uploads/2026/03/bg_silvestri.jpg') center 30% / cover no-repeat;
    transition: transform 1s ease-out;
}
.home-silvestri:hover .home-silvestri__bg {
    transform: scale(1.05);
}
.home-silvestri__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background 1s;
}
.home-silvestri:hover .home-silvestri__overlay {
    background: rgba(0,0,0,0.45);
}
.home-silvestri__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.75) 100%);
}
.home-silvestri__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 64px;
}
.home-silvestri__eyebrow {
    color: #d4af37;
    font-family: var(--pr-font-sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.home-silvestri__title {
    color: #fdfdfd;
    font-family: var(--pr-font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
    margin: 0 0 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.home-silvestri__subtitle {
    color: rgba(232,232,232,0.9);
    font-family: var(--pr-font-serif);
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.home-silvestri__link {
    margin-top: 48px;
    color: #d4af37 !important;
    font-family: var(--pr-font-sans);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 1px solid #d4af37;
    transition: border-color 0.3s, opacity 0.3s;
}
.home-silvestri__link:hover {
    opacity: 0.75;
}
@media (max-width: 768px) {
    .home-silvestri {
        aspect-ratio: 4 / 3;
    }
    .home-silvestri__content {
        padding: 0 32px;
    }
    .home-silvestri__link {
        margin-top: 32px;
    }
}
@media (max-width: 480px) {
    .home-silvestri {
        aspect-ratio: 1 / 1;
    }
    .home-silvestri__content {
        padding: 0 24px;
    }
}

/* ═══════════════════════════════════════════════
   PAGINA LA STORIA
   ═══════════════════════════════════════════════ */


.pagina-lista--white { background: #ffffff; }

/* ═══════════════════════════════════════════════
   PAGINA CORPO (usato in pagine non-mostra: La Storia, ecc.)
   ═══════════════════════════════════════════════ */
.pagina-corpo {
    padding: 0 48px 80px !important;
    background: #fafafa !important;
    border-bottom: none !important;
}
.pagina-corpo__inner {
    max-width: 1350px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
}
.pagina-corpo__left {
    width: 450px !important;
    min-width: 450px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
}
.pagina-corpo__right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.pagina-corpo__descrizione,
.pagina-corpo__descrizione p {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
@media (max-width: 900px) {
    .pagina-corpo {
        padding: 48px 24px !important;
    }
    .pagina-corpo__inner {
        flex-direction: column !important;
    }
    .pagina-corpo__left,
    .pagina-corpo__right {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
    .pagina-corpo__left {
        margin-bottom: 40px !important;
    }
}


.pagina-corpo__testo {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.pagina-corpo__testo p {
    font-family: 'Lato', sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-bottom: 20px !important;
}

.pagina-corpo__testo {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.pagina-corpo__testo p {
    font-family: 'Lato', sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-bottom: 20px !important;
}

/* ═══════════════════════════════════════════════
   SEZIONE GLI SPAZI (Pagina La Storia)
   ═══════════════════════════════════════════════ */
.storia-spazi {
    background: #fafafa;
    padding: 80px 0;
}
.storia-spazi__inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.storia-spazi__titolo {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
}
@media (max-width: 900px) {
    .storia-spazi__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 24px;
    }
    .storia-spazi {
        padding: 48px 0;
    }
    .storia-spazi__titolo {
        position: static;
    }
}

.storia-spazi__testo {
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    color: #333;
    margin: 24px 0 0;
}


/* Step 2 - Nuove classi pagina-corpo per page-didattica.php */
    .pagina-corpo {
        padding: 48px 24px !important;
    }
    .pagina-corpo__inner {
        flex-direction: column !important;
    }
    .pagina-corpo__left {
        margin-bottom: 40px !important;
    }
    .pagina-corpo__right {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
.pagina-corpo__curatore-name {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 !important;
}
.pagina-corpo__intro {
    margin-bottom: 40px !important;
}

/* ═══════════════════════════════════════════════
   DIDATTICA CORPO (layout identico a mostra-body)
   ═══════════════════════════════════════════════ */
.didattica-corpo {
    padding: 80px 48px !important;
    background: #ffffff !important;
    border-bottom: none !important;
}
.didattica-corpo__inner {
    max-width: 1350px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.didattica-corpo__left {
    width: 450px !important;
    min-width: 450px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
}
.didattica-corpo__curatore-name {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin: 0 !important;
}
.didattica-corpo__right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.didattica-corpo__intro,
.didattica-corpo__intro p {
    font-family: 'Orpheus Pro', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.55 !important;
    color: var(--pr-nero, #1a1a1a) !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}
.didattica-corpo__intro p:last-child {
    margin-bottom: 0 !important;
}
.didattica-corpo__intro {
    margin-bottom: 40px !important;
}
.didattica-corpo__descrizione,
.didattica-corpo__descrizione p {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
@media (max-width: 900px) {
    .didattica-corpo__inner {
        flex-direction: column !important;
    }
    .didattica-corpo__left,
    .didattica-corpo__right {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
    .didattica-corpo__left {
        margin-bottom: 40px !important;
    }
    .didattica-corpo {
        padding: 48px 24px !important;
    }
}

.didattica-corpo__intro h2 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.didattica-corpo__img {
    width: 100%;
    height: auto;
    display: block;
}

.didattica-corpo__intro h2 {
    font-family: var(--pr-font-serif) !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 40px !important;
    padding: 0 !important;
}

.didattica-corpo__descrizione h2 {
    font-family: var(--pr-font-serif) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 40px 0 20px !important;
    padding: 0 !important;
}

.didattica-corpo__descrizione ul,
.didattica-corpo__descrizione ol {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style-position: inside !important;
}

/* ═══════════════════════════════════════════════
   STORIA CORPO (layout identico a didattica-corpo)
   ═══════════════════════════════════════════════ */
.storia-corpo {
    padding: 80px 48px !important;
    background: #ffffff !important;
    border-bottom: none !important;
}
.storia-corpo__inner {
    max-width: 1350px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
}
.storia-corpo__left {
    width: 450px !important;
    min-width: 450px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
}
.storia-corpo__img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
.storia-corpo__right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.storia-corpo__descrizione,
.storia-corpo__descrizione p {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 2 !important;
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
@media (max-width: 900px) {
    .storia-corpo__inner {
        flex-direction: column !important;
    }
    .storia-corpo__left,
    .storia-corpo__right {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }
    .storia-corpo__left {
        margin-bottom: 40px !important;
    }
    .storia-corpo {
        padding: 48px 24px !important;
    }
}

.didattica-laboratori {
    background: #ffffff !important;
    padding: 80px 0;
}

.page-eventi .prossimi-eventi {
    background: #ffffff;
}

.storia-spazi .mostra-gallery {
    background: transparent;
}

/* ═══════════════════════════════════════════════
   404 - PAGINA NON TROVATA
   ═══════════════════════════════════════════════ */
.error404-section {
    background: #fafafa;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}
.error404-inner {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}
.error404-label {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pr-rosso);
}
.error404-title {
    font-family: 'Orpheus Pro', Georgia, serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #222222;
    margin: 0;
}
.error404-desc {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #555555;
    margin: 0;
    max-width: 600px;
}
.error404-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.error404-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    display: block;
}
.error404-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 8px;
}
.error404-link {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222222;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.error404-link:hover {
    color: var(--pr-rosso);
    border-bottom-color: var(--pr-rosso);
}
@media (max-width: 640px) {
    .error404-image {
        height: 200px;
    }
    .error404-nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ─── ACCESSIBILITÀ: skip link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 99999;
    padding: 8px 16px;
    background: var(--pr-rosso, #8B1A1A);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ─── ACCESSIBILITÀ: focus visible per navigazione da tastiera ─── */
*:focus {
    outline: none;
}
*:focus-visible {
    outline: 2px solid var(--pr-rosso, #8B1A1A);
    outline-offset: 3px;
    border-radius: 2px;
}
