:root {
	--font-sans: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, 'Segoe UI', sans-serif;
	--font-serif: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
	--font-mono: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
	--font-hand: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive;

	/* Light theme */
	--nc-tx-1: #1D0805; /* header */
	--nc-tx-2: #340805; /* testo */
	--nc-bg-1: #FAF5F5; /* bg pagina */
	--nc-bg-1-tr: #FAF5F5CC; /* bg pagina trasparente 80% */
	--nc-bg-2: #C9BABA; /* #C9BABA; EEE7E7 bg blockquote */
	--nc-bg-2-tr: #C9BABAE6; /* #C9BABA; EEE7E7 bg blockquote 90% */
	--nc-bg-3: #8C1F17;
	--nc-lk-1: #D93025; /* link */
	--nc-lk-1-tr: #D93025B4; /* link trasparente 70% */
	--nc-lk-2: #FF542B; /* link hover */
	--nc-lk-tx: #FFFFFF; /* input button */
	--nc-ac-1: #79FFE1; /* selected bg */
	--nc-ac-tx: #0C4047; /* selected color */

	/* Dark theme */
	/* --nc-d-tx-1: #ffffff; */
	--nc-d-tx-1: #FAF5F5;
	/* --nc-d-tx-2: #eeeeee; */
	--nc-d-tx-2: #C9BABA;
	/* --nc-d-bg-1: #000000; */
	--nc-d-bg-1: #1D0805;
	--nc-d-bg-1-tr: #1D0805CC;
	/* --nc-d-bg-2: #111111; */
	--nc-d-bg-2: #340805;
	--nc-d-bg-2-tr: #340805E6;
	/* --nc-d-bg-3: #222222; */
	--nc-d-bg-3: #8C1F17;
	/* --nc-d-lk-1: #3291FF; */
	--nc-d-lk-2: #FF542B;
	/* --nc-d-lk-2: #0070F3; */
	--nc-d-lk-1: #D93025;
	--nc-d-lk-1-tr: #D93025B4;
	/* --nc-d-lk-tx: #FFFFFF; */
	--nc-d-lk-tx: #C9BABA;
	--nc-d-ac-1: #7928CA;
	--nc-d-ac-tx: #FFFFFF;

	--space: 6px;

}

/*
[data-theme="light"] {
  --nc-tx-1: #1D0805;
  --nc-tx-2: #340805;
  --nc-bg-1: #FAF5F5;
  --nc-bg-1-tr: #FAF5F5CC;
  --nc-bg-2: #C9BABA;
  --nc-bg-2-tr: #C9BABAE6;
  --nc-bg-3: #8C1F17;
  --nc-lk-1: #D93025;
  --nc-lk-1-tr: #D93025B4;
  --nc-lk-2: #FF542B;
  --nc-lk-tx: #FFFFFF;
  --nc-ac-1: #79FFE1;
  --nc-ac-tx: #0C4047;
}

[data-theme="dark"] {
  --nc-tx-1: #FAF5F5;
  --nc-tx-2: #C9BABA;
  --nc-bg-1: #1D0805;
  --nc-bg-1-tr: #1D0805CC;
  --nc-bg-2: #340805;
  --nc-bg-2-tr: #340805E6;
  --nc-bg-3: #8C1F17;
  --nc-lk-1: #D93025;
  --nc-lk-1-tr: #D93025B4;
  --nc-lk-2: #FF542B;
  --nc-lk-tx: #C9BABA;
  --nc-ac-1: #7928CA;
  --nc-ac-tx: #FFFFFF;
}
*/

