/* =========================================================================
   Gurdjieff IT — foglio di stile principale
   Direzione "Editoriale" (restyling ottobre 2026), palette "Sabbia e
   terracotta": fondo sabbia, inchiostro bruno, un solo accento terracotta. Titoli in Newsreader,
   testo in IBM Plex Sans. Sezioni con titolo a sinistra e contenuto a destra.
   ========================================================================= */

:root {
	/* Palette "Sabbia e terracotta" */
	--c-bg:          #F1E9DA; /* fondo sabbia */
	--c-surface:     #E7DCC8; /* fondo schede eventi e post-card */
	--c-ink:         #2A231E; /* testo e titoli, bruno scuro */
	--c-muted:       #685D52; /* metadati e didascalie */
	--c-line:        #DED2BD; /* filetti */
	--c-line-strong: #CFC1A8; /* bordi dei controlli, filetto dell'hero */
	--c-accent:      #9A452C; /* terracotta: link, dettagli, hover */
	--c-white:       #FFFFFF;

	/* Footer scuro (fondo --c-ink) */
	--c-footer-bg:     var(--c-ink);
	--c-footer-text:   var(--c-bg);
	--c-footer-accent: #E2A78C; /* terracotta chiara, solo su fondo scuro */
	--c-footer-muted:  #C4B8A8; /* testo secondario su fondo scuro */
	--c-footer-border: transparent; /* filetto sopra il footer (serve solo per i footer chiari) */

	/* Foto dell'hero: bianco e nero con un leggero viraggio caldo */
	--photo-filter: grayscale(1) sepia(0.12);

	/* Alias dei nomi precedenti, per compatibilità */
	--c-primary:   var(--c-ink);
	--c-secondary: var(--c-accent);
	--c-black:     var(--c-ink);

	/* Tipografia */
	--font-body:    'IBM Plex Sans', system-ui, sans-serif;
	--font-display: 'Newsreader', Georgia, serif;

	/* Layout */
	--container:        1280px; /* 1200px di contenuto + i margini laterali */
	--container-narrow: 720px;
	--space:            2.5rem;
	--radius:           2px;
	--header-h:         68px;
	--section-gap:      4rem; /* distanza tra colonna titolo e contenuto */
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Le ancore della pagina unica non finiscono sotto la navbar sticky. */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, a:focus { color: var(--c-ink); }
/* Focus da tastiera uniforme e ben visibile (link, bottoni, controlli dello slider). */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Base ---------- */
body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-ink);
	background-color: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.375rem; font-weight: 500; }

p { margin: 0 0 1em; }
em { font-style: italic; }

blockquote {
	margin: 2rem 0;
	padding: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.45rem;
	line-height: 1.4;
}
blockquote p { margin-bottom: 0.5em; }
blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-style: normal;
	font-size: 0.875rem;
	color: var(--c-muted);
}

/* ---------- Contenitore ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space);
}

.main-content {
	max-width: var(--container-narrow);
	padding-block: 4rem;
}

.page-header { margin-bottom: 2rem; }
.page-subtitle {
	margin: 0.5rem 0 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.25rem, 2.5vw, 1.625rem);
	color: var(--c-accent);
}

/* ---------- Accessibilità ---------- */
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--c-ink);
	color: var(--c-bg);
	padding: 0.5rem 1rem;
	z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	padding: 0 1.4rem;
	background: var(--c-ink);
	color: var(--c-bg);
	border: 1px solid var(--c-ink);
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover, .btn:focus {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-white);
	text-decoration: none;
}

/* Bottone "fantasma" (azioni secondarie) */
.btn--ghost {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-ink);
}
.btn--ghost:hover, .btn--ghost:focus {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-bg);
}

