/* ==========================================================================
   Studio Marra — Tema custom
   Foglio di stile principale. Nessuna dipendenza esterna: i font sono
   ospitati nel tema (assets/fonts, licenza SIL Open Font License).
   ========================================================================== */

/* DM Serif Display ha un solo peso: l'intervallo 100-900 evita il grassetto "finto" del browser. */
@font-face {
	font-family: "DM Serif Display";
	src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "DM Serif Display";
	src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
	font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 1000; font-style: italic; font-display: swap;
}
:root {
	--sm-navy:        #0d2b4e;
	--sm-navy-deep:   #081c34;
	--sm-navy-soft:   #163f6d;
	--sm-blue:        #1d6fb8;
	--sm-gold:        #c8a24a;
	--sm-gold-light:  #e6cd93;
	--sm-ink:         #1b2530;
	--sm-muted:       #5d6b7a;
	--sm-line:        #e2e8ef;
	--sm-surface:     #f4f7fa;
	--sm-surface-2:   #eef3f8;
	--sm-white:       #ffffff;
	--sm-shadow:      0 18px 45px rgba(13, 43, 78, .10);
	--sm-shadow-sm:   0 6px 20px rgba(13, 43, 78, .07);
	--sm-radius:      14px;
	--sm-serif:       "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sm-sans:        "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--sm-ease:        cubic-bezier(.22, 1, .36, 1);
	--sm-container:   1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sm-white);
	color: var(--sm-ink);
	font-family: var(--sm-sans);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--sm-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sm-navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sm-serif);
	color: var(--sm-navy);
	line-height: 1.2;
	font-weight: 600;
	margin: 0 0 .65em;
	letter-spacing: -.015em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--sm-navy); }
hr { border: 0; border-top: 1px solid var(--sm-line); margin: 2.5em 0; }
:focus-visible { outline: 3px solid var(--sm-gold); outline-offset: 3px; }
::selection { background: var(--sm-gold-light); color: var(--sm-navy-deep); }

.sm-container { width: min(100% - 48px, var(--sm-container)); margin-inline: auto; }
.sm-section { padding: clamp(64px, 8vw, 108px) 0; }
.sm-section--tight { padding: clamp(44px, 6vw, 70px) 0; }
.sm-section--surface { background: var(--sm-surface); }
.sm-section--navy { background: var(--sm-navy); color: #dce7f2; }
.sm-section--navy h1, .sm-section--navy h2, .sm-section--navy h3 { color: var(--sm-white); }
.sm-section--navy p { color: #d3e0ee; }
.sm-skip { position: absolute; left: -9999px; top: 0; background: var(--sm-white); color: var(--sm-navy); padding: 12px 20px; z-index: 999; }
.sm-skip:focus { left: 12px; top: 12px; }
.sm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Eyebrow / titoli di sezione ---------- */
.sm-eyebrow {
	display: inline-block;
	font-family: var(--sm-sans);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sm-gold);
	margin-bottom: 1rem;
}
.sm-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--sm-gold); vertical-align: middle; margin-right: 12px; }
.sm-section--navy .sm-eyebrow { color: var(--sm-gold-light); }
.sm-lead { font-size: 1.12rem; color: var(--sm-muted); max-width: 68ch; }
.sm-section--navy .sm-lead { color: #c5d6e8; }
.sm-section-head { max-width: 760px; margin-bottom: 3rem; }
.sm-section-head p:last-child { margin-bottom: 0; }

/* ---------- Bottoni ---------- */
.sm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .85rem 1.6rem; border-radius: 8px; border: 2px solid transparent;
	font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-align: center;
	text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sm-btn:hover { transform: translateY(-2px); }
.sm-btn--primary { background: var(--sm-gold); color: var(--sm-navy-deep); border-color: var(--sm-gold); }
.sm-btn--primary:hover { background: #d8b662; border-color: #d8b662; color: var(--sm-navy-deep); }
.sm-btn--outline { background: transparent; color: var(--sm-white); border-color: rgba(255,255,255,.55); }
.sm-btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--sm-white); color: var(--sm-white); }
.sm-btn--navy { background: var(--sm-navy); color: var(--sm-white); border-color: var(--sm-navy); }
.sm-btn--navy:hover { background: var(--sm-navy-soft); border-color: var(--sm-navy-soft); color: var(--sm-white); }
.sm-btn--ghost { background: transparent; color: var(--sm-navy); border-color: var(--sm-line); }
.sm-btn--ghost:hover { border-color: var(--sm-navy); background: var(--sm-surface); color: var(--sm-navy); }
.sm-btn svg { width: 17px; height: 17px; }
.sm-btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.sm-topbar { background: var(--sm-navy-deep); color: #b9cde1; font-size: .82rem; }
.sm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.sm-topbar a { color: #dbe8f5; }
.sm-topbar a:hover { color: var(--sm-gold-light); }
.sm-topbar__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sm-topbar__list li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.sm-topbar__list svg { width: 14px; height: 14px; color: var(--sm-gold); flex: none; }
.sm-header { position: sticky; top: 0; z-index: 60; background: var(--sm-white); border-bottom: 1px solid var(--sm-line); box-shadow: 0 2px 12px rgba(13,43,78,.05); }
.sm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.sm-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--sm-navy); }
.sm-brand:hover { color: var(--sm-navy); }
.sm-brand__mark { width: 48px; height: 48px; flex: none; }
.sm-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.sm-brand__name { font-family: var(--sm-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.sm-brand__tag { font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--sm-muted); font-weight: 600; margin-top: .3rem; }
.sm-nav { display: flex; align-items: center; gap: 1.6rem; }
.sm-nav > ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.sm-nav a { color: var(--sm-ink); font-size: .92rem; font-weight: 600; padding: .4rem 0; position: relative; }
.sm-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--sm-gold); transition: right .25s ease; }
.sm-nav a:hover, .sm-nav .current-menu-item > a, .sm-nav .current_page_item > a { color: var(--sm-navy); }
.sm-nav a:hover::after, .sm-nav .current-menu-item > a::after { right: 0; }
.sm-header__cta { flex: none; }
.sm-nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--sm-navy); }
.sm-nav-toggle svg { width: 28px; height: 28px; }
.sm-mobile-panel { display: none; }

/* ---------- Hero ---------- */
.sm-hero { position: relative; overflow: hidden; background: var(--sm-navy-deep); color: var(--sm-white); }
.sm-hero__bg { position: absolute; inset: 0; }
.sm-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sm-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,28,52,.94) 0%, rgba(8,28,52,.82) 42%, rgba(8,28,52,.35) 100%); }
.sm-hero__inner { position: relative; padding: clamp(90px, 12vw, 150px) 0 clamp(80px, 10vw, 120px); }
.sm-hero__content { max-width: 720px; }
.sm-hero h1 { color: var(--sm-white); margin-bottom: 1.1rem; }
.sm-hero__sub { font-size: 1.16rem; color: #dbe7f3; max-width: 60ch; margin-bottom: 0; }
.sm-hero .sm-eyebrow { color: var(--sm-gold-light); }
.sm-hero__trust { display: flex; flex-wrap: wrap; gap: 0; margin-top: 3.2rem; border-top: 1px solid rgba(255,255,255,.22); padding-top: 1.6rem; }
.sm-hero__trust div { padding-right: 2.2rem; margin-right: 2.2rem; border-right: 1px solid rgba(255,255,255,.22); font-size: .85rem; color: #c9d9e9; display: flex; align-items: center; gap: .5rem; }
.sm-hero__trust div:last-child { border-right: 0; margin-right: 0; }
.sm-hero__trust svg { width: 17px; height: 17px; color: var(--sm-gold); flex: none; }

/* ---------- Striscia punti di forza ---------- */
.sm-highlights { background: var(--sm-white); border-bottom: 1px solid var(--sm-line); }
.sm-highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sm-highlight { display: flex; gap: 1rem; align-items: flex-start; padding: 2rem 1.6rem; border-right: 1px solid var(--sm-line); }
.sm-highlight:last-child { border-right: 0; }
.sm-highlight__icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--sm-surface-2); display: grid; place-items: center; color: var(--sm-navy); }
.sm-highlight__icon svg { width: 22px; height: 22px; }
.sm-highlight h3 { font-size: 1.02rem; margin: 0 0 .3rem; font-family: var(--sm-sans); font-weight: 700; }
.sm-highlight p { font-size: .86rem; color: var(--sm-muted); margin: 0; line-height: 1.55; }

