/**
 * Kronostories – design system and the styles Elementor cannot express.
 *
 * Layout, colours and typography of the site live in the Elementor templates
 * (elementor-templates/) and in the Kit (Variabili, Colori e Font globali).
 * This file holds:
 * - the tokens (defaults of the Kit variables);
 * - the code widgets (KS Header, KS Logo, KS Breadcrumb, KS Pill rubriche,
 *   KS Selettore regione);
 * - a few helper classes used by the templates (Avanzate → Classi CSS):
 *   ks-hero, ks-ring, ks-card, ks-loop, ks-link, ks-video-cover, ks-article,
 *   ks-sr-only;
 * - accessibility: visible focus, reduced motion.
 *
 * Rules on links and images are prefixed with "html body" so they beat
 * Elementor's ".elementor a" / ".elementor img" resets and the Hello theme
 * reset, which are loaded after this file.
 */

/* --------------------------------------------------------------------------
 * Tokens
 * ----------------------------------------------------------------------- */
/* Defaults with zero specificity: the Elementor 4 variables written by
 * "Applica al Kit" have the same names and win, so the design system can be
 * edited from Elementor (Variabili). */
:where(:root) {
	/* Palette: Figma variables (Style Guide). Each token has one job (see README › Colori). */
	--ks-blu: #031630;        /* blu/900 – titoli, bande scure, header/footer */
	--ks-blu-chiaro: #cbcfd4; /* blu/200 – bande chiare, bordi e filetti */
	--ks-blu-tenue: #e5e7ea;  /* blu/100 – banda introduttiva (Geopoetica) */
	--ks-carta: #f3f4f5;      /* blu/50  – sfondo pagina, testo su blu */
	--ks-oro: #c1922c;        /* oro/500 – accenti: filetti, hover su blu, citazioni */
	--ks-testo: #1f1f1f;      /* nero/900 – testi descrittivi e link “Leggi tutti” */
	--ks-grigio: #626262;     /* nero/600 – meta, date, didascalie */

	--ks-font-title: "Playfair Display", Georgia, "Times New Roman", serif;
	--ks-font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Content column: 1288px centred (the Kit's container width), with a
	 * minimum side gutter on smaller screens. Every widget and the header use
	 * it, so they line up with Elementor's boxed containers. */
	--ks-content-width: 1288px;
	--ks-gutter: 64px;
	--ks-pad-x: max(var(--ks-gutter), calc((100% - var(--ks-content-width)) / 2));
	--ks-radius: 16px;

	/* Vertical rhythm: section padding and the space between blocks. */
	--ks-space-section: 72px;
	--ks-space-block: 32px;
}

@media (max-width: 1024px) {
	:root {
		--ks-gutter: 32px;
		--ks-space-section: 56px;
	}
}

@media (max-width: 767px) {
	:root {
		--ks-gutter: 16px;
		--ks-space-section: 40px;
		--ks-space-block: 24px;
	}
}

/* --------------------------------------------------------------------------
 * Utilities
 * ----------------------------------------------------------------------- */
[class^="ks-"],
[class*=" ks-"],
[class^="ks-"] *,
[class*=" ks-"] * {
	box-sizing: border-box;
}

.ks-header .screen-reader-text,
.ks-regions .screen-reader-text,
.ks-a11y .screen-reader-text,
.ks-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ks-icon {
	display: block;
	flex: none;
}

html body .ks-link {
	font-family: var(--ks-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ks-testo);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body .ks-link:hover,
html body .ks-link:focus-visible {
	text-decoration-thickness: 2px;
}

.ks-social {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-social a {
	display: block;
	color: inherit;
	transition: color 0.2s, opacity 0.2s;
}

html body .ks-social a:hover,
html body .ks-social a:focus-visible {
	color: var(--ks-oro);
}

/* The main landmark receives focus from the skip link: no outline on the whole page. */
.ks-main:focus {
	outline: none;
}

/* Focus always visible, also on Elementor widgets (WCAG 2.4.7). */
:where(.elementor, .ks-header, .ks-a11y) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--ks-oro);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * Header
 * ----------------------------------------------------------------------- */
.ks-header {
	--ks-bar-h: 81px;
	--ks-bar-top: var(--wp-admin--admin-bar--height, 0px);
	position: relative;
	z-index: 100;
	min-height: var(--ks-bar-h); /* keeps the space when the bar becomes fixed */
	background: var(--ks-blu);
	color: var(--ks-carta);
	font-family: var(--ks-font-body);
}

.ks-header__bar {
	position: fixed;
	top: var(--ks-bar-top);
	right: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--ks-bar-h);
	padding: 0 var(--ks-pad-x);
	background: var(--ks-blu);
}

/* The bar is always fixed at the top (the header element keeps its height
 * as a spacer). Compact: once the hero has scrolled away the bar also shows
 * the small logo (Figma: mobile header "Frame 1"). Toggled by JS. */
.ks-header.is-compact .ks-header__bar {
	box-shadow: 0 2px 16px color-mix(in srgb, var(--ks-blu) 35%, transparent);
}

/* The search opens inside the bar, in place of its content. */
.ks-header__search {
	position: fixed;
	top: var(--ks-bar-top);
	right: 0;
	left: 0;
	z-index: 3;
	height: var(--ks-bar-h);
}

.ks-header.is-search-open .ks-header__bar > * {
	visibility: hidden;
}

/* In the Elementor editor a fixed bar would cover the elements being edited. */
.elementor-editor-active .ks-header__bar {
	position: relative;
	top: auto;
}

.elementor-editor-active .ks-header__search {
	position: absolute;
	top: 0;
}

html body .ks-header__brand {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--ks-carta);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s, visibility 0.3s;
}

