/* Camille by Pinci: stili di base, navigazione e footer sopra GeneratePress. */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght-normal.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: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ivory: #F5F1EA;
	--paper: #FFFFFF;
	--ink: #15120E;
	--muted: #5E574D;
	--line: #E2DBD0;
	--oxblood: #7A2335;
	--oxblood-strong: #5F1828;
	--night: #131209;
	--night-raised: #272727;
	--night-text: #F5F1EA;
	--night-muted: #D9D2C6;
	--focus: #7A2335;

	--s-50: 4px;
	--s-75: 8px;
	--s-100: 12px;
	--s-200: 16px;
	--s-300: 24px;
	--s-400: 32px;
	--s-500: 40px;
	--s-600: 48px;
	--s-700: 64px;
	--s-800: 80px;
	--s-900: 96px;

	--ease: cubic-bezier(0.32, 0.72, 0, 1);
	--gutter: var(--s-200);
	--wide: 1200px;
}

@media (min-width: 768px) {
	:root { --gutter: var(--s-400); }
}

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-padding-top: var(--s-900);
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 450;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p, li, dd, summary { text-wrap: pretty; }

p { margin: 0 0 var(--s-200); }

em, i, cite { font-style: normal; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

a:hover { color: var(--oxblood); }

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

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: var(--s-200);
	left: var(--s-200);
	z-index: 100;
	padding: var(--s-75) var(--s-100);
	border-radius: 9999px;
	background: var(--ink);
	color: var(--ivory);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform 0.5s var(--ease);
}

.skip-link:focus { transform: translateY(0); color: var(--ivory); }

.eyebrow {
	margin: 0 0 var(--s-200);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oxblood);
}

/* Pulsanti: classe del tema e pulsanti a blocchi. */
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: var(--s-75);
	padding: var(--s-75) var(--s-100);
	border: 1px solid var(--ink);
	border-radius: 9999px;
	background: var(--ink);
	color: var(--ivory);
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
}

.button:hover,
.wp-block-button__link:hover {
	background: var(--oxblood);
	border-color: var(--oxblood);
	color: var(--paper);
	transform: translateY(-2px);
}

.button:active,
.wp-block-button__link:active { transform: scale(0.98); }

.button--small {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-200); }

.wp-block-button.is-primary .wp-block-button__link {
	padding: var(--s-100) var(--s-300);
}

/* Navigazione: pillola flottante. */
.camille-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	justify-content: center;
	padding: var(--s-200) var(--gutter) 0;
	pointer-events: none;
}

@media (min-width: 768px) {
	.camille-header { padding-top: var(--s-300); }
}

.nav {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: var(--s-300);
	width: 100%;
	max-width: var(--wide);
	padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
	border: 1px solid rgba(21, 18, 14, 0.08);
	border-radius: 9999px;
	background: rgba(245, 241, 234, 0.94);
	transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease);
}