/* ---------- Split / immagini ---------- */
.sm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sm-split--reverse .sm-split__media { order: 2; }
.sm-split__media { position: relative; border-radius: var(--sm-radius); overflow: hidden; box-shadow: var(--sm-shadow); }
.sm-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sm-split__badge { position: absolute; bottom: -22px; right: -22px; background: var(--sm-navy); color: var(--sm-white); padding: 1.3rem 1.6rem; border-radius: 12px; box-shadow: var(--sm-shadow); max-width: 220px; }
.sm-split__badge strong { display: block; color: var(--sm-gold-light); font-family: var(--sm-serif); font-size: 1.5rem; line-height: 1; }
.sm-split__badge span { font-size: .78rem; color: #cddcea; text-transform: uppercase; letter-spacing: .1em; }
.sm-signature { font-family: var(--sm-serif); font-style: italic; font-size: 1.1rem; color: var(--sm-navy); border-left: 3px solid var(--sm-gold); padding-left: 1rem; margin-top: 2rem; }

/* ---------- Card servizi ---------- */
.sm-grid { display: grid; gap: 1.5rem; }
.sm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sm-card { background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: 2rem 1.9rem; box-shadow: var(--sm-shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sm-card:hover { transform: translateY(-5px); box-shadow: var(--sm-shadow); border-color: #cddbe9; }
.sm-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sm-navy); color: var(--sm-gold-light); display: grid; place-items: center; margin-bottom: 1.4rem; }
.sm-card__icon svg { width: 26px; height: 26px; }
.sm-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.sm-card p { font-size: .94rem; color: var(--sm-muted); margin-bottom: 1rem; }
.sm-card ul { font-size: .9rem; color: var(--sm-muted); margin: 0 0 1.2rem; padding-left: 1.1rem; }
.sm-card ul li { margin-bottom: .3rem; }
.sm-link { font-size: .9rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.sm-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.sm-link:hover svg { transform: translateX(4px); }

/* ---------- Lista servizi "altri" ---------- */
.sm-list-numbered { list-style: none; counter-reset: smnum; margin: 0; padding: 0; }
.sm-list-numbered li { counter-increment: smnum; position: relative; padding: .85rem 0 .85rem 4rem; border-bottom: 1px solid var(--sm-line); font-weight: 600; color: var(--sm-ink); margin: 0; }
.sm-list-numbered li::before { content: counter(smnum, decimal-leading-zero); position: absolute; left: 0; top: .85rem; font-family: var(--sm-serif); font-size: 1.25rem; font-weight: 700; color: var(--sm-gold); }
.sm-list-numbered li:last-child { border-bottom: 0; }

/* ---------- Callout ---------- */
.sm-callout { background: var(--sm-surface-2); border-left: 4px solid var(--sm-gold); border-radius: 0 12px 12px 0; padding: 1.6rem 1.8rem; margin-top: 2rem; }
.sm-callout p { margin: 0; font-weight: 600; color: var(--sm-navy); }

/* ---------- Banda CTA ---------- */
.sm-cta { background: var(--sm-navy); color: var(--sm-white); position: relative; overflow: hidden; }
.sm-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 60px solid rgba(200,162,74,.10); border-radius: 50%; }
.sm-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(48px, 6vw, 76px) 0; }
.sm-cta__text h2 { margin-bottom: .5rem; }
.sm-cta__text p { margin: 0; color: #c9d9e9; }

/* ---------- Page header ---------- */
.sm-page-header { background: var(--sm-surface); border-bottom: 1px solid var(--sm-line); padding: clamp(30px, 4vw, 46px) 0; }
.sm-page-header h1 { margin-bottom: .5rem; }
.sm-page-header .sm-lead { margin-bottom: 0; }
.sm-breadcrumb { font-size: .82rem; color: var(--sm-muted); margin-bottom: .8rem; }
.sm-breadcrumb a { color: var(--sm-muted); }
.sm-breadcrumb a:hover { color: var(--sm-navy); }

/* ---------- Contenuto (Gutenberg / editor) ---------- */
.sm-content { padding: clamp(40px, 5vw, 68px) 0; }
.sm-content__inner { max-width: 860px; }
.sm-content__inner--wide { max-width: 100%; }
.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.9em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 0 0 1.8em; }
.entry-content figcaption { font-size: .85rem; color: var(--sm-muted); text-align: center; margin-top: .6em; }
.entry-content blockquote { margin: 2em 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--sm-gold); background: var(--sm-surface); font-family: var(--sm-serif); font-style: italic; font-size: 1.15rem; color: var(--sm-navy); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .94rem; }
.entry-content th, .entry-content td { border: 1px solid var(--sm-line); padding: .7rem .9rem; text-align: left; }
.entry-content th { background: var(--sm-surface-2); color: var(--sm-navy); }
.entry-content .wp-block-columns { gap: 1.5rem; }
.entry-content .alignwide { width: min(100%, 1320px); margin-left: auto; margin-right: auto; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-button__link { background: var(--sm-navy); border-radius: 8px; padding: .8rem 1.5rem; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--sm-navy-soft); color: #fff; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--sm-line); }
.sm-content-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sm-line); }

/* ---------- Modulo di contatto ---------- */
.sm-contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sm-contact-layout > * { min-width: 0; }
.sm-form { background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--sm-shadow-sm); }
.sm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.sm-field { margin-bottom: 1.15rem; }
.sm-field label { display: block; font-size: .86rem; font-weight: 700; color: var(--sm-navy); margin-bottom: .4rem; }
.sm-field label span { color: #b4432c; }
.sm-field input, .sm-field select, .sm-field textarea {
	width: 100%; padding: .8rem .95rem; border: 1px solid #cfd9e4; border-radius: 8px;
	background: #fbfcfe; color: var(--sm-ink); font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus { outline: none; border-color: var(--sm-blue); box-shadow: 0 0 0 3px rgba(29,111,184,.14); background: #fff; }
.sm-field textarea { min-height: 150px; resize: vertical; }
.sm-field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--sm-muted); margin: .4rem 0 1.4rem; }
.sm-check input { margin-top: .3rem; width: 16px; height: 16px; flex: none; accent-color: var(--sm-navy); }
.sm-check a { text-decoration: underline; }
.sm-form__note { font-size: .78rem; color: var(--sm-muted); margin: 1rem 0 0; }
.sm-alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: .94rem; }
.sm-alert--ok { background: #e8f6ec; border: 1px solid #b9e2c5; color: #1d6334; }
.sm-alert--err { background: #fdeceb; border: 1px solid #f3c4c0; color: #8f2d20; }

/* Contatti: email dei singoli uffici */
.sm-uffici { margin-bottom: clamp(40px, 6vw, 72px); }
.sm-uffici__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 1.4rem; }
.sm-uffici__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sm-ufficio { display: flex; flex-direction: column; background: var(--sm-white); border: 1px solid var(--sm-line); border-top: 3px solid var(--sm-gold); border-radius: var(--sm-radius); padding: 1.6rem 1.6rem 1.4rem; color: var(--sm-ink); text-decoration: none; box-shadow: var(--sm-shadow-sm); transition: transform .35s var(--sm-ease), box-shadow .35s var(--sm-ease), border-color .35s; }
.sm-ufficio:hover, .sm-ufficio:focus-visible { transform: translateY(-4px); box-shadow: var(--sm-shadow); border-color: var(--sm-gold); }
.sm-ufficio__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sm-navy); color: var(--sm-gold-light); margin-bottom: 1rem; }
.sm-ufficio__icon svg { width: 24px; height: 24px; }
.sm-ufficio h3 { font-size: 1.25rem; margin: 0 0 .45rem; color: var(--sm-navy); }
.sm-ufficio p { font-size: .93rem; color: var(--sm-muted); margin: 0 0 1.1rem; flex: 1; }
.sm-ufficio__mail { font-weight: 700; font-size: .95rem; color: var(--sm-blue); overflow-wrap: anywhere; }
.sm-ufficio:hover .sm-ufficio__mail { text-decoration: underline; }
@media (max-width: 860px) { .sm-uffici__grid { grid-template-columns: 1fr; } }