@media (prefers-color-scheme: dark_) {
	:root {
		--nc-tx-1: var(--nc-d-tx-1);
		--nc-tx-2: var(--nc-d-tx-2);
		--nc-bg-1: var(--nc-d-bg-1);
		--nc-bg-2: var(--nc-d-bg-2);
		--nc-bg-3: var(--nc-d-bg-3);
		--nc-lk-1: var(--nc-d-lk-1);
		--nc-lk-1-tr: var(--nc-d-lk-1-tr);
		--nc-lk-2: var(--nc-d-lk-2);
		--nc-lk-tx: var(--nc--d-lk-tx);
		--nc-ac-1: var(--nc-d-ac-1);
		--nc-ac-tx: var(--nc--d-ac-tx);
    --nc-bg-1-tr: var(--nc-d-bg-1-tr);
    --nc-bg-2-tr: var(--nc-d-bg-2-tr);
	}
}

* {
	/* Reset margins and padding */
	margin: 0;
	padding: 0;
}

address,
area,
article,
aside,
audio,
blockquote,
datalist,
details,
dl,
fieldset,
figure,
form,
input,
iframe,
img,
meter,
nav,
ol,
optgroup,
option,
output,
p,
pre,
progress,
ruby,
section,
table,
textarea,
ul,
video {
	/* Margins for most elements */
	margin-bottom: 1rem;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
	font-family: var(--font-serif);
}

input,select,button {
	/* Set body font family and some finicky elements */
	font-family: var(--font-sans);
}

body {
	/* Center body in page */
	margin: 0 auto;
	max-width: 750px;
	padding: 2rem;
	border-radius: 6px;
	overflow-x: hidden;
	word-break: break-word;
	overflow-wrap: break-word;
	/* background: var(--nc-bg-1); */
	background: var(--nc-lk-1);

	/* Main body text */
	color: var(--nc-tx-2);
	font-size: 1.55rem;
	line-height: 2.15rem;
	-webkit-font-smoothing: antialiased;
}

::selection {
	/* Set background color for selected text */
	background: var(--nc-ac-1);
	color: var(--nc-ac-tx);
}

h1,h2,h3,h4,h5,h6 {
	line-height: 1.25;
	color: var(--nc-tx-1);
	padding-top: .875rem;
	font-family: var(--font-sans);
	font-variant-numeric: lining-nums;
}

h1,
h2,
h3 {
	color: var(--nc-tx-1);
	padding-bottom: 2px;
	margin-bottom: 8px;
}

h4,
h5,
h6 {
	margin-bottom: .3rem;
}

h1, .h1 {
	font-size: 3.05rem;
}

h2, .h2 {
	font-size: 2.55rem;
}

h3, .h3 {
	font-size: 2.25rem;
}

h4, .h4 {
	font-size: 1.75rem;
}

h5, .h5 {
	font-size: 1.25rem;
}

h6, .h6 {
	font-size: .875rem;
}

