/*
Theme Name: Serafon
Theme URI: https://serafon.org/
Author: Serafon
Author URI: https://serafon.org/
Description: Comunità non ufficiale in italiano su Crusader Kings 3. Linea degli eredi, parere dei vassalli e schema, scritta da Mantova. 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: serafon
Tags: blog, entertainment
*/

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

@font-face {
	font-family: 'Cardo';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/cardo-700-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: 'Cardo';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/cardo-700-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: Figtree;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/figtree-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: Figtree;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/figtree-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: Figtree;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/figtree-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: Figtree;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/figtree-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 {
	--velum: #f6f1e8;
	--panel: #ece4d4;
	--haarlijn: #d8ccb4;
	--rand: #6a5e48;
	--inchiostro: #22180e;
	--polvere: #544838;
	--vino: #6a2838;
	--inchiostro2: #2c4a48;
	--warn: #9a3028;
	--misura: 72rem;
	--torrione-h: 4.5rem;
}

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

html {
	scroll-padding-top: var(--torrione-h);
	background: var(--velum);
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: Figtree, sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--inchiostro);
	background-color: var(--velum);
	background-image: linear-gradient(rgba(246, 241, 232, 0.92), rgba(246, 241, 232, 0.92)), url('images/texture-velum.jpg');
	background-size: auto, 42rem auto;
	min-width: 20rem;
}

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

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

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

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

[hidden] {
	display: none !important;
	visibility: hidden !important;
}

h1,
h2,
h3,
.torrione__nome {
	font-family: Cardo, serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--inchiostro);
	letter-spacing: 0.01em;
}

h1 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	margin: 0 0 0.6rem;
}

h2 {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 0 0 0.5rem;
}

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

p,
ul,
ol {
	margin: 0 0 0.9rem;
}

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

/* =========================================================================
   3. Torrione, salto, muto
   ========================================================================= */

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

.torrione__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0.55rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: var(--torrione-h);
}

.torrione__marca {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	text-decoration: none;
	color: var(--inchiostro);
	flex: 0 0 auto;
}

.torrione__nome {
	font-size: 1.35rem;
}

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

.torrione__morso {
	position: absolute;
	right: -0.18em;
	top: 0.12em;
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	background: var(--vino);
	box-shadow: -0.12em 0.08em 0 var(--panel);
}

.torrione__klop {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 36px;
	min-width: 36px;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--rand);
	background: var(--panel);
	color: var(--inchiostro);
	font-family: Figtree, sans-serif;
	font-weight: 600;
	cursor: pointer;
}

.torrione__streepjes {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 1.1rem;
}

.torrione__streepjes i {
	display: block;
	height: 2px;
	background: var(--inchiostro);
}

.torrione__dicht {
	display: none;
}

.torrione--aperto .torrione__open {
	display: none;
}

.torrione--aperto .torrione__dicht {
	display: inline;
}

.torrione__nav {
	flex: 1 1 auto;
}

.torrione__lijst,
.feudolista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.35rem;
}

.torrione__lijst a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.2rem 0.45rem;
	text-decoration: none;
	color: var(--inchiostro);
	border-bottom: 2px solid transparent;
	font-weight: 600;
}

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

.muto {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 35;
	background: rgba(34, 24, 14, 0.45);
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	visibility: hidden;
}

.torrione--aperto .muto {
	display: block;
	visibility: visible;
}

.salta {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	background: var(--vino);
	color: var(--velum);
	padding: 0.5rem 0.8rem;
	min-height: 36px;
	text-decoration: none;
	font-weight: 600;
}

.salta:focus {
	top: 0.5rem;
}

main {
	display: block;
}

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

.feudo--panel {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	border-bottom: 1px solid var(--haarlijn);
	max-width: none;
	padding: 0;
}

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

.feudo__kicker {
	font-family: Figtree, sans-serif;
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vino);
	margin: 0 0 0.35rem;
}

/* =========================================================================
   4. Bottoni
   ========================================================================= */

.feudobtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 36px;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--vino);
	background: var(--vino);
	color: var(--velum);
	font-family: Figtree, sans-serif;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.feudobtn:hover,
.feudobtn:focus-visible {
	background: var(--inchiostro);
	border-color: var(--inchiostro);
	color: var(--velum);
}

.feudobtn--stil {
	background: transparent;
	color: var(--vino);
}

.feudobtn--stil:hover,
.feudobtn--stil:focus-visible {
	background: var(--panel);
	color: var(--inchiostro);
	border-color: var(--rand);
}

