/*
Theme Name: Orbita
Theme URI: https://matteotaddeucci.it/
Author: Orbita Studio
Author URI: https://matteotaddeucci.it/
Description: Tema WordPress professionale per consulenti di marketing, funnel strategy e campagne Meta Ads. Include homepage "Il Metodo", blog, pagina Chi sono e Contatti, ottimizzato per SEO e costruito con blocchi Gutenberg. Design navy, teal e bianco con logo orbitale.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orbita
Tags: block-patterns, blog, one-column, two-columns, custom-colors, custom-logo, editor-style, featured-images, full-width-template, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Variabili e reset
   ========================================================================== */

:root {
	/* Colori del marchio */
	--o-navy: #102c44;
	--o-navy-2: #17394f;
	--o-navy-3: #1d455e;
	--o-teal: #00a695;
	--o-teal-dark: #00897b;
	--o-teal-light: #7fdfcf;
	--o-teal-soft: #e7f7f4;
	--o-sky: #edf5f9;
	--o-ice: #f4f9fb;
	--o-white: #ffffff;

	/* Ruoli: così la modalità scura cambia i colori senza toccare i layout */
	--o-ink: var(--o-navy);
	--o-surface: #ffffff;
	--o-surface-2: var(--o-ice);
	--o-on-dark: #ffffff;
	--o-band: var(--o-navy);
	--o-band-2: var(--o-navy-2);
	--o-page: #e9eff4;
	--o-header-bg: rgba(255, 255, 255, 0.94);
	--o-slate: #56646f;
	--o-slate-2: #7d8a95;
	--o-line: #e1eaef;

	--o-radius: 14px;
	--o-radius-lg: 20px;
	--o-radius-sm: 10px;

	--o-shadow-sm: 0 2px 8px rgba(16, 44, 68, 0.05);
	--o-shadow: 0 14px 34px -18px rgba(16, 44, 68, 0.28);
	--o-shadow-lg: 0 30px 60px -30px rgba(16, 44, 68, 0.35);

	--o-wrap: 1180px;
	--o-shell: 1320px;
	--o-gutter: clamp(1.25rem, 4vw, 2.25rem);
	--o-section-y: clamp(3.5rem, 6.5vw, 5.75rem);

	--o-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	color-scheme: light;
}