/* =========================================================================
   Header / navbar sticky
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--c-bg) 95%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 1rem;
}
.site-title {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 500;
	color: var(--c-ink);
	text-decoration: none;
}
.site-title em { font-style: italic; color: var(--c-accent); white-space: nowrap; }
.site-title:hover { color: var(--c-accent); }
.custom-logo { max-height: 48px; width: auto; }

.site-nav__menu {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}
.site-nav__menu a {
	font-size: 0.9375rem;
	color: var(--c-ink);
	text-decoration: none;
	padding: 0.25rem 0;
	border-bottom: 1px solid transparent;
}
.site-nav__menu a:hover,
.site-nav__menu a.is-current,
.site-nav__menu .current-menu-item > a {
	color: var(--c-accent);
	border-bottom-color: var(--c-accent);
}

/* Toggle mobile (nascosto su desktop) */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	min-width: 44px;
	min-height: 44px;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 24px; height: 1.5px;
	background: var(--c-ink);
	transition: transform 0.2s, opacity 0.2s;
}

/* =========================================================================
   Hero a slide (citazioni)
   ========================================================================= */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--c-bg);
	color: var(--c-ink);
	border-bottom: 1px solid var(--c-line);
}
/* Slide sovrapposte nella stessa cella: l'altezza resta quella della più alta. */
.hero__track { display: grid; }
.hero__slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	min-height: clamp(380px, 62vh, 600px);
	padding-block: 5rem 5.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__content {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(2rem, 6vw, 4.5rem);
}
.hero__text { max-width: 860px; text-align: left; }
.hero__slide--image .hero__text { flex: 1 1 0; }
.hero__quote { margin: 0; font-style: normal; }
.hero__quote p {
	font-family: var(--font-display);
	font-style: normal;
	font-weight: 400;
	font-size: clamp(2.1rem, 5vw, 4.25rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0;
}
.hero__quote em { font-style: italic; color: var(--c-accent); }
.hero__title { color: var(--c-ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.hero__btn { margin-top: 2rem; }

/* Riga sotto la citazione: autore, filetto, contatore con le frecce */
.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin-top: 2.5rem;
	font-size: 0.875rem;
	color: var(--c-muted);
}
.hero__rule { flex: 1 1 80px; height: 1px; background: var(--c-line-strong); }
.hero__controls { display: inline-flex; align-items: center; gap: 0.25rem; }
.hero__count { font-variant-numeric: tabular-nums; min-width: 2.75em; text-align: center; }
.hero__nav {
	width: 44px; height: 44px; /* area di tocco ≥ 44px */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	color: var(--c-muted);
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.hero__nav:hover { color: var(--c-ink); }

.hero__figure { margin: 0; flex: 0 0 auto; width: min(320px, 100%); }
.hero__image { width: 100%; height: auto; filter: var(--photo-filter); }
.hero__caption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--c-muted); }

/* =========================================================================
   Sezioni della pagina unica
   Titolo nella colonna sinistra, tutto il resto nella colonna destra.
   ========================================================================= */
.section {
	padding-block: clamp(3rem, 7vw, 4.5rem);
	border-top: 1px solid var(--c-line);
}
.section--alt { background: transparent; } /* niente fasce alternate: bastano i filetti */
.hero + .section { border-top: 0; }

.section__inner {
	max-width: var(--container);
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
	column-gap: var(--section-gap);
	align-items: start;
}
.section__head, .section__body { min-width: 0; }
.section__title {
	text-align: left;
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.375rem);
}
.section__subtitle {
	margin: 0.75rem 0 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--c-muted);
}
.section .entry-content { max-width: 680px; }
/* Paragrafi e liste a circa 72 caratteri per riga, più leggibili (il riquadro resta a 680px) */
.section .entry-content > p,
.section .entry-content > ul,
.section .entry-content > ol { max-width: 58ch; }
.section .entry-content > :last-child { margin-bottom: 0; }
.section .entry-content h2 {
	font-size: 1.5rem;
	margin: 2.25rem 0 0.6rem;
}
.section .entry-content h2:first-child { margin-top: 0; }
.section .entry-content h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }

/* Sezione introduttiva: il primo paragrafo fa da testo d'attacco */
.section--introduzione .section__short > p:first-child { font-size: 1.125rem; }

