/*
Theme Name: Basei
Theme URI: https://www.francescabasei.it/
Author: Francesca Basei
Author URI: https://www.francescabasei.it/
Description: Tema a blocchi dal design system di Francesca Basei (Notte, Avorio, Ambra · Jost e DM Sans). Home commerciale per PMI, ottimizzata per SEO locale e motori generativi (GEO), compatibile con Contact Form 7 e Yoast SEO.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basei
Tags: block-theme, full-site-editing, dark, one-column, custom-colors
*/

/* ---------- Token semantici (design system) ---------- */
:root {
	--bg: var(--wp--preset--color--notte);
	--surface: var(--wp--preset--color--antracite);
	--line: var(--wp--preset--color--grafite);
	--text: var(--wp--preset--color--avorio);
	--text-muted: var(--wp--preset--color--nebbia);
	--text-subtle: var(--wp--preset--color--pietra);
	--accent: var(--wp--preset--color--ambra);
	--accent-fill: var(--wp--preset--color--ambra);
	--on-accent: var(--wp--preset--color--notte);
	--h4-size: 1.5rem;
	--focus: var(--wp--preset--color--ambra);
	--radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --radius-pill: 999px;
	--wide: 1280px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wp-site-blocks { overflow-x: clip; }
:where(h1, h2, h3, h4, .fb-display) { font-feature-settings: "ss01" 1; }
:where(h1, h2, h3) em { font-style: italic; font-weight: 300; color: var(--accent); }
::selection { background: var(--accent-fill); color: var(--on-accent); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.fb-section > * { margin-block: 0; }

.fb-eyebrow {
	font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1;
	font-size: 0.8125rem !important; font-weight: 500; line-height: 1.4;
	letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
	margin-block: 0 0.85rem !important;
}
.fb-lead { font-size: var(--wp--preset--font-size--large); color: var(--text-muted); }
.fb-muted { color: var(--text-muted); }
.fb-section { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: 0; }
.fb-section--last { padding-bottom: clamp(5rem, 9vw, 8rem); }
.fb-rule { border-top: 1px solid var(--line); }

.fb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: 3rem !important; }
.fb-head > * { margin: 0 !important; }
.fb-head > .wp-block-group > * { margin: 0; }
.fb-head h2 { max-width: 820px; }
.fb-head > p { max-width: 380px; color: var(--text-muted); }

/* Pulsanti e link d'azione */
.wp-block-button.fb-btn-arrow .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; }
.wp-block-button.fb-btn-arrow .wp-block-button__link::after {
	content: ""; width: 15px; height: 15px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--text); border: 1px solid var(--text); padding: 0.95rem 1.75rem; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--text); color: var(--bg); }
