/* ==========================================================================
   Elena Danze: "Pop di scena"
   Bianco pieno, blocchi di colore saturo, bordi d'inchiostro, pantere che ballano.
   Colori: i pigmenti (rosa, giallo, verde acqua) non fanno mai da testo su bianco:
   per il testo esistono le versioni -ink, misurate a 4,5:1.
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-soft-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-soft-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--white: #ffffff;
	--ink: #1a1240;
	--ink-2: #4a4370;
	--violet: #5b21e6;
	--violet-deep: #3d12a8;
	--violet-soft: #ece4ff;
	--lavender: #e4dbff;
	--pink: #ff3e9a;
	--pink-ink: #c4176c;
	--pink-soft: #ffe1ef;
	--yellow: #ffd60a;
	--yellow-soft: #fff5c2;
	--teal: #00c2a8;
	--teal-ink: #00745f;
	--teal-soft: #d4f6ef;
	--lilac: #f5f1ff;
	--hair: #e5ddf7;

	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

	--wrap: 1240px;
	--pad: 20px;
	--header-h: 68px;
	--radius: 18px;
	--radius-lg: 28px;
	--line: 2px solid var(--ink);
	--pop: 6px 6px 0 var(--ink);
	--pop-sm: 4px 4px 0 var(--ink);
	--pop-lg: 10px 10px 0 var(--ink);

	/* Curve: entrata che frena, uscita che accelera (piu' breve), dissolvenza su curva sua. */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in: cubic-bezier(0.32, 0, 0.67, 0);
	--ease-fade: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ease-dance: cubic-bezier(0.37, 0, 0.63, 1);
	--ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
}

@media (min-width: 700px) {
	:root { --pad: 32px; }
}
@media (min-width: 1100px) {
	:root { --pad: 40px; --header-h: 78px; }
}

/* Colore per scheda / fascia: pigmento, tinta chiara, testo sopra il pigmento, testo colorato su bianco */
.tone-violet { --tone: var(--violet); --tone-soft: var(--violet-soft); --on-tone: var(--white); --tone-ink: var(--violet); }
.tone-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); --on-tone: var(--ink); --tone-ink: var(--pink-ink); }
.tone-yellow { --tone: var(--yellow); --tone-soft: var(--yellow-soft); --on-tone: var(--ink); --tone-ink: var(--ink); }
.tone-teal { --tone: var(--teal); --tone-soft: var(--teal-soft); --on-tone: var(--ink); --tone-ink: var(--teal-ink); }
.tone-lilac { --tone: var(--lavender); --tone-soft: var(--lilac); --on-tone: var(--ink); --tone-ink: var(--violet); }
.tone-mint { --tone: var(--teal-soft); --tone-soft: var(--teal-soft); --on-tone: var(--ink); --tone-ink: var(--teal-ink); }

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-weight: 400;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--focus, var(--violet)); outline-offset: 3px; border-radius: 6px; }
/* L'anello di fuoco si disegna sullo sfondo della sezione: su viola e inchiostro giallo, su rosa e giallo inchiostro */
.section--violet, .site-footer, .page-hero.tone-violet, .lightbox { --focus: var(--yellow); }
.invite, .section--yellow, .page-hero.tone-pink, .page-hero.tone-yellow { --focus: var(--ink); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 650; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.site-main { display: block; padding-top: var(--header-h); outline: none; overflow-x: clip; }

.visually-hidden, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px;
	background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 999px; font-weight: 600;
	transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Pantera come maschera: prende il colore del testo */
.ico {
	display: block;
	background-color: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px; padding: 6px 14px 6px 12px;
	border: 2px solid currentColor; border-radius: 999px;
	font: 700 0.8125rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ink);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
.eyebrow--on-dark, .section--violet .eyebrow { color: var(--white); }
.section--violet .eyebrow::before { background: var(--yellow); }

.section__title { font-size: 2.125rem; }
.section__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 16px 0 0; }
@media (min-width: 700px) {
	.section__title { font-size: 2.75rem; }
	.section__lead { font-size: 1.25rem; }
}
@media (min-width: 1100px) {
	.section__title { font-size: 3.375rem; }
}

/* --------------------------------------------------------------------------
   Bottoni, chip, link con freccia
   -------------------------------------------------------------------------- */
.btn {
	--btn-bg: var(--white); --btn-fg: var(--ink); --btn-shadow: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 12px 24px;
	background: var(--btn-bg); color: var(--btn-fg);
	border: var(--line); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--btn-shadow);
	font: 600 1.03125rem/1.2 var(--font-body); text-decoration: none; text-align: center;
	cursor: pointer;
	translate: var(--mx, 0px) var(--my, 0px);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s var(--ease-fade), color 0.25s var(--ease-fade);
}
.btn:hover { color: var(--btn-fg); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-shadow); transition-duration: 0.12s; }
.btn .icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease-out); }
.btn:hover .icon--arrow-right { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--violet); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: var(--violet-deep); }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-shadow: var(--violet); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn--small:hover { box-shadow: 4px 4px 0 var(--btn-shadow); }

.chip {
	--chip-bg: var(--white); --chip-fg: var(--ink);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border: var(--line); border-radius: 999px;
	background: var(--chip-bg); color: var(--chip-fg);
	font: 600 0.875rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
}
.chip--violet { --chip-bg: var(--violet); --chip-fg: var(--white); }
.chip--pink { --chip-bg: var(--pink); --chip-fg: var(--ink); }
.chip--yellow { --chip-bg: var(--yellow); --chip-fg: var(--ink); }
.chip--teal { --chip-bg: var(--teal); --chip-fg: var(--ink); }
.chip--lilac { --chip-bg: var(--lavender); --chip-fg: var(--ink); }
.chip--big { padding: 10px 18px; font-size: 1rem; white-space: normal; }
.chip--link { transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.chip--link:hover, .chip--link:focus-visible { color: var(--chip-fg); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.chip--link .icon { width: 16px; height: 16px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 1.03125rem; color: var(--violet); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.45s var(--ease-out), color 0.2s var(--ease-fade);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Testata
   -------------------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	height: var(--header-h);
	transition: transform 0.55s var(--ease-out);
}
/* Il vetro sta su uno strato a parte: un backdrop-filter sulla testata la renderebbe il riquadro del menu a tutto schermo */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(255 255 255 / 0.84);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: 0 1px 0 rgb(26 18 64 / 0.08), 0 14px 30px -20px rgb(26 18 64 / 0.4);
	opacity: 0;
	transition: opacity 0.35s var(--ease-fade);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-110%); transition: transform 0.32s var(--ease-in); }