.sm-contact-aside { display: grid; gap: 1.2rem; }
.sm-info-card { background: var(--sm-surface); border-radius: var(--sm-radius); padding: 1.6rem 1.7rem; border: 1px solid var(--sm-line); }
.sm-info-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.sm-info-list { list-style: none; margin: 0; padding: 0; }
.sm-info-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; font-size: .93rem; color: var(--sm-ink); }
.sm-info-list li:last-child { margin-bottom: 0; }
.sm-info-list svg { width: 18px; height: 18px; color: var(--sm-gold); flex: none; margin-top: .3rem; }
.sm-info-list a { color: var(--sm-navy); font-weight: 600; overflow-wrap: anywhere; }
.sm-info-list small { display: block; color: var(--sm-muted); font-size: .8rem; }

/* ---------- Mappa ---------- */
.sm-map { border-radius: var(--sm-radius); overflow: hidden; border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-sm); background: var(--sm-surface); }
.sm-map iframe { width: 100%; height: 320px; border: 0; display: block; filter: saturate(.85); }
.sm-map__consent { height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1.5rem; text-align: center; background: var(--sm-surface); }
.sm-map__consent svg { width: 32px; height: 32px; color: var(--sm-gold); }
.sm-map__consent p { margin: 0; max-width: 34ch; font-size: .86rem; color: var(--sm-muted); line-height: 1.55; }
.sm-map__bar { padding: .9rem 1.2rem; font-size: .86rem; background: var(--sm-white); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.sm-map__bar a { font-weight: 700; }
.sm-map-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

/* ---------- Blog ---------- */
.sm-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.sm-post { background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sm-shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.sm-post:hover { transform: translateY(-5px); box-shadow: var(--sm-shadow); }
.sm-post__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sm-surface-2); }
.sm-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sm-post:hover .sm-post__thumb img { transform: scale(1.05); }
.sm-post__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.sm-post__meta { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-muted); margin-bottom: .7rem; }
.sm-post__meta span { color: var(--sm-gold); font-weight: 700; }
.sm-post h2, .sm-post h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.sm-post h2 a, .sm-post h3 a { color: var(--sm-navy); }
.sm-post h2 a:hover, .sm-post h3 a:hover { color: var(--sm-blue); }
.sm-post p { font-size: .9rem; color: var(--sm-muted); margin-bottom: 1.2rem; }
.sm-post .sm-link { margin-top: auto; }
.sm-empty { background: var(--sm-surface); border: 1px dashed #c8d5e3; border-radius: var(--sm-radius); padding: 3rem; text-align: center; }
.sm-empty h2 { font-size: 1.5rem; }
.sm-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.sm-pagination .page-numbers { padding: .6rem 1rem; border: 1px solid var(--sm-line); border-radius: 8px; font-weight: 600; }
.sm-pagination .current { background: var(--sm-navy); color: #fff; border-color: var(--sm-navy); }
.sm-article { max-width: 1040px; }
.sm-article__meta { font-size: .85rem; color: var(--sm-muted); margin-bottom: 1.5rem; }
.sm-article .entry-content { font-size: 1.08rem; line-height: 1.78; }
.sm-article__thumb { border-radius: var(--sm-radius); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--sm-shadow-sm); }
.sm-article__thumb img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.sm-article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sm-line); font-size: .9rem; }

/* ---------- Cookie banner ---------- */
.sm-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--sm-white); border-top: 3px solid var(--sm-gold); box-shadow: 0 -12px 40px rgba(8,28,52,.18); padding: 1.4rem 0; }
.sm-cookie[hidden] { display: none; }
.sm-cookie__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.sm-cookie__text { flex: 1 1 420px; font-size: .88rem; color: var(--sm-muted); line-height: 1.6; }
.sm-cookie__text strong { display: block; font-size: 1rem; color: var(--sm-navy); margin-bottom: .3rem; }
.sm-cookie__text a { text-decoration: underline; }
.sm-cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.sm-cookie__actions .sm-btn { padding: .65rem 1.15rem; font-size: .85rem; }
.sm-cookie__prefs { flex: 1 1 100%; border-top: 1px solid var(--sm-line); margin-top: 1.2rem; padding-top: 1.2rem; }
.sm-cookie__prefs[hidden] { display: none; }
.sm-cookie__prefs label { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--sm-ink); margin-bottom: .9rem; }
.sm-cookie__prefs input { margin-top: .3rem; accent-color: var(--sm-navy); }
.sm-cookie__prefs small { color: var(--sm-muted); }