.fb-link a, a.fb-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 0;
	font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600;
	letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
	color: var(--accent); border-bottom: 1px solid currentColor;
}
.fb-link a::after, a.fb-link::after {
	content: ""; width: 11px; height: 11px; background: currentColor; transition: transform .25s ease;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fb-link a:hover::after, a.fb-link:hover::after { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.fb-header { border-bottom: 1px solid var(--line); }
.fb-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.fb-header__inner > * { margin: 0 !important; }
.fb-logo { display: inline-flex; line-height: 0; }
.fb-logo img { width: 190px; height: auto; }
.fb-nav { font-family: var(--wp--preset--font-family--display); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.fb-nav .wp-block-navigation__container { gap: 30px; align-items: center; }
.fb-nav a { text-decoration: none; }
.fb-nav .fb-nav-cta > a {
	background: var(--accent-fill); color: var(--on-accent) !important; border-radius: var(--radius-pill);
	padding: 12px 20px !important; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600;
}
.fb-nav .fb-nav-cta > a:hover { background: color-mix(in srgb, var(--accent-fill) 82%, #fff); }
/* Specificità maggiore della regola core .wp-block-navigation:not(.has-background) … (sfondo bianco) */
.wp-block-navigation.fb-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background: var(--bg); color: var(--text); padding: 32px; }
.fb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 26px; font-size: 1rem; }

/* ---------- Hero ---------- */
.fb-hero { padding-top: clamp(4rem, 8vw, 7rem); }
.fb-hero__grid { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: center; }
.fb-hero__grid > * { margin: 0 !important; }
.fb-hero__text { flex: 999 1 600px; min-width: 0; }
.fb-hero__text > * { margin-block: 0; }
.fb-hero__text h1 { margin-bottom: 28px !important; }
.fb-hero__text .fb-lead { max-width: 600px; margin-bottom: 40px !important; }
.fb-hero__art { flex: 0 1 440px; min-width: 0; max-width: 440px; margin-inline: auto !important; }
.fb-seal { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.fb-seal::before, .fb-seal::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.fb-seal::before { inset: 0; }
.fb-seal::after { inset: 9%; border-color: color-mix(in srgb, var(--surface), var(--line)); }
.fb-seal__ring { position: absolute; inset: 18%; border-radius: 50%; background: var(--surface); }
.fb-seal img { position: relative; width: 58%; height: auto; animation: fb-spin 90s linear infinite; }
.fb-seal__dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-fill); top: 7.5%; left: 50%; transform: translateX(-50%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-fill) 15%, transparent); }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fb-seal img { animation: none; } }

.fb-trust { margin-top: clamp(4rem, 7vw, 6rem) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fb-trust > * { margin: 0 !important; padding: 26px 24px 26px 0; }
.fb-trust > * + * { border-left: 1px solid var(--line); padding-left: 24px; }
.fb-trust strong { display: block; font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1; font-weight: 400; font-size: 1.375rem; color: var(--text); line-height: 1.2; }
.fb-trust span { font-size: 0.875rem; color: var(--text-subtle); }

/* ---------- In breve (GEO) ---------- */
.fb-brief__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.fb-brief__grid > * { margin: 0 !important; }
.fb-brief__head { grid-column: span 4; }
.fb-brief__head > * { margin: 0; }
.fb-brief__body { grid-column: span 8; }
.fb-brief__body > * { margin: 0 0 24px !important; }
.fb-brief__body p.fb-brief__def { font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--text); }
.fb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; border-top: 1px solid var(--line); }
.fb-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.fb-facts dt { font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); padding-top: 3px; }
.fb-facts dd { margin: 0; color: var(--text); font-size: 1rem; }

/* ---------- Servizi ---------- */
.fb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fb-cards > * { margin: 0 !important; }
.fb-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; transition: background .25s; }
.fb-card > * { margin: 0 !important; }
.fb-card:hover { background: color-mix(in srgb, var(--surface) 94%, var(--text)); }
.fb-card__num { font-family: var(--wp--preset--font-family--display); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.24em; color: var(--accent); }
.fb-card p:not(.fb-card__num):not(.fb-link) { color: var(--text-muted); }
.fb-card ul { list-style: none; padding: 0; margin: 4px 0 0 !important; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--text); }
.fb-card li { position: relative; padding-left: 22px; }
.fb-card li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 1px; background: var(--accent); }
.fb-card .fb-link { margin-top: auto !important; padding-top: 8px; }

