/*!
Theme Name: riseandpress
Theme URI: https://riseandpress.com/
Author: Rise&Press Publishing House
Description: Tema custom Rise&Press Publishing House — build su Underscores (_s)
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: riseandpress
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* Font nel tema (licenza OFL): Cormorant Garamond e Inter, sottoinsieme latino */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-italic.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+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 600;
	font-display: swap;
	src: url("assets/fonts/inter.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*--------------------------------------------------------------
# Brand Tokens
--------------------------------------------------------------*/

:root {
	--rp-ink:           #0d0d0d;               /* testo, pulsanti principali, «&» */
	--rp-white:         #ffffff;
	--rp-panna:         #fdf8f5;               /* fondo di lettura */
	--rp-panna-2:       #f3eee5;               /* secondo tono: separa le superfici con un passo di tono, non con linee */
	--rp-ink-soft:      #2a2624;               /* hover dei pulsanti scuri */
	--rp-muted:         #5c544d;               /* testi secondari */
	--rp-on-dark-muted: #b5aca3;               /* testi secondari su fondo nero */
	--rp-field:         rgba(13, 13, 13, 0.46); /* bordo dei SOLI campi dei moduli e delle tabelle vere: 3,17:1 su panna */
	--rp-ink-raised:    #1a1817;               /* riquadri del footer su nero */
	--rp-border:       1.5px solid #0d0d0d;
	--rp-border-light: 1px solid rgba(13, 13, 13, 0.15);

	--rp-font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--rp-font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;

	--rp-size-xs:   0.75rem;
	--rp-size-sm:   0.875rem;
	--rp-size-base: 1rem;
	--rp-size-md:   1.125rem;
	--rp-size-lg:   1.375rem;
	--rp-size-xl:   1.75rem;
	--rp-size-2xl:  2.25rem;
	--rp-size-3xl:  3rem;
	--rp-size-4xl:  4rem;

	--rp-max-width: 1280px;
	--rp-page-margin: clamp(1rem, 4vw, 4rem); /* margini delle pagine a tutta larghezza, testata compresa */
	--rp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--rp-header-h: 72px;
	--rp-col-gap:   2rem;
}

@media screen and (max-width: 768px) {
	:root {
		--rp-header-h: 56px;
	}
}

/*--------------------------------------------------------------
>>> 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: var(--rp-ink);
	font-family: var(--rp-font-sans);
	font-size: var(--rp-size-base);
	line-height: 1.6;
	font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--rp-font-serif);
	font-weight: 600;
	line-height: 1.15;
	color: var(--rp-ink);
}

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: var(--rp-panna-2);
	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 var(--rp-muted);
	cursor: help;
}

mark,
ins {
	background: var(--rp-panna-2);
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: var(--rp-panna);
}

hr {
	background-color: var(--rp-ink);
	border: 0;
	height: 1.5px;
	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: var(--rp-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:visited {
	color: var(--rp-ink);
}

a:hover,
a:focus,
a:active {
	color: var(--rp-ink);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

a:focus {
	outline: var(--rp-focus-ring);
	outline-offset: var(--rp-focus-offset);
}

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

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	display: inline-block;
	border: var(--rp-border);
	border-radius: 0;
	background: var(--rp-ink);
	color: var(--rp-panna);
	font-family: var(--rp-font-sans);
	font-size: var(--rp-size-sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.75em 1.5em;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--rp-ink-soft);
	border-color: var(--rp-ink-soft);
	color: var(--rp-panna);
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
	outline: var(--rp-focus-ring);
	outline-offset: var(--rp-focus-offset);
}

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: var(--rp-ink);
	border: 1.5px solid var(--rp-field);
	border-radius: 0;
	padding: 0.5em 0.75em;
	background: var(--rp-white);
	font-family: var(--rp-font-sans);
}

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: var(--rp-ink);
	outline: 2px solid var(--rp-ink);
	outline-offset: 0;
}

select {
	border: 1.5px solid var(--rp-field);
	border-radius: 0;
}

textarea {
	width: 100%;
}

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

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

/* Navigation
--------------------------------------------- */
/* ── Testata ───────────────────────────────────── */
/* Ancore e focus non finiscono sotto la testata fissa */
html {
	scroll-padding-top: calc(var(--rp-header-h) + 16px);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--rp-panna);
	color: var(--rp-ink);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: var(--rp-max-width);
	height: var(--rp-header-h);
	margin: 0 auto;
	padding: 0 2rem;
}

