/* Pagine secondarie: archivio degli articoli e "non trovato". Font in fonts.css. */

:root {
	--font-title: "Les Flos Sage", "Fredoka", sans-serif; /* font dei titoli */
	--brown: #432f2c;
	--cream: #fbf9e1;
	--forest: #06754d;
	--gold: #c8a627;
	--mint: #17fc96;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 130px;
	background: var(--cream);
}
body {
	margin: 0;
	background: var(--cream);
	color: var(--brown);
	font-family: Raleway, Calibri, "Segoe UI", Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}
a {
	color: inherit;
}
header.site {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--brown);
	border-bottom: 2px solid var(--gold);
}
header.site a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	color: var(--cream);
	font:
		700 1.5rem var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
	text-decoration: none;
}
header.site img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.hero {
	position: relative;
	padding: 54px 24px 0;
	overflow: hidden;
	background: var(--brown);
	color: var(--cream);
	text-align: center;
}
.hero h1 {
	margin: 0 auto;
	max-width: 820px;
	font:
		600 clamp(2.3rem, 6.5vw, 4.2rem)/1.05 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
}
.count {
	display: inline-block;
	margin-top: 18px;
	padding: 5px 16px;
	border-radius: 99px;
	background: rgba(23, 252, 150, 0.16);
	color: var(--mint);
	font-weight: 700;
}
@keyframes bob {
	0%,
	100% {
		transform: translateY(0) rotate(0);
	}
	50% {
		transform: translateY(-8px) rotate(-3deg);
	}
}
.wave {
	display: block;
	width: calc(100% + 48px);
	max-width: none;
	height: 70px;
	margin: 26px 0 0 -24px;
}
.wave path {
	fill: var(--cream);
}

nav.years {
	position: sticky;
	top: 64px;
	z-index: 20;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(251, 249, 225, 0.94);
	backdrop-filter: blur(6px);
}
nav.years a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 99px;
	background: #fff8e6;
	border: 1px solid rgba(67, 47, 44, 0.14);
	font:
		600 1rem Fredoka,
		"Segoe UI",
		Arial,
		sans-serif;
	text-decoration: none;
	transition:
		transform 0.2s var(--ease),
		background 0.2s;
}
nav.years a:hover {
	background: var(--forest);
	color: var(--cream);
	transform: translateY(-2px);
}
nav.years b {
	padding: 0 8px;
	border-radius: 99px;
	background: var(--gold);
	color: #3a2a10;
	font-size: 0.8rem;
}

main.timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 40px;
}
main.timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 30px;
	width: 4px;
	margin-left: -2px;
	border-radius: 4px;
	background: repeating-linear-gradient(
		to bottom,
		rgba(6, 117, 77, 0.38) 0 14px,
		transparent 14px 26px
	);
}
.year {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 54px 0 14px;
}
.year span {
	padding: 4px 30px 8px;
	border-radius: 99px;
	background: var(--forest);
	color: var(--cream);
	font:
		700 clamp(2.2rem, 6vw, 3.4rem)/1 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
	box-shadow: 0 8px 0 -3px rgba(6, 117, 77, 0.28);
}
.year small {
	display: none;
}
.month {
	position: relative;
	z-index: 2;
	margin: 34px 0 6px;
	text-align: center;
}
.month span {
	display: inline-block;
	padding: 4px 18px;
	border-radius: 99px;
	background: var(--gold);
	color: #3a2a10;
	font:
		600 1.05rem var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
	letter-spacing: 0.02em;
}
ol.posts {
	margin: 0;
	padding: 0;
	list-style: none;
}
.post {
	position: relative;
	width: 50%;
	padding: 14px 40px 14px 0;
	opacity: 0;
	animation: rise 0.65s var(--ease) both;
	animation-delay: min(calc(var(--i) * 70ms), 700ms);
}
.post.r {
	margin-left: 50%;
	padding: 14px 0 14px 40px;
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.post .dot {
	position: absolute;
	top: 36px;
	right: -15px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #5fbf65, #045c45 75%);
	box-shadow:
		0 0 0 5px var(--cream),
		0 0 0 7px rgba(6, 117, 77, 0.3);
}
.post .dot::after {
	content: "";
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: var(--mint);
}
.post.r .dot {
	left: -15px;
	right: auto;
}
.card {
	display: block;
	overflow: hidden;
	padding: 18px;
	border: 1px solid rgba(67, 47, 44, 0.1);
	border-radius: 26px;
	background: var(--tone);
	color: inherit;
	text-decoration: none;
	box-shadow: 0 16px 30px -24px rgba(67, 47, 44, 0.7);
	transition:
		transform 0.3s var(--ease),
		box-shadow 0.3s var(--ease);
}
.tone0 {
	--tone: #fff8e6;
}
.tone1 {
	--tone: #e3f4ea;
}
.tone2 {
	--tone: #f7edc4;
}
.post.l .card {
	transform: rotate(-0.7deg);
}
.post.r .card {
	transform: rotate(0.7deg);
}
.card:hover,
.card:focus-visible {
	transform: translateY(-7px) rotate(0);
	box-shadow: 0 26px 40px -24px rgba(67, 47, 44, 0.75);
	outline: none;
}
.card:focus-visible {
	box-shadow: 0 0 0 3px var(--forest);
}
.card .cover {
	display: block;
	width: 100%;
	aspect-ratio: 16/10;
	margin-bottom: 14px;
	object-fit: cover;
	border-radius: 18px;
}
.card .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 16px;
	background: var(--brown);
}
.card .icon img {
	width: 68%;
}
.tone1 .icon {
	background: var(--forest);
}
.tone2 .icon {
	background: #eadfb4;
}
.card time {
	display: inline-block;
	padding: 3px 13px;
	border-radius: 99px;
	background: var(--gold);
	color: #3a2a10;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.card h3 {
	margin: 10px 0 6px;
	font:
		600 1.32rem/1.2 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
}
.card p {
	margin: 0;
	color: rgba(67, 47, 44, 0.8);
	font-size: 0.98rem;
}
.card .more {
	display: inline-block;
	margin-top: 12px;
	color: var(--forest);
	font-weight: 700;
}
.card:hover .more {
	text-decoration: underline;
}