html body .ks-header__brand img {
	display: block;
	width: 200px;
	height: auto;
}

.ks-header__tagline {
	font-family: var(--ks-font-title);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

html body .ks-header.is-compact .ks-header__brand {
	opacity: 1;
	visibility: visible;
}

/* With the Rubriche panel open the bar shows the logo (Figma "DESKTOP Menu"). */
@media (min-width: 1181px) {
	html body .ks-header.is-mega-open .ks-header__brand {
		opacity: 1;
		visibility: visible;
	}
}

/* Not enough room for menu + centred logo: the menu gives way to the
 * hamburger and the logo moves next to it. */
@media (max-width: 1180px) {
	.ks-header.is-compact .ks-header__nav {
		display: none;
	}

	.ks-header.is-compact button.ks-header__toggle {
		display: inline-flex;
	}

	html body .ks-header.is-compact .ks-header__brand {
		left: calc(var(--ks-pad-x) + 48px);
		transform: translateY(-50%);
	}
}

.ks-header button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ks-header button:hover,
.ks-header button:focus-visible {
	color: var(--ks-oro);
	background: none;
}

/* The hamburger (Rubriche drawer) is the mobile menu: on desktop the bar
 * shows the main menu instead. */
.ks-header button.ks-header__toggle {
	display: none;
}

.ks-header__menu {
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-header__nav a {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--ks-carta);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body .ks-header__nav a:hover,
html body .ks-header__nav .current-menu-item > a {
	color: var(--ks-oro);
}

.ks-header__tools {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-left: auto;
}

.ks-header__langs {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-header__langs a {
	display: block;
	line-height: 0;
}

html body .ks-header__langs img {
	width: 18px;
	height: 12px;
	object-fit: cover;
}

/* Language menu: WPML switcher items (flag and/or name, as set in WPML). */
.ks-header__langs--menu {
	align-items: center;
	gap: 12px;
}

html body .ks-header__langs--menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
}

html body .ks-header__langs--menu a:hover,
html body .ks-header__langs--menu a:focus-visible,
html body .ks-header__langs--menu .wpml-ls-current-language > a {
	color: var(--ks-oro);
}

.ks-header__search {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 var(--ks-pad-x);
	background: var(--ks-blu);
	animation: ks-fade 0.2s ease-out;
}

.ks-header__search[hidden] {
	display: none;
}

.ks-header__search form {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	max-width: 760px;
	margin: 0 auto;
}

.ks-header__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 18px;
	border: 1px solid var(--ks-blu-chiaro);
	border-radius: 100px;
	background: var(--ks-blu);
	color: var(--ks-carta);
	font-family: var(--ks-font-body);
	font-size: 16px;
}

.ks-header__search input[type="search"]::placeholder {
	color: var(--ks-blu-chiaro);
}

/* Mobile: the bar is always the compact one (Figma iPhone mockups); search,
 * flags and social live in the drawer. */
@media (max-width: 767px) {
	.ks-header {
		--ks-bar-h: 93px;
	}

	.ks-header__bar {
		gap: 16px;
		padding: 0 16px;
	}

	.ks-header__nav,
	.ks-header__tools,
	.ks-header__search {
		display: none !important;
	}

	.ks-header button.ks-header__toggle {
		display: inline-flex;
	}

	html body .ks-header.is-compact .ks-header__brand {
		left: 60px;
		transform: translateY(-50%);
	}

	html body .ks-header__brand img {
		width: min(280px, calc(100vw - 100px));
	}

	.ks-header__tagline {
		font-size: 11px;
	}

	/* The page hero is replaced by the compact bar (the home intro stays). */
	.ks-hero:not(.ks-hero--intro) {
		display: none;
	}
}

@media (max-width: 600px) {
	/* The WordPress admin bar is not fixed on small screens. */
	.ks-header {
		--ks-bar-top: 0px;
	}
}

/* Drawer (Rubriche) */
.ks-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.ks-drawer[hidden] {
	display: none;
}

.ks-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--ks-blu) 60%, transparent);
	animation: ks-fade 0.2s ease-out;
}

.ks-drawer__panel {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: min(402px, 100%);
	padding: 24px 24px 40px;
	overflow-y: auto;
	background: var(--ks-blu);
	color: var(--ks-carta);
	animation: ks-slide-in 0.25s ease-out;
}

.ks-drawer__close {
	align-self: flex-end;
}

.ks-drawer__title {
	margin: 0;
	font-family: var(--ks-font-title);
	font-size: 22px;
	font-weight: 600;
	line-height: 28px;
}

.ks-drawer__list,
.ks-drawer__menu {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-drawer__item {
	display: flex;
	align-items: center;
	gap: 16px;
	color: inherit;
	text-decoration: none;
}

.ks-drawer__thumb {
	flex: none;
	width: 96px;
	aspect-ratio: 120 / 70;
	overflow: hidden;
	border-radius: 8px;
	background: var(--ks-grigio);
}

html body .ks-drawer__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-drawer__name {
	font-family: var(--ks-font-title);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
}

html body .ks-drawer__item:hover .ks-drawer__name,
html body .ks-drawer__item:focus-visible .ks-drawer__name {
	color: var(--ks-oro);
}

.ks-drawer__nav {
	padding-top: 24px;
	border-top: 1px solid var(--ks-blu-chiaro);
}

html body .ks-drawer__menu a {
	font-weight: 700;
	font-size: 18px;
	color: var(--ks-carta);
	text-decoration: underline;
}

/* Search and languages at the top of the drawer. */
.ks-drawer__top {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ks-blu-chiaro);
}