/* Logo: SVG inline (assets/brand/logo.svg), colore da currentColor */
.site-branding {
	flex-shrink: 0;
	margin-right: auto;
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.rp-logo {
	display: block;
	height: 26px;
	width: auto;
	aspect-ratio: 236.56 / 38.21;
}

/* Voci e carrello: Inter 16px, voce corrente peso 600 e sottolineata */
.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a,
.main-navigation a:visited,
.site-header .rp-cart-link,
.site-header .rp-cart-link:visited,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--rp-font-sans);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: inherit;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active,
.site-header .rp-cart-link:hover,
.site-header .rp-cart-link:focus,
.site-header .rp-cart-link:active,
.site-header .site-logo-link:hover,
.site-header .site-logo-link:focus,
.site-header .site-logo-link:active {
	color: inherit;
}

.main-navigation a:hover,
.site-header .rp-cart-link:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_parent > a,
.main-navigation .current-page-ancestor > a,
.site-header .rp-cart-link[aria-current] {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

/* Sottomenu, se in futuro il menu ne avrà */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 200px;
	padding: 8px 16px;
	background: var(--rp-panna-2);
	color: var(--rp-ink);
	z-index: 200;
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
	display: flex;
}

/* Pulsante testuale «Menu» / «Chiudi»: solo telefono */
.menu-toggle {
	display: none;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	line-height: 1.2;
	cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active,
.submenu-toggle:hover {
	background: none;
	border-color: transparent;
	color: inherit;
}

@media (hover: hover) {
	.menu-toggle:hover {
		text-decoration: underline;
		text-decoration-thickness: 1.5px;
		text-underline-offset: 4px;
	}
}

/* Home e Manoscritto: testata su nero, come il primo schermo */
.rp-header-dark .site-header {
	--rp-focus-ring: 2px solid var(--rp-panna);
	background: var(--rp-ink);
	color: var(--rp-panna);
}

.rp-wide .site-header__inner {
	max-width: none;
	padding-inline: var(--rp-page-margin);
}

.submenu-toggle {
	display: none;
}

@media screen and (max-width: 768px) {
	.site-header__inner {
		gap: 20px;
		padding-inline: var(--rp-page-margin);
	}

	.rp-logo {
		height: 20px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	/* Pannello a tutto schermo sotto la testata, stesso fondo della testata */
	.main-navigation__panel {
		display: none;
		position: fixed;
		top: var(--rp-menu-top, var(--rp-header-h));
		left: 0;
		right: 0;
		bottom: 0;
		padding: 16px var(--rp-page-margin) calc(2rem + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--rp-panna);
		z-index: 300;
	}

	.rp-header-dark .main-navigation__panel {
		background: var(--rp-ink);
	}

	.main-navigation.toggled .main-navigation__panel {
		display: block;
	}

	.main-navigation__panel > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-navigation__panel li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.main-navigation__panel a {
		flex: 1;
		min-height: 52px;
		font-size: 1.25rem;
	}

	/* Fisarmonica: il sottomenu entra nel flusso e sposta le voci sotto */
	.submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		min-height: 52px;
		background: none;
		border: none;
		cursor: pointer;
		color: inherit;
	}

	.submenu-toggle span {
		width: 10px;
		height: 10px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-3px) rotate(45deg);
		transition: transform 0.2s;
	}

	.is-open > .submenu-toggle span {
		transform: translateY(3px) rotate(-135deg);
	}

	.main-navigation__panel ul ul,
	.main-navigation__panel li:hover > ul,
	.main-navigation__panel li.focus > ul {
		display: none;
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 0 1rem;
		background: none;
		color: inherit;
	}

	.main-navigation__panel li.is-open > ul {
		display: block;
	}

	/* Pagina sotto bloccata; il pulsante iubenda non copre il menu */
	html.rp-menu-open,
	html.rp-menu-open body {
		overflow: hidden;
	}

	html.rp-menu-open body button.iubenda-tp-btn.iubenda-cs-preferences-link,
	html.rp-menu-open body .iubenda-tp-btn[class] {
		display: none !important;
		visibility: hidden !important;
	}
}

