/*
Theme Name: Film Lab
Text Domain: filmlab
Version: 261029.1553
Description: Laboratorio a pellicola per candynsfwaishorts.com: rail di icone a sinistra, pellicole 9:5 con locandina, episodio 1 ed episodio 2, readout in monospazio.
*/

:root {
	--bg: #fbf9fb;
	--paper: #ffffff;
	--ink: #1d1420;
	--muted: #6e6273;
	--line: #eee4ea;
	--film: #fde3f1;
	--tint: #fff0f8;
	--accent: #e0128a;
	--accent-2: #ff6fbf;
	--accent-deep: #990a5c;
	--head: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	--rail: 92px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
	margin: 0;
	color: var(--ink);
	font: 16px/1.62 var(--body);
	-webkit-font-smoothing: antialiased;
	background-color: var(--bg);
	background-image: linear-gradient(rgba(224, 18, 138, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 18, 138, 0.045) 1px, transparent 1px);
	background-size: 28px 28px;
}

img,
video { display: block; max-width: 100%; }

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.fl-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; }
.fl-skip:focus { left: 8px; }
.fl-ico { flex: none; }

/* ---------- Logo ---------- */

.fl-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; color: var(--accent); }
.fl-logo b { font: 700 23px/1 var(--head); letter-spacing: -0.03em; color: var(--accent); }
.fl-logo i { font: 600 12.5px/1 var(--mono); font-style: normal; color: #fff; background: var(--accent); padding: 5px 7px; border-radius: 5px; letter-spacing: 0.02em; }
.fl-logo span { font: 500 23px/1 var(--head); letter-spacing: -0.03em; color: var(--accent-deep); }
.fl-logo:hover b { color: var(--accent-deep); }

/* ---------- Rail a sinistra ---------- */

.fl-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.fl-rail {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 16px 8px;
	background: var(--paper); border-right: 1px solid var(--line);
	z-index: 30;
}
.fl-mono {
	display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px;
	border-radius: 16px; background: var(--accent); color: #fff; text-decoration: none;
	box-shadow: 0 8px 20px rgba(224, 18, 138, 0.3);
	line-height: 1;
}
.fl-mono b { font: 700 25px/0.9 var(--head); }
.fl-mono span { font: 700 10px/1 var(--mono); letter-spacing: 0.12em; margin-top: -10px; }
.fl-mono:hover { color: #fff; background: var(--accent-deep); }
.fl-rail-item {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	width: 76px; padding: 9px 4px 8px; border-radius: 14px;
	color: var(--muted); text-decoration: none; text-align: center;
	font: 600 10.5px/1.15 var(--head);
}
.fl-rail-item:hover { color: var(--accent); background: var(--tint); }
.fl-rail-item[aria-current="page"] { color: var(--accent); background: var(--film); }
.fl-rail-18 { margin-top: auto; font: 700 11px/1 var(--mono); color: var(--accent-deep); border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 8px; }

/* ---------- Barra in alto ---------- */

.fl-page { min-width: 0; display: flex; flex-direction: column; }

.fl-top {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.fl-top-row { display: flex; align-items: center; gap: 18px; max-width: 1140px; margin: 0 auto; padding: 14px 32px; }
.fl-top-note { margin: 0 0 0 auto; font: 12px/1.3 var(--mono); color: var(--muted); }
.fl-chips { display: none; }

/* ---------- Pulsanti ---------- */

.fl-btn,
.cs-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--accent); color: #fff; text-decoration: none;
	font: 600 15.5px/1.2 var(--head);
	box-shadow: 0 8px 20px rgba(224, 18, 138, 0.26);
}
.fl-btn:hover,
.cs-btn:hover { background: var(--accent-deep); color: #fff; }
.fl-btn--sm { padding: 8px 15px; font-size: 13.5px; box-shadow: none; }
.fl-textlink,
.cs-textlink { font-weight: 600; }

/* ---------- Contenuto ---------- */

.fl-main { width: 100%; max-width: 1140px; margin: 0 auto; padding: 26px 32px 40px; flex: 1; }

.fl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font: 12px/1.4 var(--mono); color: var(--muted); }
.fl-crumbs a { color: var(--muted); }
.fl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fl-k-dot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; letter-spacing: 0.04em; }
.fl-k-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.fl-h1 { margin: 0; font: 700 46px/1.04 var(--head); letter-spacing: -0.025em; color: var(--ink); max-width: 22ch; }

