/*
Theme Name: Cobalto
Theme URI: https://cobalto.org/
Author: Cobalto
Author URI: https://cobalto.org/
Description: Guida non ufficiale in italiano su Doom Eternal. Finestra di gloria, caduta scorta e battito dell’arena, scritta da Catania. Nessun negozio e nessun file di gioco.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cobalto
Tags: blog, entertainment
*/

/* =========================================================================
   1. Lettertypen — map fonts/, mai da un server esterno
   ========================================================================= */

@font-face {
	font-family: 'Quantico';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/quantico-700-latin.woff2') format('woff2');
	unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   2. Palette e reset
   ========================================================================= */

:root {
	--scoria: #121416;
	--panel: #1a1e22;
	--haarlijn: #2a3036;
	--rand: #7a8c98;
	--ghiaccio: #e8eef0;
	--nebbia: #a8b4bc;
	--scoria2: #d07030;
	--acciaio: #6a9aac;
	--warn: #e06058;
	--misura: 70rem;
	--colmo-h: 4.35rem;
}

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

html {
	scroll-padding-top: var(--colmo-h);
	background: var(--scoria);
}

html,
body {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

body {
	font-family: Inter, sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.62;
	color: var(--ghiaccio);
	background-color: var(--scoria);
	background-image: linear-gradient(rgba(18, 20, 22, 0.92), rgba(18, 20, 22, 0.92)), url('images/texture-mill-scale.jpg');
	background-size: auto, 42rem auto;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}

figure {
	max-width: 100%;
	min-width: 0;
}

span,
a,
strong,
em,
b,
i,
code,
label {
	margin: 0;
}

a {
	color: var(--acciaio);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--ghiaccio);
}

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

[hidden] {
	display: none !important;
}

h1,
h2,
h3,
.colmo__nome {
	font-family: Quantico, Inter, sans-serif;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ghiaccio);
	letter-spacing: 0.02em;
}

h1 {
	font-size: clamp(1.75rem, 3.8vw, 2.85rem);
	margin: 0 0 0.6rem;
}

h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	margin: 0 0 0.5rem;
}

h3 {
	font-size: 1.15rem;
	margin: 0 0 0.4rem;
}

p {
	margin: 0 0 0.9rem;
}

ul,
ol {
	margin: 0 0 0.9rem;
	padding-left: 1.2rem;
}

button,
input,
select,
textarea {
	font-family: Inter, sans-serif;
	font-size: 1rem;
}

.numera,
.cifra {
	font-family: Inter, sans-serif;
	font-weight: 600;
	font-variant-numeric: tabular-nums lining-nums;
}

/* =========================================================================
   3. Colmo
   ========================================================================= */

.colmo {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--scoria);
	border-bottom: 1px solid var(--haarlijn);
}

.colmo__binnen {
	position: relative;
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0.5rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-height: var(--colmo-h);
	z-index: 42;
}

.colmo__marca {
	display: inline-flex;
	align-items: baseline;
	text-decoration: none;
	color: var(--ghiaccio);
	min-height: 36px;
	padding: 0.25rem 0.15rem;
}

.colmo__nome {
	font-size: 1.4rem;
}

.colmo__o {
	position: relative;
	display: inline-block;
}

.colmo__scoria {
	position: absolute;
	left: calc(100% + 0.04em);
	top: 0.12em;
	width: 0.22em;
	height: 0.85em;
	background: var(--scoria2);
	clip-path: polygon(0 8%, 100% 0, 70% 100%, 0 88%);
	pointer-events: none;
}

.colmo__dicht {
	display: none;
}

.colmo__klop {
	position: relative;
	z-index: 46;
	margin-left: auto;
	display: none;
	align-items: center;
	gap: 0.45rem;
	min-height: 36px;
	min-width: 36px;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--rand);
	background: var(--panel);
	color: var(--ghiaccio);
	cursor: pointer;
}

.colmo__streepjes {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.22rem;
	width: 1.1rem;
	height: 1rem;
}

.colmo__streepjes i {
	display: block;
	height: 2px;
	margin: 0;
	background: var(--ghiaccio);
}