/* ---------- Footer ---------- */
.sm-footer { background: var(--sm-navy-deep); color: #b9cde1; padding-top: clamp(56px, 7vw, 88px); }
.sm-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.sm-footer h3 { color: var(--sm-white); font-family: var(--sm-sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.3rem; }
.sm-footer p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.sm-footer a { color: #cbdcea; font-size: .9rem; }
.sm-footer a:hover { color: var(--sm-gold-light); }
.sm-footer__brand .sm-brand__name { color: var(--sm-white); }
.sm-footer__brand .sm-brand__tag { color: #8fa8c2; }
.sm-footer__list { list-style: none; margin: 0; padding: 0; }
.sm-footer__list li { margin-bottom: .65rem; }
.sm-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.sm-footer__contact svg { width: 16px; height: 16px; color: var(--sm-gold); flex: none; margin-top: .35rem; }
/* Fascia contatti a tutta larghezza, 5 colonne */
.sm-footer__contacts { margin-top: 2.8rem; padding-top: 2.2rem; border-top: 1px solid rgba(255, 255, 255, .13); }
.sm-footer__contacts-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 1.2rem; }
.sm-footer__cbox { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.2rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: .9rem; min-width: 0; transition: border-color .3s ease, background-color .3s ease; }
.sm-footer__cbox:hover { border-color: rgba(230, 205, 147, .45); background: rgba(255, 255, 255, .05); }
.sm-footer__cbox small { color: #8fa8c2; font-size: .8rem; line-height: 1.5; }
.sm-footer__cbox a { overflow-wrap: break-word; font-weight: 600; font-size: .88rem; color: var(--sm-white); }
.sm-footer__clabel { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-gold-light); margin-bottom: .2rem; }
.sm-footer__clabel svg { width: 15px; height: 15px; color: var(--sm-gold); flex: none; }
.sm-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 1100px) { .sm-footer__contacts-grid { grid-template-columns: 1fr 1fr; } .sm-footer__cbox:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .sm-footer__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sm-footer__contacts-grid { grid-template-columns: 1fr; } }
.sm-footer__bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 3rem; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #8fa8c2; }
.sm-footer__bottom a { color: #b9cde1; font-size: .8rem; }
.sm-footer__bottom-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.sm-footer__bottom button { background: none; border: 0; color: #b9cde1; font-size: .8rem; padding: 0; text-decoration: underline; }
.sm-footer__bottom button:hover { color: var(--sm-gold-light); }

/* ---------- 404 ---------- */
.sm-404 { text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
.sm-404__code { font-family: var(--sm-serif); font-size: clamp(5rem, 16vw, 10rem); color: var(--sm-gold); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.sm-nav > ul { gap: 1rem; }
	.sm-nav a { font-size: .85rem; }
	.sm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.sm-footer__col--contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.sm-nav, .sm-header__cta { display: none; }
	.sm-nav-toggle { display: block; }
	.sm-mobile-panel { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--sm-white); border-bottom: 1px solid var(--sm-line); box-shadow: var(--sm-shadow); padding: 1rem 24px 1.6rem; }
	.sm-mobile-panel[hidden] { display: none; }
	.sm-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
	.sm-mobile-panel li { border-bottom: 1px solid var(--sm-line); margin: 0; }
	.sm-mobile-panel a { display: block; padding: .85rem 0; font-weight: 600; color: var(--sm-navy); }
	.sm-mobile-panel .sm-btn { margin-top: 1.2rem; width: 100%; }
	.sm-highlights__grid { grid-template-columns: repeat(2, 1fr); }
	.sm-highlight:nth-child(2) { border-right: 0; }
	.sm-highlight:nth-child(-n+2) { border-bottom: 1px solid var(--sm-line); }
	.sm-split, .sm-contact-layout, .sm-map-section { grid-template-columns: 1fr; }
	.sm-split--reverse .sm-split__media { order: 0; }
	.sm-split__badge { right: 14px; bottom: -18px; }
	.sm-grid--3, .sm-posts { grid-template-columns: repeat(2, 1fr); }
	.sm-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	body { font-size: 16px; }
	.sm-container { width: min(100% - 32px, var(--sm-container)); }
	.sm-topbar__inner { justify-content: center; padding: .45rem 0; }
	.sm-topbar__list { gap: .9rem; justify-content: center; font-size: .75rem; }
	/* Su mobile si nasconde l'indirizzo, restano telefono ed email */
	.sm-topbar__list:first-child { display: none; }
	.sm-map__consent { height: 260px; }
	.sm-header__inner { min-height: 70px; }
	.sm-brand__mark { width: 40px; height: 40px; }
	.sm-brand__name { font-size: 1.2rem; }
	.sm-hero__trust div { border-right: 0; padding-right: 0; margin-right: 1.4rem; padding-bottom: .4rem; }
	.sm-highlights__grid { grid-template-columns: 1fr; }
	.sm-highlight { border-right: 0; border-bottom: 1px solid var(--sm-line); padding: 1.4rem 0; }
	.sm-highlight:last-child { border-bottom: 0; }
	.sm-grid--3, .sm-posts, .sm-form__row { grid-template-columns: 1fr; }
	.sm-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
	.sm-footer__col--contact { grid-column: auto; }
	.sm-cta__inner { flex-direction: column; align-items: flex-start; }
	.sm-cookie__inner { gap: 1rem; }
	.sm-cookie__actions { width: 100%; }
	.sm-cookie__actions .sm-btn { flex: 1; }
	.sm-map iframe { height: 260px; }
}

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

@media print {
	.sm-header, .sm-topbar, .sm-footer, .sm-cookie, .sm-cta, .sm-btn { display: none !important; }
}

/* ==========================================================================
   Pagine istituzionali — hero fotografico e contenuti ampi
   ========================================================================== */
.sm-page-hero { position: relative; overflow: hidden; background: var(--sm-navy-deep); color: var(--sm-white); }
.sm-page-hero__bg { position: absolute; inset: 0; }
.sm-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sm-page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,28,52,.95) 0%, rgba(8,28,52,.84) 46%, rgba(8,28,52,.40) 100%); }
.sm-page-hero__inner {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(300px, 32vw, 400px);
	padding-top: clamp(36px, 4.5vw, 56px); padding-bottom: clamp(32px, 4vw, 48px);
}
.sm-page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--sm-gold) 0%, rgba(200,162,74,0) 75%); }
.sm-page-hero .sm-breadcrumb { color: #a9bed3; }
.sm-page-hero .sm-breadcrumb a { color: #d5e2ee; }
.sm-page-hero .sm-breadcrumb a:hover { color: var(--sm-white); }
.sm-page-hero .sm-eyebrow { color: var(--sm-gold-light); }
.sm-page-hero h1 { color: var(--sm-white); max-width: 940px; margin-bottom: .7rem; }
.sm-page-hero__lead { font-size: 1.15rem; line-height: 1.7; color: #dbe7f3; max-width: 900px; margin: 0; }

.sm-page-body-section { background: var(--sm-white); }
.sm-page-body { font-size: 1.02rem; }
.sm-page-body > *:first-child { margin-top: 0; }
.sm-page-body > p { max-width: 82ch; }
.sm-page-body > p:first-of-type { font-size: 1.16rem; line-height: 1.7; color: var(--sm-muted); }
.sm-page-body .sm-page-intro {
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
	margin: 0 0 clamp(2.2rem, 4vw, 3.2rem);
}
/* Il contenitore interno aggiunto da WordPress ai gruppi non deve "rompere" la griglia:
   i paragrafi diventano le due colonne reali. */
.sm-page-intro > .wp-block-group__inner-container { display: contents; }
.sm-page-body .sm-page-intro p { margin: 0; max-width: none; font-size: 1.06rem; line-height: 1.75; color: var(--sm-muted); }
.sm-page-body .sm-page-intro p strong { color: var(--sm-navy); }
.sm-page-body h2 { margin: clamp(2.6rem, 4vw, 3.6rem) 0 1rem; }
.sm-page-body h2::before { content: ""; display: block; width: 48px; height: 3px; background: var(--sm-gold); margin-bottom: 1rem; }
.sm-page-body h3 { margin-bottom: .55rem; }
.sm-page-body p { max-width: 82ch; }
.sm-page-body a { text-decoration: underline; text-underline-offset: 3px; }
.sm-page-body .sm-block-eyebrow {
	margin: 0 0 .55rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: #8f6c22;
}
.sm-page-body .sm-block-eyebrow::before {
	content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor;
	vertical-align: middle; margin-right: 10px;
}

/* Colonne immagine + testo */
.sm-page-body .sm-feature { gap: clamp(1.6rem, 4vw, 3.8rem); align-items: center; margin: clamp(2.4rem, 5vw, 4rem) 0; }
.sm-page-body .sm-feature__img { margin: 0; }
.sm-page-body .sm-feature__img img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--sm-radius); box-shadow: var(--sm-shadow);
}
.sm-page-body .sm-feature h2 { margin-top: 0; }
.sm-page-body .sm-feature h2::before { margin-bottom: .8rem; }

/* Card dei servizi */
.sm-page-body .sm-block-cards { gap: 1.4rem; margin: 1.8rem 0 2.2rem; }
.sm-page-body .sm-block-cards .wp-block-column { display: flex; }
.sm-page-body .sm-block-card {
	width: 100%; background: var(--sm-white); border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius); padding: 1.7rem 1.6rem; box-shadow: var(--sm-shadow-sm);
}
.sm-page-body .sm-block-card h3 { font-size: 1.18rem; margin: 0 0 .75rem; }
.sm-page-body .sm-block-card ul { margin: 0; padding: 0; list-style: none; }
.sm-page-body .sm-block-card li {
	position: relative; padding-left: 1.15rem; margin: 0 0 .45rem;
	font-size: .92rem; line-height: 1.55; color: var(--sm-muted);
}
.sm-page-body .sm-block-card li::before {
	content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
	border-radius: 50%; background: var(--sm-gold);
}
.sm-page-body .sm-block-card li:last-child { margin-bottom: 0; }

/* Domande frequenti */
.sm-page-body .sm-block-faqs { gap: 1.2rem; margin: 1.8rem 0 2rem; }
.sm-page-body .sm-block-faq {
	background: var(--sm-surface); border-left: 3px solid var(--sm-gold);
	border-radius: 0 var(--sm-radius) var(--sm-radius) 0;
	padding: 1.4rem 1.5rem; margin-bottom: 1.2rem;
}
.sm-page-body .sm-block-faq:last-child { margin-bottom: 0; }
.sm-page-body .sm-block-faq h3 { font-size: 1.04rem; margin: 0 0 .45rem; }
.sm-page-body .sm-block-faq p { margin: 0; font-size: .93rem; color: var(--sm-muted); }

/* Callout finale */
.sm-page-body .sm-block-callout {
	margin: 2.8rem 0 0; padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--sm-surface); border-left: 4px solid var(--sm-gold);
	border-radius: 0 var(--sm-radius) var(--sm-radius) 0;
}
.sm-page-body .sm-block-callout h3 { margin: 0 0 .5rem; }
.sm-page-body .sm-block-callout p { margin: 0; color: var(--sm-muted); }

/* Citazioni e liste */
.sm-page-body .wp-block-quote {
	margin: 2.6rem 0; padding: 1.5rem 1.8rem; background: var(--sm-surface);
	border-left: 4px solid var(--sm-gold); border-radius: 0 var(--sm-radius) var(--sm-radius) 0;
	font-family: var(--sm-serif); font-style: italic; font-size: 1.2rem; color: var(--sm-navy);
}
.sm-page-body .wp-block-quote p { margin: 0; }
.sm-page-body > ul { max-width: 82ch; padding-left: 1.3rem; }
.sm-page-body > ul li::marker { color: var(--sm-gold); }
.sm-page-body > ol {
	counter-reset: smstep; list-style: none; padding-left: 0; margin: 1.6rem 0 2.2rem; max-width: 82ch;
}
.sm-page-body > ol > li { counter-increment: smstep; position: relative; padding: .15rem 0 .15rem 3.2rem; margin-bottom: 1.1rem; }
.sm-page-body > ol > li::before {
	content: counter(smstep, decimal-leading-zero); position: absolute; left: 0; top: .05em;
	font-family: var(--sm-serif); font-size: 1.35rem; font-weight: 700; color: var(--sm-gold);
}