.feudobtn--keuze {
	background: var(--velum);
	color: var(--inchiostro);
	border-color: var(--rand);
	text-align: left;
}

.feudobtn--keuze[aria-pressed="true"] {
	background: var(--inchiostro2);
	border-color: var(--inchiostro2);
	color: var(--velum);
}

.feudobtn--volg {
	background: var(--panel);
	border-style: dashed;
}

.rijbtn {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

/* =========================================================================
   5. Hero, duo, griglia, cta
   ========================================================================= */

.cortile {
	position: relative;
	min-height: 22rem;
	display: grid;
	align-items: end;
	background: var(--panel) center / cover no-repeat;
}

.cortile__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 3.5rem 1rem 2.4rem;
	background: linear-gradient(180deg, rgba(34, 24, 14, 0.68) 0%, rgba(34, 24, 14, 0.86) 48%, rgba(34, 24, 14, 0.94) 100%);
	width: 100%;
}

.cortile__lastra h1,
.cortile__lastra p,
.cortile__lastra .feudo__kicker {
	color: var(--velum);
}

.cortile__lastra .feudo__kicker {
	color: var(--velum);
}

.cortile .feudobtn--stil {
	border-color: var(--velum);
	color: var(--velum);
}

.cortile .feudobtn--stil:hover,
.cortile .feudobtn--stil:focus-visible {
	background: var(--velum);
	color: var(--inchiostro);
}

.duo {
	display: grid;
	gap: 1.2rem;
	align-items: center;
}

.duo figure {
	margin: 0;
}

.titoligriglia {
	display: grid;
	gap: 1rem;
}

.vassallo-kaart {
	display: flex;
	flex-direction: column;
	background: var(--velum);
	border: 1px solid var(--haarlijn);
}

.vassallo-kaart img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.vassallo-kaart__corpo {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.9rem 1rem 1rem;
}

.vassallo-kaart__corpo .feudobtn {
	margin-top: auto;
	align-self: flex-start;
}

.vassallo-kaart--muta {
	background: var(--panel);
	min-height: 12rem;
	justify-content: flex-end;
}

.cta-galleria {
	position: relative;
	background: var(--inchiostro) center / cover no-repeat;
}

.cta-galleria__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.6rem 1rem;
	background: linear-gradient(90deg, rgba(34, 24, 14, 0.92) 0%, rgba(34, 24, 14, 0.88) 62%, rgba(34, 24, 14, 0.82) 100%);
}

.cta-galleria h2,
.cta-galleria p {
	color: var(--velum);
}

.banner-cera {
	min-height: 8rem;
	background: var(--panel) center / cover no-repeat;
	border-bottom: 1px solid var(--haarlijn);
}

.banner-cera__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.2rem 1rem;
	background: linear-gradient(180deg, rgba(246, 241, 232, 0.15), rgba(34, 24, 14, 0.72));
}

.banner-cera h1,
.banner-cera p {
	color: var(--velum);
}

/* =========================================================================
   6. Strumenti
   ========================================================================= */

.linea__eredi,
.parere__scelte,
.schema__passi,
.legge__scelte {
	display: grid;
	gap: 0.45rem;
	margin: 0 0 0.9rem;
}

.linea__eredi .feudobtn,
.parere__scelte .feudobtn,
.schema__passi .feudobtn,
.legge__scelte .feudobtn {
	width: 100%;
	min-width: 0;
}

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

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

.linea__stand,
.parere__stand,
.schema__stand,
.legge__stand {
	background: var(--panel);
	border-left: 4px solid var(--vino);
	padding: 0.7rem 0.85rem;
	font-weight: 600;
}

.linea__volgorde {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.8rem;
}

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

.linea__chip .cifra {
	color: var(--vino);
}

/* =========================================================================
   7. Note vassallo, persone, cronaca, faq
   ========================================================================= */

.note-vassallo {
	display: grid;
	gap: 0.85rem;
}

.vassallofoglio {
	background: var(--panel);
	border: 1px solid var(--haarlijn);
	padding: 0.85rem 1rem 0.7rem;
	transform: rotate(-0.4deg);
}

.vassallofoglio:nth-child(even) {
	transform: rotate(0.5deg);
}

.vassallofoglio__meta {
	font-family: Figtree, sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--polvere);
	margin: 0;
}

.persone {
	display: grid;
	gap: 1.2rem;
}

.persone article {
	display: grid;
	gap: 0.7rem;
}

.persone img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.persone--inverso article:last-child {
	direction: ltr;
}