/* Il blur solo da desktop: su mobile creerebbe il riferimento per il menu fisso a schermo intero. */
@media (min-width: 1024px) {
	.nav {
		width: max-content;
		background: rgba(245, 241, 234, 0.82);
		-webkit-backdrop-filter: blur(16px) saturate(140%);
		backdrop-filter: blur(16px) saturate(140%);
	}
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: var(--s-75);
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.brand:hover { color: var(--ink); }

.brand__name {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.brand__by {
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	color: var(--muted);
}

.nav__panel { display: flex; align-items: center; gap: var(--s-300); margin-left: auto; }

.nav__list,
.lang {
	display: flex;
	align-items: center;
	gap: var(--s-50);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a,
.lang a {
	display: block;
	padding: var(--s-75) var(--s-100);
	border-radius: 9999px;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.nav__list a:hover,
.lang a:hover { background: rgba(21, 18, 14, 0.06); color: var(--ink); }

.nav__list .current-menu-item > a,
.nav__list a[aria-current="page"],
.lang a[aria-current="true"] { background: rgba(122, 35, 53, 0.1); color: var(--oxblood); }

.nav__toggle {
	position: relative;
	display: none;
	width: var(--s-500);
	height: var(--s-500);
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: var(--ink);
	cursor: pointer;
}

.nav__bar {
	position: absolute;
	top: 19px;
	left: 12px;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--ivory);
	transition: transform 0.7s var(--ease);
}

.nav__bar:nth-of-type(2) { transform: translateY(-3px); }
.nav__bar:nth-of-type(3) { transform: translateY(3px); }

.nav-open .nav__bar:nth-of-type(2) { transform: rotate(45deg); }
.nav-open .nav__bar:nth-of-type(3) { transform: rotate(-45deg); }

@media (max-width: 1023px) {
	.nav__toggle { display: block; z-index: 2; }

	.js .nav__panel {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: var(--s-400);
		margin: 0;
		padding: var(--s-900) var(--gutter) var(--s-600);
		background: rgba(245, 241, 234, 0.8);
		-webkit-backdrop-filter: blur(64px);
		backdrop-filter: blur(64px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
	}

	.js .nav-open .nav__panel {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.7s var(--ease), visibility 0s;
	}

	.js .nav__panel .nav__list { flex-direction: column; align-items: flex-start; gap: var(--s-75); }

	.js .nav__panel .nav__list a {
		padding: var(--s-50) 0;
		font-size: 1.875rem;
		line-height: 2.25rem;
		font-weight: 700;
		letter-spacing: -0.02em;
	}

	.js .nav__panel .nav__list a:hover { background: none; color: var(--oxblood); }

	.js .nav__panel > * {
		opacity: 0;
		transform: translateY(48px);
		transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	}

	.js .nav-open .nav__panel > * { opacity: 1; transform: translateY(0); }
	.js .nav-open .nav__panel > *:nth-child(1) { transition-delay: 0.1s; }
	.js .nav-open .nav__panel > *:nth-child(2) { transition-delay: 0.15s; }
	.js .nav-open .nav__panel > *:nth-child(3) { transition-delay: 0.2s; }

	/* Senza JavaScript il menu resta visibile sotto la pillola. */
	html:not(.js) .nav { flex-wrap: wrap; border-radius: 24px; }
	html:not(.js) .nav__panel { flex-wrap: wrap; margin-left: 0; }
}

body.nav-locked { overflow: hidden; }

a, button, [role="button"] { touch-action: manipulation; }

/* Footer. */
.camille-footer {
	padding: var(--s-800) var(--gutter) var(--s-400);
	background: var(--ivory);
	border-top: 1px solid var(--line);
}

.camille-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-400);
	max-width: var(--wide);
	margin: 0 auto;
}

.camille-footer__brand p {
	max-width: 32ch;
	margin-top: var(--s-100);
	color: var(--muted);
}

.camille-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-300);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
}

.camille-footer__list a { text-decoration: none; }

.camille-footer__legal {
	max-width: var(--wide);
	margin: var(--s-600) auto 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--muted);
}

/* Integrazione con GeneratePress. */
.camille-layout:not(.is-landing) .site { padding-top: var(--s-900); }

.is-landing .site.grid-container { max-width: none; padding: 0; }
.is-landing .site-content { display: block; padding: 0; }

.skip-link.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: fixed !important;
}

/* Barra di amministrazione di WordPress, visibile solo da loggati. */
.admin-bar .camille-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .camille-header { top: 46px; }
}

/* Elenchi del blog, dei tutorial e della ricerca: schede in griglia. */
.camille-layout:is(.blog, .archive, .search) .site-main {
	display: grid;
	gap: var(--s-300);
	align-items: stretch;
}

@media (min-width: 768px) {
	.camille-layout:is(.blog, .archive, .search) .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.camille-layout:is(.blog, .archive, .search) .site-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.camille-layout:is(.blog, .archive, .search) .site-main > :not(article) { grid-column: 1 / -1; margin: 0; }

.camille-layout:is(.blog, .archive, .search) .site-main > article { margin: 0; }

.camille-layout:is(.blog, .archive, .search) .site-main > article .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--s-300);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--paper);
	transition: transform 0.7s var(--ease), border-color 0.7s var(--ease);
}

.camille-layout:is(.blog, .archive, .search) .site-main > article .inside-article:hover {
	transform: translateY(-4px);
	border-color: rgba(122, 35, 53, 0.3);
}

.camille-layout:is(.blog, .archive, .search) .post-image {
	order: -1;
	margin: calc(var(--s-300) * -1) calc(var(--s-300) * -1) var(--s-300);
}

.camille-layout:is(.blog, .archive, .search) .post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 24px 24px 0 0;
}

.camille-layout:is(.blog, .archive, .search) .entry-title {
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.camille-layout:is(.blog, .archive, .search) .entry-title a { text-decoration: none; }

.camille-layout:is(.blog, .archive, .search) .entry-summary {
	margin-top: var(--s-100);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted);
}

.camille-layout:is(.blog, .archive, .search) footer.entry-meta {
	margin-top: auto;
	padding-top: var(--s-200);
	font-size: 0.75rem;
	line-height: 1rem;
}

.camille-layout .entry-meta,
.camille-layout .entry-meta a { color: var(--muted); }

.camille-layout .cat-links a { color: var(--oxblood); font-weight: 600; text-decoration: none; }