@media (max-width: 900px) {
	.sm-page-hero__inner { min-height: 0; padding-top: clamp(32px, 6vw, 48px); padding-bottom: clamp(28px, 5vw, 40px); }
	.sm-page-hero__overlay { background: linear-gradient(100deg, rgba(8,28,52,.96) 0%, rgba(8,28,52,.88) 70%, rgba(8,28,52,.72) 100%); }
	.sm-page-body .sm-feature { margin: 2.2rem 0; }
	.sm-page-body .sm-page-intro { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 620px) {
	.sm-page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
	.sm-page-hero__lead { font-size: 1rem; }
	.sm-page-body .sm-block-card { padding: 1.4rem 1.3rem; }
	.sm-page-body .sm-block-faq { padding: 1.2rem 1.2rem; }
	.sm-page-body .wp-block-quote { padding: 1.2rem 1.3rem; font-size: 1.08rem; }
}

/* ==========================================================================
   Rifinitura grafica — tipografia, dettagli e movimento
   ========================================================================== */

/* ---------- Tipografia ---------- */
body { font-size: 16.5px; line-height: 1.72; letter-spacing: -.003em; font-feature-settings: "ss01", "cv05"; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-weight: 560; letter-spacing: -.022em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-weight: 480; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-weight: 500; line-height: 1.12; }
p, li { text-wrap: pretty; }
.sm-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
.sm-brand__name { font-weight: 600; letter-spacing: -.01em; }
.sm-eyebrow { font-size: .72rem; letter-spacing: .22em; font-weight: 700; }
.sm-eyebrow::before { transition: width .9s var(--sm-ease) .15s; }
.sm-lead { font-size: 1.1rem; line-height: 1.7; }
.sm-signature { font-weight: 400; font-size: 1.2rem; }
.sm-split__badge strong { font-size: 2.1rem; font-weight: 500; }
.sm-list-numbered li::before { font-weight: 500; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 110px; }

/* ---------- Header: compatto e vetro smerigliato allo scroll ---------- */
.sm-header { transition: box-shadow .35s ease, background-color .35s ease, border-color .35s ease; }
.sm-header__inner { transition: min-height .35s var(--sm-ease); }
.sm-brand__mark { transition: transform .5s var(--sm-ease), width .35s var(--sm-ease), height .35s var(--sm-ease); }
.sm-brand:hover .sm-brand__mark { transform: rotate(-4deg) scale(1.04); }
.sm-header.is-scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 10px 30px rgba(13, 43, 78, .08); border-color: transparent; }
.sm-header.is-scrolled .sm-header__inner { min-height: 68px; }
.sm-header.is-scrolled .sm-brand__mark { width: 42px; height: 42px; }
.sm-nav a { letter-spacing: .005em; }

/* ---------- Bottoni: riflesso e freccia ---------- */
.sm-btn { position: relative; overflow: hidden; border-radius: 10px; transition: transform .35s var(--sm-ease), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s ease; }
.sm-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--sm-ease); pointer-events: none; }
.sm-btn:hover::after { transform: translateX(120%); }
.sm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 28, 52, .18); }
.sm-btn:active { transform: translateY(0); }
.sm-btn svg { transition: transform .35s var(--sm-ease); }
.sm-btn:hover svg { transform: translateX(4px); }
.sm-btn--primary { box-shadow: 0 8px 22px rgba(200, 162, 74, .28); }

/* ---------- Hero: zoom lento e testi in sequenza ---------- */
.sm-hero__overlay { background: linear-gradient(100deg, rgba(8,28,52,.95) 0%, rgba(8,28,52,.84) 40%, rgba(8,28,52,.30) 100%), radial-gradient(1200px 500px at 85% 110%, rgba(200,162,74,.18), transparent 60%); }
.sm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--sm-gold), rgba(200,162,74,0) 70%); transform-origin: left; animation: sm-line 1.6s var(--sm-ease) .9s both; }
.sm-hero__bg img, .sm-page-hero__bg img { animation: sm-zoom 18s var(--sm-ease) both; }
.sm-hero__content > *, .sm-hero__trust, .sm-page-hero__inner > * { animation: sm-rise 1.1s var(--sm-ease) both; }
.sm-hero__content > :nth-child(1), .sm-page-hero__inner > :nth-child(1) { animation-delay: .10s; }
.sm-hero__content > :nth-child(2), .sm-page-hero__inner > :nth-child(2) { animation-delay: .22s; }
.sm-hero__content > :nth-child(3), .sm-page-hero__inner > :nth-child(3) { animation-delay: .36s; }
.sm-hero__content > :nth-child(4), .sm-page-hero__inner > :nth-child(4) { animation-delay: .50s; }
.sm-hero__trust { animation-delay: .70s; }
.sm-page-hero::after { transform-origin: left; animation: sm-line 1.4s var(--sm-ease) .6s both; }
.sm-hero__trust div { transition: color .3s ease; }
.sm-hero__trust div:hover { color: var(--sm-white); }

@keyframes sm-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sm-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sm-dot { 0%, 80%, 100% { transform: scale(.4); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- Punti di forza ---------- */
.sm-highlight { transition: background-color .35s ease; }
.sm-highlight:hover { background: var(--sm-surface); }
.sm-highlight__icon { transition: background-color .35s ease, color .35s ease, transform .5s var(--sm-ease); }
.sm-highlight:hover .sm-highlight__icon { background: var(--sm-navy); color: var(--sm-gold-light); transform: translateY(-3px) rotate(-6deg); }

/* ---------- Immagini split ---------- */
.sm-split__media img { transition: transform 1.2s var(--sm-ease); }
.sm-split__media:hover img { transform: scale(1.04); }
.sm-split__badge { transition: transform .6s var(--sm-ease); }
.sm-split__media:hover .sm-split__badge { transform: translateY(-6px); }

/* ---------- Card servizi ---------- */
.sm-card { position: relative; overflow: hidden; transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease), border-color .3s ease; }
.sm-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sm-gold), var(--sm-gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sm-ease); }
.sm-card:hover::before { transform: scaleX(1); }
.sm-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(13, 43, 78, .13); }
.sm-card__icon { transition: transform .6s var(--sm-ease), background-color .3s ease; }
.sm-card:hover .sm-card__icon { transform: rotate(-8deg) scale(1.06); background: var(--sm-navy-soft); }
.sm-page-body .sm-block-card { transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease); }
.sm-page-body .sm-block-card:hover { transform: translateY(-6px); box-shadow: var(--sm-shadow); }

/* ---------- Blog: card e scroll infinito ---------- */
.sm-post { transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease), border-color .3s ease; }
.sm-post:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(13, 43, 78, .13); border-color: #d3dfeb; }
.sm-post__thumb { position: relative; }
.sm-post__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 28, 52, .35)); opacity: 0; transition: opacity .45s ease; }
.sm-post:hover .sm-post__thumb::after { opacity: 1; }
.sm-post__thumb img { transition: transform 1s var(--sm-ease); }
.sm-post:hover .sm-post__thumb img { transform: scale(1.07); }
.sm-post h2, .sm-post h3 { font-size: 1.22rem; line-height: 1.25; }
.sm-post h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--sm-ease), color .25s ease; }
.sm-post:hover h3 a { background-size: 100% 1px; }

.sm-infinite { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 3rem; min-height: 40px; }
.sm-infinite__loader { display: none; gap: 8px; }
.sm-infinite__loader i { width: 9px; height: 9px; border-radius: 50%; background: var(--sm-gold); animation: sm-dot 1.2s ease-in-out infinite; }
.sm-infinite__loader i:nth-child(2) { animation-delay: .15s; }
.sm-infinite__loader i:nth-child(3) { animation-delay: .3s; }
.sm-infinite.is-auto .sm-infinite__more { display: none; }
.sm-infinite.is-loading .sm-infinite__loader { display: inline-flex; }