/* ---------- Perché ---------- */
.fb-why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.fb-why__grid > * { margin: 0 !important; }
.fb-why__head { grid-column: span 5; }
.fb-why__head > * { margin: 0 0 20px; }
.fb-why__list { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.fb-why__list > * { margin: 0 !important; }
.fb-point { border-top: 1px solid var(--line); padding-top: 22px; }
.fb-point > * { margin: 0 !important; }
.fb-point h3 { font-size: 1.375rem; margin-bottom: 8px !important; }
.fb-point p { color: var(--text-muted); font-size: 1rem; }

/* ---------- Metodo ---------- */
.fb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.fb-steps > * { margin: 0 !important; }
.fb-step { border-top: 1px solid var(--text); padding-top: 24px; }
.fb-step > * { margin: 0 !important; }
.fb-step__num { font-family: var(--wp--preset--font-family--numeric); font-weight: 700; font-size: 3.5rem; line-height: 0.9; letter-spacing: -0.02em; color: var(--accent); }
.fb-step h3 { font-size: 1.375rem; margin: 22px 0 8px !important; }
.fb-step p:not(.fb-step__num) { color: var(--text-muted); font-size: 1rem; }

/* ---------- Esperienza ---------- */
.fb-exp { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.fb-exp > * { margin: 0 !important; }
.fb-exp__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.fb-exp__head > * { margin: 0 !important; }
.fb-exp__head > .wp-block-group > * { margin: 0; }
.fb-exp__head > p { max-width: 400px; color: var(--text-muted); }
.fb-stats { grid-column: span 4; display: flex; flex-direction: column; }
.fb-stats > * { margin: 0 !important; }
.fb-stat { border-top: 1px solid var(--line); padding: 22px 0; }
.fb-stat > * { margin: 0 !important; }
.fb-stat__num { font-family: var(--wp--preset--font-family--numeric); font-weight: 700; font-size: clamp(3rem, 5vw, 4.5rem); line-height: 0.9; letter-spacing: -0.02em; color: var(--text); }
.fb-stat__num em { font-style: normal; color: var(--accent); }
.fb-stat p:last-child { color: var(--text-muted); font-size: 0.9375rem; margin-top: 8px !important; }
.fb-timeline { grid-column: 6 / span 7; list-style: none; padding: 0; margin: 0; }
.fb-timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.fb-timeline time, .fb-timeline .fb-when { font-family: var(--wp--preset--font-family--display); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); padding-top: 4px; }
.fb-timeline strong { display: block; font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1; font-weight: 400; font-size: 1.25rem; color: var(--text); margin-bottom: 4px; }
.fb-timeline span.fb-desc { color: var(--text-muted); font-size: 0.9375rem; }
.fb-skills { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.fb-skills > * { margin: 0 !important; }
.fb-skills__label { grid-column: span 3; }
.fb-skills__label p { margin: 0; }
.fb-tags { grid-column: span 9; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fb-tags li { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 0.875rem; color: var(--text); }

/* ---------- Zona ---------- */
.fb-area__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: start; }
.fb-area__grid > * { margin: 0 !important; }
.fb-area__head { grid-column: span 5; }
.fb-area__head > * { margin: 0 0 20px; }
.fb-area__list { grid-column: 7 / span 6; }
.fb-towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.fb-towns li { background: var(--surface); border-radius: var(--radius-pill); padding: 10px 18px; font-family: var(--wp--preset--font-family--display); font-size: 1rem; }
.fb-towns li:first-child { background: var(--accent-fill); color: var(--on-accent); }

/* ---------- FAQ ---------- */
.fb-faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.fb-faq__grid > * { margin: 0 !important; }
.fb-faq__head { grid-column: span 4; }
.fb-faq__head > * { margin: 0 0 16px; }
.fb-faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--text); }
.fb-faq__list > * { margin: 0 !important; }
.fb-faq__list .wp-block-details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.fb-faq__list summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
	font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1; font-size: 1.375rem; line-height: 1.3;
}
.fb-faq__list summary::-webkit-details-marker { display: none; }
.fb-faq__list summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .25s; }
.fb-faq__list details[open] summary::after { transform: rotate(45deg); }
.fb-faq__list .wp-block-details > p { margin: 14px 0 0; color: var(--text-muted); max-width: 640px; }
.fb-faq__list .wp-block-details a { color: var(--accent); }