a {
	color: var(--nc-lk-1);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

a:hover {
	color: var(--nc-lk-2);
	border-bottom: 2px solid var(--nc-lk-2);
}

a.clear:hover {
	border-bottom: 2px solid transparent;
}

abbr:hover {
	/* Set the '?' cursor while hovering an abbreviation */
	cursor: help;
}

blockquote {
	padding: 1.5rem;
	background: var(--nc-bg-2);
	border-left: 5px solid var(--nc-bg-3);
}

abbr {
	cursor: help;
}

blockquote *:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

main {
	background: var(--nc-bg-1);
	margin: 0 calc(50% - 50vw) -2rem;
	padding-top: 2rem;
	padding-bottom: 6rem;
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}

footer {
	background: var(--nc-lk-1);
	padding: 2rem 1.5rem;
	margin: 0 calc(50% - 50vw) -2rem;
	color: var(--nc-bg-1);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	line-height: 2.5rem;
	text-transform: uppercase;
}

footer a {
	color: var(--nc-bg-1);
}

footer a:hover {
	color: var(--nc-tx-1);
	border-color: transparent;
}

footer span.icon {
	background: none;
	/* border: 1px solid var(--nc-bg-3); */
}

/* Header menu principale */
header {
	background: var(--nc-lk-1);
	/* border-bottom: 1px solid var(--nc-bg-3); */
	padding: 2rem 1.5rem 0;
	color: var(--nc-bg-1);
	
	/* This sets the right and left margins to cancel out the body's margins. It's width is still the same, but the background stretches across the page's width. */

	margin: -2rem calc(50% - 50vw) 0;

	/* Shorthand for:

	margin-top: -2rem;
	margin-bottom: 2rem;

	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw); */

	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
	font-family: var(--font-sans);
	text-align: center;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/*min-height: 80vh;*/
	/*transition: min-height 0.8s ease-out;*/
}

header h1,
header h2,
header h3 {
	padding-bottom: 0;
	border-bottom: 0;
	color: var(--nc-bg-1);
}

header > *:first-child {
	margin-top: 0;
	padding-top: 0;
}

header > *:last-child {
	margin-bottom: 0;
}

header ul {
	margin-bottom: 0;
}

/* Header Hero con immagine articolo in bg */
header.hero {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
  min-height: 60vh;
}

header .logo-container {
	flex-grow: 1;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

header .logo-container img, header .logo-container svg {
	/* max-width: 40vw; */
	/* min-width: 250px; */
	/*height: 4rem;*/
  max-width: 450px;
}

/* Nav principale */
header nav {
	margin: 0rem calc(50% - 50vw) 0rem;
	padding: 1.25rem 0;
	background: var(--nc-lk-1);
}
header.hero nav {
	background: var(--nc-lk-1-tr);
}
header nav a {
	color: var(--nc-bg-1);
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1.25rem;
	border-bottom: none;
}
header nav:not(.sub-nav) .icon {
	background-color: var(--nc-bg-1);
}
header nav:not(.sub-nav) .icon path {
	fill: var(--nc-tx-2);
}

/* Nav secondario */
header nav.sub-nav {
	margin: 0 calc(50% - 50vw) 0;
	background: var(--nc-bg-1);
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--nc-lk-1);
}
header.hero nav.sub-nav {
	background: var(--nc-bg-1-tr);
}
header nav.sub-nav a {
	font-weight: 500;
	font-size: 1rem;
	color: var(--nc-lk-1);
}
header nav a:hover,
header nav.sub-nav a:hover {
	color: var(--nc-tx-2);
	border-bottom: none;
}
header nav .active a {
	color: var(--nc-tx-2);
}

header nav li.active .icon {
	background-color: var(--nc-tx-2);
}
header nav li.active .icon path {
	fill: var(--nc-bg-1);
}

article {
	font-family: var(--font-serif);
	margin: 1.5rem 0 4.5rem 0;
}

.article-banner {
	display: flex;
	justify-content: center;
	margin: 2rem 0 0;
	padding: 0.75rem 0;
	background: var(--nc-bg-2);
}

.article-banner > a,
.article-banner > img {
	width: 100%;
	max-width: 728px;
}

.article-banner a,
.article-banner img {
	display: block;
}

.article-banner img {
	margin: 0;
}

/* Billboard pubblicitario con rotazione. */
.banner-billboard {
  margin: 0 0 2rem;
}

.banner-billboard a,
.banner-billboard img {
  display: block;
}

.banner-billboard img {
  width: 100%;
  height: auto;
  margin: 0;
}

.banner-billboard.is-rotating {
  position: relative;
  aspect-ratio: 970 / 250;
  overflow: hidden;
}

.banner-billboard.is-rotating [data-billboard-layer] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease-in-out;
}

.banner-billboard.is-rotating [data-billboard-layer].is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.banner-billboard.is-rotating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .banner-billboard.is-rotating [data-billboard-layer] {
    transition: none;
  }
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
	font-family: var(--font-sans);
	margin-bottom: 1.4rem;
}

a button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	font-size: 1rem;
	display: inline-block;
	padding: 6px 12px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	background: var(--nc-lk-1);
	color: var(--nc-lk-tx);
	border: 0;
	border-radius: 4px;
	box-sizing: border-box;
	cursor: pointer;
	text-transform: uppercase;
}