/* Testo breve a blocchi (un «Titolo 3» per blocco), su due colonne */
.section__short--blocks { max-width: none; }
.section__short--blocks:has(.block) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2.5rem 3rem;
}
.section .section__short--blocks .block h3 { font-size: 1.375rem; margin: 0 0 0.5rem; }
.block > :last-child { margin-bottom: 0; }

/* «Leggi tutto»: apre il testo completo della pagina al posto di quello breve */
.read-more { margin-top: 1.75rem; }
.read-more__toggle {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	list-style: none;
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.read-more__toggle::-webkit-details-marker { display: none; }
.read-more__toggle::after { content: ' →'; white-space: pre; }
.read-more[open] .read-more__toggle::after { content: ' ↑'; }
.read-more[open] .read-more__open,
.read-more:not([open]) .read-more__close { display: none; }
.read-more__content { margin-top: 1rem; }
.section__short:has(+ .read-more[open]) { display: none; }
.read-more[open] { margin-top: 0; }

/* Pillole: collegamenti alle sottosezioni, sotto il titolo */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	font-size: 0.875rem;
	color: var(--c-ink);
	text-decoration: none;
}
.pill:hover, .pill:focus-visible { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }

/* Bottone che si presenta come un link (elenchi, footer) */
.link-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 500;
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	cursor: pointer;
}
.link-button:hover { color: var(--c-accent); }

.subsection { margin-top: 3rem; }
.subsection:first-child { margin-top: 0; }
.section__body > .entry-content + .subsection,
.section__body > .read-more + .subsection { margin-top: 3rem; }
.subsection__title {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin: 0 0 0.5rem;
	padding: 0;
	border: 0;
}

/* Libri divisi in elenchi (di Gurdjieff, curati dall'associazione) */
.book-group + .book-group { margin-top: 2.25rem; }
.book-group__title {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0.75rem 0 0.5rem;
}
.book-group__intro { margin: 0 0 0.75rem; max-width: 40rem; }

/* Elenchi compatti (libri, dischi, film) su due colonne */
.item-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	column-gap: 2.5rem;
}
.item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 0.9rem 0;
	border-top: 1px solid var(--c-line);
}
.item__thumb img { width: 56px; height: auto; border-radius: var(--radius); }
.item__body { flex: 1 1 auto; min-width: 0; }
.item__title {
	font-family: var(--font-display);
	font-size: 1.1875rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
}
.item__meta { color: var(--c-muted); margin: 0.15rem 0 0; font-size: 0.8125rem; }
.item__text, .item__details { font-size: 0.9375rem; margin-top: 0.5rem; }
.item__details summary { cursor: pointer; color: var(--c-accent); font-size: 0.875rem; }
.item__action { margin: 0.4rem 0 0; font-size: 0.875rem; }
.item-list.is-collapsed .item--extra { display: none; }
.item-list__more { padding: 0.4rem 0; border-top: 1px solid var(--c-line); font-size: 0.9375rem; }

/* Eventi: schede affiancate */
.evento-list {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}
.evento {
	background: var(--c-surface);
	padding: 1.75rem;
	font-size: 0.9375rem;
}
.evento__title { font-size: 1.5rem; margin-bottom: 0.4rem; }
.evento__image img { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }

/* Elenco articoli generico (index.php) */
.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}
.post-card {
	background: var(--c-surface);
	border-radius: var(--radius);
	overflow: hidden;
}
.post-card__thumb img { width: 100%; }
.post-card__title { margin: 1rem 1rem 0.5rem; font-size: 1.3rem; }
.post-card__excerpt { margin: 0 1rem 1rem; font-size: 0.9375rem; }

/* =========================================================================
   Componenti CPT (eventi, audio, link, video)
   ========================================================================= */
.evento-meta {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: var(--c-muted);
	margin: 0 0 0.75rem;
}
.evento-meta__data { font-weight: 500; color: var(--c-ink); }

.evento-info {
	border-top: 1px solid var(--c-line-strong);
	padding-top: 1rem;
	margin: 1.5rem 0 0;
}