.end {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 34px;
	text-align: center;
}
.end p {
	margin: 0;
	font:
		600 1.1rem Fredoka,
		"Segoe UI",
		Arial,
		sans-serif;
}
.empty {
	max-width: 520px;
	margin: 30px auto 80px;
	padding: 34px 24px;
	border: 2px dashed rgba(67, 47, 44, 0.25);
	border-radius: 26px;
	text-align: center;
}
a.back {
	display: inline-block;
	margin: 6px 0 60px;
	padding: 10px 24px;
	border-radius: 99px;
	background: var(--mint);
	color: var(--brown);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.25s var(--ease);
}
a.back:hover {
	transform: translateY(-3px);
}
.foot {
	padding: 0 24px 50px;
	text-align: center;
}

@media (max-width: 760px) {
	main.timeline {
		padding: 0 16px 30px;
	}
	main.timeline::before {
		left: 22px;
		margin-left: 0;
	}
	.year,
	.month {
		justify-content: flex-start;
		text-align: left;
		padding-left: 0;
		margin-left: 0;
	}
	.year {
		margin-left: 2px;
	}
	.post,
	.post.r {
		width: 100%;
		margin-left: 0;
		padding: 10px 0 10px 54px;
	}
	.post .dot,
	.post.r .dot {
		left: 7px;
		right: auto;
		top: 32px;
	}
	.post.l .card,
	.post.r .card {
		transform: none;
	}
	nav.years {
		top: 62px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.post {
		opacity: 1;
	}
}

.empty h2 {
	font-family: var(--font-title), "Segoe UI", Arial, sans-serif;
}

/* pagine di testo semplici: "non trovato" */
.page {
	max-width: 820px;
	margin: 0 auto;
	padding: 44px 24px 80px;
}
.page h1 {
	margin: 0 0 24px;
	color: var(--forest);
	font:
		700 clamp(2rem, 5vw, 2.8rem)/1.1 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
}
.page h2 {
	margin: 34px 0 10px;
	font:
		600 1.35rem/1.25 var(--font-title),
		"Segoe UI",
		Arial,
		sans-serif;
}
.page p,
.page li {
	margin: 0 0 12px;
}
.page ul {
	margin: 0 0 12px;
	padding-left: 22px;
}
.page a:not(.back) {
	color: var(--forest);
	text-decoration: underline;
}
.page .updated {
	color: rgba(67, 47, 44, 0.7);
	font-size: 0.9rem;
}
.page .note {
	padding: 14px 18px;
	background: #fff8e6;
	border: 1px solid rgba(67, 47, 44, 0.12);
	border-radius: 14px;
}

.timeline--empty {
	padding-top: 24px;
}