/* ---------- Contatti ---------- */
.fb-contact { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; position: relative; overflow: hidden; }
.fb-contact > * { margin: 0 !important; }
.fb-contact::after { content: ""; position: absolute; right: -140px; top: -140px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.fb-contact__info { grid-column: span 5; position: relative; }
.fb-contact__info > * { margin: 0 0 20px; }
.fb-contact__info h2 em { color: var(--accent); }
.fb-contact__rows { border-top: 1px solid var(--line); margin-top: 32px !important; }
.fb-contact__rows > * { margin: 0 !important; }
.fb-contact__rows p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.fb-contact__rows strong { font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); padding-top: 3px; }
.fb-contact__form { grid-column: 7 / span 6; position: relative; }

/* Contact Form 7 */
.fb-cf7 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.fb-cf7 p { margin: 0; }
.fb-cf7 .fb-full { grid-column: 1 / -1; }
.fb-cf7 label { display: flex; flex-direction: column; gap: 8px; font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.fb-cf7 .wpcf7-form-control-wrap { display: block; }
.fb-cf7 input[type="text"], .fb-cf7 input[type="email"], .fb-cf7 input[type="tel"], .fb-cf7 select, .fb-cf7 textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-family: var(--wp--preset--font-family--body); font-size: 1rem;
	letter-spacing: 0; text-transform: none; color: var(--text);
	background: var(--bg); border: 1px solid var(--text-subtle); border-radius: var(--radius-sm);
	min-height: 52px; padding: 12px 16px;
}
.fb-cf7 textarea { min-height: 140px; resize: vertical; }
.fb-cf7 select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9BCC0' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.fb-cf7 input:focus, .fb-cf7 select:focus, .fb-cf7 textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.fb-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.fb-cf7 .wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 12px; font-family: var(--wp--preset--font-family--body); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.fb-cf7 .wpcf7-acceptance input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-fill); flex-shrink: 0; }
.fb-cf7 a { color: var(--accent); }
.fb-cf7 input[type="submit"], .fb-cf7 .wpcf7-submit {
	appearance: none; border: 0; cursor: pointer; min-height: 54px; padding: 0 32px; border-radius: var(--radius-pill);
	background: var(--accent-fill); color: var(--on-accent); font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1rem;
	transition: background .2s;
}
.fb-cf7 .wpcf7-submit:hover { background: color-mix(in srgb, var(--accent-fill) 82%, #fff); }
.fb-cf7 .wpcf7-spinner { margin: 0 0 0 14px; vertical-align: middle; }
.fb-cf7 .wpcf7-not-valid-tip { color: #FF9C8A; font-size: 0.8125rem; margin-top: 6px; text-transform: none; letter-spacing: 0; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text); font-size: 0.9375rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent-fill); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #FF9C8A; }
.fb-cf7-missing { border: 1px dashed var(--text-subtle); border-radius: var(--radius-md); padding: 28px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.fb-footer { border-top: 1px solid var(--line); margin-top: clamp(5rem, 9vw, 8rem); padding-block: 56px 32px; }
.fb-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.fb-footer__grid > * { margin: 0 !important; }
.fb-footer__brand { grid-column: span 5; }
.fb-footer__brand > * { margin: 0 0 16px; }
.fb-footer__brand img { width: 220px; height: auto; }
.fb-footer address { grid-column: span 4; font-style: normal; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.8; }
.fb-footer__links { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.fb-footer__links a, .fb-footer address a { text-decoration: none; }
.fb-footer__bar { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; color: var(--text-subtle); font-size: 0.875rem; }

/* ---------- Pagine interne ---------- */
.fb-page { padding-block: clamp(4rem, 8vw, 6rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.fb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-brief__head, .fb-brief__body, .fb-why__head, .fb-why__list, .fb-area__head, .fb-area__list,
	.fb-faq__head, .fb-faq__list, .fb-stats, .fb-timeline, .fb-contact__info, .fb-contact__form,
	.fb-footer__brand, .fb-footer address, .fb-footer__links, .fb-skills__label, .fb-tags { grid-column: 1 / -1; }
	.fb-brief__grid, .fb-why__grid, .fb-area__grid, .fb-faq__grid, .fb-exp, .fb-skills, .fb-contact, .fb-footer__grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
	.fb-why__list { grid-column: auto; }
	.fb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 781px) {
	.fb-cards, .fb-why__list, .fb-facts, .fb-cf7 { grid-template-columns: minmax(0, 1fr); }
	.fb-steps { grid-template-columns: minmax(0, 1fr); }
	.fb-stats { grid-template-columns: minmax(0, 1fr); }
	.fb-trust > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
	.fb-timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.fb-facts div { grid-template-columns: 100px 1fr; }
	.fb-hero__art { max-width: 320px; }
	.fb-contact::after { display: none; }
}

/* =====================================================================
   2.1 — Pagine, risalto e animazioni
   ===================================================================== */

/* Header fisso con sfondo sfocato */
.fb-sticky { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s; }
/* Blur su pseudo-elemento: backdrop-filter sul contenitore creerebbe un containing block e schiaccerebbe l'overlay fixed del menu mobile */
.fb-sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fb-sticky .fb-header__inner { transition: padding .3s ease; }
.fb-scrolled .fb-sticky { box-shadow: 0 1px 0 var(--line); }
.fb-scrolled .fb-sticky .fb-header__inner { padding-block: 12px; }
body.admin-bar .fb-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fb-sticky { top: 46px; } }
.fb-nav a:not(.fb-nav-cta a) { position: relative; }
.fb-nav .wp-block-navigation-item:not(.fb-nav-cta) > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.fb-nav .wp-block-navigation-item:not(.fb-nav-cta) > a:hover::after,
.fb-nav .wp-block-navigation-item.current-menu-item > a::after { transform: scaleX(1); }

/* Hero: entrata a cascata, sottolineatura dell'accento, orbita */
@keyframes fb-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fb-sweep { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }
@keyframes fb-orbit { to { transform: rotate(360deg); } }
@keyframes fb-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.fb-hero__text > * { animation: fb-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.fb-hero__text > :nth-child(2) { animation-delay: .08s; }
.fb-hero__text > :nth-child(3) { animation-delay: .2s; }
.fb-hero__text > :nth-child(4) { animation-delay: .32s; }
.fb-hero h1 em, .fb-page-hero h1 em { background: linear-gradient(var(--accent), var(--accent)) left 92% / 0% 2px no-repeat; animation: fb-sweep 1.1s .7s cubic-bezier(.6,0,.2,1) forwards; padding-bottom: 2px; }
.fb-hero__art { animation: fb-pop 1.2s .2s cubic-bezier(.2,.7,.2,1) both; }
.fb-seal__orbit { position: absolute; inset: 0; animation: fb-orbit 14s linear infinite; }
.fb-seal__orbit .fb-seal__dot { top: -7px; }
.fb-trust > * { animation: fb-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.fb-trust > :nth-child(1) { animation-delay: .45s; } .fb-trust > :nth-child(2) { animation-delay: .55s; }
.fb-trust > :nth-child(3) { animation-delay: .65s; } .fb-trust > :nth-child(4) { animation-delay: .75s; }

/* Pulsanti: riflesso al passaggio */
.wp-block-button .wp-block-button__link { position: relative; overflow: hidden; transition: background .25s, color .25s, transform .25s; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.fb-btn-arrow .wp-block-button__link::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.wp-block-button.fb-btn-arrow .wp-block-button__link:hover::before { transform: translateX(120%); }
.wp-block-button.fb-btn-dark .wp-block-button__link { background: var(--on-accent); color: var(--accent-fill); }
.wp-block-button.fb-btn-dark .wp-block-button__link:hover { background: color-mix(in srgb, var(--on-accent) 85%, var(--accent-fill)); color: var(--accent-fill); }

/* Nastro scorrevole */
.fb-marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; margin-top: clamp(4rem, 7vw, 6rem); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fb-marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: fb-marquee 36s linear infinite; }
.fb-marquee:hover .fb-marquee__track { animation-play-state: paused; }
.fb-marquee span { font-family: var(--wp--preset--font-family--display); font-feature-settings: "ss01" 1; font-size: clamp(1.5rem, 3vw, 2.375rem); font-weight: 300; white-space: nowrap; color: var(--text); }
.fb-marquee span:nth-of-type(even) { font-style: italic; color: var(--text-muted); }
.fb-marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); flex-shrink: 0; }
@keyframes fb-marquee { to { transform: translateX(-50%); } }
.fb-hero + .fb-marquee { margin-top: 0; }

/* Servizi in home: mosaico con il servizio principale in evidenza */
.fb-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 20px; }
.fb-bento > * { margin: 0 !important; }
.fb-card { position: relative; transition: background .3s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.fb-card::after { content: ""; position: absolute; left: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); top: 0; height: 2px; background: var(--accent-fill); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.fb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.fb-card:hover::after { transform: scaleX(1); }
.fb-card--feature { overflow: hidden; grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 88%, var(--text)) 0%, var(--surface) 60%); outline: 1px solid color-mix(in srgb, var(--accent-fill) 45%, transparent); outline-offset: -1px; justify-content: flex-end; }
.fb-card--feature h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.fb-card--feature p:not(.fb-card__num):not(.fb-link) { font-size: var(--wp--preset--font-size--large); max-width: 460px; }
.fb-card--feature::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent-fill) 35%, transparent); box-shadow: 0 0 0 40px color-mix(in srgb, var(--accent-fill) 400%, transparent), 0 0 0 80px color-mix(in srgb, var(--accent-fill) 300%, transparent); pointer-events: none; }
.fb-card--wide { grid-column: span 2; }