.nav-open .site-header { transform: none; --focus: var(--yellow); }
.nav-open .site-header::before { opacity: 0; }

.scroll-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; pointer-events: none; }
.scroll-meter__bar {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--violet) 0 25%, var(--pink) 25% 50%, var(--yellow) 50% 75%, var(--teal) 75% 100%);
	transform: scaleX(0); transform-origin: 0 50%;
}

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--violet); }
.brand:hover { color: var(--violet); }
.brand__mark { width: 50px; height: 44px; flex: none; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: italic 800 1.5rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand__tag { margin-top: 5px; font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); max-width: 15em; }
@media (max-width: 380px) {
	.brand__tag { margin-top: 4px; letter-spacing: 0.05em; max-width: 11em; }
	.brand__mark { width: 44px; height: 38px; }
}
@media (max-width: 359px) {
	.brand__name { font-size: 1.3125rem; }
	.brand { gap: 8px; }
	.nav-toggle { padding: 0 13px; }
	.nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.nav-toggle {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 46px; padding: 0 16px 0 14px;
	border: var(--line); border-radius: 999px; background: var(--yellow); color: var(--ink);
	box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
	font-weight: 600;
	transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-fade);
}
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.nav-toggle__bars { position: relative; width: 20px; height: 12px; }
.nav-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
	transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 9.5px; }
.nav-open .nav-toggle__bars span:first-child { top: 4.75px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:last-child { top: 4.75px; transform: rotate(-45deg); }
.nav-open .nav-toggle { background: var(--white); }
.nav-open .brand { color: var(--white); }
.nav-open .brand__tag { color: var(--lavender); }

/* Menu del telefono: si apre a cerchio dal bottone */
.site-nav {
	--focus: var(--yellow);
	position: fixed; inset: 0; z-index: 1;
	background: var(--violet); color: var(--white);
	overflow-y: auto; overscroll-behavior: contain;
	clip-path: circle(0 at calc(100% - 60px) calc(var(--header-h) / 2));
	visibility: hidden;
	transition: clip-path 0.42s var(--ease-in), visibility 0s linear 0.42s;
}
.nav-open .site-nav {
	clip-path: circle(160vmax at calc(100% - 60px) calc(var(--header-h) / 2));
	visibility: visible;
	transition: clip-path 0.8s var(--ease-out), visibility 0s;
}
.site-nav__inner { min-height: 100%; display: flex; flex-direction: column; gap: 28px; padding: calc(var(--header-h) + 24px) var(--pad) 48px; }
.site-nav .nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.site-nav .nav-list > li > a {
	display: block; padding: 8px 0;
	font: 700 2rem/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--white); text-decoration: none;
}
.site-nav .nav-list a:hover { color: var(--yellow); }
.site-nav .current_page_item > a, .site-nav .current-menu-item > a { color: var(--yellow); }
.site-nav .children, .site-nav .sub-menu { list-style: none; margin: 2px 0 8px; padding-left: 18px; border-left: 3px solid var(--yellow); }
.site-nav .children a, .site-nav .sub-menu a { display: block; padding: 6px 0; font: 500 1.125rem/1.3 var(--font-body); color: var(--lavender); text-decoration: none; }
.site-nav__call { align-self: flex-start; --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.site-nav__mark { width: 180px; height: 160px; margin-top: auto; align-self: flex-end; color: var(--violet-deep); }

/* Voci del menu che entrano una dopo l'altra */
.site-nav .nav-list > li, .site-nav__call {
	opacity: 0; transform: translateY(18px);
	transition: opacity 0.2s var(--ease-fade), transform 0.2s var(--ease-in);
}
.nav-open .site-nav .nav-list > li, .nav-open .site-nav__call {
	opacity: 1; transform: none;
	transition: opacity 0.5s var(--ease-fade) calc(0.18s + var(--i, 0) * 0.05s), transform 0.7s var(--ease-out) calc(0.18s + var(--i, 0) * 0.05s);
}

@media (min-width: 1100px) {
	.nav-toggle, .site-nav__mark { display: none; }
	.site-nav {
		--focus: var(--violet);
		position: static; clip-path: none; visibility: visible; background: none; color: inherit; overflow: visible;
		transition: none;
	}
	.site-nav__inner { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 0; }
	.site-nav .nav-list { flex-direction: row; align-items: center; gap: 2px; }
	.site-nav .nav-list > li, .site-nav__call { opacity: 1; transform: none; transition: none; }
	.site-nav .nav-list > li { position: relative; }
	.site-nav .nav-list > li > a {
		padding: 9px 13px; border-radius: 999px;
		font: 500 0.96875rem/1.2 var(--font-body); letter-spacing: 0; color: var(--ink);
		transition: background-color 0.25s var(--ease-fade), color 0.25s var(--ease-fade);
	}
	.site-nav .nav-list > li > a:hover { background: var(--lilac); color: var(--violet); }
	.site-nav .nav-list > .current_page_item > a, .site-nav .nav-list > .current-menu-item > a,
	.site-nav .nav-list > .current_page_ancestor > a, .site-nav .nav-list > .current-menu-ancestor > a {
		background: var(--violet-soft); color: var(--violet); font-weight: 600;
	}
	.site-nav .page_item_has_children > a::after, .site-nav .menu-item-has-children > a::after {
		content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	}
	.site-nav .children, .site-nav .sub-menu {
		position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px; margin: 0; padding: 8px;
		background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--pop);
		opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity 0.2s var(--ease-fade), transform 0.2s var(--ease-in), visibility 0s linear 0.2s;
	}
	.site-nav .children::before, .site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.site-nav li:hover > .children, .site-nav li:focus-within > .children,
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity 0.3s var(--ease-fade), transform 0.45s var(--ease-out), visibility 0s;
	}
	.site-nav .children a, .site-nav .sub-menu a { padding: 10px 14px; border-radius: 12px; font-size: 1rem; color: var(--ink); }
	.site-nav .children a:hover, .site-nav .sub-menu a:hover { background: var(--lilac); color: var(--violet); }
	.site-nav .children .current_page_item > a { background: var(--violet-soft); color: var(--violet); font-weight: 600; }
	.site-nav__call { --btn-bg: var(--violet); --btn-fg: var(--white); }
}

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 76px 0; }
@media (min-width: 1100px) { .section { padding: 112px 0; } }
.section--lilac { background: var(--lilac); }
.section--mint { background: var(--teal-soft); }
.section--yellow { background: var(--yellow); }
.section--yellow .section__lead { color: var(--ink); }
.section--violet { background: var(--violet); color: var(--white); }
.section--violet .section__lead { color: var(--lavender); }
.section--violet .link-arrow { color: var(--white); }