/* Modalità scura: stesse regole, colori invertiti nei ruoli. */
:root[data-theme='dark'] {
	--o-ink: #e8f0f6;
	--o-surface: #101f2b;
	--o-surface-2: #162a39;
	--o-on-dark: #ffffff;
	--o-band: #0a1925;
	--o-band-2: #0f2434;
	--o-page: #061019;
	--o-header-bg: rgba(16, 31, 43, 0.94);
	--o-teal: #27c8b0;
	--o-teal-dark: #56dfc9;
	--o-teal-light: #8ce6d6;
	--o-teal-soft: #0e312d;
	--o-sky: #152a38;
	--o-ice: #142634;
	--o-navy: #0a1925;
	--o-navy-2: #0f2434;
	--o-slate: #aebdc8;
	--o-slate-2: #8b9dab;
	--o-line: #253a4a;
	--o-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
	--o-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.65);
	--o-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.75);

	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--o-page);
	color: var(--o-ink);
	font-family: var(--o-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Layout incorniciato: tutto il sito vive dentro un foglio centrato. */
.site-shell {
	position: relative;
	max-width: var(--o-shell);
	margin-inline: auto;
	background: var(--o-surface);
	box-shadow:
		0 0 0 1px rgba(16, 44, 68, 0.06),
		0 40px 90px -55px rgba(16, 44, 68, 0.45);
}

body.menu-open {
	overflow: hidden;
}

@media (max-width: 1340px) {
	.site-shell {
		max-width: 100%;
		box-shadow: none;
	}
}

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

figure {
	margin: 0;
}

a {
	color: var(--o-teal-dark);
	text-decoration: none;
	transition: color 0.18s ease;
}

a:hover,
a:focus {
	color: var(--o-ink);
}

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

/* ==========================================================================
   2. Tipografia
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.022em;
	color: var(--o-ink);
}

h1 { font-size: clamp(2.2rem, 1.45rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 1.35rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem); }
h4 { font-size: 1.125rem; }

p {
	margin: 0 0 1.15em;
}

p:last-child {
	margin-bottom: 0;
}

strong,
b {
	font-weight: 700;
}

.o-eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--o-teal);
}

.o-eyebrow--light {
	color: var(--o-teal-light, #7fd9c7);
}

.o-lead {
	font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.135rem);
	line-height: 1.7;
	color: var(--o-slate);
}

.o-muted {
	color: var(--o-slate);
}

.o-accent {
	color: var(--o-teal);
}

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

.o-center .o-eyebrow {
	display: block;
}

/* ==========================================================================
   3. Struttura sezioni
   ========================================================================== */

.o-section {
	position: relative;
	padding: var(--o-section-y) 0;
	background: var(--o-surface);
}

.o-section--tint {
	background: linear-gradient(180deg, var(--o-surface) 0%, var(--o-ice) 55%, var(--o-sky) 100%);
}

.o-section--flat {
	background: var(--o-ice);
}

/* Banda CTA a tutta larghezza, come nel riferimento. */
.o-section--cta {
	position: relative;
	overflow: hidden;
	padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
	/* Stacca la banda scura dal footer, che ha lo stesso fondo. */
	margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
	background:
		radial-gradient(560px 240px at 80% 10%, rgba(0, 166, 149, 0.18), transparent 70%),
		linear-gradient(120deg, var(--o-band) 0%, var(--o-band-2) 100%);
	color: #cdd9e2;
}

.o-section--dark {
	background: var(--o-band);
	color: #d7e2ea;
}

.o-section--dark h1,
.o-section--dark h2,
.o-section--dark h3,
.o-section--dark h4 {
	color: var(--o-on-dark);
}

.o-section--dark p,
.o-section--dark li {
	color: #b9c8d4;
}

.o-section--tight {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Testata della pagina Contatti: meno spazio prima delle schede. */
.o-section--contact-head {
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.o-wrap {
	max-width: var(--o-wrap);
	margin-inline: auto;
	padding-inline: var(--o-gutter);
}

.o-wrap--narrow {
	max-width: 820px;
}

.o-head {
	max-width: 720px;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.o-head--center {
	margin-inline: auto;
	text-align: center;
}

.o-head h2 {
	margin-bottom: 0.5em;
}

/* ==========================================================================
   4. Pulsanti
   ========================================================================== */

.wp-block-button,
.o-btn {
	display: inline-block;
}

.wp-block-button__link,
a.o-btn,
button.o-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.88rem 1.55rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: var(--o-teal);
	color: var(--o-on-dark);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
		transform 0.18s ease, box-shadow 0.18s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
a.o-btn:hover,
a.o-btn:focus,
button.o-btn:hover,
button.o-btn:focus {
	background: var(--o-teal-dark);
	border-color: var(--o-teal-dark);
	color: var(--o-on-dark);
	transform: translateY(-1px);
	box-shadow: 0 16px 26px -18px rgba(0, 166, 149, 0.7);
}

/* Variante chiara: bianca con bordo sottile, diventa verde solo al passaggio.
   Le classi del blocco finiscono sul contenitore, per questo servono
   entrambi i selettori (contenitore e link singolo, come nell'header). */
.wp-block-button.o-btn--ghost .wp-block-button__link,
.wp-block-button.o-btn--outline .wp-block-button__link,
a.o-btn--ghost,
a.o-btn--outline,
button.o-btn--ghost {
	background: var(--o-surface);
	border-color: var(--o-line);
	color: var(--o-ink);
	box-shadow: 0 1px 2px rgba(16, 44, 68, 0.04);
}

.wp-block-button.o-btn--ghost .wp-block-button__link:hover,
.wp-block-button.o-btn--ghost .wp-block-button__link:focus,
.wp-block-button.o-btn--outline .wp-block-button__link:hover,
.wp-block-button.o-btn--outline .wp-block-button__link:focus,
a.o-btn--ghost:hover,
a.o-btn--ghost:focus,
a.o-btn--outline:hover,
a.o-btn--outline:focus {
	background: var(--o-teal);
	border-color: var(--o-teal);
	color: var(--o-on-dark);
}

.wp-block-button.o-btn--outline .wp-block-button__link,
a.o-btn--outline {
	border-color: var(--o-teal);
	color: var(--o-teal-dark);
}

.o-btn--light {
	background: var(--o-surface);
	color: var(--o-ink);
	box-shadow: var(--o-shadow);
}

.o-btn--light:hover,
.o-btn--light:focus {
	background: var(--o-teal);
	color: var(--o-on-dark);
}

/* Bordo visibile anche in modalità scura. */
:root[data-theme='dark'] .wp-block-button.o-btn--ghost .wp-block-button__link,
:root[data-theme='dark'] a.o-btn--ghost {
	border-color: #2b4152;
}

.o-btn--sm {
	padding: 0.68rem 1.2rem;
	font-size: 0.93rem;
}

/* freccia dentro cerchio, come dall'idea grafica */
.o-btn .i-arrow-right {
	width: 1.05em;
	height: 1.05em;
	transition: transform 0.2s ease;
}

.o-btn:hover .i-arrow-right {
	transform: translateX(3px);
}

.wp-block-buttons {
	gap: 0.85rem;
}

.o-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.35rem;
	font-size: 0.9rem;
	color: var(--o-slate-2);
}

.o-note .i-clock {
	color: var(--o-teal);
	flex: none;
}

.o-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	font-weight: 600;
	color: var(--o-teal-dark);
}

.o-link-arrow:hover {
	color: var(--o-ink);
}

.o-link-arrow .i-arrow-right {
	transition: transform 0.2s ease;
}

.o-link-arrow:hover .i-arrow-right {
	transform: translateX(4px);
}

/* ==========================================================================
   5. Icone (mask SVG, colore ereditato)
   ========================================================================== */

[class^='i-'],
[class*=' i-'] {
	display: inline-block;
	width: 1.35em;
	height: 1.35em;
	flex: none;
	background-color: currentColor;
	-webkit-mask-position: center;
	-mask-position: center;
	-webkit-mask-size: contain;
	-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-mask-repeat: no-repeat;
	vertical-align: -0.22em;
}

.i-user { -webkit-mask-image: url(assets/img/icons/user.svg); mask-image: url(assets/img/icons/user.svg); }
.i-funnel { -webkit-mask-image: url(assets/img/icons/funnel.svg); mask-image: url(assets/img/icons/funnel.svg); }
.i-mail { -webkit-mask-image: url(assets/img/icons/mail.svg); mask-image: url(assets/img/icons/mail.svg); }
.i-target { -webkit-mask-image: url(assets/img/icons/target.svg); mask-image: url(assets/img/icons/target.svg); }
.i-check { -webkit-mask-image: url(assets/img/icons/check.svg); mask-image: url(assets/img/icons/check.svg); }
.i-cross { -webkit-mask-image: url(assets/img/icons/cross.svg); mask-image: url(assets/img/icons/cross.svg); }
.i-monitor { -webkit-mask-image: url(assets/img/icons/monitor.svg); mask-image: url(assets/img/icons/monitor.svg); }
.i-pencil { -webkit-mask-image: url(assets/img/icons/pencil.svg); mask-image: url(assets/img/icons/pencil.svg); }
.i-chart-bars { -webkit-mask-image: url(assets/img/icons/chart-bars.svg); mask-image: url(assets/img/icons/chart-bars.svg); }
.i-chat { -webkit-mask-image: url(assets/img/icons/chat.svg); mask-image: url(assets/img/icons/chat.svg); }
.i-gears { -webkit-mask-image: url(assets/img/icons/gears.svg); mask-image: url(assets/img/icons/gears.svg); }
.i-chart-line { -webkit-mask-image: url(assets/img/icons/chart-line.svg); mask-image: url(assets/img/icons/chart-line.svg); }
.i-clock { -webkit-mask-image: url(assets/img/icons/clock.svg); mask-image: url(assets/img/icons/clock.svg); }
.i-phone { -webkit-mask-image: url(assets/img/icons/phone.svg); mask-image: url(assets/img/icons/phone.svg); }
.i-calendar { -webkit-mask-image: url(assets/img/icons/calendar.svg); mask-image: url(assets/img/icons/calendar.svg); }
.i-play { -webkit-mask-image: url(assets/img/icons/play.svg); mask-image: url(assets/img/icons/play.svg); }
.i-search { -webkit-mask-image: url(assets/img/icons/search.svg); mask-image: url(assets/img/icons/search.svg); }
.i-arrow-right { -webkit-mask-image: url(assets/img/icons/arrow-right.svg); mask-image: url(assets/img/icons/arrow-right.svg); }
.i-arrow-down { -webkit-mask-image: url(assets/img/icons/arrow-down.svg); mask-image: url(assets/img/icons/arrow-down.svg); }
.i-arrow-up { -webkit-mask-image: url(assets/img/icons/arrow-up.svg); mask-image: url(assets/img/icons/arrow-up.svg); }
.i-sun { -webkit-mask-image: url(assets/img/icons/sun.svg); mask-image: url(assets/img/icons/sun.svg); }
.i-moon { -webkit-mask-image: url(assets/img/icons/moon.svg); mask-image: url(assets/img/icons/moon.svg); }
.i-arrow-up-right { -webkit-mask-image: url(assets/img/icons/arrow-up-right.svg); mask-image: url(assets/img/icons/arrow-up-right.svg); }
.i-sparkles { -webkit-mask-image: url(assets/img/icons/sparkles.svg); mask-image: url(assets/img/icons/sparkles.svg); }
.i-briefcase { -webkit-mask-image: url(assets/img/icons/briefcase.svg); mask-image: url(assets/img/icons/briefcase.svg); }
.i-handshake { -webkit-mask-image: url(assets/img/icons/handshake.svg); mask-image: url(assets/img/icons/handshake.svg); }
.i-shield { -webkit-mask-image: url(assets/img/icons/shield.svg); mask-image: url(assets/img/icons/shield.svg); }
.i-quote { -webkit-mask-image: url(assets/img/icons/quote.svg); mask-image: url(assets/img/icons/quote.svg); }
.i-globe { -webkit-mask-image: url(assets/img/icons/globe.svg); mask-image: url(assets/img/icons/globe.svg); }
.i-heart { -webkit-mask-image: url(assets/img/icons/heart.svg); mask-image: url(assets/img/icons/heart.svg); }
.i-facebook { -webkit-mask-image: url(assets/img/icons/facebook.svg); mask-image: url(assets/img/icons/facebook.svg); }
.i-instagram { -webkit-mask-image: url(assets/img/icons/instagram.svg); mask-image: url(assets/img/icons/instagram.svg); }
.i-youtube { -webkit-mask-image: url(assets/img/icons/youtube.svg); mask-image: url(assets/img/icons/youtube.svg); }

.o-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
	background: var(--o-teal-soft);
	color: var(--o-teal-dark);
}

.o-icon-circle [class^='i-'] {
	width: 1.5rem;
	height: 1.5rem;
}

.o-icon-circle--solid {
	background: var(--o-teal);
	color: var(--o-on-dark);
}

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--o-header-bg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--o-line);
	transition: box-shadow 0.25s ease;
}