/* Numeri e definizione */
.fb-numbers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; align-items: start; }
.fb-numbers > * { margin: 0 !important; }
.fb-numbers__intro { grid-column: span 5; }
.fb-numbers__intro > * { margin: 0 0 24px !important; }
.fb-numbers__list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.fb-numbers__item { border-top: 1px solid var(--line); padding: 26px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.fb-big { font-family: var(--wp--preset--font-family--numeric); font-weight: 700; font-size: clamp(3.25rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.fb-big em { font-style: normal; color: var(--accent); font-size: .55em; letter-spacing: -0.01em; }
.fb-numbers__label { color: var(--text-muted); font-size: 0.9375rem; max-width: 260px; }

/* Fascia invito al contatto */
.fb-cta { position: relative; overflow: hidden; background: var(--accent-fill); color: var(--on-accent); border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 96px) clamp(28px, 6vw, 88px); }
.fb-cta > * { position: relative; margin: 0 0 24px !important; }
.fb-cta > :last-child { margin-bottom: 0 !important; }
.fb-cta h2 { color: var(--on-accent); font-size: clamp(2.5rem, 6vw, 5rem); max-width: 900px; }
.fb-cta h2 em { color: var(--on-accent); font-weight: 300; }
.fb-cta__eyebrow { font-family: var(--wp--preset--font-family--display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.fb-cta__contacts { font-size: 1rem; }
.fb-cta__contacts a { color: var(--on-accent); }
.fb-cta__mark { position: absolute !important; right: clamp(-40px, -2vw, 0px); bottom: -70px; width: clamp(220px, 30vw, 380px); height: auto; opacity: .1; margin: 0 !important; animation: fb-orbit 60s linear infinite; pointer-events: none; }

/* Testata delle pagine interne */
.fb-page-hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.fb-page-hero > * { position: relative; z-index: 1; }
.fb-page-hero h1 { box-sizing: border-box; padding-right: max(0px, calc(100% - 920px)); margin-block: 0 24px !important; animation: fb-rise .9s .05s cubic-bezier(.2,.7,.2,1) both; }
.fb-page-hero .fb-lead { box-sizing: border-box; padding-right: max(0px, calc(100% - 660px)); margin-block: 0 32px !important; animation: fb-rise .9s .18s cubic-bezier(.2,.7,.2,1) both; }
.fb-page-hero .fb-eyebrow { animation: fb-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.fb-page-hero .wp-block-buttons { animation: fb-rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.fb-page-hero__ring { position: absolute !important; z-index: 0 !important; right: -8vw; top: 50%; width: clamp(280px, 42vw, 620px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); transform: translateY(-50%); box-shadow: 0 0 0 60px color-mix(in srgb, var(--line) 35%, transparent), 0 0 0 120px color-mix(in srgb, var(--line) 18%, transparent); pointer-events: none; animation: fb-pop 1.4s .2s cubic-bezier(.2,.7,.2,1) both; }
.fb-page-hero__ring::after { content: ""; position: absolute; top: 8%; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent-fill); }
.fb-breadcrumb { font-size: 0.8125rem; color: var(--text-subtle); margin-block: 0 40px !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.fb-breadcrumb a:hover { color: var(--accent); }
.fb-breadcrumb [aria-current], .fb-breadcrumb .breadcrumb_last { color: var(--text); }

/* Servizi in dettaglio */
.fb-service-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: start; padding-top: clamp(1rem, 2vw, 2rem); }
.fb-service-detail > * { margin: 0 !important; }
.fb-service-detail__text { grid-column: span 6; }
.fb-service-detail__text > * { margin: 0 0 20px !important; }
.fb-service-detail__num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 300; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.fb-service-detail__for { color: var(--text-muted); font-size: 1rem; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.fb-service-detail__for strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px; }
.fb-service-detail__box { grid-column: 8 / span 5; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); position: sticky; top: 110px; }
.fb-service-detail__box > * { margin: 0 !important; }
.fb-checklist { list-style: none; padding: 0; margin: 8px 0 0 !important; display: grid; }
.fb-checklist li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-size: 1rem; }
.fb-checklist li:first-child { border-top: 0; }
.fb-checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px); }
.fb-section + .fb-section .fb-service-detail { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.fb-page-hero + .fb-section .fb-service-detail { border-top: 0; padding-top: 0; }

/* Reveal allo scroll (solo con JS attivo, mai con riduci movimento) */
.fb-js:not(.fb-static) .fb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--fb-delay, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--fb-delay, 0ms); }
.fb-js:not(.fb-static) .fb-reveal.is-in { opacity: 1; transform: none; }
.fb-js:not(.fb-static) .fb-card.fb-reveal.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.fb-hero h1 em, .fb-page-hero h1 em { background-size: 100% 2px; }
	.fb-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

@media (max-width: 1024px) {
	.fb-numbers, .fb-service-detail { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
	.fb-numbers__intro, .fb-numbers__list, .fb-service-detail__text, .fb-service-detail__box { grid-column: 1 / -1; }
	.fb-service-detail__box { position: static; }
	.fb-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-card--feature { grid-row: auto; grid-column: 1 / -1; min-height: 340px; }
	.fb-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.fb-bento { grid-template-columns: minmax(0, 1fr); }
	.fb-numbers__list { grid-template-columns: minmax(0, 1fr); }
	.fb-page-hero__ring { right: -40vw; opacity: .6; }
	.fb-cta__mark { opacity: .07; }
}

/* 2.2 — Footer dalle opzioni tema */
.fb-footer__title { display: block; margin-bottom: 10px; font-family: var(--wp--preset--font-family--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); }
.fb-footer__brand .fb-logo, .fb-footer__brand > img { display: block; }
.fb-footer__social { display: flex; gap: 18px; font-size: 0.9375rem; }
.fb-footer__social a { text-decoration: none; border-bottom: 1px solid var(--line); }
.fb-footer__social a:hover { border-color: var(--accent); }