.section__head { margin-bottom: 44px; }
.section__head--split { display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

/* Forme piatte */
.blob { position: absolute; display: block; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; pointer-events: none; }
.blob--pink { background: var(--pink); }
.blob--yellow { background: var(--yellow); border-radius: 58% 42% 38% 62% / 53% 38% 62% 47%; }
.blob--teal { background: var(--teal); border-radius: 50%; }

/* --------------------------------------------------------------------------
   Prima pagina: apertura
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 36px 0 64px; overflow: clip; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
	.hero { padding: 56px 0 96px; min-height: min(calc(100svh - var(--header-h)), 900px); display: grid; align-items: center; }
	.hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; }
}
.hero__title {
	margin: 0 0 22px;
	font-size: 2.875rem; line-height: 0.98; font-weight: 800; letter-spacing: -0.03em;
	color: var(--ink);
}
@media (min-width: 700px) { .hero__title { font-size: 4.25rem; } }
@media (min-width: 1100px) { .hero__title { font-size: 5.5rem; } }
.hero__title em, .page-hero__title em { position: relative; z-index: 0; font-style: italic; color: var(--violet); white-space: nowrap; }
.hero__title em::after {
	content: ""; position: absolute; z-index: -1; left: -0.06em; right: -0.1em; bottom: 0.06em; height: 0.36em;
	background: var(--yellow); border-radius: 0.12em;
	transform: scaleX(var(--mark, 1)); transform-origin: 0 50%;
}
.hero__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 32em; margin: 0 0 30px; }
@media (min-width: 1100px) { .hero__lead { font-size: 1.3125rem; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stage { position: relative; padding: 12px; }
.hero__stage .blob--pink { width: 34%; aspect-ratio: 1; right: -4%; top: 0; }
.hero__stage .blob--yellow { width: 26%; aspect-ratio: 1; left: 2%; bottom: 6%; }
.hero__stage .blob--teal { width: 14%; aspect-ratio: 1; right: 12%; bottom: -2%; }

.spot { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin-inline: auto; }
.spot__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spot__ring text { font: 700 10.5px/1 var(--font-body); letter-spacing: 0.2em; fill: var(--ink); }
.spot__disc { position: absolute; inset: 12%; border-radius: 50%; background: var(--violet); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.spot__mark { position: absolute; left: 19%; top: 23%; width: 62%; height: auto; color: var(--white); overflow: visible; }
.spot__mark path { stroke: currentColor; stroke-width: 0; }

.sticker {
	position: absolute; display: inline-flex; align-items: baseline; gap: 6px;
	padding: 8px 16px; background: var(--yellow); color: var(--ink);
	border: var(--line); border-radius: 999px; box-shadow: var(--pop-sm);
	font: italic 600 1.125rem/1 var(--font-display);
}
.sticker strong { font-weight: 800; font-size: 1.5rem; font-style: normal; }
.sticker--since { left: 4%; top: 8%; transform: rotate(-9deg); }

.hero__cue {
	position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
	display: none; place-items: center; width: 48px; height: 48px;
	border: var(--line); border-radius: 50%; background: var(--white); color: var(--ink);
	box-shadow: 3px 3px 0 var(--ink);
}
.hero__cue .icon { width: 22px; height: 22px; }
@media (min-width: 980px) and (min-height: 760px) { .hero__cue { display: grid; } }

/* Nastro con i nomi dei balli: si muove solo quando scorri la pagina */
.marquee {
	position: relative; z-index: 2;
	margin: 0 -40px; padding: 16px 0;
	background: var(--ink); color: var(--yellow);
	transform: rotate(-1.6deg);
	overflow: hidden;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.marquee__item { font: italic 700 1.625rem/1.1 var(--font-display); white-space: nowrap; letter-spacing: -0.01em; }
.marquee__star { color: var(--pink); font-size: 1.125rem; }
@media (min-width: 1100px) { .marquee__item { font-size: 2.125rem; } }

/* Per chi: quattro tessere */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .aud-grid { gap: 22px; } }
@media (min-width: 1100px) { .aud-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aud {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: 22px 22px 24px; min-height: 100%;
	background: var(--tone); color: var(--on-tone);
	border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop);
	text-decoration: none;
	/* Sollevamento con translate/rotate: la transizione CSS resta lontana da transform, che GSAP anima nella comparsa */
	transition: translate 0.5s var(--ease-out), rotate 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.aud:hover { color: var(--on-tone); translate: -3px -3px; rotate: -1deg; box-shadow: var(--pop-lg); }
.aud__art { display: grid; place-items: center; aspect-ratio: 1.25; margin-bottom: 8px; border-radius: 20px; background: rgb(255 255 255 / 0.28); }
.tone-violet .aud__art { background: var(--violet-deep); }
.aud__icon { width: 74%; height: 84%; }
.aud__name { font: 800 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
@media (min-width: 640px) { .aud { padding: 22px 22px 24px; } .aud__name { font-size: 2rem; } }
@media (max-width: 639px) { .aud { padding: 14px 14px 16px; border-radius: 22px; } .aud__list { font-size: 0.875rem; } }
.aud__list { font-size: 0.9375rem; line-height: 1.45; font-weight: 500; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.aud__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.aud__more .icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease-out); }
.aud:hover .aud__more .icon { transform: translateX(5px); }

/* Volantino */
.season__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .season__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; } }
.season__flyer { margin: 0; justify-self: center; width: min(100%, 440px); }
.season__paper {
	display: block; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden;
	background: var(--white); box-shadow: 14px 14px 0 var(--ink);
	transform: rotate(-3deg);
	transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.season__paper:hover { transform: rotate(0) scale(1.02); box-shadow: 18px 18px 0 var(--ink); }
.season__paper img { width: 100%; }
.season__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.section--yellow .link-arrow { color: var(--ink); }

/* Balli sulla pista (prima pagina): la fila scorre di lato mentre scorri la pagina */
.dance-teaser { overflow: clip; }
.floor { position: relative; margin-top: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--pad); }
.floor::-webkit-scrollbar { display: none; }
@media (max-width: 899px), (hover: none) {
	.floor { scroll-snap-type: x mandatory; }
	.floor__item { scroll-snap-align: start; }
}
.floor__track { display: flex; width: max-content; padding: 10px var(--pad) 18px; }
.dance-teaser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.floor__nav { display: inline-flex; gap: 10px; }
.floor__step {
	display: grid; place-items: center; width: 50px; height: 50px; border: var(--line); border-radius: 50%;
	background: var(--white); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
	transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.floor__step:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.floor__step:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.floor__step .icon { width: 22px; height: 22px; }
.floor__group { list-style: none; display: flex; gap: 18px; padding-right: 18px; }
.floor__item a {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	width: 176px; padding: 18px 14px 16px;
	background: var(--white); color: var(--ink); text-decoration: none;
	border: var(--line); border-radius: 26px; box-shadow: 5px 5px 0 var(--ink);
	transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.floor__item a:hover { color: var(--ink); transform: translate(-3px, -4px); box-shadow: 8px 9px 0 var(--ink); }
.floor__stage { display: grid; place-items: center; width: 140px; height: 124px; border-radius: 20px; background: var(--tone); color: var(--on-tone); }
.floor__stage .dance__icon { width: 108px; height: 100px; }
.floor__name { font: 700 1.125rem/1.1 var(--font-display); text-align: center; }

/* Insegnanti */
.teacher-grid { display: grid; gap: 26px; }
@media (min-width: 620px) { .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .teacher-grid--3, .teacher-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .teacher-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.teacher-card__link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--white); color: var(--ink); text-decoration: none;
	border: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--pop);
	transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.teacher-card__link:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--tone, var(--ink)), 9px 9px 0 2px var(--ink); }