body.admin-bar .site-header {
	top: 32px;
}

.site-header.is-stuck {
	box-shadow: 0 12px 30px -24px rgba(16, 44, 68, 0.55);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2.5vw, 2rem);
	max-width: var(--o-wrap);
	margin-inline: auto;
	padding: 0.85rem var(--o-gutter);
}

.site-branding {
	display: flex;
	align-items: center;
	flex: none;
}

.site-branding a {
	display: block;
	line-height: 0;
}

.site-branding img {
	display: block;
	width: auto;
	max-width: min(52vw, 330px);
	height: clamp(44px, 6vw, 64px);
	object-fit: contain;
}

.site-branding .logo-mark--dark {
	display: none;
}

:root[data-theme='dark'] .site-branding .logo-mark--light {
	display: none;
}

:root[data-theme='dark'] .site-branding .logo-mark--dark {
	display: block;
}

/* Un logo caricato dal Personalizzatore resta visibile su fondo scuro. */
:root[data-theme='dark'] .site-branding .custom-logo {
	background: #fff;
	padding: 3px 7px;
	border-radius: 8px;
	box-sizing: content-box;
}

.brand-text {
	display: none;
}

.primary-nav {
	margin-left: auto;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2.1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	position: relative;
	display: inline-block;
	padding: 0.45rem 0;
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--o-ink);
}

.primary-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--o-teal);
	transition: width 0.22s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
	width: 100%;
}

.primary-nav a:hover {
	color: var(--o-teal-dark);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: none;
}

.header-cta {
	flex: none;
}

.header-cta .wp-block-button__link,
.header-cta .o-btn {
	padding: 0.66rem 1.25rem;
	font-size: 0.94rem;
	box-shadow: none;
}

/* Interruttore chiaro/scuro */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--o-line);
	border-radius: 50%;
	background: var(--o-surface);
	color: var(--o-ink);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
	border-color: var(--o-teal);
	color: var(--o-teal-dark);
	background: var(--o-teal-soft);
}

.theme-toggle [class^='i-'] {
	width: 1.15rem;
	height: 1.15rem;
}

.theme-toggle .theme-toggle__sun {
	display: none;
}

:root[data-theme='dark'] .theme-toggle .theme-toggle__sun {
	display: inline-block;
}

:root[data-theme='dark'] .theme-toggle .theme-toggle__moon {
	display: none;
}

.theme-toggle--wide {
	width: auto;
	height: auto;
	justify-content: flex-start;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-size: 0.88rem;
}

/* Pulsante menu (solo mobile) */
.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	height: 40px;
	padding: 0 0.85rem 0 1rem;
	border: 1px solid var(--o-line);
	border-radius: 999px;
	background: var(--o-surface);
	color: var(--o-ink);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.menu-toggle__bars {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 10px;
}

.menu-toggle__bars i {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 8px; }

.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:first-child {
	top: 4px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:last-child {
	top: 4px;
	transform: rotate(-45deg);
}

/* ==========================================================================
   7. Hero + percorso del funnel
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.75rem, 5.5vw, 4.5rem) 0 clamp(3.25rem, 6.5vw, 5rem);
	background:
		radial-gradient(900px 420px at 92% -10%, rgba(0, 166, 149, 0.14), transparent 62%),
		linear-gradient(180deg, var(--o-ice) 0%, #e8f2f6 100%);
	border-bottom: 1px solid var(--o-line);
}

:root[data-theme='dark'] .hero {
	background:
		radial-gradient(900px 420px at 92% -10%, rgba(0, 166, 149, 0.16), transparent 62%),
		linear-gradient(180deg, #12232f 0%, var(--o-surface) 100%);
}

.wp-block-columns.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
	margin-bottom: 0.5em;
	max-width: none;
}

.hero .o-lead {
	max-width: 46ch;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem;
	margin-top: 2rem;
}

.hero__visual {
	position: relative;
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: var(--o-radius-lg);
	background:
		linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(234, 247, 245, 0.78)),
		url(assets/img/hero-bg.jpg) center/cover no-repeat;
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: var(--o-shadow-lg);
}

.flow {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flow__card {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.78rem 0.95rem;
	background: var(--o-surface);
	border: 1px solid #e8eff4;
	border-radius: var(--o-radius);
	box-shadow: var(--o-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow__card:hover {
	transform: translateX(4px);
	box-shadow: var(--o-shadow);
}

.flow__body {
	min-width: 0;
}

.flow__title {
	display: block;
	margin: 0;
	font-size: 0.97rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--o-ink);
}

.flow__text {
	display: block;
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--o-slate-2);
}

.flow__body p {
	margin: 0;
}

.flow__arrow {
	display: flex;
	justify-content: center;
	padding: 0.18rem 0;
	color: var(--o-teal);
}

.flow__arrow .i-arrow-down {
	width: 1.15rem;
	height: 1.15rem;
}

/* ==========================================================================
   8. Problema / Soluzione
   ========================================================================== */

.wp-block-columns.compare {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.compare__card {
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2.15rem);
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow-sm);
}

.compare__card.is-good {
	border-color: rgba(0, 168, 143, 0.45);
	box-shadow: 0 22px 44px -30px rgba(0, 168, 143, 0.75);
}

.compare__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1.35rem;
}

.compare__head h3 {
	margin: 0;
	font-size: 1.16rem;
}

.compare__list {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	margin: 0;
	padding: 0;
}

.compare__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--o-slate);
}

.compare__item p {
	margin: 0;
}

.compare__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	margin-top: 0.12rem;
	border-radius: 50%;
	background: #fdecec;
	color: #d9534f;
}

.is-good .compare__mark {
	background: var(--o-teal-soft);
	color: var(--o-teal-dark);
}

.compare__mark [class^='i-'] {
	width: 0.85rem;
	height: 0.85rem;
}

/* ==========================================================================
   9. Metodo in 3 passi
   ========================================================================== */