.titolocronaca {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--haarlijn);
}

.titolocronaca article {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.8rem 1.1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--haarlijn);
}

.titolocronaca__data {
	font-family: Figtree, sans-serif;
	font-weight: 600;
	color: var(--vino);
	min-width: 6.5rem;
}

.titolocronaca h2 {
	margin: 0 0 0.3rem;
}

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

.faq details {
	border-bottom: 1px solid var(--haarlijn);
	padding: 0.45rem 0;
}

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

.faq p {
	margin: 0.4rem 0 0.7rem;
	color: var(--polvere);
}

/* =========================================================================
   8. Form, tavole
   ========================================================================= */

.modulo p {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

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

.modulo input,
.modulo textarea {
	width: 100%;
	min-height: 36px;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--rand);
	background: var(--velum);
	font-family: Figtree, sans-serif;
	font-size: 1rem;
	color: var(--inchiostro);
}

.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(--inchiostro2);
	background: var(--panel);
	margin-bottom: 1rem;
}

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

.tavola-scorr {
	overflow-x: auto;
	margin: 0 0 1rem;
}

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

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: Figtree, sans-serif;
	font-weight: 600;
	background: var(--panel);
	padding: 0.05rem 0.25rem;
}

.indirizzo {
	background: var(--panel);
	padding: 1rem;
	border: 1px solid var(--haarlijn);
}

.contatti-griglia {
	display: grid;
	gap: 1.2rem;
}

/* =========================================================================
   9. Separatore, cookie, piede, 404
   ========================================================================= */

.feudonaht {
	color: var(--vino);
	line-height: 0;
	overflow: hidden;
}

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

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

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

.koekrand p {
	margin: 0;
}

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

.koekrand__knoppen .feudobtn {
	width: 100%;
}

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

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

.voet__lijst {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.4rem;
}

.voet__lijst a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.25rem 0.45rem;
	text-decoration: none;
	color: var(--inchiostro);
	font-weight: 600;
}

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

.voet__verklaring {
	font-size: 0.92rem;
	color: var(--polvere);
}

.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: Figtree, sans-serif;
	font-weight: 600;
	font-size: clamp(4rem, 14vw, 8rem);
	color: var(--vino);
	line-height: 0.9;
	margin: 0 0 0.6rem;
}

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

.js .opdaagt {
	opacity: 0;
	transform: translateY(12px);
}

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

.pezzo p:last-child {
	margin-bottom: 0;
}

.pezzo-meta {
	font-family: Figtree, sans-serif;
	font-weight: 600;
	color: var(--polvere);
	margin: 0 0 1rem;
}

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

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

	.duo--inverso {
		grid-template-columns: 1fr 1.1fr;
	}

	.duo--inverso figure {
		order: 2;
	}

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

	.titoligriglia .vassallo-kaart:first-child {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1.2fr 1fr;
	}

	.titoligriglia .vassallo-kaart:first-child img {
		height: 100%;
		aspect-ratio: auto;
	}

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

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

	.parere__scelte,
	.legge__scelte {
		grid-template-columns: 1fr 1fr;
	}

	.note-vassallo {
		grid-template-columns: 1fr 1fr;
	}

	.note-vassallo article:first-child {
		grid-column: 1 / -1;
	}

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

	.persone article:first-child {
		padding-right: 0.4rem;
	}

	.persone article:last-child {
		padding-left: 0.4rem;
		margin-top: 2.4rem;
	}

	.contatti-griglia {
		grid-template-columns: 0.9fr 1.1fr;
	}

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

	.faq {
		columns: 2;
		column-gap: 1.4rem;
	}

	.faq details {
		break-inside: avoid;
	}
}

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

	.torrione__lijst {
		justify-content: flex-end;
	}

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

	.titoligriglia .vassallo-kaart:first-child {
		grid-column: auto;
		display: flex;
	}

	.linea__eredi {
		grid-template-columns: repeat(5, 1fr);
	}

	.schema__passi {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 61.99em) {
	.torrione__nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--velum);
		border-bottom: 1px solid var(--rand);
		padding: 0.4rem 1rem 0.8rem;
	}

	.torrione--aperto .torrione__nav {
		display: block;
	}

	.torrione--aperto .torrione__lijst {
		display: flex;
		flex-direction: column;
	}

	.torrione--aperto .torrione__lijst a {
		width: 100%;
	}
}

@media (max-width: 39.99em) {
	.koekrand__knoppen {
		grid-template-columns: 1fr;
	}

	.titolocronaca article {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
}