.teacher-card__media { position: relative; display: block; aspect-ratio: 4 / 3.4; background: var(--tone); border-bottom: var(--line); overflow: hidden; }
.teacher-card__media img, .portrait__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.9s var(--ease-out); }
.teacher-card__link:hover .teacher-card__media img { transform: scale(1.05); }
.portrait__monogram { display: grid; place-items: center; width: 100%; height: 100%; font: italic 800 4rem/1 var(--font-display); color: var(--on-tone); background: var(--tone); }
.teacher-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.teacher-card__name { font-size: 1.5rem; }
.teacher-card__role { font-size: 0.96875rem; line-height: 1.5; color: var(--ink-2); }
.teacher-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); }
.teacher-card__more .icon { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.teacher-card__link:hover .teacher-card__more .icon { transform: translateX(5px); }

/* Chi siamo */
.about__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } }
.about__year { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.about__since { font: italic 700 2rem/1 var(--font-display); color: var(--pink-ink); margin-left: 6px; }
.about__digits {
	font: 900 clamp(6rem, 10vw + 2rem, 11rem)/0.85 var(--font-display); letter-spacing: -0.05em;
	color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
	text-shadow: 8px 8px 0 var(--ink);
}
.about .entry-content { font-size: 1.125rem; margin-top: 22px; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 60px; }
@media (min-width: 620px) { .stats { gap: 18px; } }
/* Numero dispari di riquadri: l'ultimo prende tutta la riga, mai un buco. */
.stats > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1100px) {
	.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stats:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stats > li:last-child:nth-child(odd) { grid-column: auto; }
}
.stat { padding: 22px; border: var(--line); border-radius: 22px; background: var(--tone); color: var(--on-tone); box-shadow: var(--pop-sm); }
.stat__num { display: block; font: 800 2.5rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (min-width: 620px) { .stat__num { font-size: 3.25rem; } }
@media (max-width: 619px) { .stat { padding: 16px; } .stat__label { font-size: 0.9375rem; } }
.stat__label { display: block; margin-top: 8px; font-weight: 500; line-height: 1.4; }

/* Sedi */
.places__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .places__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } }
.places__art {
	position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 400px); justify-self: center;
	background: var(--white); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 10px 10px 0 var(--teal-ink);
	color: var(--ink);
}
.places__icon { width: 72%; height: 64%; --bpm: 100; --meter: 4; }
.place-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.place { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--white); border: var(--line); border-radius: 999px; box-shadow: var(--pop-sm); font: 700 1.1875rem/1 var(--font-display); }
.place .icon { width: 20px; height: 20px; color: var(--pink-ink); }
.places .link-arrow { color: var(--teal-ink); }

