/*!
Theme Name: Davide Fustini Tema Ufficiale
Theme URI: http://underscores.me/
Author: Giacomo Meli
Author URI: http://giacomomeli.com
Description: Tema Wordpress per il sito personale di Davide Fustini
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: davide-fustini-ufficiale
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Davide Fustini Tema Ufficiale is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

@font-face {
	font-family: 'LemonMilkRegular';
	src: url('fonts/LemonMilkRegular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'InterLight';
	src: url('fonts/InterLight.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #0A1045;
	font-family: "InterLight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: "LemonMilkRegular", sans-serif;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #E08E45;
}

a:visited {
	color: #E08E45;
}

a:hover,
a:focus,
a:active {
	color: #A63D40;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid #E08E45;
	border-radius: 3px;
	background: #E08E45;
	color: #fff;
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: #A63D40;
	border-color: #A63D40;
	color: #fff;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	background: #A63D40;
	border-color: #A63D40;
	color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/* Hero Section
--------------------------------------------- */
.hero-section {
	width: 100%;
	overflow: hidden;
}

.hero-inner {
	display: flex;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 30px;
	gap: 50px;
}

.hero-image {
	flex: 1 1 50%;
	min-width: 0;
}

.hero-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

.hero-content {
	flex: 1 1 50%;
	min-width: 0;
}

.hero-title {
	margin: 0 0 0.4em;
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1.15;
	color: #1a1a2e;
}

.hero-subtitle {
	margin: 0 0 0.6em;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: #4a4a68;
}

