/* ==========================================================================
   Studio Ghibli 2026
   1. Variabili  2. Base  3. Tipografia  4. Elementi comuni  5. Intestazione
   6. Apertura homepage  7. Sezioni homepage  8. Film  9. Pagine interne
   10. Notizie  11. Moduli  12. Piè di pagina  13. Galleria a schermo intero
   14. Movimento
   ========================================================================== */

/* 1. Variabili ------------------------------------------------------------ */
:root {
	--paper: #f7f5ef;
	--paper-2: #efebe1;
	--surface: #ffffff;
	--ink: #15232a;
	--ink-2: #3d4d54;
	--ink-3: #5f6e75;
	--line: rgba(21, 35, 42, .12);
	--line-strong: rgba(21, 35, 42, .22);
	--sky: #2a8bc4;
	--sky-deep: #1b6c9c;
	--sky-tint: #e4f1f8;
	--sun: #d99a2b;
	--sand: #b3966a;
	--leaf: #5f9462;
	--coral: #e2725b;
	--tone: var(--sky);

	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

	--fs-display: clamp(2.75rem, 1.6rem + 5.6vw, 6.25rem);
	--fs-h1: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
	--fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
	--fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
	--fs-lead: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
	--fs-body: 1.0625rem;
	--fs-small: .875rem;
	--fs-kicker: .75rem;

	--gutter: clamp(1.25rem, .4rem + 4.2vw, 4rem);
	--container: 82.5rem;
	--section: clamp(4.5rem, 2.5rem + 8vw, 9rem);
	--inset: clamp(.5rem, .2rem + .8vw, .875rem);
	--header-h: 5.5rem;

	--r-s: .75rem;
	--r-m: 1.125rem;
	--r-l: 1.75rem;
	--shadow-s: 0 1px 2px rgba(21, 35, 42, .06), 0 6px 18px rgba(21, 35, 42, .06);
	--shadow-m: 0 2px 4px rgba(21, 35, 42, .06), 0 18px 44px rgba(21, 35, 42, .14);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

.tone-sky { --tone: var(--sky); }
.tone-sun { --tone: var(--sun); }
.tone-sand { --tone: var(--sand); }
.tone-leaf { --tone: var(--leaf); }
.tone-coral { --tone: var(--coral); }

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 4.5rem); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed; top: .75rem; left: .75rem; z-index: 200;
	padding: .75rem 1.25rem;
	border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + var(--gutter) * 2); }
.narrow-left { max-width: 46rem; margin-bottom: 3rem; }
.center { text-align: center; }
.site-main { display: block; min-height: 60vh; }
body:not(.has-hero) .site-main { padding-top: var(--header-h); }

/* 3. Tipografia ----------------------------------------------------------- */
.display, .h1, .h2, .h3, .page-title, .hero-title, .slide-title, .article-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-optical-sizing: auto;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1; letter-spacing: -.03em; }
.display em { font-style: italic; color: var(--sky-deep); }
.h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.18; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.lead p + p { margin-top: 1em; }
.jp { font-family: var(--font-jp); color: var(--ink-3); letter-spacing: .08em; }

.kicker {
	display: flex; align-items: center; gap: .75rem;
	margin-bottom: 1.25rem;
	font-size: var(--fs-kicker);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sky-deep);
}
.kicker::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.kicker a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; transition: text-decoration-color .2s; }
.kicker a:hover { text-decoration-color: currentColor; }
.kicker--light { color: rgba(255, 255, 255, .86); }
.center .kicker { justify-content: center; }