/* Invito finale */
.invite { position: relative; overflow: clip; padding: 80px 0; background: var(--pink); color: var(--ink); border-top: 3px solid var(--ink); }
@media (min-width: 1100px) { .invite { padding: 104px 0; } }
.invite__shapes .blob--yellow { width: 280px; height: 280px; right: -80px; top: -90px; }
.invite__shapes .blob--teal { width: 130px; height: 130px; left: 46%; bottom: -60px; }
.invite__inner { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .invite__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.invite__title { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 700px) { .invite__title { font-size: 3.75rem; } }
@media (min-width: 1100px) { .invite__title { font-size: 4.5rem; } }
.invite__lead { font-size: 1.25rem; line-height: 1.5; margin: 18px 0 30px; max-width: 30em; font-weight: 500; }
.invite__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.invite__art { display: grid; place-items: center; }
.invite__icon { width: min(100%, 320px); aspect-ratio: 1.2; color: var(--ink); --bpm: 172; --meter: 4; }

/* --------------------------------------------------------------------------
   Piede di pagina e barra azioni del telefono
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 28px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.brand--footer { color: var(--yellow); }
.brand--footer:hover { color: var(--yellow); }
.brand--footer .brand__mark { width: 64px; height: 56px; }
.brand--footer .brand__name { font-size: 2rem; }
.site-footer__claim { margin: 16px 0 0; color: var(--lavender); font-size: 1.0625rem; }
.site-footer__title { margin-bottom: 14px; font: 700 0.8125rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.site-footer__list { list-style: none; display: grid; gap: 10px; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.site-footer__list .icon { width: 18px; height: 18px; color: var(--pink); }
.site-footer__widgets { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer__widgets img { max-height: 72px; width: auto; border-radius: 10px; background: var(--white); padding: 6px; }
.footer-widget__title { font: 700 0.8125rem/1.2 var(--font-body); color: var(--yellow); text-transform: uppercase; letter-spacing: 0.12em; }
.site-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.16); color: var(--lavender); font-size: 0.9375rem; }
.site-footer__bottom p { margin: 0; }

.action-bar {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 8px;
	border: var(--line); border-radius: 22px;
	background: rgb(255 255 255 / 0.86);
	-webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: 0 18px 40px -16px rgb(26 18 64 / 0.55), 4px 4px 0 var(--ink);
	transform: translateY(calc(100% + 30px));
	transition: transform 0.35s var(--ease-in);
}
.action-bar.is-shown { transform: none; transition: transform 0.6s var(--ease-out); }
.action-bar__item {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px;
	border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.96875rem;
	background: var(--lilac);
}
.action-bar__item--call { background: var(--violet); color: var(--white); }
.action-bar__item--call:hover { color: var(--white); }
.action-bar__item .icon { width: 19px; height: 19px; flex: none; }
.action-bar__item { min-width: 0; }
/* Quattro voci: sul telefono l'icona sta sopra il nome, cosi' "WhatsApp" non si taglia nemmeno a 320 px */
@media (max-width: 599px) {
	.action-bar__item { flex-direction: column; gap: 3px; min-height: 54px; padding: 0 2px; font-size: 0.8125rem; line-height: 1.1; }
}
@media (max-width: 359px) {
	.action-bar { gap: 6px; padding: 6px; left: 8px; right: 8px; }
	.action-bar__item { font-size: 0.75rem; }
	.action-bar__item .icon { width: 17px; height: 17px; }
}
@media (max-width: 899px) {
	html { scroll-padding-bottom: 100px; }
	/* Riserva sotto il piede: la barra azioni non copre mai l'ultima riga */
	.site-footer { padding-bottom: calc(28px + 84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) { .action-bar { display: none; } }

/* --------------------------------------------------------------------------
   Pagine interne: fascia del titolo
   -------------------------------------------------------------------------- */
.page-hero {
	position: relative; overflow: clip;
	padding: 44px 0 56px; background: var(--tone); color: var(--on-tone);
	border-bottom: 3px solid var(--ink);
}
@media (min-width: 1100px) { .page-hero { padding: 72px 0 84px; } }
.page-hero__shapes .blob--a { width: 220px; height: 220px; right: -70px; top: -60px; background: var(--white); opacity: 0.22; }
.page-hero__shapes .blob--b { width: 120px; height: 120px; left: 38%; bottom: -70px; background: var(--ink); opacity: 0.1; border-radius: 50%; }
.page-hero__inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .page-hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 48px; } }
.page-hero__crumb { margin: 0 0 16px; }
.page-hero__title { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
@media (min-width: 700px) { .page-hero__title { font-size: 3.75rem; } }
@media (min-width: 1100px) { .page-hero__title { font-size: 4.75rem; } }
.page-hero__lead { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; font-weight: 500; max-width: 34em; }
.page-hero__lead p:last-child { margin-bottom: 0; }
.tone-violet .page-hero__lead { color: var(--lavender); }
.page-hero__art { position: relative; justify-self: center; width: min(62vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.page-hero__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.page-hero__icon { position: relative; width: 74%; height: 70%; color: var(--ink); --bpm: 100; --meter: 4; }
.page-hero__mark { position: relative; width: 70%; height: auto; color: var(--violet); overflow: visible; }
.page-hero__mark path { stroke: currentColor; stroke-width: 0; }
.page-hero__portrait { justify-self: center; width: min(78vw, 360px); }
.portrait--hero {
	display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--white);
	border: 3px solid var(--ink); border-radius: 180px 180px 28px 28px; box-shadow: 10px 10px 0 var(--ink);
}
.portrait--hero .portrait__monogram { background: var(--white); color: var(--pink-ink); font-size: 5rem; }

.page-body { padding: 56px 0 80px; }
@media (min-width: 1100px) { .page-body { padding: 80px 0 110px; } }
/* Sotto la fascia del titolo il contenuto parte subito: stesso stacco su ogni pagina. */
.page-hero + .page-body, .page-hero + .section { padding-top: 32px; }
@media (min-width: 1100px) { .page-hero + .page-body, .page-hero + .section { padding-top: 48px; } }
.page-body--outro { padding: 0 0 80px; background: var(--lilac); }
.entry-content.outro { max-width: none; margin: 0 auto; padding: 26px 30px; border: var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--pop); text-align: center; font: 700 1.375rem/1.35 var(--font-display); }
.entry-content.outro p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Testo scritto dal cliente
   -------------------------------------------------------------------------- */
.entry-content { max-width: 72ch; font-size: 1.125rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 2rem; margin: 1.6em 0 0.5em; }
.entry-content h3 { font-size: 1.5rem; margin: 1.5em 0 0.4em; }
.entry-content h4 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.entry-content ul > li { position: relative; padding-left: 1.5em; margin: 0.35em 0; }
.entry-content ul > li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--ink); }
.entry-content ol { counter-reset: n; }
.entry-content ol > li { counter-increment: n; position: relative; padding-left: 2em; margin: 0.4em 0; }
.entry-content ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 0.8em; font-weight: 700; }
.entry-content img { border-radius: 16px; }
.entry-content a img { transition: transform 0.6s var(--ease-out); }
.entry-content figure { margin: 1.6em 0; }
.entry-content .wide { max-width: none; }
.entry-content .wide img, .entry-content .wp-caption img { border: var(--line); box-shadow: var(--pop); }
.entry-content .affiancate { display: flex; align-items: flex-start; gap: 12px; }
@media (min-width: 700px) { .entry-content .affiancate { gap: 22px; } }
.entry-content .affiancate a { flex: 1 1 0; min-width: 0; }
.entry-content .affiancate img { display: block; width: 100%; height: auto; }
.entry-content .emblema img { max-width: 420px; margin-inline: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; border: var(--line); border-radius: 20px; background: var(--yellow-soft); font-size: 1.1875rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 1rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--hair); text-align: left; }
.entry-content a[href$=".pdf"] { font-weight: 600; }
.entry-content .avviso-vuoto { padding: 22px 24px; border: var(--line); border-radius: 22px; background: var(--lilac); font-size: 1.1875rem; }
.entry-content .telefoni { display: flex; flex-wrap: wrap; gap: 14px; margin: 1em 0 1.4em; }
.entry-content .telefoni > li { padding: 0; margin: 0; }
.entry-content .telefoni > li::before { display: none; }
.entry-content .telefoni a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 24px;
	border: var(--line); border-radius: 999px; background: var(--violet); color: var(--white);
	box-shadow: var(--pop-sm); text-decoration: none; font: 700 1.375rem/1 var(--font-display);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.entry-content .telefoni a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.entry-content .telefoni li:nth-child(2) a { background: var(--yellow); color: var(--ink); }