.colmo__nav {
	margin-left: auto;
}

.colmo__nav .arenalista {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem;
	margin: 0;
}

.colmo__lijst {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem;
}

.colmo__lijst a {
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 0.3rem 0.55rem;
	color: var(--nebbia);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.colmo__lijst a:hover,
.colmo__lijst .current-menu-item a,
.colmo__lijst [aria-current="page"] {
	color: var(--ghiaccio);
	border-bottom-color: var(--scoria2);
}

.muto {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: var(--colmo-h);
	bottom: 0;
	z-index: 30;
	background: rgba(18, 20, 22, 0.76);
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	pointer-events: auto;
}

.overslaan {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	z-index: 60;
	background: var(--scoria2);
	color: var(--scoria);
	padding: 0.5rem 0.8rem;
	min-height: 36px;
	text-decoration: none;
	font-weight: 600;
}

.overslaan:focus {
	top: 0.5rem;
}

main {
	display: block;
}

/* =========================================================================
   4. Sezioni
   ========================================================================= */

.fessura {
	max-width: var(--misura);
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.fessura figure,
.fessura img {
	max-width: 100%;
	min-width: 0;
}

.fessura img {
	width: 100%;
	height: auto;
}

.fossa {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	border-bottom: 1px solid var(--haarlijn);
}

.fossa__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2rem 1rem;
}

.arena__kicker {
	font-family: Inter, sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--scoria2);
	margin: 0 0 0.35rem;
}

/* =========================================================================
   5. Bottoni rivettati
   ========================================================================= */

.arenabtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	min-width: 36px;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--scoria2);
	background: var(--scoria2);
	color: var(--scoria);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
}

.arenabtn::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 5px;
	height: 5px;
	background: var(--scoria);
	opacity: 0.35;
}

.arenabtn:hover,
.arenabtn:focus-visible {
	background: var(--ghiaccio);
	border-color: var(--ghiaccio);
	color: var(--scoria);
}

.arenabtn--stil {
	background: transparent;
	color: var(--ghiaccio);
	border-color: var(--rand);
}

.arenabtn--stil::after {
	background: var(--rand);
}

.arenabtn--stil:hover,
.arenabtn--stil:focus-visible {
	background: var(--panel);
	color: var(--ghiaccio);
	border-color: var(--acciaio);
}

.arenabtn--keuze {
	background: var(--panel);
	color: var(--ghiaccio);
	border-color: var(--rand);
	flex: 1 1 8rem;
}

.arenabtn--keuze[aria-pressed="true"] {
	background: var(--scoria2);
	color: var(--scoria);
	border-color: var(--scoria2);
}

.rijbtn {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* =========================================================================
   6. Hero, duo, liste
   ========================================================================= */

.navata {
	position: relative;
	min-height: 30rem;
	display: flex;
	align-items: flex-end;
	background: var(--scoria) center / cover no-repeat;
	color: var(--ghiaccio);
	border-left: 6px solid var(--scoria2);
}

.navata::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 20, 22, 0.28) 0%, rgba(18, 20, 22, 0.78) 58%, var(--scoria) 100%);
}

.navata__binnen {
	position: relative;
	z-index: 1;
	max-width: var(--misura);
	margin: 0 auto;
	padding: 3rem 1rem 2.2rem;
	width: 100%;
}

.navata h1,
.navata p {
	color: var(--ghiaccio);
}