.ks-drawer__extras {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid var(--ks-blu-chiaro);
}

.ks-drawer__search {
	display: flex;
	gap: 8px;
}

.ks-drawer__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 18px;
	border: 1px solid var(--ks-blu-chiaro);
	border-radius: 100px;
	background: var(--ks-blu);
	color: var(--ks-carta);
	font-family: var(--ks-font-body);
	font-size: 16px;
}

.ks-drawer__search input[type="search"]::placeholder {
	color: var(--ks-blu-chiaro);
}

.ks-drawer__search button {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--ks-carta);
	cursor: pointer;
}

@keyframes ks-fade {
	from { opacity: 0; }
}

@keyframes ks-slide-in {
	from { transform: translateX(-100%); }
}

/* Rubriche panel over the page (desktop, Figma "DESKTOP Menu"). */
.ks-mega {
	position: fixed;
	top: calc(var(--ks-bar-top) + var(--ks-bar-h));
	right: 0;
	left: 0;
	z-index: 2;
	max-height: calc(100vh - var(--ks-bar-top) - var(--ks-bar-h));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ks-blu);
	color: var(--ks-carta);
	box-shadow: 0 24px 48px color-mix(in srgb, var(--ks-blu) 45%, transparent);
	animation: ks-mega-in 0.2s ease-out;
}

.ks-mega[hidden] {
	display: none;
}

.elementor-editor-active .ks-mega {
	position: absolute;
	top: 100%;
}

.ks-mega__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 48px var(--ks-pad-x) 64px;
}

.ks-mega__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ks-mega__title {
	margin: 0;
	font-family: var(--ks-font-title);
	font-size: 34px;
	font-weight: 600;
	line-height: 42px;
}

.ks-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 27px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-mega__item {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: inherit;
	text-decoration: none;
}

.ks-mega__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--ks-radius);
	aspect-ratio: 418.67 / 245.59;
	background: color-mix(in srgb, var(--ks-carta) 12%, transparent);
}