.audio-player { width: 100%; margin-top: 0.5rem; }

/* Link */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list__item {
	padding: 0.9rem 0;
	border-top: 1px solid var(--c-line);
}
.link-list__title {
	display: inline-block;
	padding-block: 0.6rem; /* area cliccabile di circa 44px */
	margin-block: -0.6rem;
	font-family: var(--font-display);
	font-size: 1.1875rem;
}
.link-list__desc { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--c-muted); }

/* Video: griglia (3 colonne a 1280px, 1 su mobile), video in evidenza a tutta larghezza */
.video-grid {
	display: grid;
	/* 200px e non 260px: nella colonna destra (~717px a 1280) ci stanno così 3 video */
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}
.video-item { margin: 0; min-width: 0; }
.video-item figcaption { margin-top: 0.6rem; }
.video-item__title {
	display: block;
	font-family: var(--font-display);
	font-size: 1.1rem;
	line-height: 1.3;
	color: var(--c-ink);
}
.video-credit { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--c-muted); }
.video-feature { margin-bottom: 2rem; }
.video-feature .video-item__title { font-size: 1.375rem; }
.video-embed {
	position: relative;
	padding-top: 56.25%; /* 16:9 */
	background: var(--c-surface);
}
.video-embed video { background: var(--c-ink); }
.video-embed iframe,
.video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Desktop: bottone sopra la copertina che apre il video in grande (main.js) */
.video-item { position: relative; }
.video-item__open {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.video-item__open[hidden] { display: none; }
.video-item__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	padding-left: 3px;
	border-radius: 50%;
	background: rgba(20, 16, 13, 0.72);
	color: #FFFFFF;
	transition: background-color 0.2s, transform 0.2s;
}
.video-feature .video-item__play { width: 4.5rem; height: 4.5rem; }
.video-item__open:hover .video-item__play,
.video-item__open:focus-visible .video-item__play { background: var(--c-accent); transform: scale(1.06); }
.video-item__open:focus-visible { outline-offset: -2px; }

/* Finestra del video in grande. Colori fissi: lo sfondo è sempre scuro. */
.video-lightbox {
	width: min(92vw, calc((100vh - 9rem) * 16 / 9));
	max-width: 1400px;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #F1E9DA;
	overflow: visible;
}
.video-lightbox::backdrop { background: rgba(20, 16, 13, 0.9); }
.video-lightbox video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
.video-lightbox__close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.5rem);
	padding: 0.35rem 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.9375rem;
	color: #F1E9DA;
	cursor: pointer;
}
.video-lightbox__close::after { content: " \00D7"; font-size: 1.25rem; vertical-align: -0.1em; }
.video-lightbox__close:hover { color: #E2A78C; }
.video-lightbox :focus-visible { outline: 2px solid #E2A78C; outline-offset: 3px; }
.video-lightbox__caption { margin-top: 0.75rem; }
.video-lightbox .video-item__title { color: #F1E9DA; font-size: 1.25rem; }
.video-lightbox .video-credit { color: #C4B8A8; }

/* =========================================================================
   Modulo di contatto
   ========================================================================= */
.contact-form { max-width: 640px; }
.contact-form__field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.contact-form__field label { font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--c-muted); /* contorno del campo ≥ 3:1 sul fondo sabbia */
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
}
.contact-form select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23685D52' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	cursor: pointer;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--c-accent);
	outline-offset: 1px;
	border-color: var(--c-accent);
}
/* Honeypot: fuori dallo schermo, invisibile agli utenti reali. */
.contact-form__hp {
	position: absolute !important;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

/* «Oppure scrivici direttamente una mail»: sedi con il loro indirizzo. */
.contact-direct {
	max-width: 640px;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-line);
}
.contact-direct__intro { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.75rem; }
.contact-direct__list { list-style: none; margin: 0; padding: 0; }
.contact-direct__list li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--c-line);
}
.contact-direct__sede { min-width: 6.5rem; font-weight: 500; }
.contact-direct__list a { overflow-wrap: anywhere; }