.prose { color: var(--ink-2); text-wrap: pretty; }
.prose > * + * { margin-top: 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin-top: 2em; text-wrap: balance; }
.prose h1, .prose h2 { font-size: var(--fs-h2); }
.prose h3, .prose h4 { font-size: var(--fs-h3); }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--sky-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s; }
.prose a:hover { color: var(--ink); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sky); }
.prose blockquote { padding-left: 1.5rem; border-left: 2px solid var(--sky); font-family: var(--font-display); font-size: 1.25em; font-style: italic; line-height: 1.45; color: var(--ink); }
.prose img, .prose video { border-radius: var(--r-m); }
.prose figure { margin-block: 2em; }
.prose figcaption, .prose .wp-caption-text { margin-top: .75rem; font-size: var(--fs-small); color: var(--ink-3); }
.prose .wp-caption { max-width: 100%; }
.prose .alignleft { float: left; margin: .4em 1.75em 1em 0; max-width: 46%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.75em; max-width: 46%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: block; clear: both; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.prose--lead > p:first-of-type { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.prose--article { font-size: 1.125rem; line-height: 1.75; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--ink); margin-block: 2em; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { max-width: 100%; }

/* 4. Elementi comuni ------------------------------------------------------- */
.img { width: 100%; height: 100%; object-fit: cover; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
	min-height: 3.25rem;
	padding: .85rem 1.6rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover .icon-arrow-up-right { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--sky-deep); box-shadow: 0 10px 26px rgba(27, 108, 156, .28); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.btn--small { min-height: 2.75rem; padding: .6rem 1.25rem; font-size: .9375rem; }

.text-link {
	display: inline-flex; align-items: center; gap: .5rem;
	padding-block: .25rem;
	font-weight: 600;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size .35s var(--ease), color .2s;
}
.text-link .icon { transition: transform .3s var(--ease); }
a.text-link:hover, a:hover > * .text-link, .post-card-link:hover .text-link { color: var(--sky-deep); }
a.text-link:hover .icon, .post-card-link:hover .text-link .icon { transform: translateX(4px); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 2.875rem; height: 2.875rem;
	border-radius: 50%;
	color: inherit;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(21, 35, 42, .07); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--line { border: 1px solid var(--line-strong); }
.icon-btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.icon-btn--line:disabled { opacity: .35; pointer-events: none; }
.icon-btn--glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.icon-btn--glass:hover { background: rgba(255, 255, 255, .28); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
	display: inline-flex; align-items: center; gap: .5rem;
	min-height: 2.75rem;
	padding: .5rem 1.1rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
a.chip:hover, button.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { font-size: .8125rem; opacity: .55; font-variant-numeric: tabular-nums; }
.chip-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone); }
.chip--small { min-height: 2.125rem; padding: .3rem .85rem; font-size: .8125rem; }
.chips--glass .chip { min-height: 2rem; padding: .3rem .9rem; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #fff; font-size: .8125rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.tag { display: inline-block; font-size: var(--fs-kicker); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-deep); }
.sep { display: inline-block; width: .25rem; height: .25rem; margin-inline: .75rem; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }

.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--paper-2); }
.section--tint + .section--flush-top, .section--ink + .section--flush-top { padding-top: var(--section); }
.section--ink { margin-inline: var(--inset); border-radius: var(--r-l); background: var(--ink); color: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 1rem + 3.4vw, 4rem); }
.section-head .kicker { margin-bottom: 1rem; }
.section-actions { display: flex; align-items: center; gap: 1.5rem; }
.section-note { color: var(--ink-3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.section-label { margin-bottom: 1.5rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sort-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding-inline: .5rem; font-weight: 600; font-size: .9375rem; }
.sort-btn .icon { transition: transform .35s var(--ease); }
.sort-btn[aria-pressed="true"] .icon { transform: rotate(180deg); }

.pagination { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.pagination ul { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 2.875rem; height: 2.875rem; padding-inline: .75rem;
	border: 1px solid transparent; border-radius: 999px;
	font-weight: 600; font-variant-numeric: tabular-nums;
	transition: background-color .2s, border-color .2s, color .2s;
}
.pagination a.page-numbers:hover { border-color: var(--line-strong); }
.pagination .current { background: var(--ink); color: var(--paper); }
.pagination .dots { min-width: 1.5rem; padding: 0; color: var(--ink-3); }

.empty { padding-block: 3rem; }
.empty > * + * { margin-top: 1rem; }
.empty .btn { margin-top: 1rem; }

/* 5. Intestazione ---------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 60;
	height: var(--header-h);
	color: var(--ink);
	transition: background-color .35s var(--ease), color .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease);
	view-transition-name: site-header;
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(247, 245, 239, .82);
	backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transition: opacity .35s var(--ease);
}
.has-hero .site-header:not(.is-scrolled) { --header-h: 6.75rem; }
.site-header.is-scrolled { --header-h: 4.5rem; }
.site-header.is-scrolled::before, body:not(.has-hero) .site-header::before { opacity: 1; }
body:not(.has-hero) .site-header:not(.is-scrolled)::before { border-bottom-color: transparent; background: var(--paper); }
.has-hero .site-header:not(.is-scrolled) { color: #fff; }
.site-header-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 1.5rem; height: 100%; }
.has-hero .site-header:not(.is-scrolled) .site-header-inner { padding-inline: calc(var(--gutter) + var(--inset)); }

.brand { display: inline-flex; align-items: baseline; gap: .75rem; justify-self: start; }
.brand-name { font-family: var(--font-display); font-size: 1.5625rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.brand-jp { font-family: var(--font-jp); font-size: .6875rem; letter-spacing: .22em; opacity: .7; }

.site-nav .menu {
	display: flex; align-items: center; gap: .125rem;
	padding: .3125rem;
	border: 1px solid transparent; border-radius: 999px;
	background: rgba(21, 35, 42, .09);
	transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-nav a {
	display: inline-flex; align-items: center;
	min-height: 2.5rem; padding-inline: clamp(.875rem, .1rem + 1.2vw, 1.25rem);
	border-radius: 999px;
	font-size: .9375rem; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
.site-nav a:hover { background: rgba(21, 35, 42, .08); }
.site-nav .current-menu-item > a, .site-nav .is-current > a { background: var(--ink); color: var(--paper); }
.has-hero .site-header:not(.is-scrolled) .site-nav .menu { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .3); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); }
.has-hero .site-header:not(.is-scrolled) .site-nav a:hover { background: rgba(255, 255, 255, .18); }
.has-hero .site-header:not(.is-scrolled) .site-nav .current-menu-item > a, .has-hero .site-header:not(.is-scrolled) .site-nav .is-current > a { background: #fff; color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: .25rem; justify-self: end; margin-right: -.5rem; }
.has-hero .site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, .16); }

.burger { position: relative; width: 2.875rem; height: 2.875rem; border-radius: 50%; display: none; }
.burger span { position: absolute; left: .8rem; right: .8rem; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 1.15rem; }
.burger span:last-child { top: 1.6rem; }

@media (max-width: 61.99em) {
	.site-nav { display: none; }
	.burger { display: block; }
	.site-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 74.99em) {
	.brand-jp { display: none; }
}

/* Pannelli a tutto schermo: menu e ricerca */
.overlay {
	position: fixed; inset: 0; z-index: 80;
	display: flex; flex-direction: column;
	background: var(--paper);
	overflow-y: auto; overscroll-behavior: contain;
	clip-path: circle(0 at calc(100% - 3rem) 2.4rem);
	transition: clip-path .7s var(--ease-in-out);
}
.overlay.is-open { clip-path: circle(150vmax at calc(100% - 3rem) 2.4rem); }
.overlay-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3rem; padding-block: 6rem 3rem; }
.overlay-close { position: absolute; top: .95rem; right: calc(var(--gutter) - .5rem); }
.menu-big { display: grid; gap: .25rem; }
.menu-big a {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 1.2rem + 6.4vw, 4.75rem);
	line-height: 1.12; letter-spacing: -.03em;
	transition: color .25s, transform .4s var(--ease);
}
.menu-big a:hover { color: var(--sky-deep); transform: translateX(.75rem); }
.menu-big li { opacity: 0; transform: translateY(1.5rem); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.overlay.is-open .menu-big li { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .05s); }
.overlay-foot { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.social { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.social:hover { color: var(--sky-deep); }

.search-form { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); }
.search-form input {
	flex: 1; min-width: 0;
	padding: 1rem 0;
	border: 0; background: none; outline: 0;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1rem + 3vw, 3.25rem);
	letter-spacing: -.02em;
	color: var(--ink);
}
.search-form input::placeholder { color: var(--ink-3); opacity: .6; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-hint { color: var(--ink-3); font-size: var(--fs-small); margin-top: -1.5rem; }
.search-inline {
	display: flex; align-items: center; gap: .75rem;
	max-width: 36rem; margin-bottom: 3rem;
	padding: .4rem .4rem .4rem 1.25rem;
	border: 1px solid var(--line-strong); border-radius: 999px;
	background: var(--surface);
	transition: border-color .2s, box-shadow .2s;
}
.search-inline:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(42, 139, 196, .16); }
.search-inline input { flex: 1; min-width: 0; padding: .6rem 0; border: 0; background: none; outline: 0; font: inherit; color: inherit; }
.search-inline .icon { color: var(--ink-3); flex: 0 0 auto; }
.center .search-inline { margin-inline: auto; margin-top: 2rem; text-align: left; }

/* 6. Apertura homepage ----------------------------------------------------- */
.stage, .hero {
	position: relative;
	margin: var(--inset);
	border-radius: var(--r-l);
	overflow: hidden;
	isolation: isolate;
	background: var(--ink);
	color: #fff;
}
.stage { height: calc(100svh - var(--inset) * 2); min-height: 36rem; max-height: 62rem; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.slide-media, .hero-media { position: absolute; inset: 0; z-index: -2; }
.slide-media .img { transform: scale(1.08); transition: transform 9s linear; }
.slide.is-active .slide-media .img { transform: scale(1); }
.slide-shade, .hero-shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to right, rgba(9, 18, 23, .62) 0%, rgba(9, 18, 23, .28) 38%, rgba(9, 18, 23, 0) 66%),
		linear-gradient(to bottom, rgba(9, 18, 23, .5) 0%, rgba(9, 18, 23, 0) 22%),
		linear-gradient(to top, rgba(9, 18, 23, .9) 0%, rgba(9, 18, 23, .62) 30%, rgba(9, 18, 23, .18) 62%, rgba(9, 18, 23, 0) 80%);
}
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slide-link:hover ~ .slide-body .btn--light { background: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.slide-link:hover ~ .slide-body .btn .icon { transform: translateX(4px); }
.slide-link:hover ~ .slide-body .btn .icon-arrow-up-right { transform: translate(3px, -3px); }
.slide-body { padding-bottom: clamp(5.5rem, 4.9rem + 2vw, 6.75rem); }
.slide-body > * { max-width: 50rem; opacity: 0; transform: translateY(1.75rem); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.slide.is-active .slide-body > * { opacity: 1; transform: none; }
.slide.is-active .slide-body > :nth-child(1) { transition-delay: .25s; }
.slide.is-active .slide-body > :nth-child(2) { transition-delay: .35s; }
.slide.is-active .slide-body > :nth-child(3) { transition-delay: .45s; }
.slide.is-active .slide-body > :nth-child(4) { transition-delay: .55s; }
.slide-title { max-width: 21ch; font-size: clamp(1.875rem, 1.3rem + 2.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; margin-top: 1.25rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .08em; }
.slide-body > .slide-title:first-child { margin-top: 0; }
.slide-text { max-width: 36rem; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.slide .btn { margin-top: 1.75rem; }

.stage-nav { position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.stage-dots { display: flex; gap: clamp(.5rem, .2rem + 1vw, 1.25rem); }
.stage-dot { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; color: rgba(255, 255, 255, .6); transition: color .3s; }
.stage-dot:hover, .stage-dot.is-active { color: #fff; }
.stage-dot-num { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.stage-dot-bar { position: relative; width: clamp(1.25rem, .2rem + 3.4vw, 4rem); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; transition: width .5s var(--ease); }
.stage-dot.is-active .stage-dot-bar { width: clamp(2.5rem, 1rem + 6vw, 7rem); }
.stage-dot-bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.stage-dot.is-active .stage-dot-bar i { animation: sg-progress var(--slide-time, 7s) linear forwards; }
.stage.is-paused .stage-dot.is-active .stage-dot-bar i { animation-play-state: paused; }
@keyframes sg-progress { to { transform: scaleX(1); } }
.stage-arrows { display: flex; gap: .5rem; }
.pause-icon { width: .75rem; height: .875rem; border-inline: 3px solid currentColor; transition: all .2s; }
[aria-pressed="true"] > .pause-icon { width: 0; height: 0; border-block: .45rem solid transparent; border-left: .75rem solid currentColor; border-right: 0; margin-left: .2rem; }

/* Testata delle pagine interne */
.hero { display: flex; align-items: flex-end; min-height: clamp(24rem, 15rem + 26vw, 36rem); }
.hero--tall { min-height: clamp(26rem, 16rem + 32vw, 41rem); }
.hero-media { overflow: hidden; }
.hero-img { width: 100%; height: 112%; object-fit: cover; object-position: center 30%; }
.hero-inner { padding-block: clamp(6.5rem, 5rem + 6vw, 9rem) clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }
.hero-jp { font-family: var(--font-jp); font-size: clamp(1rem, .9rem + .5vw, 1.375rem); letter-spacing: .14em; color: rgba(255, 255, 255, .82); margin-bottom: .75rem; }
.hero-title { font-size: clamp(2.5rem, 1.5rem + 5vw, 5.75rem); line-height: 1; letter-spacing: -.03em; max-width: 18ch; }
.hero-meta { margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 500; color: rgba(255, 255, 255, .88); }
.hero-meta a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .25em; transition: text-decoration-color .2s; }
.hero-meta a:hover { text-decoration-color: #fff; }
.hero-inner > * { animation: sg-rise 1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; }
@keyframes sg-rise { from { opacity: 0; transform: translateY(1.75rem); } }

/* Ingresso delle testate: il riquadro sale, poi l'immagine sfuma quando è pronta */
.stage, .hero { animation: sg-hero-in .9s var(--ease) both; }
@keyframes sg-hero-in { from { opacity: 0; transform: translateY(1rem) scale(.985); } }
.js .hero-media, .js .slide.is-active .slide-media { transition: opacity 1.2s var(--ease), transform 1.8s var(--ease); }
.js .hero:not(.is-ready) .hero-media, .js .stage:not(.is-ready) .slide-media { opacity: 0; transform: scale(1.05); }
.js .stage:not(.is-ready) .slide.is-active .slide-body > * { opacity: 0; transform: translateY(1.75rem); }
.js .stage-nav { transition: opacity .9s var(--ease) .5s; }
.js .stage:not(.is-ready) .stage-nav { opacity: 0; }

.page-head { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.page-title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.page-title-jp { display: block; margin-top: 1rem; font-family: var(--font-jp); font-size: clamp(1rem, .9rem + .6vw, 1.5rem); letter-spacing: .14em; color: var(--ink-3); }
.page-lead { max-width: 38rem; margin-top: 1.75rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }

/* 7. Sezioni homepage ------------------------------------------------------ */
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 1rem + 5vw, 5rem) 2rem; }
.intro-head { grid-column: 1 / span 6; }
.intro-text { grid-column: 8 / -1; display: grid; gap: 2rem; align-content: start; justify-items: start; padding-top: .75rem; }
.intro-text .lead { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); line-height: 1.6; }

.rail-section { overflow: hidden; }
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; padding-block: 1rem 1.5rem; margin-block: -1rem -1.5rem; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-track { display: flex; gap: clamp(1rem, .5rem + 1.6vw, 2rem); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.rail .film-card { flex: 0 0 auto; width: clamp(10.5rem, 7rem + 12vw, 16.5rem); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.rail-arrows { display: flex; gap: .5rem; }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.news-list { display: grid; }
.news-list .post-card + .post-card { border-top: 1px solid var(--line); }

.directors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.25rem, .5rem + 2.4vw, 3rem); }
.director { display: grid; justify-items: center; gap: .35rem; text-align: center; }
.director-photo { position: relative; width: 100%; max-width: 12.5rem; aspect-ratio: 1; margin-bottom: 1rem; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 0 var(--tone); transition: box-shadow .45s var(--ease), transform .45s var(--ease); }
.director-photo .img { filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .7s var(--ease); }
.director:hover .director-photo { box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px var(--tone); transform: translateY(-4px); }
.director:hover .director-photo .img { filter: none; transform: scale(1.05); }
.director-name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; }
.director-count { font-size: var(--fs-small); color: rgba(247, 245, 239, .6); }

.story-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.story-teaser-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.story-teaser-head .lead { margin-top: 1.5rem; max-width: 26rem; }
.chapter-list { border-top: 1px solid var(--line); }
.chapter-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.35rem .25rem; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background-color .3s, color .3s; }
.chapter-row .icon { opacity: 0; transform: translateX(-.75rem); transition: opacity .3s, transform .4s var(--ease); }
.chapter-row:hover { padding-inline: 1.25rem; background: var(--surface); color: var(--sky-deep); }
.chapter-row:hover .icon { opacity: 1; transform: none; }
.chapter-num { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--ink-3); }
.chapter-name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; }

/* 8. Film ------------------------------------------------------------------ */
.film-card-link { display: block; }
.film-card-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--r-m);
	overflow: hidden;
	background: var(--paper-2);
	box-shadow: var(--shadow-s);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
	will-change: transform;
}
.film-card-poster .img { transition: transform .9s var(--ease); }
.film-card-link:hover .film-card-poster, .film-card-link:focus-visible .film-card-poster { --lift: -.4rem; box-shadow: var(--shadow-m); }
.film-card-link:hover .img { transform: scale(1.045); }
.film-card-poster.is-tilting { transition: box-shadow .5s var(--ease); }
.film-card-year {
	position: absolute; top: .75rem; left: .75rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: var(--tone); color: #fff;
	font-size: .75rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.film-card-title { margin-top: 1rem; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; text-wrap: balance; transition: color .25s; }
.film-card-link:hover .film-card-title { color: var(--sky-deep); }
.film-card-meta { margin-top: .25rem; font-size: var(--fs-small); color: var(--ink-3); }

.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 42%), 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1rem, .5rem + 1.8vw, 2rem); }
.film-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4rem; }
.film-card.is-hidden { display: none; }