.wp-block-columns.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.wp-block-columns.steps > .wp-block-column {
	padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.wp-block-columns.steps > .wp-block-column:first-child {
	padding-left: 0;
}

.wp-block-columns.steps > .wp-block-column:last-child {
	padding-right: 0;
}

.wp-block-columns.steps > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--o-line);
}

.step {
	position: relative;
	height: 100%;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.step__top {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.05rem;
}

.step .o-icon-circle {
	width: 2.5rem;
	height: 2.5rem;
	background: none;
	color: var(--o-teal);
}

.step .o-icon-circle [class^='i-'] {
	width: 1.35rem;
	height: 1.35rem;
}

.step .step__num {
	margin: 0;
	font-size: clamp(1.85rem, 1.4rem + 1.2vw, 2.3rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--o-teal);
}

.step:hover .step__num {
	color: var(--o-teal-dark);
}

.step h3 {
	margin-bottom: 0.5em;
	font-size: 1.16rem;
}

.step p:not(.step__num) {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--o-slate);
}

/* ==========================================================================
   10. Sezione scura — perché lavorare con me
   ========================================================================== */

.wp-block-columns.feats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.4vw, 1.75rem);
}

.feat {
	height: 100%;
	padding: clamp(1.4rem, 2.6vw, 1.9rem);
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--o-radius-lg);
	transition: background 0.22s ease, transform 0.22s ease;
}

.feat:hover {
	background: rgba(255, 255, 255, 0.075);
	transform: translateY(-4px);
}

.feat .o-icon-circle {
	background: rgba(0, 168, 143, 0.16);
	color: #3ed6bd;
	margin-bottom: 1.1rem;
}

.feat h3 {
	margin-bottom: 0.4em;
	font-size: 1.1rem;
	color: var(--o-on-dark);
}

.feat p {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.6;
	color: #a9bccb;
}

/* ==========================================================================
   11. Chi sono (blocco)
   ========================================================================== */

.wp-block-columns.about {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.about__media {
	position: relative;
}

.about__media img {
	display: block;
	width: 100%;
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow-lg);
	object-fit: cover;
	object-position: center 22%;
	aspect-ratio: 4 / 3;
}

.about__badge {
	position: absolute;
	right: -14px;
	bottom: 24px;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1rem;
	background: var(--o-surface);
	border-radius: 999px;
	box-shadow: var(--o-shadow);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--o-ink);
}

.about__badge .i-sparkles {
	color: var(--o-teal);
}

.wp-block-columns.about h2 {
	margin-bottom: 0.45em;
}

.wp-block-columns.about p {
	color: var(--o-slate);
}

/* ==========================================================================
   12. Video + FAQ
   ========================================================================== */

.wp-block-columns.video-faq {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(1.75rem, 3.5vw, 3rem);
	align-items: start;
}

/* Separatore sottile fra video e FAQ, come nel riferimento. */
.wp-block-columns.video-faq > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--o-line);
	padding-left: clamp(1.5rem, 3vw, 3rem);
}

/* Video e testo affiancati nella colonna di sinistra. */
/* Anteprima a tutta larghezza della colonna, testo sotto: immagine e testo
   restano allineati allo stesso bordo (come nel riferimento). */
.wp-block-group.video-block {
	display: block;
}

.video-block__body {
	margin-top: clamp(1rem, 2vw, 1.4rem);
}

.video-card {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: 10px;
	background: var(--o-band);
	box-shadow: var(--o-shadow-sm);
	aspect-ratio: 16 / 9;
}

.video-block__body .o-eyebrow {
	margin-bottom: 0.6rem;
}

.video-block__body h2 {
	margin-bottom: 0.55em;
	font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.5rem);
	line-height: 1.25;
}

.video-block__body p {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--o-slate);
}

.video-block__body .o-link-arrow {
	font-size: 0.92rem;
}

.video-block__body > * + * {
	margin-bottom: 0.75rem;
}

.video-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.video-card:hover img {
	transform: scale(1.04);
}

.video-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-card__play span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--o-teal);
	color: var(--o-on-dark);
	box-shadow: 0 0 0 10px rgba(0, 166, 149, 0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover .video-card__play span {
	transform: scale(1.07);
}

.video-card__play .i-play {
	width: 1.6rem;
	height: 1.6rem;
	margin-left: 4px;
}

.video-card__badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	background: rgba(10, 28, 42, 0.82);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
}

.faq {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
	padding: 0;
	list-style: none;
}

.faq__item {
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 8px;
	overflow: hidden;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.faq__item:hover {
	background: var(--o-sky);
}

.faq__item.is-open {
	background: var(--o-ice);
	border-color: rgba(0, 166, 149, 0.35);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 0.92rem 1.1rem;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	color: var(--o-ink);
	cursor: pointer;
}

.faq__sign {
	position: relative;
	width: 1.15rem;
	height: 1.15rem;
	flex: none;
	color: var(--o-ink);
	transition: color 0.2s ease;
}

.faq__item:hover .faq__sign,
.faq__item.is-open .faq__sign {
	color: var(--o-teal-dark);
}

.faq__sign::before,
.faq__sign::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.faq__sign::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__sign::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

.faq__a {
	display: none;
	padding: 0 1.2rem 1.15rem;
	font-size: 0.97rem;
	line-height: 1.65;
	color: var(--o-slate);
}

.faq__item.is-open .faq__a {
	display: block;
}

/* ==========================================================================
   13. Banda CTA
   ========================================================================== */

.cta-band {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.15rem, 2.6vw, 2rem);
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.cta-band .o-icon-circle {
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 12px;
	border: 1.5px solid rgba(255, 255, 255, 0.32);
	background: transparent;
	color: var(--o-on-dark);
}

.cta-band .o-icon-circle [class^='i-'] {
	width: 1.7rem;
	height: 1.7rem;
}

.cta-band__body {
	position: relative;
	z-index: 1;
	flex: 1 1 340px;
	padding-left: clamp(1.15rem, 2.4vw, 2rem);
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band h2 {
	margin-bottom: 0.3em;
	color: var(--o-on-dark);
	font-size: clamp(1.4rem, 1.2rem + 1vw, 1.95rem);
}

.cta-band p {
	margin: 0;
	max-width: 58ch;
	font-size: 0.96rem;
	color: #b9c8d4;
}

.cta-band .o-eyebrow {
	margin-bottom: 0.55rem;
	color: var(--o-teal-light);
}

.cta-band__action {
	position: relative;
	z-index: 1;
	flex: none;
	margin-left: auto;
}

/* ==========================================================================
   14. Card articoli / blog
   ========================================================================== */

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.6vw, 1.9rem);
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 44, 68, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 166, 149, 0.35);
	box-shadow: var(--o-shadow);
}

.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--o-sky);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: clamp(1.15rem, 2vw, 1.5rem);
}

.post-card__cat {
	margin-bottom: 0.6rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--o-teal-dark);
}

.post-card__title {
	margin-bottom: 0.5em;
	font-size: 1.12rem;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.post-card__title a {
	color: var(--o-ink);
}

.post-card__title a:hover {
	color: var(--o-teal-dark);
}

.post-card__excerpt {
	margin-bottom: 1.2rem;
	font-size: 0.94rem;
	line-height: 1.6;
	color: var(--o-slate);
}

.post-card__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--o-teal-dark);
}