.form-feedback {
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}
.form-feedback--ok { background: #e3f3e3; color: #1f5a1f; border: 1px solid #b6dab6; }
.form-feedback--ko { background: #f7e3e3; color: #7a2020; border: 1px solid #e0b6b6; }

/* =========================================================================
   Cookie banner
   ========================================================================= */
.cookie-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 200;
	background: var(--c-ink);
	color: var(--c-bg);
	box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1rem;
	flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; flex: 1 1 320px; font-size: 0.9375rem; }
.cookie-banner__text a { color: var(--c-bg); }
.cookie-banner :focus-visible { outline-color: var(--c-bg); } /* l'accento scuro non si vede sul fondo ink */
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner .btn { background: var(--c-bg); color: var(--c-ink); border-color: var(--c-bg); }
.cookie-banner .btn:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.cookie-banner .btn--ghost { background: transparent; color: var(--c-bg); border-color: var(--c-bg); }
.cookie-banner .btn--ghost:hover { background: var(--c-bg); color: var(--c-ink); }

/* =========================================================================
   Footer (chiaro, separato da un filetto)
   ========================================================================= */
.site-footer {
	background: var(--c-footer-bg);
	color: var(--c-footer-text);
	border-top: 1px solid var(--c-footer-border);
	padding-block: clamp(3.5rem, 8vw, 5rem) 2.5rem;
}
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-footer-accent); }
.site-footer :focus-visible { outline-color: var(--c-footer-accent); }
.site-footer__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--c-footer-text);
}
.site-footer__title em { font-style: italic; color: var(--c-footer-accent); }
.site-footer__link { font-size: 1.0625rem; text-underline-offset: 6px; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 1rem;
	margin-top: clamp(3rem, 7vw, 4.5rem);
	padding-top: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--c-footer-text) 20%, transparent);
	font-size: 0.8125rem;
	color: var(--c-footer-muted);
}
.site-footer__bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; } /* pagina Contatti: niente invito sopra */
.site-footer__legal a,
.site-footer__legal .link-button { color: var(--c-footer-muted); font-weight: 400; }
.site-footer__legal a:hover,
.site-footer__legal .link-button:hover { color: var(--c-footer-accent); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
	/* Sezioni su una colonna: titolo sopra, contenuto sotto */
	.section__inner { grid-template-columns: minmax(0, 1fr); }
	.section__head { margin-bottom: 1.5rem; }
	/* Tablet: 2 video per riga, così i controlli nativi non sono stretti */
	.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	:root { --space: 1.25rem; }
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute;
		top: var(--header-h);
		left: 0; right: 0;
		background: var(--c-bg);
		border-bottom: 1px solid var(--c-line);
		display: none;
		/* Telefono in orizzontale: il menu scorre invece di uscire dallo schermo */
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.site-nav.is-open { display: block; }
	.site-nav__menu {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem var(--space) 1rem;
	}
	.site-nav__menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); }
}

@media (max-width: 640px) {
	/* Slide: foto sotto la citazione */
	.hero__slide { min-height: 0; padding-block: 3rem; }
	.hero__content { flex-direction: column; align-items: flex-start; }
	.hero__figure { width: 180px; }
	.item__thumb img { width: 48px; }
	.evento { padding: 1.25rem; }
}

@media (max-width: 560px) {
	.video-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
	.site-title { font-size: 1.0625rem; } /* su una riga anche a 320px */
}

/* Schermi bassi (telefono in orizzontale): hero più compatto, citazione e foto entrano */
@media (max-height: 500px) and (orientation: landscape) {
	.hero__slide { min-height: 0; padding-block: 2rem; }
	.hero__content { align-items: center; }
	.hero__quote p { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
	.hero__meta { font-size: 1rem; }
	.hero__figure { width: min(200px, 28vw); }
	.hero__figure img { max-height: calc(100svh - var(--header-h) - 4rem); width: auto; }
}