.duo {
	display: grid;
	gap: 1.2rem;
	max-width: var(--misura);
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.duo > * {
	min-width: 0;
	max-width: 100%;
}

.duo figure {
	margin: 0;
	border: 1px solid var(--rand);
}

.duo img {
	width: 100%;
	height: auto;
}

.arenalista {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.8rem;
}

.arenalista--errori li {
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	gap: 0.6rem;
	align-items: start;
	padding: 0.7rem 0.8rem;
	border-left: 3px solid var(--scoria2);
	background: var(--panel);
}

.numeri {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.numeri li {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--rand);
	background: var(--panel);
}

.numeri .numera {
	font-size: 1.6rem;
	color: var(--acciaio);
	min-width: 2.4rem;
}

.persone {
	display: grid;
	gap: 1.2rem;
	margin: 1rem 0;
	width: 100%;
	max-width: 100%;
}

.persone > * {
	min-width: 0;
	max-width: 100%;
}

.persone figure {
	margin: 0;
	border: 1px solid var(--rand);
	background: var(--panel);
}

.persone img {
	width: 100%;
	height: auto;
}

.persone figcaption {
	padding: 0.8rem 0.9rem;
}

/* =========================================================================
   7. Widget
   ========================================================================= */

.gloria__ranghi,
.gloria__finestre,
.scorta__casse,
.arena-battito__rivetti,
.prelievo__vakken {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
}

.gloria__ranghi {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.gloria__finestre .arenabtn {
	flex: 1 1 6rem;
	min-height: 4.2rem;
	align-items: flex-end;
	padding-bottom: 0.7rem;
	border-top-width: 8px;
}

.gloria figure,
.arena-battito figure {
	margin: 0 0 1rem;
	border: 1px solid var(--rand);
}

fieldset {
	border: 1px solid var(--haarlijn);
	margin: 0 0 0.9rem;
	padding: 0.7rem;
}

legend {
	font-weight: 600;
	padding: 0 0.35rem;
	color: var(--nebbia);
}

.gloria__stand,
.scorta__stand,
.arena-battito__stand,
.prelievo__stand {
	border: 1px solid var(--rand);
	padding: 0.65rem 0.8rem;
	background: var(--scoria);
}

/* =========================================================================
   8. Timbri, battute, FAQ
   ========================================================================= */

.tacco-lijst {
	display: grid;
	gap: 0.9rem;
	margin: 0 0 1.2rem;
}

.tacco {
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 0.8rem;
	padding: 0.8rem;
	border: 1px solid var(--rand);
	background: var(--panel);
}

.tacco__bollo {
	width: 3.2rem;
	height: 3.2rem;
	border: 3px solid var(--scoria2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tacco__bollo span {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--acciaio);
	clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.tacco__meta {
	font-family: Inter, sans-serif;
	font-weight: 600;
	color: var(--nebbia);
	font-size: 0.92rem;
}

.battuta {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.battuta__riga {
	display: grid;
	grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--haarlijn);
	background-image: repeating-linear-gradient(
		90deg,
		transparent,
		transparent 11px,
		var(--haarlijn) 11px,
		var(--haarlijn) 12px
	);
	background-size: 100% 4px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

.battuta__chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--rand);
	background: var(--panel);
	white-space: nowrap;
}

.battuta__riga a {
	color: var(--ghiaccio);
	text-decoration: none;
	min-height: 36px;
	display: flex;
	align-items: center;
}

.battuta__riga a:hover,
.battuta__riga a:focus-visible {
	color: var(--scoria2);
}

.domande details {
	border: 1px solid var(--rand);
	background: var(--scoria);
	margin: 0 0 0.55rem;
	padding: 0.35rem 0.7rem;
}

.domande summary {
	cursor: pointer;
	min-height: 36px;
	display: flex;
	align-items: center;
	font-weight: 600;
}

.arenanaht {
	overflow: hidden;
	line-height: 0;
	background: var(--scoria);
}

.arenanaht svg {
	display: block;
	width: 100%;
	height: 2.2rem;
}

/* =========================================================================
   9. CTA, form, tabelle
   ========================================================================= */

.colata {
	position: relative;
	min-height: 18rem;
	display: flex;
	align-items: flex-end;
	background: var(--scoria) center / cover no-repeat;
}

.colata::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 20, 22, 0.4) 0%, rgba(18, 20, 22, 0.88) 100%);
}

.colata__binnen {
	position: relative;
	z-index: 1;
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.4rem 1rem;
	width: 100%;
}

.colata h1,
.colata h2,
.colata p {
	color: var(--ghiaccio);
}

.modulo {
	position: relative;
	display: grid;
	gap: 0.7rem;
	max-width: 32rem;
}