.post-card__link:hover {
	color: var(--o-ink);
}

.post-card__link .i-arrow-right {
	transition: transform 0.2s ease;
}

.post-card:hover .post-card__link .i-arrow-right {
	transform: translateX(4px);
}

.more-articles {
	display: flex;
	justify-content: center;
	margin-top: clamp(2.5rem, 5vw, 3.75rem);
	margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* ==========================================================================
   15. Pagina blog
   ========================================================================== */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 6vw, 4.75rem) 0;
	background:
		radial-gradient(700px 340px at 82% 10%, rgba(0, 168, 143, 0.3), transparent 65%),
		linear-gradient(135deg, var(--o-band) 0%, var(--o-band-2) 55%, #0d3a37 100%);
	color: #cfdbe4;
}

.page-hero h1,
.page-hero h2 {
	color: var(--o-on-dark);
	margin-bottom: 0.4em;
}

.page-hero p {
	max-width: 62ch;
	margin: 0;
	color: #b7c7d3;
	font-size: 1.05rem;
}

.page-hero .o-eyebrow {
	color: #45d9c0;
}

.page-hero .breadcrumbs,
.page-hero .breadcrumbs a {
	color: #9fb6c6;
}

.page-hero .breadcrumbs a:hover {
	color: #fff;
}

.blog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.filter {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.15rem;
	border: 1px solid var(--o-line);
	border-radius: 999px;
	background: var(--o-surface);
	font-family: inherit;
	font-size: 0.93rem;
	font-weight: 500;
	color: var(--o-slate);
	cursor: pointer;
	transition: all 0.18s ease;
}

.filter:hover {
	border-color: var(--o-teal);
	color: var(--o-teal-dark);
}

.filter.is-active {
	background: var(--o-teal);
	border-color: var(--o-teal);
	color: var(--o-on-dark);
}

.o-search {
	position: relative;
	flex: 1 1 240px;
	max-width: 320px;
}

.o-search .i-search {
	position: absolute;
	left: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.05rem;
	height: 1.05rem;
	color: var(--o-slate-2);
	pointer-events: none;
}

.o-search input[type='search'] {
	width: 100%;
	padding: 0.7rem 1rem 0.7rem 2.6rem;
	border: 1px solid var(--o-line);
	border-radius: 999px;
	background: var(--o-surface);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--o-ink);
	-webkit-appearance: none;
	appearance: none;
}

.o-search input[type='search']::placeholder {
	color: var(--o-slate-2);
}

.o-search input[type='search']:focus {
	outline: none;
	border-color: var(--o-teal);
	box-shadow: 0 0 0 4px rgba(0, 168, 143, 0.14);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.85rem;
	border: 1px solid var(--o-line);
	border-radius: 999px;
	background: var(--o-surface);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--o-ink);
	transition: all 0.18s ease;
}

.pagination .page-numbers:hover {
	border-color: var(--o-teal);
	color: var(--o-teal-dark);
}

.pagination .page-numbers.current {
	background: var(--o-teal);
	border-color: var(--o-teal);
	color: var(--o-on-dark);
}

.pagination .page-numbers.dots {
	border: 0;
	color: var(--o-slate-2);
}

/* ==========================================================================
   16. Pagina contatti
   ========================================================================== */

.wp-block-columns.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.5rem, 4vw, 2.75rem);
	align-items: start;
}

.form-card {
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow);
}

.form-card h2,
.form-card h3 {
	font-size: 1.4rem;
	margin-bottom: 1.1em;
}

.o-field {
	margin-bottom: 1.15rem;
}

.o-field label {
	display: block;
	margin-bottom: 0.42rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--o-ink);
}

.o-field .req {
	color: #d9534f;
}

.o-field input,
.o-field select,
.o-field textarea {
	display: block;
	width: 100%;
	padding: 0.82rem 1rem;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-sm);
	background: #fbfdfe;
	font-family: inherit;
	font-size: 1rem;
	color: var(--o-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.o-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a6b' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.1rem;
	-webkit-appearance: none;
	appearance: none;
	padding-right: 2.6rem;
}

.o-field textarea {
	min-height: 150px;
	resize: vertical;
}

.o-field input:focus,
.o-field select:focus,
.o-field textarea:focus {
	outline: none;
	border-color: var(--o-teal);
	/* Solo il colore: la freccia del select resta al suo posto. */
	background-color: var(--o-surface);
	box-shadow: 0 0 0 4px rgba(0, 168, 143, 0.14);
}

.o-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 1.35rem 0 1.5rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--o-slate);
}

.o-check input {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
	margin-top: 0.16rem;
	accent-color: var(--o-teal);
}

.o-check a {
	text-decoration: underline;
}

.o-form-note {
	margin-top: 1rem;
	font-size: 0.87rem;
	color: var(--o-slate-2);
}

.o-form-status {
	display: none;
	margin-top: 1rem;
	padding: 0.85rem 1.1rem;
	border-radius: var(--o-radius-sm);
	font-size: 0.94rem;
}

.o-form-status.is-ok {
	display: block;
	background: var(--o-teal-soft);
	color: #056b5b;
	border: 1px solid rgba(0, 168, 143, 0.35);
}

.o-form-status.is-err {
	display: block;
	background: #fdecec;
	color: #a3312e;
	border: 1px solid rgba(217, 83, 79, 0.4);
}

/* Colonna destra della pagina contatti: pannello grigio unico. */
.contact-panel {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	height: 100%;
	padding: clamp(1.6rem, 3vw, 2.1rem);
	background: var(--o-ice);
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-lg);
}

.info-card {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.info-card h3 {
	font-size: 1.18rem;
	margin-bottom: 0.55em;
}

.info-card p {
	font-size: 0.93rem;
	line-height: 1.65;
	color: var(--o-slate);
}

.info-card .o-icon-circle {
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: 1rem;
	border: 1.5px solid var(--o-teal);
	background: transparent;
	color: var(--o-teal);
}

.info-card .wp-block-buttons {
	margin-top: 1.1rem;
}

.contact-panel__title {
	margin: 0;
	padding-top: 1.15rem;
	border-top: 1px solid var(--o-line);
	font-size: 1rem;
	font-weight: 700;
	color: var(--o-ink);
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.65rem 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.contact-item + .contact-item {
	border-top: 1px solid var(--o-line);
}

.contact-item .o-icon-circle {
	width: 1.4rem;
	height: 1.4rem;
	margin: 0.2rem 0 0;
	background: none;
	box-shadow: none;
	color: var(--o-teal);
}

.contact-item .o-icon-circle [class^='i-'] {
	width: 1.4rem;
	height: 1.4rem;
}

.contact-item__label {
	display: block;
	font-size: 0.83rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--o-ink);
}

.contact-item__value {
	display: block;
	font-size: 0.84rem;
	font-weight: 400;
	color: var(--o-slate);
	word-break: break-word;
}

/* Citazione con fotografia, banda scura a tutta larghezza. */
.quote-band {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: var(--o-band);
	text-align: left;
}

.quote-band .o-wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	align-items: center;
	gap: clamp(2rem, 4vw, 4rem);
}