.hero-paragraph {
	margin: 0 0 1.8em;
	font-size: 1rem;
	line-height: 1.7;
	color: #555;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.hero-btn-primary,
.hero-btn-primary:visited {
	background-color: #E08E45;
	color: #fff;
	border: 2px solid #E08E45;
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
	background-color: #A63D40;
	border-color: #A63D40;
	color: #fff;
	box-shadow: 0 2px 8px rgba(10, 16, 69, 0.1);
}

.hero-btn-secondary,
.hero-btn-secondary:visited {
	background-color: transparent;
	color: #E08E45;
	border: 2px solid #E08E45;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
	background-color: #E08E45;
	color: #fff;
	box-shadow: 0 2px 8px rgba(10, 16, 69, 0.1);
}

@media (max-width: 768px) {
	.hero-inner {
		flex-direction: column;
		padding: 40px 20px;
		gap: 30px;
		text-align: center;
	}

	.hero-image,
	.hero-content {
		flex: 1 1 100%;
	}

	.hero-title {
		font-size: 1.8rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.hero-buttons {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.hero-inner {
		padding: 30px 16px;
	}

	.hero-title {
		font-size: 1.5rem;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: stretch;
	}

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

/* Biography Section
--------------------------------------------- */
.bio-section {
	width: 100%;
	background-color: #fff;
}

.bio-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 80px 30px;
	text-align: center;
}

.bio-title {
	margin: 0 0 0.6em;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.bio-separator {
	display: block;
	width: 60px;
	height: 2px;
	margin: 0 auto 1.8em;
	background-color: #1a1a2e;
}

.bio-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.8;
	color: #333;
}

@media (max-width: 768px) {
	.bio-inner {
		padding: 60px 20px;
	}

	.bio-title {
		font-size: 1.4rem;
	}

	.bio-text {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.bio-inner {
		padding: 40px 16px;
	}

	.bio-title {
		font-size: 1.2rem;
	}
}

/* Carousel Section
--------------------------------------------- */
.carousel-section {
	width: 100%;
	background-color: #fff;
}

.carousel-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 30px;
}

.carousel-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.carousel-title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.carousel-view-all {
	font-size: 0.85rem;
	font-weight: 700;
	color: #E08E45;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.carousel-view-all:hover,
.carousel-view-all:focus {
	color: #A63D40;
}

.carousel-view-all span {
	margin-left: 4px;
}

.carousel-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.carousel-card {
	display: flex;
	flex-direction: column;
	background-color: #f5f0eb;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.carousel-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-card__image-link {
	display: block;
	line-height: 0;
}

.carousel-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.carousel-card__image--placeholder {
	aspect-ratio: 16 / 10;
	background-color: #e0d8d0;
	border-radius: 10px 10px 0 0;
}

.carousel-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 22px 24px;
}

.carousel-card__title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.carousel-card__title a {
	color: #E08E45;
	text-decoration: none;
	transition: color 0.2s ease;
}

.carousel-card__title a:hover,
.carousel-card__title a:focus {
	color: #A63D40;
}

.carousel-card__excerpt {
	margin: 0 0 16px;
	font-size: 0.85rem;
	line-height: 1.65;
	color: #555;
	flex-grow: 1;
}

.carousel-card__cta,
.carousel-card__cta:visited {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 8px 18px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	background-color: #E08E45;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background-color 0.2s ease;
}

.carousel-card__cta:hover,
.carousel-card__cta:focus {
	background-color: #A63D40;
	color: #fff;
}

.carousel-card__cta span {
	margin-left: 6px;
	font-size: 1.1em;
	line-height: 1;
}

@media (max-width: 768px) {
	.carousel-inner {
		padding: 40px 20px;
	}

	.carousel-title {
		font-size: 1.35rem;
	}

	.carousel-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.carousel-inner {
		padding: 32px 16px;
	}

	.carousel-title {
		font-size: 1.15rem;
	}

	.carousel-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Single Hero Header
--------------------------------------------- */
.single-hero {
	position: relative;
	width: 100%;
	min-height: 50vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0A1045;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.single-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.single-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px;
}

.single-hero__type {
	display: block;
	margin-bottom: 0.5em;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.85);
}

.single-hero__title {
	margin: 0;
	font-size: 2.8rem;
	font-weight: 900;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Single Article Content */
.single-article {
	margin: 0;
}

.single-article__content {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 20px;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #333;
}

.single-article__content > *:first-child {
	margin-top: 0;
}

.single-article__content > *:last-child {
	margin-bottom: 0;
}

.single-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.single-article__content a {
	color: #E08E45;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.single-article__content a:hover,
.single-article__content a:focus {
	color: #A63D40;
}

.single-article__content blockquote {
	margin: 2em 0;
	padding: 1em 1.5em;
	border-left: 4px solid #E08E45;
	background-color: #faf7f5;
	font-style: italic;
	color: #555;
}

@media (max-width: 768px) {
	.single-hero {
		min-height: 40vh;
	}

	.single-hero__content {
		padding: 40px 20px;
	}

	.single-hero__title {
		font-size: 2rem;
	}

	.single-article__content {
		padding: 40px 20px;
	}
}

@media (max-width: 480px) {
	.single-hero {
		min-height: 35vh;
	}

	.single-hero__content {
		padding: 32px 16px;
	}

	.single-hero__type {
		font-size: 0.7rem;
	}

	.single-hero__title {
		font-size: 1.6rem;
	}

	.single-article__content {
		padding: 32px 16px;
		font-size: 1rem;
	}
}

/* Blog Header
--------------------------------------------- */
.blog-header {
	width: 100%;
	background-color: #0A1045;
}

.blog-header__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 80px 30px;
	text-align: center;
}

.blog-header__title {
	margin: 0 0 0.5em;
	font-size: 2.2rem;
	font-weight: 900;
	line-height: 1.2;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.blog-header__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
	.blog-header__inner {
		padding: 60px 20px;
	}

	.blog-header__title {
		font-size: 1.8rem;
	}

	.blog-header__text {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.blog-header__inner {
		padding: 48px 16px;
	}

	.blog-header__title {
		font-size: 1.5rem;
	}
}

/* Blog Filters
--------------------------------------------- */
.blog-filters {
	width: 100%;
	background-color: #fff;
}

.blog-filters__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 30px;
}

.blog-filter-btn {
	display: inline-block;
	padding: 10px 24px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0A1045;
	background-color: transparent;
	border: 2px solid #0A1045;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn:focus {
	background-color: #0A1045;
	color: #fff;
}

.blog-filter-btn--active {
	background-color: #0A1045;
	color: #fff;
}

/* Blog Grid
--------------------------------------------- */
.blog-grid-section {
	width: 100%;
	background-color: #fff;
	position: relative;
}

.blog-grid-section.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.blog-grid-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 30px 60px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.blog-no-results {
	text-align: center;
	padding: 60px 0;
	color: #555;
	font-size: 1rem;
}

@media (max-width: 768px) {
	.blog-grid-inner {
		padding: 20px 20px 40px;
	}

	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.blog-grid-inner {
		padding: 16px 16px 32px;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Blog Pagination
--------------------------------------------- */
.blog-pagination {
	margin-top: 48px;
}

.blog-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.blog-pagination .page-numbers li {
	margin: 0;
}

.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-pagination .page-numbers li a {
	color: #1a1a2e;
	background-color: #f0f0f0;
}

.blog-pagination .page-numbers li a:hover,
.blog-pagination .page-numbers li a:focus {
	background-color: #0A1045;
	color: #fff;
}

.blog-pagination .page-numbers li span.current {
	background-color: #0A1045;
	color: #fff;
}

.blog-pagination .page-numbers li span.dots {
	background: none;
	color: #555;
}

@media (max-width: 480px) {
	.blog-pagination .page-numbers li a,
	.blog-pagination .page-numbers li span {
		min-width: 36px;
		height: 36px;
		font-size: 0.8rem;
	}
}

/* Libri Archive Grid
--------------------------------------------- */
.libri-grid-section {
	width: 100%;
	background-color: #fff;
}

.libri-grid-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 30px 60px;
}

.libri-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.libri-no-results {
	text-align: center;
	padding: 60px 0;
	color: #555;
	font-size: 1rem;
}

/* Libro Card
--------------------------------------------- */
.libro-card {
	display: flex;
	flex-direction: column;
	background-color: #0A1045;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.libro-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.libro-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 24px 22px 16px;
}

.libro-card__title {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.libro-card__title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.libro-card__title a:hover,
.libro-card__title a:focus {
	color: #E08E45;
}

.libro-card__excerpt {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.75);
	flex-grow: 1;
}

.libro-card__cover-link {
	display: block;
	text-align: center;
	padding: 12px 22px 0;
	line-height: 0;
}

.libro-card__cover {
	display: inline-block;
	width: auto;
	max-width: 65%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.libro-card__cover--placeholder {
	display: inline-block;
	width: 65%;
	aspect-ratio: 2 / 3;
	background-color: #0A1045;
	border-radius: 4px;
}

.libro-card__footer {
	padding: 16px 22px 24px;
}

.libro-card__cta,
.libro-card__cta:visited {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	background-color: #E08E45;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background-color 0.2s ease;
}

.libro-card__cta:hover,
.libro-card__cta:focus {
	background-color: #A63D40;
	color: #fff;
}

.libro-card__cta span {
	margin-left: 6px;
	font-size: 1.1em;
	line-height: 1;
}

/* Libri Pagination
--------------------------------------------- */
.libri-pagination {
	margin-top: 48px;
}

.libri-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.libri-pagination .page-numbers li {
	margin: 0;
}

.libri-pagination .page-numbers li a,
.libri-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.libri-pagination .page-numbers li a {
	color: #1a1a2e;
	background-color: #f0f0f0;
}

.libri-pagination .page-numbers li a:hover,
.libri-pagination .page-numbers li a:focus {
	background-color: #0A1045;
	color: #fff;
}

.libri-pagination .page-numbers li span.current {
	background-color: #0A1045;
	color: #fff;
}

.libri-pagination .page-numbers li span.dots {
	background: none;
	color: #555;
}

@media (max-width: 768px) {
	.libri-grid-inner {
		padding: 32px 20px 40px;
	}

	.libri-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.libri-grid-inner {
		padding: 24px 16px 32px;
	}

	.libri-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.libri-pagination .page-numbers li a,
	.libri-pagination .page-numbers li span {
		min-width: 36px;
		height: 36px;
		font-size: 0.8rem;
	}
}

/* Single Libro Hero
--------------------------------------------- */
.libro-hero {
	width: 100%;
}

.libro-hero__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 30px;
}

.libro-hero__cover-wrap {
	flex-shrink: 0;
	width: 260px;
}

.libro-hero__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.libro-hero__info {
	flex: 1;
	min-width: 0;
}

.libro-hero__title {
	margin: 0 0 20px;
	font-size: 2.6rem;
	font-weight: 900;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.libro-hero__desc {
	margin: 0 0 28px;
	font-size: 1rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.9);
}

.libro-hero__cta,
.libro-hero__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background-color: #E08E45;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.libro-hero__cta:hover,
.libro-hero__cta:focus {
	background-color: #A63D40;
	color: #fff;
}

.libro-hero__cta-icon {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.libro-hero__inner {
		flex-direction: column;
		gap: 32px;
		padding: 40px 20px;
		text-align: center;
	}

	.libro-hero__cover-wrap {
		width: 200px;
	}

	.libro-hero__title {
		font-size: 2rem;
	}

	.libro-hero__cta {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.libro-hero__inner {
		gap: 24px;
		padding: 32px 16px;
	}

	.libro-hero__cover-wrap {
		width: 180px;
	}

	.libro-hero__title {
		font-size: 1.6rem;
	}

	.libro-hero__desc {
		font-size: 0.9rem;
	}
}

/* Single Libro Synopsis
--------------------------------------------- */
.libro-synopsis {
	width: 100%;
	background-color: #fff;
}

.libro-synopsis__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 20px;
}

.libro-synopsis__title {
	margin: 0 0 24px;
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1.2;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.libro-synopsis__text {
	font-size: 1rem;
	line-height: 1.8;
	color: #333;
}

.libro-synopsis__text > *:first-child {
	margin-top: 0;
}

.libro-synopsis__text > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.libro-synopsis__inner {
		padding: 40px 20px;
	}
}

@media (max-width: 480px) {
	.libro-synopsis__inner {
		padding: 32px 16px;
	}

	.libro-synopsis__title {
		font-size: 1.3rem;
	}

	.libro-synopsis__text {
		font-size: 0.95rem;
	}
}

/* Single Libro Carousel
--------------------------------------------- */
.libro-carousel {
	width: 100%;
	background-color: #fff;
}

.libro-carousel__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 30px;
}

.libro-carousel__title {
	margin: 0 0 32px;
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1.2;
	color: #1a1a2e;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.libro-carousel__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.libro-carousel__footer {
	margin-top: 40px;
	text-align: center;
}

.libro-carousel__view-all {
	display: inline-block;
	padding: 12px 32px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1a1a2e;
	text-decoration: none;
	border: 2px solid #1a1a2e;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.libro-carousel__view-all:hover,
.libro-carousel__view-all:focus {
	background-color: #1a1a2e;
	color: #fff;
}

@media (max-width: 768px) {
	.libro-carousel__inner {
		padding: 40px 20px;
	}

	.libro-carousel__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.libro-carousel__inner {
		padding: 32px 16px;
	}

	.libro-carousel__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.libro-carousel__title {
		font-size: 1.3rem;
	}
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e8e8e8;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
	min-height: 64px;
}

.site-branding {
	flex-shrink: 0;
}

.site-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.site-title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-title a:hover,
.site-title a:focus {
	color: #E08E45;
}

.site-description {
	margin: 2px 0 0;
	font-size: 0.8rem;
	color: #888;
	line-height: 1.3;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: auto;
	position: relative;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	background-color: #fff;
	padding: 8px 0;
	border-radius: 4px;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
	padding: 8px 16px;
	font-size: 0.85rem;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	padding: 8px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a2e;
	transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: #E08E45;
}

.main-navigation a:visited {
	color: #1a1a2e;
}

/* Mobile menu toggle */
.menu-toggle {
	display: block;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #1a1a2e;
	line-height: 0;
}

.menu-toggle .icon-close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.main-navigation.toggled ul {
	display: block;
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	min-width: 200px;
	background-color: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	padding: 8px 0;
	z-index: 999;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
		align-items: center;
		gap: 4px;
	}
}

@media (max-width: 768px) {
	.header-inner {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	.header-inner {
		padding: 0 16px;
	}
}

/* Footer
--------------------------------------------- */
.site-footer {
	background-color: #fff;
	border-top: 1px solid #e8e8e8;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
	min-height: 64px;
}

.site-info {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a1a2e;
	letter-spacing: 0.01em;
}

.footer-credits {
	font-size: 0.85rem;
	color: #888;
}

.footer-credits a {
	color: #1a1a2e;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.footer-credits a:hover,
.footer-credits a:focus {
	color: #E08E45;
}

@media (max-width: 768px) {
	.footer-inner {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	.footer-inner {
		flex-direction: column;
		gap: 4px;
		padding: 16px;
		text-align: center;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

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

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Contact Form 7
--------------------------------------------------------------*/
.page .entry-content .wpcf7 {
	max-width: 600px;
	margin: 0 auto;
}

.page .entry-content .wpcf7 p {
	margin-bottom: 1.4em;
}

.page .entry-content .wpcf7 label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 6px;
}

.page .entry-content .wpcf7 input[type="text"],
.page .entry-content .wpcf7 input[type="email"],
.page .entry-content .wpcf7 input[type="url"],
.page .entry-content .wpcf7 input[type="tel"],
.page .entry-content .wpcf7 input[type="number"],
.page .entry-content .wpcf7 input[type="date"],
.page .entry-content .wpcf7 select,
.page .entry-content .wpcf7 textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 1rem;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page .entry-content .wpcf7 input[type="text"]:focus,
.page .entry-content .wpcf7 input[type="email"]:focus,
.page .entry-content .wpcf7 input[type="url"]:focus,
.page .entry-content .wpcf7 input[type="tel"]:focus,
.page .entry-content .wpcf7 input[type="number"]:focus,
.page .entry-content .wpcf7 input[type="date"]:focus,
.page .entry-content .wpcf7 select:focus,
.page .entry-content .wpcf7 textarea:focus {
	border-color: #E08E45;
	box-shadow: 0 0 0 3px rgba(10, 16, 69, 0.1);
	outline: none;
	color: #111;
}

.page .entry-content .wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.page .entry-content .wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 12px 28px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	background-color: #E08E45;
	border: 2px solid #E08E45;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page .entry-content .wpcf7 input[type="submit"]:hover,
.page .entry-content .wpcf7 input[type="submit"]:focus {
	background-color: #A63D40;
	border-color: #A63D40;
	box-shadow: 0 2px 8px rgba(10, 16, 69, 0.1);
}

@media (max-width: 768px) {
	.page .entry-content .wpcf7 {
		padding: 0 10px;
	}
}