.modulo p {
	display: grid;
	gap: 0.3rem;
	margin: 0;
}

.modulo label {
	display: block;
	font-weight: 600;
}

.modulo input,
.modulo textarea {
	width: 100%;
	min-height: 36px;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--rand);
	background: var(--scoria);
	color: var(--ghiaccio);
}

.modulo textarea {
	min-height: 8rem;
	resize: vertical;
}

.esca {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.avviso {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--acciaio);
	background: var(--panel);
	margin-bottom: 1rem;
}

.avviso--warn {
	border-color: var(--warn);
}

.tavola-scorr {
	overflow-x: auto;
	max-width: 100%;
	margin: 0 0 1rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 0;
}

th,
td {
	border: 1px solid var(--haarlijn);
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--panel);
	font-weight: 600;
}

code {
	font-family: Inter, sans-serif;
	font-weight: 600;
	color: var(--acciaio);
}

/* =========================================================================
   10. Cookie, piede, 404
   ========================================================================= */

.koekrand {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: var(--panel);
	border-top: 1px solid var(--rand);
	color: var(--ghiaccio);
}

.koekrand__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0.85rem 1rem 1rem;
	display: grid;
	gap: 0.75rem;
}

.koekrand p {
	margin: 0;
	color: var(--ghiaccio);
}

.koekrand__knoppen {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
}

.koekrand a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.koekrand__knoppen .arenabtn {
	width: 100%;
	min-height: 3.6rem;
	height: 100%;
}

.piede {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	padding: 2rem 1rem 6.5rem;
}

.piede__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	display: grid;
	gap: 1.2rem;
}

.piede__lijst {
	list-style: none;
	margin: 0;
	padding: 0;
}

.piede__lijst a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--nebbia);
	text-decoration: none;
}

.piede__lijst a:hover,
.piede__lijst a:focus-visible {
	color: var(--ghiaccio);
}

.piede__dati a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.piede__verklaring {
	color: var(--nebbia);
	font-size: 0.95rem;
}

.piede__verklaring strong {
	font-weight: 600;
	color: var(--ghiaccio);
	font-family: Inter, sans-serif;
}

.smarrito {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 1rem;
	max-width: var(--misura);
	margin: 0 auto;
}

.smarrito__cifra {
	font-family: Inter, sans-serif;
	font-weight: 600;
	font-size: clamp(4rem, 14vw, 8rem);
	color: var(--scoria2);
	line-height: 0.9;
	margin: 0 0 0.6rem;
}

.koekwis {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.scivola {
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.js .scivola {
	opacity: 0;
	transform: translateX(-12px);
}

.js .scivola.scivola--op {
	opacity: 1;
	transform: none;
}

/* =========================================================================
   11. Larghezze 360–1440
   ========================================================================= */

@media (min-width: 40em) {
	.duo {
		grid-template-columns: 1fr 1.1fr;
		align-items: center;
	}

	.persone {
		grid-template-columns: 1fr 1fr;
	}

	.numeri {
		grid-template-columns: 1fr 1fr;
	}

	.piede__binnen {
		grid-template-columns: 1.2fr 1fr 1.2fr;
	}

	.koekrand__binnen {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.koekrand__knoppen {
		grid-template-columns: 1fr 1fr;
	}

	.tacco-lijst {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 62em) {
	.colmo__klop {
		display: none;
	}
}

@media (max-width: 61.99em) {
	.colmo__klop {
		display: inline-flex;
	}

	.colmo__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--panel);
		border-bottom: 1px solid var(--rand);
		padding: 0.6rem 1rem 1rem;
	}

	.colmo--aperto .colmo__nav {
		display: block;
		z-index: 46;
	}

	.colmo__lijst {
		flex-direction: column;
	}

	.colmo--aperto .muto {
		display: block;
	}

	.colmo__dicht {
		display: none;
	}

	.colmo--aperto .colmo__open {
		display: none;
	}

	.colmo--aperto .colmo__dicht {
		display: inline;
	}

	.battuta__riga {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .scivola {
		opacity: 1;
		transform: none;
	}
}