/* Gallerie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 2em 0; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.gallery .gallery-item { margin: 0; }
.gallery .gallery-icon a { display: block; border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--pop-sm); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.gallery .gallery-icon a:hover { transform: translate(-2px, -2px) rotate(-0.6deg); box-shadow: 6px 6px 0 var(--ink); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 0; transition: transform 0.9s var(--ease-out); }
.gallery .gallery-icon a:hover img { transform: scale(1.06); }
.gallery .gallery-caption { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Le nostre attivita': filtro e corsi
   -------------------------------------------------------------------------- */
.courses__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
@media (min-width: 900px) { .courses__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.filter__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
	border: var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
	font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
	transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.25s var(--ease-fade), color 0.25s var(--ease-fade);
}
.filter__btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.filter__btn[aria-pressed="true"] { background: var(--tone, var(--ink)); color: var(--on-tone, var(--white)); }
.filter__btn:not(.tone-violet):not(.tone-pink):not(.tone-yellow):not(.tone-teal)[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 0.8125rem; font-weight: 700; }
.filter__btn[aria-pressed="true"] .filter__count { background: var(--white); color: var(--ink); }

.course-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.course {
	display: flex; flex-direction: column;
	background: var(--white); border: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--pop);
	transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.course:hover { translate: -3px -3px; box-shadow: 9px 9px 0 var(--ink); }
.course[hidden] { display: none; }
.course__art { display: grid; place-items: center; height: 190px; background: var(--tone); color: var(--on-tone); border-bottom: var(--line); }
.course__icon { width: 62%; height: 84%; --bpm: 110; --meter: 4; }
.course__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.course__aud { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.course__title { font-size: 1.625rem; }
.course__text { color: var(--ink-2); font-size: 1.03125rem; line-height: 1.6; }
.course__text p { margin: 0 0 0.6em; }
.course .link-arrow { margin-top: auto; align-self: flex-start; }
/* L'ultimo corso rimasto da solo in fondo alla griglia si allarga e si mette di lato.
   Si contano solo le schede visibili ("of"), cosi' vale anche dopo un filtro. */
@media (min-width: 700px) and (max-width: 1099px) {
	.course:nth-last-child(1 of .course:not([hidden])):nth-child(2n + 1 of .course:not([hidden])) { grid-column: 1 / -1; flex-direction: row; }
	.course:nth-last-child(1 of .course:not([hidden])):nth-child(2n + 1 of .course:not([hidden])) .course__art { height: auto; flex: 0 0 34%; border-bottom: 0; border-right: var(--line); }
}
@media (min-width: 1100px) {
	.course:nth-last-child(1 of .course:not([hidden])):nth-child(3n + 1 of .course:not([hidden])) { grid-column: 1 / -1; flex-direction: row; }
	.course:nth-last-child(1 of .course:not([hidden])):nth-child(3n + 1 of .course:not([hidden])) .course__art { height: auto; flex: 0 0 32%; border-bottom: 0; border-right: var(--line); }
	.course:nth-last-child(1 of .course:not([hidden])):nth-child(3n + 1 of .course:not([hidden])) .course__body { justify-content: center; padding: 28px 34px; }
}

.extras { margin-top: 56px; padding: 28px; border: var(--line); border-radius: var(--radius-lg); background: var(--yellow); box-shadow: var(--pop); }
.extras__title { font-size: 1.75rem; margin-bottom: 16px; }
.extras__list { list-style: none; display: grid; gap: 10px 28px; }
@media (min-width: 700px) { .extras__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.extras__item { display: flex; align-items: flex-start; gap: 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.extras__item .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--ink); }

/* --------------------------------------------------------------------------
   I balli
   -------------------------------------------------------------------------- */
.family-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 48px; }
.family + .family { margin-top: 72px; }
.family__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.family__title { font-size: 2rem; color: var(--tone-ink); }
@media (min-width: 1100px) { .family__title { font-size: 2.5rem; } }