.manga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, .5rem + 2.4vw, 2.5rem); }
.manga-card { display: block; border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-s); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.manga-card:hover { transform: translateY(-.4rem); box-shadow: var(--shadow-m); }
.manga-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.manga-card-media .img { transition: transform .9s var(--ease); }
.manga-card:hover .img { transform: scale(1.04); }
.manga-card-body { padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); display: grid; gap: .5rem; }

.subnav { position: sticky; top: 4.5rem; z-index: 40; background: rgba(247, 245, 239, .86); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: clamp(1.25rem, .5rem + 2vw, 2.5rem); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { position: relative; display: block; padding-block: 1.1rem; font-size: .9375rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .25s; }
.subnav a::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease); }
.subnav a:hover, .subnav a.is-active, .subnav a[aria-current] { color: var(--ink); }
.subnav a.is-active::after, .subnav a[aria-current]::after { transform: scaleX(1); }

.film-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.film-aside { position: sticky; top: calc(4.5rem + 5rem); display: grid; gap: 2rem; }
.film-poster { aspect-ratio: 2 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-m); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.film-poster.is-tilting { transition: none; }
.film-main { position: sticky; top: calc(4.5rem + 5rem); max-width: 44rem; padding-top: .5rem; }

.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.specs dt { flex: 0 0 auto; font-size: var(--fs-small); color: var(--ink-3); }
.specs dd { min-width: 0; text-align: right; font-weight: 500; overflow-wrap: break-word; }
.specs dd[lang="ja"] { font-family: var(--font-jp); }
.specs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.specs a:hover { color: var(--sky-deep); text-decoration-color: currentColor; }