a button[disabled],
button[disabled],
input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled] {
	cursor: default;
	opacity: .5;

	/* Set the [X] cursor while hovering a disabled link */
	cursor: not-allowed;
}

.button:focus,
.button:enabled:hover,
button:focus,
button:enabled:hover,
input[type="submit"]:focus,
input[type="submit"]:enabled:hover,
input[type="reset"]:focus,
input[type="reset"]:enabled:hover,
input[type="button"]:focus,
input[type="button"]:enabled:hover {
	background: var(--nc-lk-2);
}

input[type="text"]:focus, 
input[type="email"]:focus,
textarea:focus {
	outline: 1px solid var(--nc-lk-1);
}

a img {
	/* margin-bottom: 0px; */
}

code,
pre,
kbd,
samp {
	/* Set the font family for monospaced elements */
	font-family: var(--font-mono);
}

code,
samp,
kbd,
pre {
	/* The main preformatted style. This is changed slightly across different cases. */
	background: var(--nc-bg-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
	padding: 3px 6px;
	/* ↓ font-size is relative to containing element, so it scales for titles*/
	font-size: 0.9em;
}

kbd {
	/* Makes the kbd element look like a keyboard key */
	border-bottom: 3px solid var(--nc-bg-3);
}

pre {
	padding: 1rem 1.4rem;
	max-width: 100%;
	overflow: auto;
}

pre code {
	/* When <code> is in a <pre>, reset it's formatting to blend in */
	background: inherit;
	font-size: inherit;
	color: inherit;
	border: 0;
	padding: 0;
	margin: 0;
}

code pre {
	/* When <pre> is in a <code>, reset it's formatting to blend in */
	display: inline;
	background: inherit;
	font-size: inherit;
	color: inherit;
	border: 0;
	padding: 0;
	margin: 0;
}

details {
	/* Make the <details> look more "clickable" */
	padding: .6rem 1rem;
	background: var(--nc-bg-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
}

summary {
	/* Makes the <summary> look more like a "clickable" link with the pointer cursor */
	cursor: pointer;
	font-weight: bold;
}

details[open] {
	/* Adjust the <details> padding while open */
	padding-bottom: .75rem;
}

details[open] summary {
	/* Adjust the <details> padding while open */
	margin-bottom: 6px;
}

details[open]>*:last-child {
	/* Resets the bottom margin of the last element in the <details> while <details> is opened. This prevents double margins/paddings. */
	margin-bottom: 0;
}

dt {
	font-weight: bold;
}

dd::before {
	/* Add an arrow to data table definitions */
	content: '→ ';
}

hr {
	/* Reset the border of the <hr> separator, then set a better line */
	border: 0;
	border-bottom: 1px solid var(--nc-bg-3);
	margin: 1rem auto;
}

fieldset {
	margin-top: 1rem;
	padding: 2rem;
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
	display: flex;
	flex-direction: column;
}

legend {
	padding: auto .5rem;
}

table {
	/* border-collapse sets the table's elements to share borders, rather than floating as separate "boxes". */
	border-collapse: collapse;
	width: 100%
}

td,
th {
	border: 1px solid var(--nc-bg-3);
	text-align: left;
	padding: .5rem;
}

th {
	background: var(--nc-bg-2);
}

tr:nth-child(even) {
	/* Set every other cell slightly darker. Improves readability. */
	background: var(--nc-bg-2);
}

table caption {
	font-weight: bold;
	margin-bottom: .5rem;
}

textarea {
	/* Don't let the <textarea> extend off the screen naturally or when dragged by the user */
	max-width: 100%;
}

ol,
ul {
	/* Replace the browser default padding */
	padding-left: 2rem;
}

li {
	margin-top: .4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
	margin-bottom: 0;
}

mark {
	padding: 3px 6px;
	background: var(--nc-ac-1);
	color: var(--nc-ac-tx);
}

textarea,
select,
input {
	padding: 6px 12px;
	margin: .5rem 0;
	background: var(--nc-bg-2);
	color: var(--nc-tx-2);
	border: 1px solid var(--nc-bg-3);
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1.25rem;
}

img {
	max-width: 100%;
	margin-top: 1rem;
}

input::placeholder,
input::-moz-placeholder, 
input::-webkit-input-placeholder,
textarea::placeholder {
	/* color: var(--nc-bg-2); */
	font-weight: 300;
}

/* ---------- Classi ---------- */

/* Icona circolare */
span.icon {
	background: var(--nc-lk-1);
	display: inline-flex;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 1.75rem;
	vertical-align: middle;
	margin-right: 0.5rem;
	justify-content: center;
	align-items: center;
}
span.icon svg {
	height: 1.15rem;
	width: 1.15rem;
}
span.icon path, .menu-icon path {
	fill: var(--nc-bg-1);
}
.icon-right {
	margin-right: 0 !important;
	margin-left: 0.5rem;
}
.icon-muted {
	background: var(--nc-bg-2) !important;
	margin-left: 0.5rem;
}
.icon-muted path {
	/* fill: var(--nc-tx-2) !important; */
}

.flex-justify {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: calc(var(--space) * 2);
}

.flex-equals > * {
	flex-grow: 1;
	flex-shrink: 1;
}

.flex-third > *:first-child {
	min-width: 33%;
}
.flex-third > *:last-child {
	min-width: 33%;
}

.flex-left {
	display: flex;
	justify-content: flex-start;
	gap: calc(var(--space) * 2);
}

.flex-right {
	display: flex;
	justify-content: flex-end;
	gap: calc(var(--space) * 2);
}

body.index {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	max-width: none;
	min-height: 100vh;
	padding: 0;
	overflow-x: hidden;
}

body.index footer {
	border-top: 1px solid rgba(250, 245, 245, 0.25);
	margin-bottom: 0;
	padding-right: 0.75rem;
	padding-left: 0.75rem;
}

.index-home {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
}

.index-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3rem 2rem 2rem;
}

.index-logo-mark svg {
	display: block;
	width: 8rem;
	height: 8rem;
}

.index-logo-text {
	display: block;
	width: min(80vw, 430px);
	margin-top: 1.25rem;
}

.index-logo-text svg {
	display: block;
	width: 100%;
	height: auto;
}

.subtitle {
	color: var(--nc-bg-1);
	font-family: var(--font-hand);
	font-size: 1.25rem;
	font-variant-numeric: lining-nums;
	line-height: 1.5;
	margin-top: 0.75rem;
}

/* Sezioni e data articoli */
.info {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
}
.info li:first-child {
	margin-left: 0;
}
.info li a {
	/* text-decoration: none;
	color: var(--nc-tx-2); */
}
.info span.icon {
	/* line-height: 2.1rem; */
}

time {
	color: var(--nc-lk-2);
	font-variant-numeric: lining-nums;
}

/* Impaginazione */
.pagination {
	text-align: center;
	font-family: var(--font-sans);
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: lining-nums;
}
.pagination ul.inline li {
	margin: 0;
}
.pagination li a, .pagination li > span {
	display: inline-block;
	padding: 0 0.75rem;
	/* border-bottom: 1px solid transparent; */
}
.pagination li a:hover {
	/* border-bottom: 1px solid var(--nc-lk-2); */
}

/* Breadcrumb */
nav.breadcrumb {
	padding-top: 1rem;
	font-family: var(--font-sans);
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1rem;
	color: var(--nc-bg-3);
}
nav.breadcrumb a {
	color: var(--nc-tx-2);
}

.page-title {
	margin-bottom: 2.25rem;
	/* font-size: 1.25rem !important; */
}

.margin-top {
	margin-top: 2.25rem;
}

dialog {
	position: fixed;
	top: calc(50% - 50vh);
	left: calc(50% - 50vw);
	width: 100vw;
	height: 100vh;
	border: none;
	/* border-radius: 1.25rem; */
	padding: 2.25rem;
	overflow: hidden;
	background: var(--nc-bg-2-tr);
}
dialog form {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
dialog form > button {
	align-self: end;
	background: transparent;
}
dialog form > button:focus,
dialog form > button:enabled:hover {
	background: transparent;
}
dialog div.field {
	display: flex;
	flex-direction: column;
	padding-top: 4.50rem;
}
dialog div.field input {
	margin-top: 2.25rem;
	background: var(--nc-bg-1);
	font-size: 3.25rem;
}
dialog div.field button {
	align-self: center;
	font-size: 2.25rem;
	margin-top: 2.25rem;
}

/* Lista orizzontale */
ul.inline, ul.clean {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0;
}
ul.inline li {
	display: inline;
	margin: 0 1rem;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-light {
	color: var(--nc-bg-1);
}

.content {
	margin: 1.25rem 0;
}

.elapsed time {
	color: var(--nc-bg-2) !important;
}
.elapsed .icon {
	background: var(--nc-bg-2);
}

#spotlight {
	left: 0px;
	right: 0px;
}

.gallery {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space);
}

.banner {
	margin-left: auto;
}

.spaced {
	margin-top: 4.5rem;
	margin-bottom: 2.5rem;
}

.menu-icon {
	display: none;
}
.menu-icon svg {
	width: 3rem;
	height: 3rem;
}

.menu-links {
	transition: opacity 0.8s, height 0.5s, padding 0.5s;
	opacity: 1;
	height: auto;
	overflow: hidden;
}

/* Desktop */
@media only screen and (min-width: 750px) {
	.nowrap {
		flex-wrap: nowrap !important;
	}
}

/* Smartphone */
@media only screen and (max-width: 750px) {
	html {
		font-size: 14px;
	}
	header nav .inline li {
		display: block;
		text-align: left;
		padding-left: 1.25rem;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}
	dialog div.field input {
		font-size: 2rem;
	}
	.menu-icon {
		display: block;
	}
	.menu-links:not(.show-links) {
		opacity: 0;
		height: 0;
		padding: 0;
	}
	article {
		text-align: justify;
		text-justify: inter-word;
	}
	article h1, article h2 {
		text-justify: none;
	}
}

.index .banner-billboard {
	width: min(55vw, 970px);
	margin: 1rem auto 3rem;
}

.index-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 2.5rem 0.75rem 3rem;
}

