/* =========================================================================
   Black Panthers Cup: fondamenta (font, token, reset, tipografia, layout)
   Design «BPC27»: arancio primario, nero profondo, bianco, rosso d'accento.
   ========================================================================= */

/* --- Font --------------------------------------------------------------- */

@font-face {
	font-family: "Vikings";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/vikings.woff") format("woff"), url("../fonts/vikings.ttf") format("truetype");
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
	font-family: "Kaushan Script";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/kaushan-script-400.woff2") format("woff2");
}

/* --- Token -------------------------------------------------------------- */

:root {
	--bpc-orange: #e94e1b;
	--bpc-orange-bright: #f4732f;
	--bpc-orange-deep: #b02c10;
	--bpc-ink: #1d1d1b;
	--bpc-ink-2: #131312;
	--bpc-paper: #ffffff;
	--bpc-white: #ffffff;
	--bpc-sand: #f3efe9;
	--bpc-red: #be1818;
	--bpc-amber: #ffb27a;
	--bpc-danger: #ff7a6b;
	--bpc-dim: rgba(255, 255, 255, 0.62);
	--bpc-line: rgba(255, 255, 255, 0.14);
	--bpc-line-ink: rgba(29, 29, 27, 0.18);
	--bpc-muted: #6b6b66;
	--bpc-border: #d6dadd;
	--bpc-surface: #f3efe9;

	--bpc-grad-scene: linear-gradient(180deg, #c93c12 0%, #ee5a22 45%, #e94e1b 68%, #92210d 100%);
	--bpc-grad-dark: radial-gradient(ellipse 70% 40% at 50% 8%, rgba(233, 78, 27, 0.32), rgba(233, 78, 27, 0) 60%), linear-gradient(180deg, #292927 0%, #1d1d1b 45%, #131312 100%);
	--bpc-grad-glow: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 196, 134, 0.55), rgba(255, 196, 134, 0) 70%);

	--bpc-font-display: "Vikings", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--bpc-font-body: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
	--bpc-font-label: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
	--bpc-font-script: "Kaushan Script", cursive;

	--bpc-container: 1248px;
	--bpc-gutter: clamp(20px, 4vw, 56px);
	--bpc-header-height: 76px;
	--bpc-section-space: clamp(80px, 11vw, 150px);

	--bpc-radius-l: 18px;
	--bpc-radius-m: 14px;
	--bpc-radius-s: 8px;
	--bpc-radius-pill: 999px;

	--bpc-shadow-card: 0 18px 44px rgba(0, 0, 0, 0.5);
	--bpc-shadow-chip: 0 12px 28px rgba(0, 0, 0, 0.35);
	--bpc-shadow-soft: 0 10px 24px rgba(80, 16, 0, 0.25);
	--bpc-shadow-button: 0 10px 26px rgba(233, 78, 27, 0.35);

	--bpc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--bpc-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
	--bpc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--bpc-ease: var(--bpc-ease-out);

	--bpc-title-size: clamp(42px, 7.4vw, 120px);
}

/* --- Reset -------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--bpc-header-height) + 20px);
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--bpc-ink-2);
	color: var(--bpc-paper);
	font-family: var(--bpc-font-body);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

body.bpc-menu-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

fieldset {
	min-width: 0;
	padding: 0;
	border: 0;
}

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

img,
video {
	height: auto;
}

a {
	color: var(--bpc-orange);
	text-decoration: none;
	transition: color 0.12s;
}

a:hover {
	color: var(--bpc-orange-bright);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

::selection {
	background: var(--bpc-orange);
	color: var(--bpc-white);
}

:focus-visible {
	outline: 2px solid var(--bpc-amber);
	outline-offset: 3px;
}

strong,
b {
	font-weight: 700;
}

/* --- Utilità ------------------------------------------------------------ */

[hidden] {
	display: none !important;
}

.bpc-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bpc-skip-link {
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 200;
	padding: 12px 20px;
	border-radius: var(--bpc-radius-pill);
	background: var(--bpc-ink);
	color: var(--bpc-white);
}

.bpc-skip-link:focus {
	top: 10px;
	color: var(--bpc-white);
}

.bpc-container {
	width: min(100% - (var(--bpc-gutter) * 2), var(--bpc-container));
	margin-inline: auto;
}

.bpc-container--narrow {
	--bpc-container: 860px;
}

.bpc-main {
	display: block;
}

.bpc-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.bpc-accent {
	color: var(--bpc-orange);
}

/* --- Tipografia --------------------------------------------------------- */

.bpc-title {
	font-family: var(--bpc-font-display);
	font-size: var(--bpc-title-size);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: inherit;
}

.bpc-eyebrow {
	font-family: var(--bpc-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bpc-amber);
}

.bpc-script {
	font-family: var(--bpc-font-script);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.bpc-index {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--bpc-orange);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bpc-index__number {
	font-family: var(--bpc-font-display);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.bpc-index::after {
	content: "";
	flex: none;
	width: 46px;
	height: 2px;
	background: currentColor;
}

/* --- Testo corrente (pagine di testo, articoli, istruzioni) -------------- */

.bpc-prose {
	font-size: clamp(18px, 1.5vw, 21px);
	line-height: 1.5;
}

.bpc-prose > * + * {
	margin-top: 0.9em;
}

.bpc-prose h1,
.bpc-prose h2,
.bpc-prose h3,
.bpc-prose h4 {
	margin-top: 1.6em;
	font-family: var(--bpc-font-body);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-orange);
}

.bpc-prose > :first-child {
	margin-top: 0;
}

.bpc-prose h1 {
	font-size: 1.7em;
}

.bpc-prose h2 {
	font-size: 1.5em;
}

.bpc-prose h3 {
	font-size: 1.3em;
}

.bpc-prose h4 {
	font-size: 1.1em;
}

.bpc-prose ul,
.bpc-prose ol {
	padding-left: 1.3em;
}

.bpc-prose li + li,
.bpc-prose li > ul,
.bpc-prose li > ol {
	margin-top: 0.4em;
}

.bpc-prose li > p + ul {
	margin-top: 0.4em;
}

.bpc-prose ul {
	list-style: none;
}

.bpc-prose ul > li {
	position: relative;
}

.bpc-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: -1.05em;
	width: 7px;
	height: 7px;
	background: var(--bpc-orange);
	transform: rotate(45deg);
}

.bpc-prose ol {
	list-style: decimal;
}

.bpc-prose ol > li::marker {
	font-family: var(--bpc-font-display);
	color: var(--bpc-orange);
}

.bpc-prose hr {
	height: 0;
	margin-block: 1.6em;
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.2;
}

.bpc-prose a {
	color: var(--bpc-orange);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.bpc-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86em;
	line-height: 1.4;
}

.bpc-prose th,
.bpc-prose td {
	padding: 12px 14px;
	border: 1px solid var(--bpc-line-ink);
	vertical-align: top;
}

.bpc-prose th {
	background: var(--bpc-ink);
	color: var(--bpc-white);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.bpc-prose tbody tr:nth-child(odd) td {
	background: rgba(29, 29, 27, 0.04);
}

.bpc-prose code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.85em;
}

.bpc-prose img {
	border-radius: var(--bpc-radius-l);
}

.bpc-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
	.bpc-prose th,
	.bpc-prose td {
		padding: 8px;
	}
}