.link-list { display: grid; gap: .5rem; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .75rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: background-color .25s, color .25s, border-color .25s; }
.link-list a span { display: inline-flex; align-items: center; gap: .6rem; }
.link-list a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.link-list .icon-arrow-up-right { transition: transform .3s var(--ease); }
.link-list a:hover .icon-arrow-up-right { transform: translate(3px, -3px); }

.characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(23rem, 100%), 1fr)); gap: clamp(1rem, .5rem + 1.4vw, 1.75rem); }
.character { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.5rem; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.character:hover { transform: translateY(-.25rem); box-shadow: var(--shadow-m); }
.character-photo { aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); }
.character-body { display: grid; gap: .5rem; padding-top: .15rem; }
.character-body .h3 { font-family: var(--font-display); font-size: 1.375rem; }
.character-body p { font-size: .9688rem; line-height: 1.6; color: var(--ink-2); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(1rem, .5rem + 1.6vw, 2rem); }
.video-card { display: grid; gap: 1rem; }
.video-card-media, .media-card-media, .post-card-media, .chapter-card-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); }
.video-card-media .img, .media-card-media .img, .post-card-media .img, .chapter-card-media .img { transition: transform .9s var(--ease); }
.video-card:hover .img, .media-card:hover .img, .post-card-link:hover .img, .chapter-card:hover .img { transform: scale(1.045); }
.video-card-media::after { content: ""; position: absolute; inset: 0; background: rgba(9, 18, 23, .22); transition: background-color .3s; }
.video-card:hover .video-card-media::after { background: rgba(9, 18, 23, .08); }
.play { position: absolute; inset: 0; z-index: 1; margin: auto; display: grid; place-items: center; width: 4rem; height: 4rem; padding-left: .2rem; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .4s var(--ease), background-color .25s, color .25s; }
.video-card:hover .play, .media-card:hover .play { transform: scale(1.1); background: var(--sky); color: #fff; }
.video-card-title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, .3rem + .6vw, 1rem); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-link { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-s); overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.gallery-item:first-child .gallery-link { aspect-ratio: auto; }
.gallery-link .img { transition: transform .9s var(--ease), filter .4s; }
.gallery-link:hover .img { transform: scale(1.05); }
.gallery-zoom { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.gallery-link:hover .gallery-zoom, .gallery-link:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.prose + .gallery, .story-body .gallery { margin-top: 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 1rem + 6vw, 7rem); align-items: start; }
.split .h1 { margin-bottom: 2rem; }
.split-side:only-child, .split-main:only-child { grid-column: 1 / -1; max-width: 46rem; }
.credits div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.credits div:first-child { border-top: 1px solid var(--line); }
.credits dt { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); padding-top: .15rem; }
.credits dd { font-weight: 500; line-height: 1.45; }