.quote-band__media img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	object-position: center 30%;
	border-radius: var(--o-radius-lg);
	display: block;
}

.quote-band blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 34ch;
}

.quote-band p {
	margin: 0 0 1rem;
	font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem);
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: -0.02em;
	color: var(--o-on-dark);
}

.quote-band cite {
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--o-teal-light);
}

/* Variante con fotografia di sfondo (pagina Contatti). */
.quote-band--photo {
	display: flex;
	align-items: center;
	min-height: clamp(300px, 32vw, 420px);
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	background:
		linear-gradient(100deg, rgba(8, 27, 43, 0.9) 0%, rgba(8, 27, 43, 0.74) 48%, rgba(8, 27, 43, 0.4) 100%),
		url(assets/img/quote-bg.jpg) center/cover no-repeat;
}

.quote-band--photo .o-wrap {
	display: block;
}

.quote-band--photo blockquote {
	max-width: 32ch;
}

/* ==========================================================================
   17. Pagina chi sono
   ========================================================================== */

.bio-hero {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.75rem, 3.5vw, 2.75rem);
	background:
		radial-gradient(900px 420px at 90% -10%, rgba(0, 166, 149, 0.14), transparent 62%),
		linear-gradient(180deg, var(--o-ice) 0%, #e8f2f6 100%);
	border-bottom: 1px solid var(--o-line);
}

:root[data-theme='dark'] .bio-hero {
	background:
		radial-gradient(900px 420px at 90% -10%, rgba(0, 166, 149, 0.16), transparent 62%),
		linear-gradient(180deg, #12232f 0%, var(--o-surface) 100%);
}

.wp-block-columns.bio-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.bio-hero h1 {
	margin-bottom: 0.4em;
}

.bio-hero__media img {
	width: 100%;
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow-lg);
	object-fit: cover;
	object-position: center 22%;
	aspect-ratio: 4 / 3;
}

.prose {
	max-width: 760px;
}

.prose h2 {
	margin-top: 1.6em;
	font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
}

.prose h3 {
	margin-top: 1.5em;
}

.prose p,
.prose li {
	color: var(--o-slate);
	line-height: 1.75;
}

.prose ul,
.prose ol {
	padding-left: 1.2rem;
	margin: 0 0 1.3em;
}

.prose li {
	margin-bottom: 0.5em;
}

.prose blockquote {
	margin: 1.8em 0;
	padding: 1.1rem 1.5rem;
	border-left: 3px solid var(--o-teal);
	background: var(--o-ice);
	border-radius: 0 var(--o-radius) var(--o-radius) 0;
	font-size: 1.08rem;
	color: var(--o-ink);
}

.wp-block-columns.values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.value {
	height: 100%;
	padding: clamp(1.4rem, 2.6vw, 1.9rem);
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow-sm);
}

.value .o-icon-circle {
	margin-bottom: 1rem;
}

.value h3 {
	font-size: 1.1rem;
	margin-bottom: 0.4em;
}

.value p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--o-slate);
}

/* ==========================================================================
   18. Articolo singolo, archivi, ricerca, 404
   ========================================================================== */

.post-hero {
	padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
	background: linear-gradient(180deg, var(--o-ice), var(--o-surface));
}

.post-hero h1 {
	max-width: 20ch;
	margin-bottom: 0.45em;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 1.1rem;
	font-size: 0.9rem;
	color: var(--o-slate-2);
}

.post-meta a {
	color: var(--o-teal-dark);
	font-weight: 600;
}

.post-thumb {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.post-thumb img {
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	border-radius: var(--o-radius-lg);
	box-shadow: var(--o-shadow);
}

.single-content--post > .wp-block-group,
.single-content--post > p,
.single-content--post > h2,
.single-content--post > h3,
.single-content--post > ul,
.single-content--post > ol,
.single-content--post > blockquote,
.single-content--post > .wp-block-image {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.single-content--post {
	font-size: 1.06rem;
}

.single-content--post h2 {
	margin-top: 1.8em;
	font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem);
}

.single-content--post h3 {
	margin-top: 1.6em;
}

.single-content--post p,
.single-content--post li {
	color: #3d4c5c;
	line-height: 1.78;
}

.single-content--post ul,
.single-content--post ol {
	padding-left: 1.3rem;
}

.single-content--post li {
	margin-bottom: 0.5em;
}

.single-content--post a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.single-content--post blockquote {
	margin: 2em auto;
	padding: 1.2rem 1.6rem;
	border-left: 3px solid var(--o-teal);
	background: var(--o-ice);
	border-radius: 0 var(--o-radius) var(--o-radius) 0;
	font-size: 1.12rem;
	font-weight: 500;
	color: var(--o-ink);
}

.single-content--post .wp-block-image {
	margin-top: 1.8em;
	margin-bottom: 1.8em;
}

.single-content--post figcaption {
	margin-top: 0.6rem;
	font-size: 0.88rem;
	text-align: center;
	color: var(--o-slate-2);
}

.single-content--post .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--o-line);
	margin: 2.5em auto;
	max-width: 220px;
}

.author-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	max-width: 760px;
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	padding: 1.5rem;
	background: var(--o-ice);
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius-lg);
}

.author-box img {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.author-box h4 {
	margin-bottom: 0.25em;
}

.author-box p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--o-slate);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: 760px;
	margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
}

.post-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.archive-head {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: linear-gradient(180deg, var(--o-ice), var(--o-surface));
}

.archive-head h1 {
	margin-bottom: 0.35em;
}

.empty-state {
	max-width: 620px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
	background: var(--o-ice);
	border: 1px dashed var(--o-line);
	border-radius: var(--o-radius-lg);
}

.empty-state h1 {
	font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
}

/* ==========================================================================
   19. Footer
   ========================================================================== */