/* Pagina Guide e tutorial: elenco generato dal blocco Query. */
.guide-list .wp-block-post-template { gap: var(--s-300); margin-top: var(--s-400); }

.guide-list .wp-block-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: var(--s-300);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--paper);
	transition: transform 0.7s var(--ease), border-color 0.7s var(--ease);
}

.guide-list .wp-block-post:hover { transform: translateY(-4px); border-color: rgba(122, 35, 53, 0.3); }

.guide-list .wp-block-post-featured-image { margin: 0; }
.guide-list .wp-block-post-featured-image img { display: block; width: 100%; }

.guide-list .guide-card__title {
	margin: var(--s-300) var(--s-300) var(--s-75);
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.guide-list .guide-card__title a { text-decoration: none; }

.guide-list .wp-block-post-excerpt {
	margin: 0 var(--s-300);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted);
}

.guide-list .wp-block-post-excerpt__excerpt { margin: 0; }

/* Pulsante secondario: contorno, per "Prova la demo". */
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Tra 1024 e 1199 px il menu completo sta in una riga solo stringendo gli spazi. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.nav__panel { gap: var(--s-100); }
	.nav__list a { padding-inline: var(--s-75); }
}

/* GeneratePress colora a.button in grigio: nel menu tornano i colori del tema. */
.nav a.button { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.nav a.button:hover,
.nav a.button:focus-visible { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }
.nav a.button--ghost { background: transparent; color: var(--ink); }
.nav a.button--ghost:hover,
.nav a.button--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* GeneratePress colora i pulsanti a blocchi in grigio: tornano i colori del tema. */
a.wp-block-button__link:not(.has-background) { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
a.wp-block-button__link:not(.has-background):hover,
a.wp-block-button__link:not(.has-background):focus-visible { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }

/* Articoli del blog: più aria tra righe, paragrafi e titoli (utente, 2026-10-26). */
.single-post .entry-header,
.single-post .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.single-post .entry-content { font-size: 18px; line-height: 1.8; }
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol { margin-top: 0; margin-bottom: 1.5em; }
.single-post .entry-content li { margin-bottom: .5em; }
.single-post .entry-content > h2 { font-size: 32px; line-height: 1.25; margin-top: 2.2em; margin-bottom: .75em; }
.single-post .entry-content > h3 { font-size: 24px; line-height: 1.3; margin-top: 1.8em; margin-bottom: .6em; }
.single-post .entry-content > figure,
.single-post .entry-content > .wp-block-table,
.single-post .entry-content > .wp-block-image { margin-top: 2.5em; margin-bottom: 2.5em; }
.single-post .entry-content .wp-block-table td,
.single-post .entry-content .wp-block-table th { padding: .7em .9em; line-height: 1.55; }
.single-post .entry-content > hr { margin: 3em 0; }
.single-post .entry-title { line-height: 1.15; margin-bottom: .4em; }
.single-post .entry-meta { margin-bottom: 2.5em; }
@media (max-width: 768px) {
	.single-post .entry-content { font-size: 17px; line-height: 1.75; }
	.single-post .entry-content > h2 { font-size: 26px; }
}

/* Pagina blog e archivi: fondo sabbia per staccare le schede, le copertine hanno il fondo avorio (utente, 2026-10-26). */
body.blog,
body.archive,
body.search { background-color: #E9E0CF; }
.blog .inside-article .post-image,
.archive .inside-article .post-image { border-bottom: 1px solid #E2DBD0; }

/* Banner cookie Complianz con i colori del sito (2026-10-26). */
body .cmplz-cookiebanner {
	--cmplz_banner_background_color: #F5F1EA;
	--cmplz_banner_border_color: #E2DBD0;
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 16px;
	--cmplz_text_color: #15120E;
	--cmplz_hyperlink_color: #7A2335;
	--cmplz_button_accept_background_color: #15120E;
	--cmplz_button_accept_border_color: #15120E;
	--cmplz_button_accept_text_color: #F5F1EA;
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: #15120E;
	--cmplz_button_deny_text_color: #15120E;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: #15120E;
	--cmplz_button_settings_text_color: #15120E;
	--cmplz_button_border_radius: 9999px;
	--cmplz_slider_active_color: #7A2335;
	font-family: "Manrope", system-ui, sans-serif;
	box-shadow: 0 12px 40px rgba(21, 18, 14, 0.12);
}
body .cmplz-cookiebanner .cmplz-title { font-weight: 600; }
body .cmplz-cookiebanner .cmplz-btn { font-weight: 600; }
body #cmplz-manage-consent .cmplz-manage-consent {
	background: #F5F1EA;
	color: #15120E;
	border-color: #E2DBD0;
	font-family: "Manrope", system-ui, sans-serif;
}