.clamp { position: relative; }
.clamp.is-clamped { max-height: 26rem; overflow: hidden; }
.clamp.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9rem; background: linear-gradient(to top, var(--paper-2), rgba(239, 235, 225, 0)); clear: none; }
.clamp-toggle { margin-top: 1.5rem; }
.clamp-toggle .icon { transition: transform .35s var(--ease); }
.clamp-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--inset); margin: var(--inset) var(--inset) clamp(3rem, 2rem + 4vw, 6rem); }
.pager-item { position: relative; display: flex; align-items: flex-end; min-height: clamp(14rem, 9rem + 16vw, 22rem); padding: clamp(1.5rem, 1rem + 2.4vw, 3.5rem); border-radius: var(--r-l); overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.pager-item--empty { background: var(--paper-2); }
.pager-item--next { justify-content: flex-end; text-align: right; }
.pager-media { position: absolute; inset: 0; z-index: -1; }
.pager-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 18, 23, .82), rgba(9, 18, 23, .28)); transition: background-color .4s; }
.pager-media .img { transition: transform 1.2s var(--ease); }
.pager-item:hover .img { transform: scale(1.06); }
.pager-body { display: grid; gap: .5rem; }
.pager-label { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-kicker); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pager-item--next .pager-label { justify-content: flex-end; }
.pager-title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.pager-year { font-variant-numeric: tabular-nums; opacity: .8; }