.site-footer {
	background: var(--o-band);
	color: #a9bccb;
	font-size: 0.95rem;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1.5rem;
	padding: clamp(2.25rem, 4.5vw, 3rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.footer-brand .footer-name {
	display: block;
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--o-on-dark);
}

.footer-brand .footer-tag {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: #7f93a4;
}

.footer-nav {
	justify-self: center;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 2.4vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	font-size: 0.9rem;
	color: #cdd9e2;
	font-weight: 500;
}

.footer-nav a:hover {
	color: var(--o-teal-light, #7fd9c7);
}

.footer-social {
	display: flex;
	gap: 1rem;
	justify-self: end;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 0;
	color: #e2ebf1;
	transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a [class^='i-'] {
	width: 1.35rem;
	height: 1.35rem;
}

.footer-social a:hover {
	color: var(--o-on-dark);
	transform: translateY(-2px);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 1.1rem 0 1.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.84rem;
	color: #7f93a4;
}

.site-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__bottom a {
	color: #9fb1c0;
}

.site-footer__bottom a:hover {
	color: var(--o-teal-light, #7fd9c7);
}

/* ==========================================================================
   20. Varie
   ========================================================================== */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.75rem 1.1rem;
	background: var(--o-band);
	color: #fff;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

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

.wp-block-image img {
	border-radius: var(--o-radius);
}

.wp-block-list {
	padding-left: 1.2rem;
}

.breadcrumbs {
	margin-bottom: 1.25rem;
	font-size: 0.87rem;
	color: var(--o-slate-2);
}

.breadcrumbs a {
	color: var(--o-slate-2);
}

.breadcrumbs a:hover {
	color: var(--o-teal-dark);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--o-line);
	margin: 2.5rem auto;
}

.wp-block-quote {
	padding-left: 1.4rem;
	border-left: 3px solid var(--o-teal);
}

/* Lazy fade-in */
.o-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.o-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.o-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* Il blockGap di WordPress somma 1.5rem ai gap che questi contenitori
   gestiscono già da soli: qui lo azzeriamo. La specificità doppia
   ( .wp-block-group.classe ) prevale sui .wp-container-* della core. */
.wp-block-group.flow > * + *,
.wp-block-group.flow__body > * + *,
.wp-block-group.faq > * + *,
.wp-block-group.o-note > * + *,
.wp-block-group.compare__head > * + *,
.wp-block-group.compare__list > * + *,
.wp-block-group.compare__item > * + *,
.wp-block-group.compare__card > * + *,
.wp-block-group.step > * + *,
.wp-block-group.step__top > * + *,
.wp-block-group.feat > * + *,
.wp-block-group.value > * + *,
.wp-block-group.o-head > * + *,
.wp-block-group.hero__visual > * + *,
.wp-block-group.about__media > * + *,
.wp-block-group.bio-hero__media > * + *,
.wp-block-group.cta-band > * + *,
.wp-block-group.cta-band__body > * + *,
.wp-block-group.cta-band__action > * + *,
.wp-block-group.contact-list > * + *,
.wp-block-group.contact-item > * + *,
.wp-block-group.contact-item__body > * + *,
.wp-block-group.info-card > * + *,
.wp-block-group.form-card > * + *,
.wp-block-group.quote-band > * + *,
.wp-block-group.o-wrap > * + *,
.wp-block-buttons > * + * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Il reset sopra azzera anche il margine del pulsante "Leggi tutti gli
   articoli": qui lo ripristiniamo con specificità più alta. */
.wp-block-group.o-wrap > .wp-block-buttons.more-articles {
	margin-block-start: clamp(2.5rem, 5vw, 3.75rem);
	margin-block-end: clamp(0.5rem, 1.5vw, 1rem);
}

.o-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.1rem;
}

.o-form-row .o-field {
	margin-bottom: 1.15rem;
}

button.wp-block-button__link {
	-webkit-appearance: none;
	appearance: none;
}

button.wp-block-button__link:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

/* Freccia nel cerchio generata via CSS: l'HTML dei pulsanti resta testo puro,
   così i blocchi Gutenberg non perdono mai la validazione. */
.wp-block-button.o-btn--circle,
.o-btn--circle {
	position: relative;
}

.wp-block-button.o-btn--circle .wp-block-button__link,
a.o-btn--circle,
button.o-btn--circle {
	padding-right: 3.35rem;
}

:is(.wp-block-button.o-btn--circle, a.o-btn--circle, button.o-btn--circle)::before {
	content: '';
	position: absolute;
	right: 0.48rem;
	top: 50%;
	width: 2.05rem;
	height: 2.05rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%);
	pointer-events: none;
}

:is(.wp-block-button.o-btn--circle, a.o-btn--circle, button.o-btn--circle)::after {
	content: '';
	position: absolute;
	right: 0.95rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	background-color: #fff;
	-webkit-mask: url(assets/img/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(assets/img/icons/arrow-right.svg) center / contain no-repeat;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
	pointer-events: none;
}

:is(.wp-block-button.o-btn--circle, a.o-btn--circle)::after,
:is(.wp-block-button.o-btn--circle, a.o-btn--circle)::before {
	z-index: 1;
}

:is(.wp-block-button.o-btn--circle, a.o-btn--circle, button.o-btn--circle):hover::after,
:is(.wp-block-button.o-btn--circle, a.o-btn--circle, button.o-btn--circle):focus::after {
	transform: translateY(-50%) translateX(3px);
}

/* Variante chiara: cerchietto appena percettibile e freccia nel colore del testo. */
:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle)::before {
	background: rgba(16, 44, 68, 0.07);
}

:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle)::after {
	background-color: var(--o-ink);
}

:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle):hover::after,
:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle):focus::after {
	background-color: #fff;
}

:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle):hover::before,
:is(.o-btn--ghost.o-btn--circle, .wp-block-button.o-btn--ghost.o-btn--circle):focus::before {
	background: rgba(255, 255, 255, 0.2);
}

.o-btn--down {
	position: relative;
}

.wp-block-button.o-btn--down .wp-block-button__link,
a.o-btn--down {
	padding-right: 2.9rem;
}

:is(.wp-block-button.o-btn--down, a.o-btn--down)::after {
	content: '';
	position: absolute;
	right: 1.15rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: url(assets/img/icons/arrow-down.svg) center / contain no-repeat;
	mask: url(assets/img/icons/arrow-down.svg) center / contain no-repeat;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

:is(.wp-block-button.o-btn--down, a.o-btn--down):hover::after,
:is(.wp-block-button.o-btn--down, a.o-btn--down):focus::after {
	background-color: var(--o-on-dark);
	transform: translateY(calc(-50% + 3px));
}

.video-embed {
	position: relative;
	overflow: hidden;
	margin-bottom: 1.6rem;
	border-radius: var(--o-radius-lg);
	background: #000;
	box-shadow: var(--o-shadow);
	aspect-ratio: 16 / 9;
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.contact-item__body p {
	margin: 0;
}

.header-cta .o-btn--circle {
	padding-right: 2.9rem;
}

.header-cta .o-btn--circle::before {
	right: 0.4rem;
	width: 1.8rem;
	height: 1.8rem;
}

.header-cta .o-btn--circle::after {
	right: 0.82rem;
	width: 0.88rem;
	height: 0.88rem;
}

.contact-item__body a {
	color: var(--o-ink);
}

.contact-item__body a:hover {
	color: var(--o-teal-dark);
}

.quote-band .wp-block-quote {
	margin: 0 auto;
	padding: 0;
	border: 0;
	text-align: center;
}

.quote-band cite {
	display: block;
	font-style: normal;
}

.o-wrap--narrow.o-center {
	text-align: center;
}

/* ==========================================================================
   20b. Menu mobile dedicato, torna su, modalità scura
   ========================================================================== */

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	padding: 1.15rem clamp(1.25rem, 6vw, 2.25rem) 1.6rem;
	background:
		radial-gradient(620px 320px at 100% 0%, rgba(0, 166, 149, 0.26), transparent 66%),
		linear-gradient(160deg, #0b1e2d 0%, #0e2c3f 55%, #0a2428 100%);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.mobile-menu__deco {
	position: absolute;
	right: -120px;
	top: -110px;
	width: 320px;
	height: 320px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	pointer-events: none;
}

.mobile-menu__deco::after {
	content: '';
	position: absolute;
	inset: 46px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 50%;
}

.mobile-menu__bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.mobile-menu__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--o-teal-light);
}

.mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
}