.index-post-card {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.15;
	text-align: left;
	text-transform: uppercase;
}

.index-post-card a {
	display: block;
	color: var(--nc-bg-1);
}

.index-post-card img {
	display: block;
	width: 100%;
	aspect-ratio: 750 / 392;
	margin: 0 0 1rem;
	object-fit: cover;
}

@media only screen and (max-width: 750px) {
	.index-title {
		padding-top: 2rem;
	}

	.index .banner-billboard {
		width: calc(100% - 2rem);
	}

	.index-posts {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.block {
	display: block;
}

.bounce-horizontal {
	animation: bounce-h infinite 2s ease-out;
}

@keyframes bounce-h {
  0% {
    transform: scaleX(1) translateX(-10px) scaleY(1);
  }
  70% {
    transform: scaleX(0.8) translateX(0px) scaleY(1.2);
  }
  100% {
    transform: scaleX(1) translateX(-10px);
  }
}

/* Toggle Css Theme dark/light */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3; /* Un colore per lo stato "on" */
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

.sun, .moon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  color: #fff; /* Colore delle icone quando lo slider è attivo */
  transition: opacity 0.2s;
}

.moon {
  opacity: 0.6; /* Leggermente meno visibile all'inizio */
}

input:checked + .slider .sun {
  opacity: 0.6;
}

input:checked + .slider .moon {
  opacity: 1;
}