/* 9. Pagine interne -------------------------------------------------------- */
.bio { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.bio-photo { position: sticky; top: calc(4.5rem + 5rem); aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-m); }
.bio-text { max-width: 44rem; }

.story { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.story-nav { position: sticky; top: calc(var(--header-h) + 2rem); }
.story-nav ol { display: grid; margin-top: 1rem; border-top: 1px solid var(--line); }
.story-nav a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.4; color: var(--ink-3); transition: color .25s, padding .35s var(--ease); }
.story-nav a:hover { color: var(--ink); padding-left: .4rem; }
.story-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.story-nav a[aria-current] .chapter-num { color: var(--sky-deep); }
.story-body { max-width: 44rem; min-width: 0; }
.story-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.story-pager-link { display: grid; gap: .6rem; align-content: start; transition: color .25s; }
.story-pager-link:hover { color: var(--sky-deep); }
.story-pager-link--next { text-align: right; }
.story-pager-link--next .pager-label { justify-content: flex-end; }
.story-pager .pager-label { color: var(--ink-3); }
.story-pager .h3 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; }

.chapter-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1.25rem, .5rem + 2vw, 2.5rem); }
.chapter-card { display: grid; gap: 1.25rem; }
.chapter-card-body { display: grid; gap: .5rem; }
.chapter-card .h3 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; line-height: 1.15; transition: color .25s; }
.chapter-card:hover .h3 { color: var(--sky-deep); }
.chapter-card-excerpt { color: var(--ink-2); font-size: .9688rem; line-height: 1.6; }

.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.25rem, .5rem + 2vw, 2.5rem); }
.media-card { display: grid; gap: 1.1rem; }
.media-card-body { display: grid; gap: .4rem; }
.media-card .h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; transition: color .25s; }
.media-card:hover .h3 { color: var(--sky-deep); }

.progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--sky); transform: scaleX(var(--p, 0)); transform-origin: left; }

.notfound { text-align: center; }
.notfound-code { font-family: var(--font-display); font-size: clamp(6rem, 3rem + 16vw, 15rem); line-height: .9; letter-spacing: -.05em; color: var(--paper-2); -webkit-text-stroke: 1px var(--line-strong); }
.notfound .h1 { margin-top: -.25em; }
.notfound .lead { margin-top: 1.5rem; }