.fl-hero {
	display: grid; gap: 18px 30px; margin-bottom: 30px; align-items: start;
	grid-template-columns: minmax(0, 1fr) 310px;
	grid-template-rows: auto auto 1fr;
	grid-template-areas: "head head" "media text" "media read";
}
.fl-hero-head { grid-area: head; }
.fl-hero-media { grid-area: media; margin: 0; }
.fl-hero-text { grid-area: text; }
.fl-readout { grid-area: read; }
.fl-hero:not(:has(.fl-readout)) { grid-template-rows: auto auto; grid-template-areas: "head head" "media text"; }
.fl-hero-media > a { display: block; text-decoration: none; }
.fl-hero-media figcaption { display: flex; gap: 10px; margin-top: 8px; font: 12.5px/1.4 var(--mono); color: var(--muted); }
.fl-hero-media figcaption span { color: var(--accent); font-weight: 700; }
.fl-lead { margin: 0 0 16px; font-size: 17.5px; line-height: 1.55; color: #3e3242; max-width: 62ch; }
.fl-hero-cta { margin: 0; }

.fl-readout { margin: 0; padding: 14px 18px; background: var(--paper); border: 1.5px dashed var(--accent-2); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-self: start; }
.fl-readout div { min-width: 0; }
.fl-readout dt { font: 600 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fl-readout dd { margin: 2px 0 0; font: 600 14px/1.35 var(--mono); color: var(--ink); }
.fl-readout .is-hot dd { color: var(--accent); }

/* ---------- Pellicola 9:5 ---------- */

.fl-strip {
	position: relative; display: block; overflow: hidden;
	padding: 15px 0; border-radius: 12px; background: var(--film);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 26px rgba(153, 10, 92, 0.1);
}
.fl-strip::before,
.fl-strip::after {
	content: ""; position: absolute; left: 0; right: 0; height: 15px;
	background-image: linear-gradient(90deg, #fff 0 11px, transparent 11px 22px);
	background-size: 22px 7px; background-repeat: repeat-x; background-position: 6px center;
}
.fl-strip::before { top: 0; }
.fl-strip::after { bottom: 0; }
.fl-strip img { width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; background: #f3d6e6; }
.fl-cuts {
	position: absolute; top: 15px; bottom: 15px; left: 0; right: 0; pointer-events: none;
	background: linear-gradient(90deg, transparent calc(33.333% - 3px), var(--film) calc(33.333% - 3px) calc(33.333% + 3px), transparent calc(33.333% + 3px) calc(66.666% - 3px), var(--film) calc(66.666% - 3px) calc(66.666% + 3px), transparent calc(66.666% + 3px));
	z-index: 2;
}
.fl-strip--locked .fl-cuts { display: none; }
.fl-vid {
	position: absolute; top: 15px; left: 33.333%; width: 33.334%; height: calc(100% - 30px);
	object-fit: cover; opacity: 0; transition: opacity 0.5s; z-index: 1;
}
.fl-vid.is-on { opacity: 1; }
.fl-caps {
	position: absolute; left: 0; right: 0; bottom: 15px; z-index: 3;
	display: grid; grid-template-columns: repeat(3, 1fr);
	pointer-events: none;
}
.fl-caps span {
	padding: 22px 10px 7px; color: #fff;
	font: 600 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
	background: linear-gradient(transparent, rgba(29, 8, 20, 0.7));
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.fl-caps b { color: var(--accent-2); }
.fl-caps--one { grid-template-columns: 1fr; }
.fl-caps--one span { display: flex; align-items: center; gap: 6px; }
.fl-ph { display: grid; place-items: center; aspect-ratio: 9 / 5; padding: 20px; background: var(--tint); color: var(--accent-deep); font: 600 18px/1.3 var(--head); text-align: center; }

/* ---------- Schede ---------- */

.fl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; margin: 18px 0 30px; }
.fl-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.fl-card:hover { border-color: var(--accent-2); box-shadow: 0 10px 30px rgba(153, 10, 92, 0.1); }
.fl-card-media { display: block; text-decoration: none; }
.fl-card-media .fl-strip { box-shadow: none; }
.fl-card-body { padding: 12px 6px 4px; }
.fl-card-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; font: 600 11.5px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fl-card-code span:last-child { margin-left: auto; }
.fl-new { padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.fl-card-title { margin: 0 0 6px; font: 600 20px/1.2 var(--head); letter-spacing: -0.01em; }
.fl-card-title a { color: var(--ink); text-decoration: none; }
.fl-card-title a:hover { color: var(--accent); }
.fl-card-plot { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.fl-card-tags { margin: 0; font: 600 11.5px/1.4 var(--mono); color: var(--accent-deep); }

/* Registro a righe */
.fl-log { list-style: none; margin: 16px 0 28px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fl-log li + li { border-top: 1px solid var(--line); }
.fl-log a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.fl-log a:hover { background: var(--tint); }
.fl-log-code { font: 600 12px/1 var(--mono); color: var(--accent); width: 48px; flex: none; }
.fl-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--film); }
.fl-log-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fl-log-name strong { font: 600 15.5px/1.3 var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-log-name em { font: 12px/1.3 var(--mono); font-style: normal; color: var(--muted); }
.fl-log-meta { font: 12px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.fl-log .fl-ico { color: var(--accent); }

/* ---------- Testo delle pagine ---------- */

.fl-content { counter-reset: sec; }
.fl-content > p,
.fl-content > ul,
.fl-content > ol:not(.fl-log):not(.fl-steps):not(.fl-frames),
.fl-content > details { max-width: 74ch; }
.fl-content h2 { counter-increment: sec; margin: 44px 0 12px; font: 700 29px/1.15 var(--head); letter-spacing: -0.02em; }
.fl-content h2::before { content: "§" counter(sec, decimal-leading-zero); display: block; margin-bottom: 4px; font: 700 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.fl-content h3 { font: 600 20px/1.25 var(--head); margin: 26px 0 8px; }
.fl-content p { margin: 0 0 16px; }
.fl-content li { margin-bottom: 6px; }
.fl-sub { color: var(--muted); font-size: 15px; margin-top: -4px !important; }
.fl-lede { font-size: 18px; color: #3e3242; }
.fl-plot { font: 500 19px/1.55 var(--head); color: var(--ink); padding-left: 16px; border-left: 4px solid var(--accent); }
.fl-src { font: 12.5px/1.5 var(--mono); color: var(--muted); }
.fl-answer { max-width: 74ch; margin: 0 0 22px; padding: 16px 20px; background: var(--tint); border: 1px solid #fbd0e6; border-radius: 14px; }
.fl-answer p { margin: 0; }
.fl-answer p + p { margin-top: 8px; }
.fl-facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; max-width: none !important; }
.fl-facts li { margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.fl-facts b { display: block; font: 700 24px/1.1 var(--head); color: var(--accent); margin-bottom: 4px; }
.cs-name { font-weight: 600; }

.fl-frames { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fl-frames li { margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; color: var(--muted); }
.fl-frames b { display: block; color: var(--accent); font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

.fl-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; max-width: 74ch; }
.fl-steps li { counter-increment: step; position: relative; padding: 10px 0 10px 52px; margin: 0; border-bottom: 1px dashed var(--line); }
.fl-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 9px; font: 700 20px/1.2 var(--mono); color: var(--accent); }

.fl-table-wrap { overflow-x: auto; margin: 14px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.fl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fl-table th,
.fl-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.fl-table thead th { font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: #fdf7fa; white-space: nowrap; }
.fl-table tbody th { font-weight: 600; }
.fl-table td { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.fl-table tbody tr:last-child > * { border-bottom: 0; }
.fl-table b { color: var(--accent); }
.fl-table-wrap:has(.fl-eplog) { max-width: 560px; }
.fl-eplog tbody th { font-family: var(--mono); color: var(--muted); }
.fl-eplog .is-free th,
.fl-eplog .is-free td { color: var(--accent-deep); background: var(--tint); }

details { margin: 0 0 10px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
summary { cursor: pointer; list-style: none; padding: 14px 18px; font: 600 16.5px/1.35 var(--head); }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; display: inline-block; margin-right: 10px; font: 700 12px/1 var(--mono); color: #fff; background: var(--accent); padding: 4px 6px; border-radius: 5px; vertical-align: 2px; }
details[open] summary { color: var(--accent-deep); }
details p { margin: 0; padding: 0 18px 16px; color: #3e3242; }

/* Filtri */
.fl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.fl-filter button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: 600 13px/1.2 var(--head); }
.fl-filter button:hover { border-color: var(--accent-2); }
.fl-filter button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fl-filter-count { font: 12px/1 var(--mono); color: var(--muted); margin-left: 4px; }

/* Barre per categoria */
.fl-tagbar { list-style: none; padding: 0; margin: 12px 0 24px; max-width: 640px; }
.fl-tagbar li { margin: 0; }
.fl-tagbar a { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; padding: 7px 0; color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--head); }
.fl-tagbar a:hover { color: var(--accent); }
.fl-bar { height: 10px; border-radius: 999px; background: var(--film); overflow: hidden; }
.fl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.fl-tagbar b { font: 700 13px/1 var(--mono); text-align: right; color: var(--accent-deep); }

/* Serie bloccate */
.fl-locked-list { display: grid; gap: 18px; margin: 18px 0 28px; }
.fl-locked { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.fl-locked-media { display: block; }
.fl-locked h3 { margin: 4px 0 8px; font: 600 21px/1.2 var(--head); }
.fl-locked h3 a { color: var(--ink); text-decoration: none; }
.fl-locked p { margin: 0 0 10px; font-size: 15px; }
.fl-locked-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Avanti e indietro */
.fl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; }
.fl-pager a { display: block; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font: 600 15.5px/1.3 var(--head); }
.fl-pager a + a { text-align: right; }
.fl-pager span { display: block; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; }

/* ---------- Footer ---------- */

.fl-foot { border-top: 1px solid var(--line); background: var(--paper); }
.fl-foot-grid { max-width: 1140px; margin: 0 auto; padding: 32px 32px 10px; display: grid; grid-template-columns: 1.1fr 1.3fr 0.8fr; gap: 30px; font-size: 14px; color: var(--muted); }
.fl-foot-h { font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 10px; }
.fl-logo--foot { margin: 0 0 12px; }
.fl-foot-links { display: flex; flex-direction: column; gap: 6px; }
.fl-foot-links a { color: var(--muted); text-decoration: none; }
.fl-foot-links a:hover { color: var(--accent); }
.fl-foot-small { max-width: 1140px; margin: 0 auto; padding: 8px 32px 28px; font: 12px/1.4 var(--mono); color: var(--muted); }

/* ---------- Conferma 18+ (barra in basso) ---------- */

.fl-age {
	position: fixed; z-index: 60; left: calc(var(--rail) + 20px); right: 20px; bottom: 20px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	max-width: 760px; padding: 14px 18px; border-radius: 16px;
	background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(29, 20, 32, 0.18);
}
.fl-age p { margin: 0; font-size: 14.5px; }
.fl-age p b { display: inline-block; margin-right: 6px; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: #fff; font: 700 12px/1.2 var(--mono); }
.fl-age-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Mobile ---------- */

@media (max-width: 1100px) {
	.fl-top-note { display: none; }
	.fl-top-go { margin-left: auto; }
	.fl-hero,
	.fl-hero:not(:has(.fl-readout)) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "media" "text" "read"; }
}

@media (max-width: 960px) {
	.fl-shell { display: block; }
	.fl-rail { display: none; }
	.fl-top-row { padding: 9px 14px; gap: 10px; }
	.fl-logo b,
	.fl-logo span { font-size: 19px; }
	.fl-logo i { font-size: 11px; padding: 4px 5px; }
	.fl-chips {
		display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 9px;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.fl-chips::-webkit-scrollbar { display: none; }
	.fl-chips a {
		display: inline-flex; align-items: center; gap: 6px; flex: none;
		padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
		color: var(--ink); text-decoration: none; font: 600 13px/1.2 var(--head);
	}
	.fl-chips a .fl-ico { color: var(--accent); }
	.fl-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
	.fl-chips a[aria-current="page"] .fl-ico { color: #fff; }

	.fl-main { padding: 0 14px 30px; }
	.fl-hero,
	.fl-hero:not(:has(.fl-readout)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "head" "text" "read"; gap: 14px; margin-bottom: 22px; }
	.fl-hero-media { margin: 0 -14px; }
	.fl-hero-media .fl-strip { border-radius: 0; box-shadow: none; }
	.fl-hero-media figcaption { padding: 0 14px; margin-top: 6px; }
	.fl-h1 { font-size: 31px; }
	.fl-lead { font-size: 16.5px; }
	.fl-readout { grid-template-columns: 1fr 1fr; }
	.fl-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.fl-locked { grid-template-columns: minmax(0, 1fr); }
	.fl-frames { grid-template-columns: minmax(0, 1fr); }
	.fl-content h2 { font-size: 24px; margin-top: 36px; }
	.fl-foot-grid { grid-template-columns: minmax(0, 1fr); padding: 26px 14px 6px; gap: 18px; }
	.fl-foot-small { padding: 6px 14px 90px; }
	.fl-age { left: 10px; right: 10px; bottom: 10px; }
	.fl-log-meta { display: none; }
	.fl-caps span { font-size: 9px; padding: 18px 6px 6px; }
}

@media (max-width: 480px) {
	.fl-logo { gap: 4px; }
	.fl-logo b,
	.fl-logo span { font-size: 17px; }
	.fl-logo i { font-size: 10px; padding: 3px 4px; }
	.fl-tagbar a { grid-template-columns: 92px 1fr 34px; }
	.fl-pager { grid-template-columns: minmax(0, 1fr); }
	.fl-pager a + a { text-align: left; }
	.fl-btn:not(.fl-btn--sm) { padding: 12px 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.fl-vid { transition: none; }
}


/* ---------- Halloween 2026 (classe is-halloween sul body, si spegne da sola) ---------- */

.cs-hw-badge {
	display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 999px;
	background: #ff8a00; color: #2a0f3d; font: 700 11.5px/1.1 var(--head); letter-spacing: 0.02em; vertical-align: 1px;
}
.cs-btn--ghost { background: var(--paper); color: var(--accent-deep); border: 1.5px solid var(--accent-2); box-shadow: none; }
.cs-btn--ghost:hover { background: var(--tint); color: var(--accent-deep); }

.fl-hw-strip {
	display: flex; align-items: center; gap: 12px; padding: 7px 32px;
	background: linear-gradient(90deg, #2a0f3d, #5b1a7a 55%, #b5338a 80%, #ff7a00);
	color: #fff; text-decoration: none; font: 600 13.5px/1.3 var(--head);
}
.fl-hw-strip:hover { color: #fff; }
.fl-hw-strip b { color: #ffc27a; }
.fl-hw-word { font: 400 21px/1 Creepster, var(--head); color: #ff9a2e; letter-spacing: 0.06em; text-shadow: 0 2px 0 #2a0f3d; }
.fl-hw-go { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: #ff8a00; color: #2a0f3d; font-weight: 700; white-space: nowrap; }
.fl-hw-bats { display: inline-flex; gap: 4px; color: rgba(255, 255, 255, 0.85); }
.fl-bat { display: block; animation: fl-flap 1.6s ease-in-out infinite; transform-origin: center; }
.fl-bat + .fl-bat { animation-delay: 0.4s; width: 18px; }
@keyframes fl-flap { 0%, 100% { transform: scaleY(1) translateY(0); } 50% { transform: scaleY(0.55) translateY(-2px); } }

.is-halloween { --film: #ffe1c2; }
body.is-halloween {
	background-image: linear-gradient(rgba(91, 26, 122, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 26, 122, 0.06) 1px, transparent 1px);
}
.is-halloween .fl-mono { background: linear-gradient(150deg, #ff8a00, var(--accent) 55%, #5b1a7a); }
.is-halloween .fl-rail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 92'%3E%3Cg fill='none' stroke='%235b1a7a' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M0 0l92 92M0 0l92 40M0 0l40 92M0 0l92 10M0 0l10 92'/%3E%3Cpath d='M22 0q4 18 0 22q-18 4-22 0M44 0q8 36 0 44q-36 8-44 0M70 0q12 58 0 70q-58 12-70 0'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right bottom; background-size: 92px; }
.fl-rail-item--sale { color: #c24f00; background: #fff1e2; }
.fl-rail-item--sale:hover,
.fl-rail-item--sale[aria-current="page"] { color: #fff; background: #ff8a00; }
.is-halloween .fl-content h2::before { color: #e36a00; }
.is-halloween .fl-k-dot { background: linear-gradient(90deg, var(--accent), #ff7a00); }
.is-halloween .fl-strip { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 26px rgba(91, 26, 122, 0.16); }

/* Pagina dei saldi: il telefono con la home di Candy */
.fl-sale-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px 48px; align-items: center; margin-bottom: 34px; }
.fl-phone-wrap { margin: 0; text-align: center; }
.fl-phone {
	position: relative; display: block; width: 270px; margin: 0 auto; padding: 9px; border-radius: 46px;
	background: #17111b; transform: rotate(-4deg);
	box-shadow: 0 0 0 3px #ff8a00, 0 0 0 9px rgba(255, 138, 0, 0.18), 0 30px 60px rgba(91, 26, 122, 0.35);
}
.fl-phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 76px; height: 21px; margin-left: -38px; border-radius: 20px; background: #000; z-index: 2; }
.fl-phone img { width: 100%; height: auto; border-radius: 37px; }
.fl-phone-wrap figcaption { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 12px/1.4 var(--mono); color: var(--muted); }
.fl-phone-wrap .fl-bat { color: #5b1a7a; animation: none; }
.fl-sale-h1 { font: 400 50px/1.05 Creepster, var(--head); letter-spacing: 0.03em; color: #f06a00; text-shadow: 0 3px 0 #5b1a7a, 0 8px 18px rgba(91, 26, 122, 0.25); max-width: 18ch; }
.fl-sale-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 16px 0 6px; }
.fl-sale-price b { font: 700 48px/1 var(--head); color: var(--accent); letter-spacing: -0.03em; }
.fl-sale-price span { color: var(--muted); font-weight: 600; }
.fl-sale-price em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: #5b1a7a; color: #fff; font: 700 13px/1.2 var(--mono); }
.fl-sale-note { font: 12px/1.5 var(--mono); color: var(--muted); max-width: 52ch; }
.fl-sale-cta-off { margin: -10px 0 26px; }

/* Piani e vantaggi (shortcode del core) */
.cs-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 8px; }
.cs-plan { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.cs-plan p { margin: 0 !important; }
.cs-plan--best { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(224, 18, 138, 0.14); }
.is-halloween .cs-plan--best { border-color: #ff8a00; background: linear-gradient(180deg, #fff6ec, #fff 60%); }
.cs-plan-name { font: 700 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cs-plan-name span { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; }
.cs-plan-off { font: 700 15px/1.2 var(--head); color: #c24f00; }
.cs-plan-price b { font: 700 32px/1.1 var(--head); color: var(--ink); }
.cs-plan-was { font-size: 14px; color: var(--muted); }
.cs-plan .cs-btn { margin-top: 10px; justify-content: center; }
.cs-plans-checked { font: 12.5px/1.5 var(--mono); color: var(--muted); }
.cs-perks { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 760px !important; }
.cs-perks li { margin: 0; padding: 12px 14px 12px 40px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.cs-perks li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--accent); font-weight: 800; }
.is-halloween .cs-perks li::before { content: "🎃"; left: 11px; }

@media (max-width: 960px) {
	.fl-hw-strip { padding: 4px 14px; gap: 8px; font-size: 12px; line-height: 16px; }
	.fl-hw-word { font-size: 16px; line-height: 16px; }
	.fl-hw-more,
	.fl-hw-bats { display: none; }
	.fl-hw-go { padding: 0 8px; }
	.is-halloween .fl-hero-media .fl-strip { padding: 11px 0; }
	.is-halloween .fl-hero-media .fl-strip::before,
	.is-halloween .fl-hero-media .fl-strip::after { height: 11px; }
	.is-halloween .fl-hero-media .fl-cuts { top: 11px; bottom: 11px; }
	.is-halloween .fl-hero-media .fl-vid { top: 11px; height: calc(100% - 22px); }
	.is-halloween .fl-hero-media .fl-caps { bottom: 11px; }
	.fl-sale-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 24px; }
	.fl-phone-wrap { padding-top: 4px; }
	.fl-phone { width: 214px; padding: 7px; border-radius: 38px; transform: rotate(-2deg); }
	.fl-phone::before { top: 13px; width: 60px; height: 17px; margin-left: -30px; }
	.fl-phone img { border-radius: 31px; }
	.fl-sale-h1 { font-size: 36px; }
	.fl-sale-price b { font-size: 40px; }
	.cs-plans { grid-template-columns: minmax(0, 1fr); }
	.cs-perks { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.fl-bat { animation: none; }
}