.mobile-menu__close span {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.mobile-menu__close span::before,
.mobile-menu__close span::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.mobile-menu__close span::before { transform: rotate(45deg); }
.mobile-menu__close span::after { transform: rotate(-45deg); }

.mobile-menu__nav {
	position: relative;
	z-index: 1;
	margin-block: auto;
	padding-block: 1rem;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu__list li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__list a {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 0;
	color: #fff;
}

.mobile-menu__num {
	width: 1.6rem;
	flex: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.42);
}

.mobile-menu__label {
	flex: 1;
	font-size: clamp(1.45rem, 6.5vw, 1.85rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.mobile-menu__list a [class^='i-'] {
	width: 1rem;
	height: 1rem;
	color: rgba(255, 255, 255, 0.45);
	transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu__list a:hover .mobile-menu__label,
.mobile-menu__list a.is-current .mobile-menu__label {
	color: var(--o-teal-light);
}

.mobile-menu__list a:hover [class^='i-'] {
	color: var(--o-teal-light);
	transform: translate(2px, -2px);
}

.mobile-menu__foot {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu__contact {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.mobile-menu__contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: #d7e3ea;
}

.mobile-menu__contact [class^='i-'] {
	width: 1rem;
	height: 1rem;
	color: var(--o-teal-light);
}

.mobile-menu .mobile-menu__cta {
	width: 100%;
	justify-content: center;
}

.mobile-menu__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.mobile-menu .mobile-social {
	justify-self: initial;
	gap: 1.1rem;
}

.mobile-menu .mobile-social a {
	color: #d7e3ea;
}

.mobile-menu .theme-toggle--wide {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 0.82rem;
	padding: 0.5rem 0.85rem;
}

/* Torna su */
.to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--o-line);
	border-radius: 50%;
	background: var(--o-surface);
	color: var(--o-ink);
	box-shadow: var(--o-shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
		background 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--o-teal);
	border-color: var(--o-teal);
	color: #fff;
}

.to-top [class^='i-'] {
	width: 1.15rem;
	height: 1.15rem;
}

/* Campi e messaggi in modalità scura */
:root[data-theme='dark'] .o-field input,
:root[data-theme='dark'] .o-field select,
:root[data-theme='dark'] .o-field textarea {
	/* background-color, non background: altrimenti si perdono repeat,
	   posizione e dimensione della freccia personalizzata. */
	background-color: #0d1c28;
	color: var(--o-ink);
}

:root[data-theme='dark'] .o-field input:focus,
:root[data-theme='dark'] .o-field select:focus,
:root[data-theme='dark'] .o-field textarea:focus {
	background: #0b1822;
}

:root[data-theme='dark'] .o-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9dab' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.1rem;
}

:root[data-theme='dark'] .o-form-status.is-ok {
	background: #0f312d;
	color: #8fe6d4;
}

:root[data-theme='dark'] .o-form-status.is-err {
	background: #35201f;
	color: #ffb4b1;
	border-color: rgba(217, 83, 79, 0.45);
}

:root[data-theme='dark'] .compare__mark {
	background: #35201f;
	color: #ff9a96;
}

:root[data-theme='dark'] .is-good .compare__mark {
	background: #0f312d;
	color: #7fdfcd;
}

:root[data-theme='dark'] .hero__visual {
	background:
		linear-gradient(150deg, rgba(23, 44, 59, 0.92), rgba(14, 34, 42, 0.9)),
		url(assets/img/hero-bg.jpg) center/cover no-repeat;
	border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .about__badge {
	background: #162a39;
	color: var(--o-ink);
}

/* ==========================================================================
   21. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.wp-block-columns.feats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.wp-block-columns.hero__grid,
	.wp-block-columns.bio-hero__grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		max-width: 18ch;
	}

	.wp-block-columns.video-faq,
	.wp-block-columns.contact-grid {
		grid-template-columns: 1fr;
	}

	.wp-block-columns.video-faq > .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 980px) {
	.wp-block-group.video-block {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.header-tools {
		margin-left: auto;
	}

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

	/* Sul telefono il menu è un pannello dedicato: la navigazione desktop sparisce. */
	.primary-nav {
		display: none;
	}

	.cta-band {
		gap: 1rem;
	}

	.cta-band__body {
		flex: 1 1 100%;
		padding-left: 0;
		border-left: 0;
		padding-top: 0.75rem;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	.cta-band__action {
		margin-left: 0;
	}

	.wp-block-columns.compare,
	.wp-block-columns.values {
		grid-template-columns: 1fr;
	}

	.wp-block-columns.steps {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.wp-block-columns.steps > .wp-block-column,
	.wp-block-columns.steps > .wp-block-column:first-child,
	.wp-block-columns.steps > .wp-block-column:last-child {
		padding: 1.35rem 0;
		border-left: 0;
	}

	.wp-block-columns.steps > .wp-block-column + .wp-block-column {
		border-top: 1px solid var(--o-line);
	}

	.step {
		display: block;
	}

	.step__top {
		margin-bottom: 0.7rem;
	}

	.wp-block-columns.about {
		grid-template-columns: 1fr;
	}

	.about__media {
		max-width: 420px;
	}

	.quote-band .o-wrap {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.quote-band__media img {
		max-height: 260px;
	}

	.site-footer__top {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.footer-social {
		justify-self: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.posts-grid,
	.wp-block-columns.feats {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		gap: 0.5rem;
		padding-block: 0.65rem;
	}

	.site-branding img {
		height: 42px;
		max-width: 150px;
	}

	.header-tools {
		gap: 0.4rem;
	}

	/* Il cambio tema resta nel menu mobile: in testata serve spazio. */
	.header-tools > .theme-toggle {
		display: none;
	}

	/* CTA compatta: logo, pulsante e menu nella stessa riga senza toccare il bordo. */
	.header-cta .wp-block-button__link,
	.header-cta .o-btn {
		padding: 0.48rem 0.7rem;
		font-size: 0.78rem;
	}

	.header-cta .o-btn--circle {
		padding-right: 2.1rem;
	}

	.header-cta .o-btn--circle::before {
		right: 0.2rem;
		width: 1.35rem;
		height: 1.35rem;
	}

	.header-cta .o-btn--circle::after {
		right: 0.55rem;
		width: 0.65rem;
		height: 0.65rem;
	}

	.menu-toggle {
		padding: 0 0.85rem;
	}

	.menu-toggle__label {
		display: none;
	}

	.header-cta .btn-label-long {
		display: none;
	}

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

	.o-form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* I ritorni a capo del titolo restano: separano le frasi senza incollare
	   le parole, come nel riferimento. */
	.hero h1 br,
	.bio-hero h1 br {
		display: inline;
	}

	.hero__actions .wp-block-button__link,
	.hero__actions .o-btn {
		justify-content: center;
		width: 100%;
	}

	.flow__card:hover {
		transform: none;
	}

	.wp-block-group.video-block {
		grid-template-columns: 1fr;
	}

	.to-top {
		width: 42px;
		height: 42px;
	}

	.post-nav {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.o-reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.hero__visual,
	.o-section--dark {
		display: none !important;
	}

	body {
		color: #000;
	}
}