.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;
}

/* WordPress mette la classe .page anche sul body: niente margine sotto il footer */
body.page {
	margin: 0;
}

.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;
}

/* 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: var(--rp-panna);
	box-shadow: 0 0 0 2px var(--rp-ink);
	clip: auto !important;
	clip-path: none;
	color: var(--rp-ink);
	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;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

#primary.site-main {
	max-width: var(--rp-max-width);
	margin: 0 auto;
	padding: 3rem 2rem;
	width: 100%;
}

/* Entry */
.entry-header {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: var(--rp-border);
}

.entry-title {
	font-size: var(--rp-size-3xl);
	margin: 0 0 0.5rem;
}

.entry-title a {
	text-decoration: none;
	color: var(--rp-ink);
}

.entry-title a:hover {
	color: var(--rp-ink);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.entry-meta {
	font-size: var(--rp-size-sm);
	color: var(--rp-muted);
	font-family: var(--rp-font-sans);
}

.entry-content {
	font-size: var(--rp-size-md);
	line-height: 1.75;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: var(--rp-border-light);
	font-size: var(--rp-size-sm);
	color: var(--rp-muted);
}

/* Post list */
/* Widget area */
#secondary {
	display: none;
}

/* Footer di tutto il sito: riquadri pieni su nero, nessuna linea */
.site-footer {
	--rp-focus-ring: 2px solid var(--rp-panna);
	padding: 8px 10px 10px;
	background: var(--rp-ink);
	color: var(--rp-panna);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 8px;
}

.site-footer__tile {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 240px;
	padding: 28px;
	background: var(--rp-ink-raised);
}

.site-footer__tile a,
.site-footer__tile a:visited,
.site-footer__logo,
.site-footer__logo:visited {
	color: var(--rp-panna);
}

.site-footer__tile a:hover,
.site-footer__tile a:focus,
.site-footer__tile a:active,
.site-footer__logo:hover,
.site-footer__logo:focus,
.site-footer__logo:active {
	color: var(--rp-panna);
}

.site-footer__tile--newsletter {
	gap: 12px;
	grid-column: span 2;
	background: var(--rp-panna);
	color: var(--rp-ink);
	--rp-focus-ring: 2px solid var(--rp-ink);
}

.site-footer__title {
	margin: 0;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1;
}

.site-footer__sentence,
.site-footer__note {
	margin: 0;
}

.site-footer__tile--newsletter label {
	margin-top: 4px;
	font-size: 0.9375rem;
}

.site-footer__field {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.site-footer__field input {
	flex: 1 1 220px;
	min-height: 52px;
	box-sizing: border-box;
	padding: 0 14px;
	font-size: 1rem;
}

.site-footer__note {
	font-size: 0.875rem;
	color: var(--rp-muted);
}

.site-footer__nav ul {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	text-decoration: none;
}

.site-footer__nav a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.site-footer__contacts {
	justify-content: space-between;
	gap: 20px;
}

.site-footer__address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-style: normal;
}

.site-footer__address a {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: 4px;
	font-size: 1.125rem;
}

.site-footer__legal {
	max-width: 64ch;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--rp-on-dark-muted);
}

.site-footer__logo {
	display: block;
	margin-top: 8px;
	padding: 64px 24px 40px;
	text-decoration: none;
}

.site-footer__logo .rp-logo {
	width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.site-footer__tile {
		min-height: 0;
		padding: 24px;
	}

	.site-footer__tile--newsletter {
		grid-column: auto;
	}

	.site-footer__nav a {
		min-height: 44px;
	}

	.site-footer__logo {
		padding: 40px 8px 24px;
	}
}