html body .ks-mega__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ks-mega__name {
	font-family: var(--ks-font-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

html body .ks-mega__item:hover .ks-mega__name,
html body .ks-mega__item:focus-visible .ks-mega__name {
	color: var(--ks-oro);
}

/* Logos (Collaborazioni): whole, on a light ground. */
.ks-mega__thumb--contain,
.ks-drawer__thumb--contain {
	background: var(--ks-carta);
}

html body .ks-mega__thumb--contain img,
html body .ks-drawer__thumb--contain img {
	box-sizing: border-box;
	object-fit: contain;
	padding: 12%;
}

html body .ks-mega__item:hover .ks-mega__thumb img {
	transform: scale(1.03);
}

.ks-regions.ks-regions--mega {
	flex-wrap: nowrap;
	gap: 16px;
}

.ks-regions.ks-regions--mega .ks-regions__label {
	flex: 1;
	font-size: 26px;
	line-height: 34px;
}

.ks-regions.ks-regions--mega .ks-regions__field {
	flex: 1;
}

.ks-regions.ks-regions--mega select {
	width: 100%;
	font-size: 20px;
	line-height: 1.5;
}

@keyframes ks-mega-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@media (max-width: 1180px) {
	.ks-mega__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Mobile: the hamburger drawer carries the same content. */
@media (max-width: 767px) {
	.ks-mega {
		display: none !important;
	}
}

.ks-regions.ks-regions--drawer {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.ks-regions.ks-regions--drawer select {
	width: 100%;
	font-size: 16px;
}

html body.ks-no-scroll {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
 * Hero band (container with class "ks-hero") and KS Logo
 * ----------------------------------------------------------------------- */
.ks-logo-widget {
	line-height: 0;
}

html body .ks-logo-widget :is(img, svg) {
	width: min(874px, 100%);
	max-width: 100%;
	height: auto;
}

html body .ks-logo-widget a {
	display: inline-block;
}

/* Tagline under the hero logo: a step above H2. !important: the size comes
 * from an Elementor global with a stronger selector. */
html body .ks-hero__tagline .elementor-heading-title {
	font-size: 42px !important;
	line-height: 1.25 !important;
}

@media (max-width: 767px) {
	html body .ks-hero__tagline .elementor-heading-title {
		font-size: 26px !important;
	}
}

/* Footer grid: rows as tall as their content (Elementor makes them equal
 * fractions, which leaves gaps when the columns stack). */
html body .ks-footer.e-grid,
html body .ks-footer.e-grid > .e-con-inner {
	grid-template-rows: none !important;
}

/* Footer texts: one size for every screen. !important: Elementor sets the
 * widget typography with a stronger selector (12px desktop, 18px mobile). */
html body .ks-footer .elementor-widget-text-editor,
html body .ks-footer .elementor-widget-text-editor :is(p, a) {
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.ks-footer .ks-social {
	color: var(--ks-carta);
}

/* Footer credits: the link to POP Digital Studio shows its logo; the link
 * text stays for screen readers. */
html body :is(.ks-footer, [data-elementor-type="footer"]) a[href*="pop.sm"] {
	display: inline-block;
	width: 106px;
	height: 25px;
	margin-left: 6px;
	overflow: hidden;
	vertical-align: middle;
	background: url("../img/pop-logo-white.svg") no-repeat left center / contain;
	color: transparent;
	text-indent: 100%;
	white-space: nowrap;
	transition: opacity 0.2s;
}

html body :is(.ks-footer, [data-elementor-type="footer"]) a[href*="pop.sm"]:is(:hover, :focus-visible) {
	opacity: 0.75;
}

/* --------------------------------------------------------------------------
 * Home intro (Figma "Frame 41", 4.2s): ring zooms onto the dial, the dial and
 * the golden K appear (the K spins once), KRONO / STORIES slide out from
 * behind the dial, then the tagline, the header bar and page content fade in. Plays once per
 * session (html.ks-intro-seen) and never with reduced motion.
 * ----------------------------------------------------------------------- */
/* The class is added by KS Logo on the home page. !important: the container's
 * own min-height / gap come from Elementor with a stronger selector. */
.ks-hero.ks-hero--intro {
	--min-height: calc(100svh - var(--ks-bar-h, 81px) - var(--wp-admin--admin-bar--height, 0px)) !important;
	--gap: 40px !important;
	--row-gap: 40px !important;
	overflow: clip; /* the zooming ring may exceed the screen, never the page */
}

@media (max-width: 767px) {
	.ks-hero.ks-hero--intro {
		--min-height: calc(100svh - 93px - var(--wp-admin--admin-bar--height, 0px)) !important;
		--gap: 24px !important;
		--row-gap: 24px !important;
	}
}

html body .ks-hero--intro .ks-logo-widget :is(img, svg) {
	width: min(1178px, 88vw);
}

/* The ring starts 2.5× larger than the logo: drop the logo's own clipping so
 * it can spread over the whole hero (KRONO/STORIES keep their own clip). */
.ks-hero--intro .ks-logo {
	overflow: visible;
}

.ks-hero--intro .ks-logo > g[clip-path] {
	clip-path: none;
}

@media (prefers-reduced-motion: no-preference) {
	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-logo__ring {
		transform-box: fill-box;
		transform-origin: center;
		animation: ks-intro-ring-fade 4.2s linear both, ks-intro-ring-zoom 4.2s linear both;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-logo__dial {
		animation: ks-intro-dial 4.2s linear both;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-logo__hands {
		transform-box: fill-box;
		transform-origin: center;
		animation: ks-intro-hands-fade 4.2s linear both, ks-intro-hands-spin 4.2s linear both;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-logo__krono {
		animation: ks-intro-krono 4.2s linear both;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-logo__stories {
		animation: ks-intro-stories 4.2s linear both;
	}

	/* The tagline arrives once KRONO / STORIES have settled. */
	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero--intro .ks-hero__tagline {
		animation: ks-intro-tagline 4.6s linear both;
	}

	/* The whole bar is hidden during the intro: the hero fills the screen,
	 * the space kept for the bar included, and the bar fades in over it. */
	html:not(.ks-intro-seen):not(.ks-a11y-motion) body:has(.ks-hero--intro) .ks-header {
		background: transparent;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) body:has(.ks-hero--intro) .ks-header__bar {
		animation: ks-intro-menu 4.2s linear both;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero.ks-hero--intro {
		--min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)) !important;
		margin-top: -81px !important;
	}

	html:not(.ks-intro-seen):not(.ks-a11y-motion) body:has(.ks-hero--intro) :is([data-elementor-type="wp-page"], [data-elementor-type="footer"]) {
		animation: ks-intro-content 4.2s linear both;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
	html:not(.ks-intro-seen):not(.ks-a11y-motion) .ks-hero.ks-hero--intro {
		margin-top: -93px !important;
	}
}

@keyframes ks-intro-ring-fade {
	0%, 5.426% { opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
	13.119%, 31.512% { opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
	39.495%, 100% { opacity: 0; }
}

@keyframes ks-intro-ring-zoom {
	0% { transform: rotate(-22deg) scale(2.5); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
	31.512%, 100% { transform: none; }
}

@keyframes ks-intro-dial {
	0%, 31.512% { opacity: 0; animation-timing-function: ease-out; }
	57.726%, 100% { opacity: 1; }
}

@keyframes ks-intro-hands-fade {
	0%, 32.416% { opacity: 0; }
	44.161%, 100% { opacity: 1; }
}

@keyframes ks-intro-hands-spin {
	0%, 33.607% { transform: rotate(-360deg); animation-timing-function: ease; }
	52.654%, 100% { transform: none; }
}

/* Translations are in SVG user units (Figma px ÷ 2.43). */
@keyframes ks-intro-krono {
	0% { transform: translateX(194px); animation-timing-function: step-end; }
	55.345% { transform: translateX(143px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
	86.297%, 100% { transform: none; }
}

@keyframes ks-intro-stories {
	0% { transform: translateX(-196px); animation-timing-function: step-end; }
	55.345% { transform: translateX(-151px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
	86.297%, 100% { transform: none; }
}

@keyframes ks-intro-tagline {
	0%, 81.3% { opacity: 0; transform: translateY(12px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
	100% { opacity: 1; transform: none; }
}

@keyframes ks-intro-menu {
	0%, 76.19% { opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
	90.476%, 100% { opacity: 1; }
}

@keyframes ks-intro-content {
	0%, 76.19% { opacity: 0; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
	95.238%, 100% { opacity: 1; }
}

/* Easter egg: the logo is a real clock. Short tail of the K stem = hours,
 * long thin hand = minutes. Both pivot where the thin hand crosses the stem. */
.ks-clock__hour,
.ks-clock__minute {
	transform-box: view-box;
	transform-origin: 240.85px 47.57px;
	transition: transform 2.4s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
	.ks-clock__hour,
	.ks-clock__minute {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
 * Template helpers (Avanzate → Classi CSS in Elementor)
 * ----------------------------------------------------------------------- */

/* ks-link: underlined text link ("Leggi tutti gli articoli", "Perché Kronostories?").
 * ks-link--more adds the ">" of the design, hidden from screen readers. */
html body .ks-link a {
	color: inherit;
	text-decoration: inherit;
	text-underline-offset: 3px;
}

html body .ks-link a:hover {
	text-decoration-thickness: 2px;
}

.ks-link--more a::after {
	content: " >" / "";
}

/* Heading linked to its page (rubrica name): no underline until hover. */
html body .ks-heading-link a {
	color: inherit;
	text-decoration: none;
}

html body .ks-heading-link a:hover {
	text-decoration: underline;
}

/* ks-ring: round portrait with the clock-hand arc of the logo. */
.ks-ring .elementor-widget-container,
.ks-ring:not(:has(.elementor-widget-container)) {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.ks-ring:has(img) .elementor-widget-container::before,
.ks-ring:not(:has(.elementor-widget-container)):has(img)::before {
	content: "";
	position: absolute;
	inset: -3px;
	border: 3px solid var(--ks-blu);
	border-right-color: transparent;
	border-radius: 50%;
	/* 3/4 circle: the transparent right border (gap from 45° to 135°)
	 * turned back 45° leaves the top-right quadrant open, so the arc runs
	 * from the top (0°) round to the right (270°). */
	transform: rotate(-45deg);
	pointer-events: none;
}

/* Hovering the portrait or its card turns the arc a quarter, like a clock hand. */
@media (prefers-reduced-motion: no-preference) {
	.ks-ring:has(img) .elementor-widget-container::before,
	.ks-ring:not(:has(.elementor-widget-container)):has(img)::before {
		transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	}

	:is(.ks-ring:hover, .ks-card:hover .ks-ring, .ks-card:focus-within .ks-ring):has(img) .elementor-widget-container::before,
	:is(.ks-ring:hover, .ks-card:hover .ks-ring, .ks-card:focus-within .ks-ring):not(:has(.elementor-widget-container)):has(img)::before {
		transform: rotate(45deg);
	}
}

/* Reveal on scroll (kronostories.js): cards, rubrica bands and anything with
 * the class ks-animate fade in once when they reach the screen. The class
 * ks-reveal is only added by the script, and only where motion is welcome. */
.ks-reveal {
	opacity: 0;
	transform: translateY(12px);
}

.ks-reveal.is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transition-delay: var(--ks-reveal-delay, 0ms);
}

/* Reading progress of an article: a gold line under the header bar. */
.ks-progress {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--ks-oro);
	transform: scaleX(var(--ks-progress, 0));
	transform-origin: 0 50%;
	pointer-events: none;
}

/* KS Presentazione collaborazione: the presentation page inside the archive. */
.ks-collab-intro {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ks-collab-intro__image {
	margin: 0;
}

html body .ks-collab-intro__image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: 16px;
}

/* ks-card: article card (Loop Item). The title link covers the whole card,
 * so the card is one link for keyboard and screen readers. */
.ks-card {
	position: relative;
}

.ks-card .ks-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

html body .ks-card .ks-card__title a {
	text-decoration: none;
}

/* The title link above covers the whole card (image included) only if no
 * Elementor wrapper in between is positioned (not in the editor, whose
 * handles need them). The ks-ring portrait keeps its own box: the arc is
 * drawn around it. */
body:not(.elementor-editor-active) .ks-card .e-con,
body:not(.elementor-editor-active) .ks-card .elementor-widget:not(.ks-ring),
body:not(.elementor-editor-active) .ks-card .elementor-widget:not(.ks-ring) > .elementor-widget-container {
	--position: static;
	position: static;
}

html body .ks-card:hover .ks-card__title a,
html body .ks-card .ks-card__title a:focus-visible {
	text-decoration: underline;
}

.ks-card .ks-card__title a:focus-visible {
	outline: none;
}

.ks-card:has(.ks-card__title a:focus-visible) {
	outline: 2px solid var(--ks-oro);
	outline-offset: 4px;
	border-radius: var(--ks-radius);
}

.ks-card__media .elementor-widget-container,
.ks-card__media:not(:has(.elementor-widget-container)) {
	overflow: hidden;
	border-radius: var(--ks-radius);
	background: var(--ks-blu-chiaro);
}

html body .ks-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 370 / 217;
	object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
	html body .ks-card__media img {
		transition: transform 0.4s ease;
	}

	html body .ks-card:hover .ks-card__media img {
		transform: scale(1.03);
	}
}

@media (max-width: 767px) {
	html body .ks-card--mobile-horizontal .ks-card__media img {
		aspect-ratio: 1;
	}

	/* Text column next to the thumbnail: the rest of the row, not 100% of it. */
	html body .ks-card--mobile-horizontal .e-con {
		--width: auto;
		flex: 1 1 0;
		min-width: 0;
	}
}

.ks-card__excerpt :is(p, .elementor-widget-container) {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Post Info (date · reading time): space between icon and text only where there is an icon. */
.elementor-widget-post-info .elementor-icon-list-icon + .elementor-icon-list-text {
	padding-inline-start: 6px;
}

/* ks-loop: article grid (Loop Grid) – numbered pagination of the design:
 * ‹ 1 2 3 … 10 ›, the "Pagina precedente / successiva" labels stay for
 * screen readers behind the chevrons. */
.ks-loop .elementor-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--ks-font-body);
	font-size: 14px;
}

/* Body font also on the numbers: the Loop Grid's own pagination
 * typography (Kit headings) would otherwise win over the container. */
html body .ks-loop .elementor-pagination .page-numbers {
	display: inline-flex;
	font-family: var(--ks-font-body);
	font-weight: 400;
	letter-spacing: normal;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0 !important;
	padding: 0 4px;
	border-radius: 36px;
	color: var(--ks-grigio);
	text-decoration: none;
}

html body .ks-loop .elementor-pagination a.page-numbers:hover {
	background: var(--ks-blu-chiaro);
	color: var(--ks-blu);
}

html body .ks-loop .elementor-pagination .page-numbers.current {
	background: var(--ks-blu);
	color: var(--ks-carta);
	font-weight: 700;
}

html body .ks-loop .elementor-pagination :is(.prev, .next) {
	font-size: 0;
}

html body .ks-loop .elementor-pagination :is(.prev, .next)::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.6 18l-6-6 6-6L16 7.4 11.4 12l4.6 4.6L14.6 18Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.6 18l-6-6 6-6L16 7.4 11.4 12l4.6 4.6L14.6 18Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body .ks-loop .elementor-pagination .next::before {
	transform: scaleX(-1);
}

html body .ks-loop .elementor-pagination span:is(.prev, .next) {
	display: none;
}

/* ks-video-cover: Video widget with cover image, the play button of the design. */
.ks-video-cover .elementor-custom-embed-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding-left: 4px;
	border-radius: 50%;
	background: var(--ks-carta);
	box-shadow: 0 4px 16px color-mix(in srgb, var(--ks-blu) 35%, transparent);
	opacity: 1;
}

html body .ks-video-cover .elementor-custom-embed-play :is(i, svg) {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: var(--ks-blu);
	fill: var(--ks-blu);
	opacity: 1;
	text-shadow: none;
	filter: none;
}

.ks-video-cover .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
	background: var(--ks-oro);
}

@media (max-width: 767px) {
	.ks-video-cover .elementor-custom-embed-play {
		width: 56px;
		height: 56px;
	}
}

/* --------------------------------------------------------------------------
 * KS Pill rubriche and KS Selettore regione
 * ----------------------------------------------------------------------- */
html body .ks-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .ks-pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid currentColor;
	border-radius: 100px;
	font-family: var(--ks-font-body);
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.2px;
	color: var(--ks-blu);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.ks-pills-nav--dark .ks-pill {
	color: var(--ks-carta);
}

html body .ks-pill:hover,
html body .ks-pill:focus-visible,
html body .ks-pill.is-active {
	background: var(--ks-blu);
	border-color: var(--ks-blu);
	color: var(--ks-carta);
}

.ks-pills-nav--dark .ks-pill:hover,
.ks-pills-nav--dark .ks-pill:focus-visible,
.ks-pills-nav--dark .ks-pill.is-active {
	background: var(--ks-carta);
	border-color: var(--ks-carta);
	color: var(--ks-blu);
}

/* "oppure scegli una regione…" (Figma Frame 45) */
.ks-regions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0;
}

.ks-regions__label {
	margin: 0;
	font-family: var(--ks-font-title);
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
}

.ks-regions__field {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ks-regions select {
	padding: 8px 48px 8px 16px;
	border: 1px solid currentColor;
	border-radius: 48px;
	background: transparent;
	color: inherit;
	font-family: var(--ks-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2px;
	cursor: pointer;
	appearance: none;
}

.ks-regions select:hover,
.ks-regions select:focus-visible {
	border-color: var(--ks-oro);
	outline: none;
}

/* The open list is drawn by the OS: keep it readable on both band variants. */
.ks-regions option {
	background: var(--ks-carta);
	color: var(--ks-blu);
}

.ks-regions__chevron {
	position: absolute;
	right: 16px;
	pointer-events: none;
}

/* Right column: text above, the dropdown drawn as a pill. */
.ks-regions.ks-regions--band {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ks-regions.ks-regions--band select {
	padding: 10px 44px 10px 18px;
	border-radius: 100px;
	font-weight: 400;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ks-regions--band .ks-regions__field {
	color: var(--ks-blu);
	transition: color 0.2s;
}

.ks-regions--dark .ks-regions__field {
	color: var(--ks-carta);
}

.ks-regions--band .ks-regions__field:is(:hover, :focus-within) {
	color: var(--ks-carta);
}

.ks-regions--band .ks-regions__field:is(:hover, :focus-within) select {
	background: var(--ks-blu);
	border-color: var(--ks-blu);
}

.ks-regions--dark .ks-regions__field:is(:hover, :focus-within) {
	color: var(--ks-blu);
}

.ks-regions--dark .ks-regions__field:is(:hover, :focus-within) select {
	background: var(--ks-carta);
	border-color: var(--ks-carta);
}

.ks-regions--band .ks-regions__label {
	margin: 0;
	font-family: var(--ks-font-title);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

/* "Vai": confirms the region chosen with the keyboard. */
html body .ks-regions__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.ks-regions--band {
	color: var(--ks-blu);
}

.ks-regions--dark {
	color: var(--ks-carta);
}

html body .ks-regions__go:is(:hover, :focus-visible) {
	background: var(--ks-blu);
	border-color: var(--ks-blu);
	color: var(--ks-carta);
}

html body .ks-regions--dark .ks-regions__go:is(:hover, :focus-visible) {
	background: var(--ks-carta);
	border-color: var(--ks-carta);
	color: var(--ks-blu);
}

.ks-regions--band .ks-regions__field + .ks-regions__go,
.ks-regions--band .ks-regions__go {
	margin-left: 8px;
}

.ks-regions.ks-regions--band {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 0;
}

.ks-regions.ks-regions--band .ks-regions__label {
	flex: 1 0 100%;
}

/* Mobile: dropdown and "Vai" on one line, the dropdown takes the free space
 * (its natural width follows the longest region name). */
@media (max-width: 767px) {
	html body .ks-regions.ks-regions--band {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 16px 8px;
		align-items: center;
		width: 100%;
	}
}

/* The drawer (mobile menu) uses the same layout at every width. */
html body .ks-regions.ks-regions--drawer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 8px;
	align-items: center;
	width: 100%;
}

@media (max-width: 767px) {
	html body .ks-regions--band .ks-regions__label {
		grid-column: 1 / -1;
	}

	html body .ks-regions--band :is(.ks-regions__field, select) {
		width: 100%;
		min-width: 0;
	}

	html body .ks-regions--band .ks-regions__go {
		margin-left: 0;
	}
}

html body .ks-regions--drawer .ks-regions__label {
	grid-column: 1 / -1;
}

html body .ks-regions--drawer :is(.ks-regions__field, select) {
	width: 100%;
	min-width: 0;
}

html body .ks-regions--drawer .ks-regions__go {
	margin-left: 0;
}

/* --------------------------------------------------------------------------
 * KS Breadcrumb and article body
 * ----------------------------------------------------------------------- */
.ks-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	font-family: var(--ks-font-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--ks-grigio);
	text-align: center;
}

.ks-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ks-breadcrumb li + li::before {
	content: ">" / "";
	margin: 0 4px;
}

html body .ks-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

html body .ks-breadcrumb a:hover {
	color: var(--ks-blu);
	text-decoration: underline;
}

/* Article body – add the CSS class "ks-article" to the Post Content widget.
 * Widgets of a page built with Elementor (nested document) keep their own style.
 * (it is also applied automatically to Elementor's Post Content on posts). */
.ks-article,
.single-post .elementor-widget-theme-post-content {
	font-family: var(--ks-font-body);
	font-size: 18px;
	line-height: 1.5;
	color: var(--ks-blu);
}

.ks-article p:not(.ks-article [data-elementor-type] *),
.single-post .elementor-widget-theme-post-content p:not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	margin: 0 0 32px;
}

.ks-article :is(h2, h3, h4):not(.ks-article [data-elementor-type] *),
.single-post .elementor-widget-theme-post-content :is(h2, h3, h4):not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	margin: 48px 0 16px;
	font-family: var(--ks-font-title);
	color: var(--ks-blu);
}

html body .ks-article img:not(.ks-article [data-elementor-type] *),
html body.single-post .elementor-widget-theme-post-content img:not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 32px;
	border-radius: var(--ks-radius);
}

.ks-article :is(figure, .wp-block-image):not(.ks-article [data-elementor-type] *),
.single-post .elementor-widget-theme-post-content :is(figure, .wp-block-image):not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	margin: 0 0 32px;
}

.ks-article figcaption:not(.ks-article [data-elementor-type] *),
.single-post .elementor-widget-theme-post-content figcaption:not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	margin-top: -16px;
	font-size: 14px;
	color: var(--ks-grigio);
	text-align: center;
}

html body .ks-article a:not(.ks-article [data-elementor-type] *),
html body.single-post .elementor-widget-theme-post-content a:not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	color: var(--ks-blu);
}

.ks-article blockquote:not(.ks-article [data-elementor-type] *),
.single-post .elementor-widget-theme-post-content blockquote:not(.elementor-widget-theme-post-content [data-elementor-type] *) {
	margin: 0 0 32px;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--ks-oro);
	font-family: var(--ks-font-title);
	font-size: 22px;
	line-height: 1.4;
	color: var(--ks-blu);
}

@media (max-width: 767px) {
	.ks-article,
	.single-post .elementor-widget-theme-post-content {
		font-size: 16px;
	}
}

/* --------------------------------------------------------------------------
 * KS Accessibilità: floating button + panel
 * ----------------------------------------------------------------------- */
.ks-a11y {
	/* Own colours: the panel must look the same with the "Contrasto" option on. */
	--ks-a11y-blu: #031630;
	--ks-a11y-chiaro: #cbcfd4;
	--ks-a11y-tenue: #e5e7ea;
	--ks-a11y-carta: #f3f4f5;
	--ks-a11y-grigio: #4a4a4a;
	--ks-a11y-oro: #c1922c;
	position: fixed;
	bottom: 16px;
	z-index: 9998;
	font-family: var(--ks-font-body);
}

/* The open drawer lives in the header's stacking context, below the button:
 * hide the button while the drawer is open. */
body:has(.ks-drawer:not([hidden])) .ks-a11y {
	display: none;
}

.ks-a11y--right {
	right: 16px;
}

.ks-a11y--left {
	left: 16px;
}

html body .ks-a11y button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	border: 0;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

html body .ks-a11y .ks-a11y__toggle {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 3px solid var(--ks-a11y-carta);
	border-radius: 50%;
	background: var(--ks-a11y-blu);
	box-shadow: 0 4px 16px color-mix(in srgb, var(--ks-a11y-blu) 35%, transparent);
	color: var(--ks-a11y-carta);
}

html body .ks-a11y .ks-a11y__toggle:hover,
html body .ks-a11y .ks-a11y__toggle[aria-expanded="true"] {
	background: var(--ks-a11y-oro);
	color: var(--ks-a11y-blu);
}

.ks-a11y__panel {
	position: absolute;
	bottom: 64px;
	width: min(320px, calc(100vw - 32px));
	max-height: calc(100vh - 96px);
	overflow-y: auto;
	padding: 24px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 8px 32px color-mix(in srgb, var(--ks-a11y-blu) 30%, transparent);
	color: var(--ks-a11y-blu);
}

.ks-a11y--right .ks-a11y__panel {
	right: 0;
}

.ks-a11y--left .ks-a11y__panel {
	left: 0;
}

.ks-a11y__panel[hidden] {
	display: none;
}

.ks-a11y__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ks-a11y-blu);
}

.ks-a11y__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--ks-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ks-a11y-blu);
}

html body .ks-a11y .ks-a11y__reset {
	padding: 4px 8px;
	border-radius: 8px;
	background: transparent;
	color: var(--ks-a11y-grigio);
	font-size: 14px;
}

html body .ks-a11y .ks-a11y__reset:hover {
	background: var(--ks-a11y-tenue);
	color: var(--ks-a11y-blu);
}

.ks-a11y__step {
	margin-bottom: 20px;
}

.ks-a11y__step-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.ks-a11y__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
}

.ks-a11y__value {
	min-width: 48px;
	padding: 2px 8px;
	border-radius: 8px;
	background: var(--ks-a11y-tenue);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.ks-a11y__buttons,
.ks-a11y__toggles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

html body .ks-a11y .ks-a11y__buttons button {
	height: 40px;
	padding: 0;
	border-radius: 12px;
	background: var(--ks-a11y-tenue);
	color: var(--ks-a11y-blu);
}

html body .ks-a11y .ks-a11y__buttons button:hover {
	background: var(--ks-a11y-chiaro);
}

html body .ks-a11y .ks-a11y__buttons button[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

html body .ks-a11y .ks-a11y__option {
	flex-direction: column;
	gap: 8px;
	min-height: 76px;
	padding: 12px 8px;
	border: 1px solid var(--ks-a11y-chiaro);
	border-radius: 16px;
	background: #fff;
	color: var(--ks-a11y-blu);
	font-size: 15px;
	font-weight: 700;
}

html body .ks-a11y .ks-a11y__option:hover {
	border-color: var(--ks-a11y-blu);
}

html body .ks-a11y .ks-a11y__option[aria-pressed="true"] {
	border-color: var(--ks-a11y-blu);
	background: var(--ks-a11y-blu);
	color: var(--ks-a11y-carta);
}

.ks-a11y__abc {
	font-size: 16px;
	line-height: 22px;
}

/* Preferences, set on <html> by window.ksA11y (see Kronostories_Accessibility). */
html.ks-a11y-text body {
	zoom: var(--ks-a11y-zoom, 1);
}

html.ks-a11y-text .ks-a11y {
	zoom: calc(1 / var(--ks-a11y-zoom, 1));
}

html.ks-a11y-lh body :is(p, li, dd, dt, blockquote, figcaption, label, h1, h2, h3, h4, h5, h6, .elementor-heading-title, .elementor-widget-text-editor, .elementor-icon-list-text, .ks-pill):not(.ks-a11y *) {
	line-height: var(--ks-a11y-line-height) !important;
}

/* On body too: the Kit defines the global colours on body.elementor-kit-N. */
html.ks-a11y-contrast,
html.ks-a11y-contrast body {
	--ks-grigio: #1f1f1f;
	--ks-testo: #000;
	--ks-blu-chiaro: #fff;
	--ks-blu-tenue: #fff;
	--ks-carta: #fff;
	--e-global-color-ksgrigio: #1f1f1f;
	--e-global-color-kstesto: #000;
	--e-global-color-secondary: #fff;
	--e-global-color-ksblutenue: #fff;
	--e-global-color-kscarta: #fff;
	--e-global-color-primary: #000a1c;
	--e-global-color-text: #000a1c;
	--ks-blu: #000a1c;
}

html.ks-a11y-contrast body {
	background: #fff;
}

/* Ferma animazioni: no animation or transition anywhere (the home intro,
 * the reveal on scroll and the panels included). */
html.ks-a11y-motion *,
html.ks-a11y-motion *::before,
html.ks-a11y-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

html.ks-a11y-motion .ks-reveal {
	opacity: 1 !important;
	transform: none !important;
}

html.ks-a11y-gray {
	filter: grayscale(1);
}

html.ks-a11y-dyslexia body :not(svg, svg *, i, [class*="fa-"], [class*="eicon"], .ks-a11y, .ks-a11y *) {
	font-family: "Atkinson Hyperlegible", "Karla", Arial, sans-serif !important;
	letter-spacing: 0.04em !important;
	word-spacing: 0.12em !important;
}

html.ks-a11y-links body a:not(.ks-a11y *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
	outline: 2px dashed currentColor;
	outline-offset: 2px;
}

@media print {
	.ks-a11y {
		display: none;
	}
}