/* ---------- Articolo singolo ---------- */
.sm-page-header { position: relative; background: linear-gradient(180deg, var(--sm-surface) 0%, #fff 100%); }
.sm-page-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--sm-gold); }
.sm-page-header h1 { max-width: 920px; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sm-article__thumb img { transition: transform 1.4s var(--sm-ease); }
.sm-article__thumb:hover img { transform: scale(1.03); }
.sm-toc { background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: 1.3rem 1.6rem; margin: 2rem 0 2.4rem; }
.sm-toc p { margin-bottom: .6rem; font-family: var(--sm-sans); }
.sm-toc ul { margin: 0; padding-left: 1.1rem; }
.sm-toc li { margin-bottom: .3rem; }
.sm-toc li::marker { color: var(--sm-gold); }
.sm-toc a { text-decoration: none; }
.sm-toc a:hover { text-decoration: underline; }
.entry-content table { border-radius: 12px; overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--sm-line); }
.entry-content th { background: var(--sm-navy); color: #fff; font-weight: 600; }
.entry-content tbody tr:nth-child(even) td { background: var(--sm-surface); }

.sm-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; background: linear-gradient(90deg, var(--sm-gold), var(--sm-gold-light)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Torna su ---------- */
.sm-totop { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sm-navy); color: var(--sm-gold-light); display: grid; place-items: center; box-shadow: 0 12px 28px rgba(8, 28, 52, .28); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s ease, transform .5s var(--sm-ease), background-color .25s ease; }
.sm-totop svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.sm-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sm-totop:hover { background: var(--sm-navy-soft); }
body.sm-has-cookie .sm-totop { bottom: calc(var(--sm-cookie-h, 0px) + 22px); }

/* ---------- CTA e footer ---------- */
.sm-cta::after { animation: sm-float 9s ease-in-out infinite; }
.sm-cta::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px; border: 1px solid rgba(230, 205, 147, .18); border-radius: 50%; animation: sm-float 11s ease-in-out infinite reverse; }
@keyframes sm-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18px, 14px); } }
.sm-footer a { transition: color .25s ease, padding-left .35s var(--sm-ease); }
.sm-footer__list a:hover { padding-left: 4px; }

/* ---------- Mappa ---------- */
.sm-map { transition: box-shadow .45s var(--sm-ease); }
.sm-map:hover { box-shadow: var(--sm-shadow); }
.sm-map iframe { filter: grayscale(.25) contrast(1.02); animation: sm-rise .8s var(--sm-ease) both; }

/* ---------- Comparsa allo scroll (attiva solo con JavaScript) ---------- */
.sm-anim .sm-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1.1s var(--sm-ease); transition-delay: var(--sm-d, 0ms); }
.sm-anim .sm-reveal.is-in { opacity: 1; transform: none; }
.sm-anim .sm-reveal--img { transform: scale(.96); clip-path: inset(8% 8% 8% 8% round var(--sm-radius)); transition: opacity .9s ease, transform 1.3s var(--sm-ease), clip-path 1.3s var(--sm-ease); }
.sm-anim .sm-reveal--img.is-in { transform: none; clip-path: inset(0 0 0 0 round var(--sm-radius)); }
.sm-anim .sm-reveal .sm-eyebrow::before, .sm-anim .sm-reveal.sm-eyebrow::before { width: 0; }
.sm-anim .sm-reveal.is-in .sm-eyebrow::before, .sm-anim .sm-reveal.is-in.sm-eyebrow::before { width: 28px; }

/* ---------- Home: indice, testi, metodo, settori, FAQ ---------- */
.sm-onpage { padding: 1.6rem 0 0; background: var(--sm-white); }
.sm-onpage__toc { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: 1rem 1.4rem; }
.sm-onpage__toc p { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-muted); }
.sm-onpage__toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.sm-onpage__toc li { margin: 0; }
.sm-onpage__toc a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--sm-line); background: var(--sm-white); font-size: .86rem; font-weight: 600; color: var(--sm-navy); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.sm-onpage__toc a:hover { background: var(--sm-navy); border-color: var(--sm-navy); color: var(--sm-white); text-decoration: none; }
section[id] { scroll-margin-top: 90px; }

.sm-prose-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.sm-prose-grid .sm-section-head { position: sticky; top: 110px; margin-bottom: 0; }

/* Home: foto accanto ai titoli delle sezioni */
.sm-head-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sm-head-split .sm-section-head { margin-bottom: 0; text-align: left; }
.sm-head-split__media, .sm-aside-photo { position: relative; border-radius: var(--sm-radius); overflow: hidden; box-shadow: var(--sm-shadow); }
.sm-head-split__media figure, .sm-aside-photo figure { margin: 0; }
.sm-head-split__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--sm-ease); }
.sm-head-split__media::after, .sm-aside-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--sm-gold), rgba(200, 162, 74, 0)); }
.sm-head-split__media:hover img, .sm-aside-photo:hover img { transform: scale(1.05); }
.sm-prose-grid > .sm-prose-aside { position: sticky; top: 110px; }
.sm-prose-aside .sm-section-head { position: static; }
.sm-aside-photo { margin-top: 1.8rem; }
.sm-aside-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--sm-ease); }
@media (max-width: 900px) {
	.sm-head-split { grid-template-columns: 1fr; }
	.sm-prose-grid > .sm-prose-aside { position: static; }
	.sm-aside-photo img { aspect-ratio: 16 / 9; }
}
.sm-prose p { color: #3a4757; }
.sm-prose a, .sm-faq a { text-decoration: underline; text-underline-offset: 3px; }
.sm-benefits { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sm-benefits li { margin: 0; padding: 1.1rem 1.2rem; background: var(--sm-surface); border-radius: 12px; border-left: 3px solid var(--sm-gold); font-size: .93rem; line-height: 1.55; color: var(--sm-muted); }
.sm-benefits strong { display: block; font-family: var(--sm-serif); font-weight: 600; font-size: 1.05rem; color: var(--sm-navy); margin-bottom: .2rem; }

.sm-deadlines { margin: 1.6rem 0 1.8rem; display: grid; gap: .7rem; }
.sm-deadlines > div { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: baseline; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sm-surface); border: 1px solid var(--sm-line); transition: border-color .3s ease, transform .4s var(--sm-ease); }
.sm-deadlines > div:hover { border-color: var(--sm-gold); transform: translateX(4px); }
.sm-deadlines dt { font-family: var(--sm-serif); font-weight: 600; color: var(--sm-navy); font-size: 1rem; line-height: 1.35; }
.sm-deadlines dd { margin: 0; font-size: .93rem; color: var(--sm-muted); line-height: 1.55; }
@media (max-width: 620px) { .sm-deadlines > div { grid-template-columns: 1fr; gap: .25rem; } }

.sm-steps { list-style: none; counter-reset: smstep2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.sm-steps li { counter-increment: smstep2; position: relative; margin: 0; padding: 2.4rem 1.5rem 1.6rem; background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); box-shadow: var(--sm-shadow-sm); transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease); }
.sm-steps li:hover { transform: translateY(-6px); box-shadow: var(--sm-shadow); }
.sm-steps li::before { content: counter(smstep2, decimal-leading-zero); position: absolute; top: -18px; left: 1.5rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sm-navy); color: var(--sm-gold-light); font-family: var(--sm-serif); font-weight: 600; font-size: 1rem; box-shadow: 0 8px 18px rgba(13,43,78,.25); }
.sm-steps h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.sm-steps p { font-size: .92rem; color: var(--sm-muted); margin: 0; line-height: 1.6; }

.sm-sector { position: relative; padding: 1.7rem 1.6rem 1.6rem 1.6rem; border-radius: var(--sm-radius); background: linear-gradient(180deg, var(--sm-surface) 0%, #fff 100%); border: 1px solid var(--sm-line); transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease), border-color .3s ease; }
.sm-sector::before { content: ""; display: block; width: 36px; height: 3px; background: var(--sm-gold); margin-bottom: 1rem; transition: width .5s var(--sm-ease); }
.sm-sector:hover { transform: translateY(-6px); box-shadow: var(--sm-shadow); border-color: #d3dfeb; }
.sm-sector:hover::before { width: 64px; }
.sm-sector h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.sm-sector p { font-size: .92rem; color: var(--sm-muted); margin: 0; line-height: 1.6; }

.sm-faq-wrap { max-width: 900px; }
.sm-faq { display: grid; gap: .8rem; }
.sm-faq details { background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: 12px; transition: border-color .3s ease, box-shadow .3s ease; }
.sm-faq details[open] { border-color: #cfdcea; box-shadow: var(--sm-shadow-sm); }
.sm-faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.15rem 3.4rem 1.15rem 1.4rem; font-family: var(--sm-serif); font-size: 1.12rem; font-weight: 550; color: var(--sm-navy); line-height: 1.35; }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--sm-gold); border-bottom: 2px solid var(--sm-gold); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--sm-ease); }
.sm-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.sm-faq details > div { padding: 0 1.4rem 1.2rem; color: var(--sm-muted); font-size: .97rem; }
.sm-faq details > div p:last-child { margin-bottom: 0; }
.sm-faq details[open] > div { animation: sm-rise .45s var(--sm-ease) both; }