/* 10. Notizie -------------------------------------------------------------- */
.post-card-link { display: grid; gap: 1.25rem; }
.post-card-body { display: grid; gap: .65rem; align-content: start; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: var(--fs-small); color: var(--ink-3); }
.post-card-title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); font-weight: 400; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.post-card-title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.post-card-link:hover .post-card-title span { background-size: 100% 1px; }
.post-card-excerpt { color: var(--ink-2); max-width: 38rem; }
.post-card--feature .post-card-media { aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.news-grid .post-card--feature .post-card-title { font-size: var(--fs-h2); line-height: 1.14; }
.post-card--feature .post-card-title { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.14; letter-spacing: -.015em; }
.post-card--feature .text-link { justify-self: start; margin-top: .5rem; }
.post-card--row .post-card-link { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-block: 1.5rem; }
.post-card--row:first-child .post-card-link { padding-top: 0; }
.post-card--row .post-card-media { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.post-card--row .post-card-title { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(3rem, 2rem + 3vw, 4.5rem) clamp(1.25rem, .5rem + 2vw, 2.5rem); }
.post-grid .post-card--feature { grid-column: 1 / -1; padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.post-grid .post-card--feature .post-card-link { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }

.article-head { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); }
.article-title { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -.025em; }
.article-meta { margin-top: 1.75rem; font-size: var(--fs-small); color: var(--ink-3); }
.article-cover { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.article-cover .img { height: auto; max-height: 78vh; border-radius: var(--r-l); }
.article-body { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--section); }
.article-body .section-label { margin-top: 4rem; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.share-label { margin-right: .5rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink-3); }
.share-status { font-size: var(--fs-small); color: var(--leaf); font-weight: 600; }
.prose[data-zoomable] img { cursor: zoom-in; }

/* 11. Moduli --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.contact-intro { display: grid; gap: 2.5rem; }
.contact-form { padding: clamp(1.5rem, 1rem + 2.4vw, 3.5rem); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); }
.sg-form { display: grid; gap: 1.5rem; }
.sg-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.sg-field { display: grid; gap: .5rem; }
.sg-field label { font-size: var(--fs-small); font-weight: 600; }
.sg-optional { font-weight: 400; color: var(--ink-3); }
.sg-field input, .sg-field textarea {
	width: 100%;
	padding: .9rem 1.1rem;
	border: 1px solid var(--line-strong); border-radius: var(--r-s);
	background: var(--paper);
	font: inherit; color: inherit;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.sg-field textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.sg-field input:focus, .sg-field textarea:focus { outline: 0; border-color: var(--sky); background: var(--surface); box-shadow: 0 0 0 4px rgba(42, 139, 196, .16); }
.sg-field .is-invalid { border-color: var(--coral); }
.sg-field-error { font-size: var(--fs-small); color: #b8432c; }
.sg-check { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9375rem; color: var(--ink-2); }
.sg-check input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; accent-color: var(--ink); }
.sg-form-trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.sg-form-notice { padding: 1rem 1.25rem; border-radius: var(--r-s); font-weight: 500; }
.sg-form-notice--success { background: #e8f3e8; color: #2f5f33; }
.sg-form-notice--error { background: #fbeae6; color: #9a341f; }

/* 12. Piè di pagina -------------------------------------------------------- */
.site-footer { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem) 2rem; border-top: 1px solid var(--line); background: var(--paper); }
.footer-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 3rem 2rem; }
.footer-mark { font-family: var(--font-display); font-size: clamp(3rem, 1.6rem + 7.4vw, 7.5rem); line-height: .95; letter-spacing: -.04em; }
.footer-jp { margin-top: 1rem; font-family: var(--font-jp); letter-spacing: .3em; color: var(--ink-3); }
.footer-note { max-width: 26rem; margin-top: 1.75rem; color: var(--ink-2); }
.footer-title { margin-bottom: 1.25rem; font-size: var(--fs-kicker); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.footer-menu { display: grid; gap: .6rem; }
.footer-menu a { display: inline-flex; align-items: center; gap: .35rem; padding-block: .15rem; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.footer-menu a:hover { background-size: 100% 1px; color: var(--sky-deep); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(3rem, 2rem + 4vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-3); }
.footer-legal { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; }
.credit { display: inline-grid; place-items: center; min-width: 2rem; min-height: 2rem; margin-block: -.5rem; color: var(--ink-3); opacity: .7; transition: opacity .25s var(--ease), color .25s var(--ease), transform .35s var(--ease); }
.credit:hover { opacity: 1; color: var(--ink); transform: translateY(-1px); }
.credit-mark { display: block; width: 1.375rem; aspect-ratio: 795 / 637; background: currentColor; -webkit-mask: url("../img/dm.svg") center / contain no-repeat; mask: url("../img/dm.svg") center / contain no-repeat; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.to-top .icon { transform: rotate(-90deg); transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: rotate(-90deg) translateX(3px); }

/* 13. Galleria a schermo intero -------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 18, 23, .97); color: #fff; opacity: 0; transition: opacity .35s var(--ease); touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem clamp(1rem, 6vw, 6rem); }
.lightbox-stage img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: .5rem; animation: sg-zoom .45s var(--ease) both; }
.lightbox-stage iframe { width: min(100%, 78rem, calc((100svh - 9rem) * 16 / 9)); aspect-ratio: 16 / 9; max-height: calc(100svh - 9rem); border: 0; border-radius: var(--r-s); background: #000; animation: sg-zoom .45s var(--ease) both; }
@keyframes sg-zoom { from { opacity: 0; transform: scale(.96); } }
.lightbox-btn { position: absolute; background: rgba(255, 255, 255, .1); }
.lightbox-btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; margin-top: -1.4375rem; }
.lightbox-next { right: 1rem; top: 50%; margin-top: -1.4375rem; }
.lightbox-count { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next, .lightbox.is-single .lightbox-count { display: none; }

/* 14. Movimento ------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@supports (animation-timeline: scroll()) {
	.hero-img { animation: sg-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	@keyframes sg-parallax { to { transform: translateY(-10%); } }
	/* Carosello della home: l'immagine scende piano mentre la pagina sale. */
	.stage .slide-media { inset: -8% 0 0 0; }
	.stage .slide-media .img { animation: sg-drift-stage linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	@keyframes sg-drift-stage { to { translate: 0 7%; } }
}
/* Parallasse leggera: le immagini scorrono di poco dentro la loro cornice.
   Usa "translate" e "scale", così non tocca lo zoom al passaggio del mouse. */
@supports (animation-timeline: view()) {
	.video-card-media .img, .media-card-media .img, .post-card-media .img, .chapter-card-media .img, .pager-media .img, .director-photo .img, .bio-photo .img {
		scale: 1.09;
		animation: sg-drift linear both;
		animation-timeline: --sg-frame;
		animation-range: entry 0% exit 100%;
	}
	/* Il riferimento è la cornice: avendo "overflow: hidden" farebbe da area di scorrimento per l'immagine. */
	.video-card-media, .media-card-media, .post-card-media, .chapter-card-media, .pager-media, .director-photo, .bio-photo { view-timeline: --sg-frame block; }
	@keyframes sg-drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
	/* I titoli di sezione arrivano con un filo di ritardo rispetto alla pagina. */
	.section-head { animation: sg-float linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
	@keyframes sg-float { from { translate: 0 .75rem; } to { translate: 0 -.75rem; } }
}

@view-transition { navigation: auto; }
/* Tra una pagina e l'altra: la nuova sfuma sopra la vecchia, senza muoversi.
   Finché dura, gli ingressi dei blocchi restano fermi: partono una volta sola, dopo. */
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: sg-vt-in .26s ease-out both; mix-blend-mode: normal; }
@keyframes sg-vt-in { from { opacity: 0; } }
.js.is-vt [data-reveal].is-in { opacity: 0; transform: translateY(1.75rem); }
.js.is-vt .hero .hero-media, .js.is-vt .stage .slide-media { opacity: 0; transform: scale(1.05); }
.js.is-vt .stage .slide.is-active .slide-body > * { opacity: 0; transform: translateY(1.75rem); }
.js.is-vt .stage .stage-nav { opacity: 0; }
.is-vt .stage, .is-vt .hero, .is-vt .hero-inner > * { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.slide-media .img, .hero-img { transform: none !important; animation: none !important; }
	.video-card-media .img, .media-card-media .img, .post-card-media .img, .chapter-card-media .img, .pager-media .img, .director-photo .img, .bio-photo .img { animation: none !important; scale: none; translate: none; }
	.section-head { animation: none !important; translate: none; }
	.stage .slide-media { inset: 0; }
	.stage-dot.is-active .stage-dot-bar i { animation: none; transform: scaleX(1); }
	@view-transition { navigation: none; }
}

/* Schermi medi ------------------------------------------------------------- */
@media (max-width: 68.75em) {
	.intro-head { grid-column: 1 / -1; }
	.intro-text { grid-column: 1 / -1; max-width: 44rem; padding-top: 0; }
	.directors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-grid, .media-grid, .chapter-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.film-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 56.25em) {
	.news-grid, .story-teaser, .split, .contact, .film-layout, .bio, .story { grid-template-columns: minmax(0, 1fr); }
	.story-teaser-head, .film-aside, .film-main, .bio-photo, .story-nav { position: static; }
	.film-aside { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
	.film-aside .link-list { grid-column: 1 / -1; }
	.bio-photo { max-width: 16rem; }
	.story-nav { order: 2; margin-top: 2rem; }
	.post-grid .post-card--feature .post-card-link { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.stage-arrows [data-slide-prev], .stage-arrows [data-slide-next] { display: none; }
}

/* Telefoni ----------------------------------------------------------------- */
@media (max-width: 37.5em) {
	:root { --header-h: 4.5rem; --r-l: 1.375rem; }
	.has-hero .site-header:not(.is-scrolled) { --header-h: 5.25rem; }
	.site-header.is-scrolled { --header-h: 4rem; }
	.subnav { top: 4rem; }
	.brand-name { font-size: 1.4375rem; }
	.stage { min-height: 32rem; }
	.slide-body { padding-bottom: 5.25rem; }
	.slide-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.slide .btn { margin-top: 1.5rem; }
	.stage-dot-num { display: none; }
	.film-aside { grid-template-columns: minmax(0, 1fr); }
	.film-aside .film-poster { max-width: 13rem; }
	.section-head { align-items: flex-start; flex-direction: column; }
	.section-actions { width: 100%; justify-content: space-between; }
	.directors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
	.post-grid, .media-grid, .chapter-cards, .manga-grid { grid-template-columns: minmax(0, 1fr); }
	.post-card--row .post-card-link { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
	.gallery, .prose + .gallery, .story-body .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-item:first-child { grid-row: auto; }
	.gallery-item:first-child .gallery-link { aspect-ratio: 16 / 10; }
	.character { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1.125rem; }
	.credits div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
	.pager { grid-template-columns: minmax(0, 1fr); }
	.pager-item--empty { display: none; }
	.pager-item--next { justify-content: flex-start; text-align: left; }
	.pager-item--next .pager-label { justify-content: flex-start; }
	.story-pager { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.story-pager-link--next { text-align: left; }
	.story-pager-link--next .pager-label { justify-content: flex-start; }
	.sg-form-row { grid-template-columns: minmax(0, 1fr); }
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.toolbar { align-items: flex-start; }
	.chips--filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); max-width: 100vw; }
	.chips--filter::-webkit-scrollbar { display: none; }
	.toolbar > .chips--filter, .toolbar > .chips { width: 100vw; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1.5em 0; max-width: 100%; }
	.article-foot { flex-direction: column; align-items: flex-start; }
	.share { margin-left: 0; }
	.lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; margin-top: 0; }
	.lightbox-prev { left: 1rem; }
	.lightbox-next { right: 1rem; }
	.lightbox-stage { padding: 4.5rem .75rem 5rem; }
}

@media print {
	.site-header, .site-footer, .subnav, .pager, .progress, .stage-nav, .lightbox, .overlay { display: none !important; }
	body { background: #fff; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