.dance-grid { display: grid; gap: 22px; }
/* Sul telefono ogni famiglia e' una fila da scorrere col dito: la scheda dopo si vede gia' sul bordo */
@media (max-width: 599px) {
	.dance-grid {
		display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 14px; scroll-padding-inline: var(--pad);
		scrollbar-width: none;
	}
	.dance-grid::-webkit-scrollbar { display: none; }
	.dance-grid > .dance { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }
	.dance-grid > .dance:only-child { flex-basis: 100%; }
}
@media (min-width: 600px) { .dance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .dance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .dance-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.dance {
	display: flex; flex-direction: column;
	background: var(--white); border: var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--pop-sm);
	transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.dance:hover { transform: translate(-2px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.dance__stage { position: relative; display: grid; place-items: center; height: 168px; background: var(--tone); color: var(--on-tone); border-bottom: var(--line); }
.dance__stage .dance__icon { width: 78%; height: 80%; }
.dance__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.dance__name { font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   Icone che ballano. Ogni ballo ha il suo movimento, alla velocita' vera della sua musica:
   --bpm (tempi al minuto) e --meter (tempi per battuta) arrivano dalla scheda.
   Si muovono solo con .is-playing (alcune battute quando entrano in vista, poi al passaggio del
   mouse). La posa di riposo e' 0% = 100%: fermarsi a fine giro non scatta.
   -------------------------------------------------------------------------- */
.dance__icon, .page-hero__icon, .places__icon, .invite__icon, .course__icon, .aud__icon {
	--beat: calc(60s / var(--bpm, 100));
	--bar: calc(var(--beat) * var(--meter, 4));
	transform-origin: 50% 92%;
	animation-timing-function: var(--ease-dance);
	animation-iteration-count: infinite;
	animation-fill-mode: both;
	animation-play-state: running;
}
.is-playing.move-valzer { animation-name: ed-valzer; animation-duration: calc(var(--bar) * 2); }
.is-playing.move-giro { animation-name: ed-giro; animation-duration: calc(var(--bar) * 2); animation-timing-function: linear; }
.is-playing.move-tango { animation-name: ed-tango; animation-duration: calc(var(--bar) * 2); animation-timing-function: var(--ease-snap); }
.is-playing.move-scivolo { animation-name: ed-scivolo; animation-duration: calc(var(--bar) * 2); }
.is-playing.move-salto { animation-name: ed-salto; animation-duration: var(--bar); }
.is-playing.move-rimbalzo { animation-name: ed-rimbalzo; animation-duration: var(--bar); }
.is-playing.move-chacha { animation-name: ed-chacha; animation-duration: var(--bar); animation-timing-function: var(--ease-snap); }
.is-playing.move-onda { animation-name: ed-onda; animation-duration: calc(var(--bar) * 2); }
.is-playing.move-marcia { animation-name: ed-marcia; animation-duration: var(--bar); animation-timing-function: var(--ease-snap); }
.is-playing.move-calcio { animation-name: ed-calcio; animation-duration: var(--bar); }
.is-playing.move-saltello { animation-name: ed-saltello; animation-duration: var(--bar); }
.is-playing.move-gruppo { animation-name: ed-gruppo; animation-duration: var(--bar); }

@keyframes ed-valzer {
	0%, 100% { transform: translateY(0) rotate(0); }
	16.7% { transform: translateY(-4%) rotate(-3deg); }
	33.3% { transform: translateY(-7%) rotate(-4deg); }
	50% { transform: translateY(0) rotate(0); }
	66.7% { transform: translateY(-4%) rotate(3deg); }
	83.3% { transform: translateY(-7%) rotate(4deg); }
}
@keyframes ed-giro {
	0% { transform: perspective(700px) rotateY(0) translateY(0); }
	25% { transform: perspective(700px) rotateY(90deg) translateY(-3%); }
	50% { transform: perspective(700px) rotateY(180deg) translateY(0); }
	75% { transform: perspective(700px) rotateY(270deg) translateY(-3%); }
	100% { transform: perspective(700px) rotateY(360deg) translateY(0); }
}
@keyframes ed-tango {
	0%, 18%, 100% { transform: translateX(0) rotate(0); }
	25%, 43% { transform: translateX(5%) rotate(-3deg); }
	50%, 56% { transform: translateX(8%) rotate(2deg); }
	62%, 68% { transform: translateX(3%) rotate(-2deg); }
	75%, 93% { transform: translateX(0) rotate(0); }
}
@keyframes ed-scivolo {
	0%, 50%, 100% { transform: translateX(0) translateY(0) rotate(0); }
	25% { transform: translateX(6%) translateY(-3%) rotate(1.5deg); }
	75% { transform: translateX(-6%) translateY(-3%) rotate(-1.5deg); }
}
@keyframes ed-salto {
	0%, 30%, 50%, 80%, 100% { transform: translateY(0) rotate(0); }
	15% { transform: translateY(-10%) rotate(-2deg); }
	65% { transform: translateY(-10%) rotate(2deg); }
}
@keyframes ed-rimbalzo {
	0%, 50%, 100% { transform: translateY(0) rotate(0); }
	25% { transform: translateY(-6%) rotate(-2.5deg); }
	75% { transform: translateY(-6%) rotate(2.5deg); }
}
@keyframes ed-chacha {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4%); }
	50% { transform: translateX(4%); }
	62.5% { transform: translateX(-2%); }
	75% { transform: translateX(1.5%); }
	87.5% { transform: translateX(-1%); }
}
@keyframes ed-onda {
	0%, 50%, 100% { transform: translateX(0) rotate(0); }
	25% { transform: translateX(-2.5%) rotate(-4deg); }
	75% { transform: translateX(2.5%) rotate(4deg); }
}
@keyframes ed-marcia {
	0%, 25%, 50%, 75%, 100% { transform: translateY(0) scale(1) rotate(0); }
	10% { transform: translateY(-3%) scale(1.04) rotate(0); }
	60% { transform: translateY(-3%) scale(1.04) rotate(-1.5deg); }
}
@keyframes ed-calcio {
	0%, 25%, 50%, 75%, 100% { transform: translateY(0) rotate(0); }
	12% { transform: translateY(-9%) rotate(-5deg); }
	37% { transform: translateY(-4%) rotate(3deg); }
	62% { transform: translateY(-9%) rotate(5deg); }
	87% { transform: translateY(-4%) rotate(-3deg); }
}
@keyframes ed-saltello {
	0%, 40%, 90%, 100% { transform: translateY(0) rotate(0); }
	20% { transform: translateY(-8%) rotate(-3deg); }
	70% { transform: translateY(-8%) rotate(3deg); }
}
@keyframes ed-gruppo {
	0%, 50%, 100% { transform: translateY(0) skewX(0); }
	25% { transform: translateY(-4%) skewX(-3deg); }
	75% { transform: translateY(-4%) skewX(3deg); }
}

/* --------------------------------------------------------------------------
   Visore foto
   -------------------------------------------------------------------------- */
.lightbox {
	position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
	background: rgb(26 18 64 / 0.94); color: var(--white);
	opacity: 0; transition: opacity 0.22s var(--ease-fade);
}
.lightbox.is-open { opacity: 1; transition-duration: 0.35s; }
.lightbox[hidden] { display: none; }
.lightbox__stage { flex: 1; display: grid; place-items: center; padding: 64px 16px 8px; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; border-radius: 14px; border: 3px solid var(--white); opacity: 0; transform: scale(0.97); transition: opacity 0.18s var(--ease-fade), transform 0.18s var(--ease-in); }
.lightbox__img.is-ready { opacity: 1; transform: none; transition: opacity 0.35s var(--ease-fade), transform 0.5s var(--ease-out); }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.lightbox__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--white); border-radius: 50%; background: rgb(255 255 255 / 0.08); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lightbox__btn[hidden] { visibility: hidden; display: grid; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__count { min-width: 64px; text-align: center; font-weight: 600; }

/* --------------------------------------------------------------------------
   Comparse: nascoste solo se il motore di animazione e' in arrivo (classe "motion" sull'html)
   -------------------------------------------------------------------------- */
html.motion [data-reveal], html.motion [data-reveal-group] > *, html.motion [data-split],
html.motion [data-hero-item], html.motion [data-hero-title], html.motion [data-hero-stage],
html.motion .course, html.motion .dance { visibility: hidden; }

/* Passaggio fra le pagine (browser che lo supportano).
   La pagina vecchia esce SOPRA la nuova, che sta sotto piena e ferma: niente doppia esposizione, e
   l'apertura della nuova (titolo che sale, testo, figura) si vede tutta. Con la dissolvenza incrociata
   la salita del titolo si consumava sotto la pagina ancora trasparente e il titolo compariva gia' al
   suo posto, senza effetto. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: testata; }
/* Ogni gruppo dura quanto l'uscita (la testata porta con se' il menu del telefono aperto): il passaggio
   finisce a 0,15 s e l'apertura parte da li'. Col valore predefinito (0,25 s) il titolo arrivava tardi. */
::view-transition-group(*) { animation-duration: 0.15s; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; animation: 0.15s var(--ease-in) both ed-vt-out; }
::view-transition-new(root) { animation: none; }
@keyframes ed-vt-out { to { opacity: 0; transform: translateY(-14px); } }
/* Si lascia la pagina dal menu del telefono (classe messa da site.js su "pageswap"): sotto il menu resta
   solo il suo viola, cosi' mentre il menu si scioglie nella pagina nuova quella vecchia non riaffiora. */
html.leaving, html.leaving body { background: var(--violet); }
html.leaving body > :not(.site-header) { visibility: hidden; }
/* Toccata una voce che porta altrove, il menu resta aperto fino alla pagina nuova: quella voce resta
   accesa e le altre si spengono, cosi' il tocco si vede anche con un server lento. */
.site-nav a { -webkit-tap-highlight-color: transparent; }
.site-nav.is-going a { transition: opacity 0.3s var(--ease-fade); }
.site-nav.is-going a:not(.is-chosen) { opacity: 0.3; }
.site-nav.is-going .is-chosen { color: var(--yellow); }
/* Ritorno dalla cache del browser: il menu si chiude senza la sua uscita (site.js, "pageshow") */
html.menu-instant .site-nav, html.menu-instant .site-nav * { transition: none !important; }

/* --------------------------------------------------------------------------
   Movimento ridotto: stesso stato finale, subito
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.is-playing { animation: none !important; }
	.season__paper { transform: rotate(-3deg); }
}

@media print {
	.site-header, .action-bar, .invite, .nav-toggle, .lightbox { display: none !important; }
	.site-main { padding-top: 0; }
	html.motion [data-reveal], html.motion [data-reveal-group] > *, html.motion [data-split], html.motion [data-hero-item], html.motion [data-hero-title], html.motion [data-hero-stage], html.motion .course, html.motion .dance { visibility: visible; }
}