@media (max-width: 1100px) {
	.sm-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
}
@media (max-width: 900px) {
	.sm-prose-grid { grid-template-columns: 1fr; }
	.sm-prose-grid .sm-section-head { position: static; }
}
@media (max-width: 620px) {
	.sm-steps, .sm-benefits { grid-template-columns: 1fr; }
	.sm-onpage__toc { padding: 1rem; }
}

/* ---------- Home: contenuto a blocchi (pagina "Home" nell'editor) ---------- */
.sm-home-content .wp-block-image { margin: 0; }
.sm-home-content .sm-split__media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sm-home-content .sm-split__text > :last-child, .sm-home-content .sm-prose > :last-child { margin-bottom: 0; }
.sm-home-content .sm-card .wp-block-list { font-size: .9rem; color: var(--sm-muted); margin: 0 0 1.2rem; padding-left: 1.1rem; }
.sm-home-content .sm-card .sm-link { margin-top: auto; }
.sm-home-content .sm-card { display: flex; flex-direction: column; }
.sm-home-content .sm-btn-row { margin-top: 1.6rem; }
.sm-steps > .sm-step { position: relative; margin: 0; padding: 2.4rem 1.5rem 1.6rem; background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); box-shadow: var(--sm-shadow-sm); transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease); counter-increment: smstep2; }
.sm-steps > .sm-step:hover { transform: translateY(-6px); box-shadow: var(--sm-shadow); }
.sm-steps > .sm-step::before { content: counter(smstep2, decimal-leading-zero); position: absolute; top: -18px; left: 1.5rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sm-navy); color: var(--sm-gold-light); font-family: var(--sm-serif); font-weight: 600; font-size: 1rem; box-shadow: 0 8px 18px rgba(13,43,78,.25); }
div.sm-steps { counter-reset: smstep2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sm-deadline__when { margin: 0; font-family: var(--sm-serif); font-weight: 600; color: var(--sm-navy); font-size: 1rem; line-height: 1.35; }
.sm-deadline__what { margin: 0; font-size: .93rem; color: var(--sm-muted); line-height: 1.55; }
.sm-faq details > :not(summary) { padding: 0 1.4rem; color: var(--sm-muted); font-size: .97rem; }
.sm-faq details > :last-child { padding-bottom: 1.2rem; margin-bottom: 0; }
.sm-faq details[open] > :not(summary) { animation: sm-rise .45s var(--sm-ease) both; }
.sm-home-content .sm-map-section__text .sm-info-list { margin-top: 1.4rem; }
@media (max-width: 1100px) { div.sm-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; } }
@media (max-width: 620px) { div.sm-steps { grid-template-columns: 1fr; } }

/* ---------- Menu principale (desktop) ---------- */
.sm-brand__tag { white-space: nowrap; }
.sm-nav { flex: 1; justify-content: center; }
.sm-nav > ul { gap: .2rem; }
.sm-nav li { margin: 0; }
.sm-nav a {
	display: block; position: relative; white-space: nowrap;
	padding: .6rem 1rem; border-radius: 999px;
	font-size: .93rem; font-weight: 600; letter-spacing: 0; color: #3a4757;
	transition: color .25s ease, background-color .25s ease;
}
.sm-nav a::after {
	left: 50%; right: auto; bottom: .15rem; width: 5px; height: 5px; border-radius: 50%;
	background: var(--sm-gold); transform: translateX(-50%) scale(0);
	transition: transform .35s var(--sm-ease);
}
.sm-nav a:hover { color: var(--sm-navy); background: var(--sm-surface-2); }
.sm-nav a:hover::after { right: auto; transform: translateX(-50%) scale(0); }
.sm-nav .current-menu-item > a, .sm-nav .current_page_item > a, .sm-nav .current_page_parent > a, .sm-nav .current-menu-parent > a { color: var(--sm-navy); }
.sm-nav .current-menu-item > a::after, .sm-nav .current_page_item > a::after, .sm-nav .current_page_parent > a::after, .sm-nav .current-menu-parent > a::after { right: auto; transform: translateX(-50%) scale(1); }
.sm-header__cta { padding: .75rem 1.35rem; font-size: .9rem; }

/* ---------- Pulsante menu (hamburger → X) ---------- */
.sm-nav-toggle { width: 46px; height: 46px; padding: 0; border-radius: 12px; display: none; place-items: center; transition: background-color .25s ease; }
.sm-nav-toggle:hover { background: var(--sm-surface-2); }
.sm-burger { position: relative; width: 22px; height: 16px; display: block; }
.sm-burger i { position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--sm-navy); transition: transform .45s var(--sm-ease), opacity .25s ease, width .35s var(--sm-ease), top .45s var(--sm-ease); }
.sm-burger i:nth-child(1) { top: 0; }
.sm-burger i:nth-child(2) { top: 7px; width: 70%; }
.sm-burger i:nth-child(3) { top: 14px; }
.sm-nav-toggle:hover .sm-burger i:nth-child(2) { width: 100%; }
.sm-nav-toggle[aria-expanded="true"] .sm-burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.sm-nav-toggle[aria-expanded="true"] .sm-burger i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.sm-nav-toggle[aria-expanded="true"] .sm-burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Menu mobile a tutto schermo ---------- */
@media (max-width: 1100px) {
	.sm-nav, .sm-header__cta { display: none; }
	.sm-nav-toggle { display: grid; }
	body.sm-menu-open { overflow: hidden; }
	/* L'effetto sfocato dell'intestazione (backdrop-filter) farebbe da contenitore al pannello
	   "fixed", che dopo lo scroll resterebbe chiuso dentro i 68px dell'intestazione: con il menu
	   aperto l'effetto si spegne e l'intestazione torna bianca piena. */
	body.sm-menu-open .sm-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--sm-white); }
	body.sm-menu-open .sm-totop { display: none; }
	.sm-mobile-panel {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--sm-header-bottom, 84px);
		z-index: 59; padding: 0; border: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
		background: linear-gradient(180deg, #fff 0%, var(--sm-surface) 100%);
		animation: sm-panel .45s var(--sm-ease) both;
	}
	.sm-mobile-panel[hidden] { display: none; }
	/* Il pannello è dimensionato sull'altezza dello schermo: tutto il menu resta visibile senza scorrere. */
	.sm-mobile-panel__inner { display: flex; flex-direction: column; min-height: 100%; padding: clamp(10px, 2.5vh, 28px) 0 clamp(14px, 3vh, 28px); }
	.sm-mobile-panel .sm-mobile-nav { list-style: none; margin: 0 0 clamp(.8rem, 2.5vh, 1.6rem); padding: 0; counter-reset: smnav; }
	.sm-mobile-panel .sm-mobile-nav li { counter-increment: smnav; border-bottom: 1px solid var(--sm-line); margin: 0; animation: sm-rise .6s var(--sm-ease) both; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(1) { animation-delay: .05s; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(2) { animation-delay: .10s; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(3) { animation-delay: .15s; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(4) { animation-delay: .20s; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(5) { animation-delay: .25s; }
	.sm-mobile-panel .sm-mobile-nav li:nth-child(6) { animation-delay: .30s; }
	.sm-mobile-panel .sm-mobile-nav a {
		display: flex; align-items: baseline; gap: 1rem; padding: clamp(.35rem, 1.3vh, .85rem) 0;
		font-family: var(--sm-serif); font-size: clamp(1.1rem, min(5vw, 3.2vh), 1.7rem); font-weight: 500; letter-spacing: -.02em;
		color: var(--sm-navy); transition: color .25s ease, padding-left .35s var(--sm-ease);
	}
	.sm-mobile-panel .sm-mobile-nav a::before {
		content: counter(smnav, decimal-leading-zero); font-family: var(--sm-sans); font-size: .72rem;
		font-weight: 700; letter-spacing: .1em; color: var(--sm-gold); min-width: 1.6rem;
	}
	.sm-mobile-panel .sm-mobile-nav a:hover { padding-left: .4rem; color: var(--sm-blue); }
	.sm-mobile-panel .current-menu-item > a, .sm-mobile-panel .current_page_item > a, .sm-mobile-panel .current_page_parent > a { color: var(--sm-gold); }
	.sm-mobile-panel__foot { margin-top: auto; display: grid; gap: clamp(.7rem, 2vh, 1.2rem); animation: sm-rise .6s var(--sm-ease) .35s both; }
	.sm-mobile-panel .sm-mobile-panel__foot .sm-btn { display: flex; width: 100%; margin: 0; padding: clamp(.7rem, 1.8vh, .95rem) 1.4rem; color: var(--sm-navy-deep); font-weight: 700; }
	.sm-mobile-panel__contacts { list-style: none; margin: 0; padding: clamp(.6rem, 1.8vh, 1rem) 0 0; border-top: 1px solid var(--sm-line); display: grid; gap: clamp(.35rem, 1.2vh, .65rem); font-size: .9rem; color: var(--sm-muted); }
	/* Schermi bassi (telefoni piccoli o in orizzontale): via l'indirizzo, restano telefono ed email. */
	@media (max-height: 640px) { .sm-mobile-panel__contacts li:nth-child(3) { display: none; } }
	@media (max-height: 520px) { .sm-mobile-panel__contacts { display: none; } }
	@media (max-height: 600px) { .sm-mobile-panel .sm-mobile-nav a { padding: .3rem 0; } }
	/* Telefono in orizzontale: voci su due colonne, così il menu resta in un'unica schermata. */
	@media (max-height: 460px) {
		.sm-mobile-panel .sm-mobile-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
	}
	.sm-mobile-panel .sm-mobile-panel__contacts li { display: flex; gap: .7rem; align-items: center; margin: 0; border: 0; }
	.sm-mobile-panel__contacts svg { width: 17px; height: 17px; color: var(--sm-gold); flex: none; }
	.sm-mobile-panel .sm-mobile-panel__contacts a { display: inline; padding: 0; color: var(--sm-navy); font-weight: 600; overflow-wrap: anywhere; }
}
@keyframes sm-panel { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (min-width: 1101px) {
	.sm-mobile-panel { display: none !important; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.sm-hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
	.sm-totop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- Testata fotografica: meta articolo ---------- */
.sm-page-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.1rem; font-size: .9rem; color: #c9d9e9; }
.sm-page-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.sm-page-hero__meta svg { width: 16px; height: 16px; color: var(--sm-gold); }

/* ---------- Banner cookie: pulsante di chiusura ---------- */
.sm-cookie__close { position: absolute; top: .7rem; right: .9rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--sm-muted); display: grid; place-items: center; transition: background-color .25s ease, color .25s ease; }
.sm-cookie__close:hover { background: var(--sm-surface-2); color: var(--sm-navy); }
.sm-cookie__close svg { width: 18px; height: 18px; }
.sm-cookie__text { padding-right: 2rem; }

/* ---------- Pagine legali ---------- */
.sm-legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--sm-line); }
.sm-legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sm-legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.sm-legal table { font-size: .9rem; }
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 620px) { .entry-content .wp-block-table table { min-width: 560px; } }
.sm-legal__updated { margin-top: 3rem; font-size: .85rem; color: var(--sm-muted); }
.sm-legal .sm-legal__box { background: var(--sm-surface); border-left: 4px solid var(--sm-gold); border-radius: 0 12px 12px 0; padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.sm-legal .sm-legal__box p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.sm-404-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sm-404-link { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.5rem; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); background: var(--sm-white); box-shadow: var(--sm-shadow-sm); color: var(--sm-ink); transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease), border-color .3s ease; }
.sm-404-link strong { font-family: var(--sm-serif); font-size: 1.15rem; font-weight: 550; }
.sm-404-link span { font-size: .9rem; color: var(--sm-muted); }
.sm-404-link:hover { transform: translateY(-6px); box-shadow: var(--sm-shadow); border-color: var(--sm-gold); color: var(--sm-ink); }
@media (max-width: 900px) { .sm-404-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sm-404-links { grid-template-columns: 1fr; } }

/* ---------- Testi a tutta larghezza del contenitore ----------
   Prima paragrafi, liste e introduzioni avevano larghezze massime diverse
   (60–82 caratteri, 760–1040px) e le righe si fermavano a metà pagina.
   Ora tutto il testo usa la stessa larghezza del contenitore (1180px). */
.sm-lead, .sm-hero__sub, .sm-section-head, .sm-page-hero h1, .sm-page-hero__lead,
.sm-page-header h1, .sm-content__inner, .sm-article, .sm-faq-wrap,
.sm-page-body > p, .sm-page-body p, .sm-page-body > ul, .sm-page-body > ol { max-width: none; }
.sm-hero__content { max-width: 860px; }
h2, h3, h4 { text-wrap: wrap; }
.sm-page-body .sm-page-intro p { max-width: none; }

/* ==========================================================================
   Home: movimento
   ========================================================================== */
/* Forme decorative che fluttuano nell'apertura */
.sm-hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sm-hero__shapes i { position: absolute; border-radius: 50%; border: 1px solid rgba(230, 205, 147, .28); will-change: transform; }
.sm-hero__shapes i:nth-child(1) { width: 420px; height: 420px; right: -110px; top: -120px; animation: sm-orbit 22s ease-in-out infinite; }
.sm-hero__shapes i:nth-child(2) { width: 220px; height: 220px; right: 18%; bottom: -70px; border-color: rgba(230, 205, 147, .18); animation: sm-orbit 17s ease-in-out infinite reverse; }
.sm-hero__shapes i:nth-child(3) { width: 12px; height: 12px; right: 28%; top: 26%; border: 0; background: var(--sm-gold); opacity: .7; box-shadow: 0 0 24px rgba(200, 162, 74, .7); animation: sm-bob 6s ease-in-out infinite; }
@keyframes sm-orbit { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-30px, 24px) rotate(8deg); } }
@keyframes sm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.sm-hero__bg { will-change: transform; }

/* Titolo: le parole salgono una dopo l'altra */
.sm-hero h1.is-split { animation: none; }
.sm-hero h1 .sm-word { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); animation: sm-word .9s var(--sm-ease) forwards; animation-delay: calc(.15s + var(--i) * 55ms); }
@keyframes sm-word { to { opacity: 1; transform: none; } }

/* Pulsante principale: riflesso che scorre */
.sm-hero .sm-btn--primary { position: relative; overflow: hidden; }
.sm-hero .sm-btn--primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: sm-shine 4.5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes sm-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* Nastro scorrevole con gli ambiti di consulenza */
.sm-marquee { background: var(--sm-navy); color: var(--sm-white); overflow: hidden; padding: 1.05rem 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.sm-marquee__track { display: flex; width: max-content; animation: sm-marquee 38s linear infinite; }
.sm-marquee:hover .sm-marquee__track { animation-play-state: paused; }
.sm-marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.sm-marquee__list li { display: flex; align-items: center; white-space: nowrap; font-family: var(--sm-serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); padding: 0 1.6rem; }
.sm-marquee__list li::after { content: ""; width: 7px; height: 7px; margin-left: 3.2rem; border-radius: 50%; background: var(--sm-gold); flex: none; }
@keyframes sm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Punti di forza: icone che respirano a turno */
.sm-highlight__icon svg { animation: sm-breathe 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.25s); }
@keyframes sm-breathe { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px) scale(1.12); } 90% { transform: none; } }

/* Immagini delle sezioni: lieve parallasse allo scroll */
.sm-home-content .sm-split__media img { transform: translateY(var(--sm-par, 0)) scale(1.08); transition: transform .2s linear; }
.sm-home-content .sm-split__media:hover img { transform: translateY(var(--sm-par, 0)) scale(1.12); }

@media (prefers-reduced-motion: reduce) {
	.sm-hero__shapes i, .sm-highlight__icon svg, .sm-hero .sm-btn--primary::before { animation: none !important; }
	/* Il nastro resta in movimento ma più lento, così è comunque leggibile. */
	.sm-marquee .sm-marquee__track { animation-duration: 60s !important; animation-iteration-count: infinite !important; }
	.sm-hero h1 .sm-word { opacity: 1; transform: none; animation: none; }
	.sm-home-content .sm-split__media img { transform: none; }
}
@media (max-width: 700px) {
	.sm-highlight p { font-size: .95rem; }
	.sm-hero__shapes i:nth-child(1) { width: 260px; height: 260px; right: -120px; }
	.sm-hero__shapes i:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sm-anim .sm-reveal, .sm-anim .sm-reveal--img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.sm-hero__bg img, .sm-page-hero__bg img, .sm-cta::after, .sm-cta::before { animation: none !important; }
	.sm-btn::after { display: none; }
}
