/*
Theme Name: Studio Migliorini
Theme URI: https://www.dottmigliorini.it
Author: Effe Diligence
Author URI: https://www.effediligence.it
Description: Tema su misura per Studio Migliorini – tax & legal consulting, ricostruito dal mockup di Claude Design. Block theme senza page builder: testi e immagini si modificano dall'editor a blocchi, le news da «Gestione news».
Version: 1.0.31
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-migliorini
*/

/* ==========================================================================
   Basi
   ========================================================================== */

:root {
	--sm-bordeaux: #8f2d2a;
	--sm-rame: #b0614c;
	--sm-antracite: #3c3c3b;
	--sm-nero: #1d1d1b;
	--sm-grigio-testo: #6f6f6e;
	--sm-grigio: #b2b2b2;
	--sm-grigio-foto: #b3b2b2;
	--sm-linea: #e1e1e1;
	--sm-chiaro: #f6f6f6;
	--sm-bianco: #fff;
	--sm-vetro: rgba(60, 60, 59, .39);
	--sm-font: Montserrat, "Segoe UI", Arial, sans-serif;
	--sm-serif: "Playfair Display", Georgia, serif;
	--sm-ease: cubic-bezier(.22, .61, .36, 1);
	--sm-sez: 120px;
	--sm-barra: 40px;
	--sm-top: 0px;
}

@media (max-width: 980px) {
	:root {
		--sm-sez: 90px;
		--sm-barra: 0px;
	}
}

@media (max-width: 600px) {
	:root {
		--sm-sez: 60px;
	}
}

html {
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	background: var(--sm-bianco);
	color: var(--sm-antracite);
	font-family: var(--sm-font);
	font-size: 18px;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.wp-site-blocks > * {
	margin-block: 0;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol {
	margin: 0;
}

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

a {
	color: var(--sm-bordeaux);
	text-decoration: none;
	transition: color .2s;
}

a:hover {
	color: var(--sm-rame);
}

/* Contenitore: 80% della larghezza, su telefono 20px per lato. */
.sm-wrap {
	width: 80%;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.sm-wrap {
		width: calc(100% - 40px);
	}
}

.sm-sezione {
	position: relative;
	padding: var(--sm-sez) 0;
}

.sm-sezione--chiara {
	background: var(--sm-chiaro);
}

/* Sezione subito dopo l'apertura bianca (elenco news, modulo candidature). */
.sm-sezione--dopo-intro {
	padding-top: 60px;
}

/*
 * Prima sezione delle pagine senza foto (Chi siamo, News, Lavora con noi,
 * Contatti): titolo e testo allineati a sinistra, sotto l'header.
 */
.sm-intro-pagina {
	padding: calc(157px + 80px) 0 0;
}

/* Chi siamo: spazio sotto l'apertura, prima della griglia del team. */
.sm-intro-pagina--spazio {
	padding-bottom: 60px;
}

.sm-intro-pagina .sm-testa {
	width: 80%;
	max-width: 100%;
}

.sm-intro-pagina .sm-testa--stretta {
	width: auto;
	max-width: 900px;
}

@media (max-width: 980px) {
	.sm-intro-pagina .sm-testa {
		width: 100%;
	}

	/* Pagina Contatti: nel design l'apertura resta all'80% anche da telefono. */
	.sm-intro-pagina--contatti .sm-testa {
		width: 80%;
	}
}

/* ==========================================================================
   Tipografia ricorrente
   ========================================================================== */

.sm-occhiello {
	align-self: flex-start;
	width: fit-content;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--sm-bordeaux);
	color: var(--sm-bordeaux);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
}

.sm-occhiello--chiaro {
	color: var(--sm-chiaro);
	border-bottom-color: var(--sm-chiaro);
}

.sm-occhiello--rame {
	border-bottom-color: var(--sm-rame);
}

.sm-titolo,
h1.sm-titolo,
h2.sm-titolo {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(40px, 4.2vw, 64px);
	line-height: 1.02;
	color: var(--sm-antracite);
	text-wrap: wrap;
}

/* Da telefono il titolo d'apertura delle pagine interne è un po' più grande. */
@media (max-width: 600px) {
	h1.sm-titolo,
	.sm-hero.sm-hero--pagina h1 {
		font-size: clamp(48px, 4.2vw, 84px);
	}
}

.sm-titolo--chiaro,
h2.sm-titolo--chiaro {
	color: var(--sm-chiaro);
}

.sm-testo,
p.sm-testo {
	font-size: 18px;
	line-height: 1.2;
	text-wrap: pretty;
}

/* Gruppo verticale «occhiello, titolo, testo». */
.sm-testa {
	display: flex;
	flex-direction: column;
	gap: 31px;
}

.sm-testa--sotto {
	margin-bottom: 110px;
}

/* Titolo con pulsante a destra: 2/3 e 1/3, allineati in basso. */
.sm-testa-doppia {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 31px 24px;
	align-items: end;
	margin-bottom: 110px;
}

.sm-testa-doppia--news {
	margin-bottom: 90px;
}

@media (max-width: 980px) {
	.sm-testa-doppia {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-testa-doppia--news {
		margin-bottom: 70px;
	}
}

@media (max-width: 600px) {
	.sm-testa-doppia--news {
		margin-bottom: 50px;
	}
}

/* Titoletto in maiuscolo con la linea che continua fino al bordo. */
.sm-linea-titolo {
	display: flex;
	align-items: center;
	gap: 24px;
}

.sm-linea-titolo::after {
	content: "";
	flex: 1;
	min-width: 0;
	height: 1px;
	background: var(--sm-bordeaux);
	order: 1;
}

.sm-linea-titolo > * {
	flex-shrink: 0;
}

.sm-linea-titolo > a {
	order: 2;
}

.sm-linea-titolo h2,
.sm-linea-titolo h3 {
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: var(--sm-antracite);
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.sm-linea-titolo {
		gap: 12px;
	}

	.sm-linea-titolo h2,
	.sm-linea-titolo h3 {
		white-space: normal;
	}
}

/* Link in maiuscolo sottolineato da una linea spessa. */
.sm-link-linea,
.sm-link-linea a,
a.sm-link-linea {
	align-self: flex-start;
	width: fit-content;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--sm-bordeaux);
	color: var(--sm-bordeaux);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: color .2s, border-color .2s;
}

p.sm-link-linea {
	padding: 0;
	border: 0;
}

p.sm-link-linea a {
	display: inline-block;
}

.sm-link-linea a:hover,
a.sm-link-linea:hover {
	color: var(--sm-antracite);
	border-bottom-color: var(--sm-antracite);
}

/* ==========================================================================
   Pulsanti
   ========================================================================== */

.sm-btn,
.wp-block-button .wp-block-button__link,
.wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	height: 46px;
	padding: 0 40px;
	border: 0;
	border-radius: 30px;
	background: var(--sm-bordeaux);
	color: var(--sm-chiaro);
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.sm-btn:hover,
.sm-btn:focus-visible,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	background: var(--sm-grigio);
	color: var(--sm-chiaro);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

/* Pulsante a tutta larghezza della colonna, come nel mockup. */
.sm-pieno,
.sm-pieno > .wp-block-button,
.sm-pieno .wp-block-button__link,
.sm-btn.sm-pieno {
	width: 100%;
}

@media (max-width: 600px) {
	.wp-block-buttons,
	.wp-block-buttons > .wp-block-button,
	.wp-block-button .wp-block-button__link {
		width: 100%;
	}
}

.sm-btn-rotondo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sm-bordeaux);
	border-radius: 50%;
	background: transparent;
	color: var(--sm-bordeaux);
	font-family: var(--sm-font);
	font-size: 18px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.sm-btn-rotondo:hover,
.sm-btn-rotondo:focus-visible {
	background: var(--sm-bordeaux);
	color: var(--sm-chiaro);
}

.sm-btn-rotondo[disabled] {
	opacity: .35;
	pointer-events: none;
}

/* ==========================================================================
   Barra in alto e header
   ========================================================================== */

.sm-barra {
	height: var(--sm-barra);
	background: var(--sm-antracite);
	color: var(--sm-chiaro);
	font-size: 14px;
	overflow: hidden;
}

.sm-barra .sm-wrap {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sm-barra a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sm-chiaro);
}

.sm-barra a:hover {
	color: var(--sm-rame);
}

.sm-barra svg {
	flex-shrink: 0;
	color: var(--sm-rame);
}

@media (max-width: 980px) {
	.sm-barra {
		display: none;
	}
}

.sm-header {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(var(--sm-top) + var(--sm-admin, 0px));
	z-index: 100;
	padding: 22px 0;
	background: transparent;
	transition: background .3s, box-shadow .3s;
}

body.admin-bar {
	--sm-admin: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--sm-admin: 46px;
	}
}

@media (max-width: 600px) {
	/* Sotto i 600px la barra di WordPress scorre via con la pagina. */
	body.admin-bar .sm-header.is-pieno {
		--sm-admin: 0px;
	}
}

.sm-header.is-pieno {
	background: var(--sm-bianco);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.sm-header__barra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sm-header__logo {
	position: relative;
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.sm-header__logo img {
	display: block;
	width: auto;
	height: 73px;
	max-width: 60vw;
	object-fit: contain;
	object-position: left center;
	transition: height .3s, opacity .3s;
}

.sm-header.is-pieno .sm-header__logo img {
	height: 60px;
}

.sm-header__logo .sm-logo-chiaro {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
}

.sm-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.sm-nav a {
	color: var(--sm-nero);
	white-space: nowrap;
	font-size: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
	transition: color .3s;
}

.sm-nav a:hover,
.sm-nav a.is-attivo {
	color: var(--sm-bordeaux);
}

.sm-nav a.is-attivo {
	font-weight: 700;
}

.sm-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity .2s;
}

.sm-burger:hover {
	opacity: .6;
}

.sm-burger span {
	display: block;
	height: 2px;
	background: var(--sm-nero);
	transition: background .3s;
}

/* Sopra la foto: logo chiaro e voci bianche finché non si scorre. */
body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-logo-chiaro {
	opacity: 1;
}

body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-logo-colore {
	opacity: 0;
}

body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-nav a:not(:hover):not(.is-attivo) {
	color: var(--sm-chiaro);
}

body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-burger span {
	background: var(--sm-chiaro);
}

@media (max-width: 1320px) { /* 1.0.25: 1320 invece di 1200, per far stare il selettore di lingua */
	.sm-nav {
		display: none;
	}

	.sm-burger {
		display: flex;
	}
}

/*
 * Scheda di una persona: l'header scorre via con la pagina (non è fisso), è
 * trasparente e da computer parte in linea con la colonna del testo, senza
 * logo, per non coprire la foto. Da tablet torna bianco, con il logo.
 */
body.sm-header-persona .sm-header,
body.sm-header-persona .sm-header.is-pieno {
	position: absolute;
	top: calc(var(--sm-barra) + var(--sm-admin, 0px));
	background: transparent;
	box-shadow: none;
}

body.sm-header-persona .sm-header__barra {
	justify-content: flex-start;
	min-height: 73px;
	padding-left: 37.8vw;
}

body.sm-header-persona .sm-header__logo {
	display: none;
}

/* Nella colonna del testo le voci non stanno tutte su una riga: come nel design, l'ultima va sotto. */
body.sm-header-persona .sm-nav {
	flex-wrap: wrap;
}

@media (max-width: 980px) {
	body.sm-header-persona .sm-header,
	body.sm-header-persona .sm-header.is-pieno {
		position: relative;
		top: 0;
		background: var(--sm-bianco);
	}

	body.sm-header-persona .sm-header__barra {
		justify-content: space-between;
		padding-left: 0;
	}

	body.sm-header-persona .sm-header__logo {
		display: block;
	}
}

/* Menu a tutto schermo (sotto i 1320px). */
.sm-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	padding: 22px 10% 40px;
	background: var(--sm-bianco);
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s, visibility .3s;
	overflow-y: auto;
}

.sm-menu.is-aperto {
	visibility: visible;
	opacity: 1;
}

body.admin-bar .sm-menu {
	top: var(--sm-admin);
}

@media (max-width: 600px) {
	.sm-menu {
		padding-inline: 20px;
	}
}

.sm-menu__testa {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sm-menu__testa img {
	display: block;
	width: auto;
	height: 73px;
	max-width: 60vw;
}

.sm-menu__chiudi {
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity .2s;
}

.sm-menu__chiudi:hover {
	opacity: .6;
}

.sm-menu__chiudi span {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 21px;
	height: 2px;
	background: var(--sm-antracite);
	transform: rotate(45deg);
}

.sm-menu__chiudi span + span {
	transform: rotate(-45deg);
}

.sm-menu__nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: 40px 0;
}

.sm-menu__nav a {
	font-family: var(--sm-serif);
	font-size: 36px;
	line-height: 1.1;
	color: var(--sm-antracite);
}

.sm-menu__nav a:hover,
.sm-menu__nav a.is-attivo {
	color: var(--sm-bordeaux);
}

.sm-menu__recapiti {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--sm-bordeaux);
	font-size: 16px;
	line-height: 1.3;
}

.sm-menu__recapiti a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--sm-antracite);
	overflow-wrap: anywhere;
}

.sm-menu__recapiti svg {
	flex-shrink: 0;
	color: var(--sm-bordeaux);
}

/* Indirizzi email lunghi (la PEC nella privacy) vanno a capo invece di uscire dallo schermo. */
main a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

/* Tedesco: parole composte lunghe nei titoli e nei pulsanti si sillabano. */
:lang(de) :is(h1, h2, h3, .wp-block-button__link, .sm-btn) {
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

/* ==========================================================================
   Selettore di lingua (1.0.25)
   ========================================================================== */

.sm-bandiera {
	display: inline-block;
	flex: none;
	width: 24px;
	height: 16px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.sm-bandiera svg {
	display: block;
	width: 100%;
	height: 100%;
}

.sm-lingue {
	position: relative;
	display: flex;
	align-items: center;
	height: 24px;
	padding-left: 28px;
	border-left: 1px solid var(--sm-linea);
}

.sm-lingue__attuale {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sm-nero);
	font: inherit;
	font-size: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
}

.sm-lingue__sigla {
	display: none;
}

.sm-lingue__freccia {
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .2s;
}

.sm-lingue.is-aperto .sm-lingue__freccia {
	transform: translateY(2px) rotate(-135deg);
}

.sm-lingue__elenco {
	position: absolute;
	top: calc(100% + 18px);
	right: 0;
	z-index: 10;
	min-width: 190px;
	padding: 8px 0;
	background: var(--sm-bianco);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

.sm-lingue.is-aperto .sm-lingue__elenco {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sm-nav .sm-lingue__elenco a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	text-transform: none;
}

.sm-lingue__elenco a:hover {
	background: var(--sm-chiaro);
}

body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-lingue__attuale {
	color: var(--sm-chiaro);
}

body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-lingue {
	border-left-color: rgba(246, 246, 246, .4);
}

/* L'elenco delle lingue ha il fondo bianco anche sopra la foto: testo scuro. */
body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-nav .sm-lingue .sm-lingue__elenco a:not(.is-attivo),
.sm-nav .sm-lingue__elenco a {
	color: var(--sm-nero);
}

/* Fino a 1600px voci un po’ più vicine; sotto i 1440px solo bandiera e sigla, perché il menu stia su una riga. */
@media (max-width: 1600px) {
	.sm-nav {
		gap: 28px;
	}

	.sm-lingue {
		padding-left: 24px;
	}
}

@media (max-width: 1439px) {
	.sm-nav {
		gap: 26px;
	}

	.sm-lingue {
		padding-left: 22px;
	}

	.sm-lingue__nome {
		display: none;
	}

	.sm-lingue__sigla {
		display: inline;
	}
}

/* Menu a tutto schermo: le tre lingue in fila, con spazio sopra e sotto. */
.sm-menu__lingue {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	padding: 28px 0 32px;
	border-top: 1px solid var(--sm-linea);
}

.sm-menu__lingue a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--sm-antracite);
}

.sm-menu__lingue a.is-attivo {
	font-weight: 700;
	color: var(--sm-bordeaux);
}

/* ==========================================================================
   Foto in alto (hero)
   ========================================================================== */

.sm-hero {
	position: relative;
	background-color: var(--sm-antracite);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 68% 30%;
	color: var(--sm-chiaro);
}

.sm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .35);
	pointer-events: none;
}

.sm-hero > .sm-wrap {
	position: relative;
	padding: 277px 0 60px;
}

/* Servizi: foto della riunione, inquadrata in basso come nel design. */
.sm-hero--riunione {
	background-position: 60% 100%;
}

.sm-hero--pagina > .sm-wrap {
	padding: calc(15vw + 237px) 0 80px;
}

/*
 * Home: la foto del team sta in alto a tutta larghezza (non ritagliata) e
 * sfuma nel grigio scuro dello sfondo, sotto i riquadri.
 */
.sm-hero--home {
	overflow: hidden;
}

.sm-hero--home::before {
	display: none;
}

.sm-hero__immagine,
.sm-hero .wp-block-image.sm-hero__immagine {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
}

.sm-hero__immagine img {
	display: block;
	width: 100%;
	height: auto;
}

.sm-hero__immagine::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 55%, rgba(60, 60, 59, .85) 85%, var(--sm-antracite) 100%);
}

.sm-hero__testa {
	display: flex;
	flex-direction: column;
	gap: 38px;
	text-align: center;
	color: var(--sm-chiaro);
}

.sm-hero--home .sm-hero__testa {
	max-width: 1300px;
	min-height: calc(100svh - 157px - 280px);
	margin: 0 auto;
	padding-top: 120px;
	justify-content: flex-end;
}

.sm-hero--pagina .sm-hero__testa {
	width: 70%;
	margin: 0 auto;
}

.sm-hero h1 {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(44px, 5vw, 76px);
	line-height: 1.02;
	color: var(--sm-chiaro);
	text-wrap: wrap;
}

.sm-hero__testa p {
	max-width: 760px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.2;
	text-wrap: pretty;
}

.sm-hero--pagina .sm-hero__testa p {
	max-width: none;
}

.sm-hero__card {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 60px;
}

@media (max-width: 980px) {
	.sm-hero--home .sm-hero__testa {
		min-height: calc(55svh - 157px);
	}

	.sm-hero--pagina .sm-hero__testa {
		width: 100%;
	}

	.sm-hero__card {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.sm-hero--home .sm-hero__testa {
		min-height: calc(100svh - 157px - 280px);
	}
}

/*
 * Home da tablet e telefono, su fondo bianco: titolo e testo in alto, poi la
 * foto intera a tutta larghezza con il bordo basso sul fondo dello schermo,
 * poi i riquadri grigi. sm-wrap diventa «contents» per poter mettere la foto
 * (che nel contenuto viene prima) fra il testo e i riquadri.
 */
@media (max-width: 980px) {
	.sm-hero--home {
		display: flex;
		flex-direction: column;
		background: var(--sm-bianco);
		color: var(--sm-antracite);
	}

	.sm-hero--home > .sm-wrap {
		display: contents;
	}

	/* Lo spazio sopra la foto (2/3 della larghezza) è dell'header e del testo, centrato. */
	.sm-hero--home .sm-hero__testa {
		order: 1;
		width: 80%;
		min-height: calc(100vh - 66.67vw - var(--sm-admin, 0px));
		min-height: calc(100svh - 66.67vw - var(--sm-admin, 0px));
		margin: 0 auto;
		padding: 157px 0 40px;
		justify-content: center;
		color: var(--sm-antracite);
	}

	.sm-hero--home h1 {
		color: var(--sm-antracite);
	}

	.sm-hero--home .sm-hero__immagine,
	.sm-hero--home .wp-block-image.sm-hero__immagine {
		position: relative;
		order: 2;
	}

	.sm-hero--home .sm-hero__immagine::after {
		display: none;
	}

	.sm-hero--home .sm-hero__card {
		order: 3;
		width: 80%;
		margin: 40px auto 60px;
	}

	.sm-hero--home .sm-hero__card .sm-vetro,
	.sm-hero--home .sm-hero__card .sm-vetro:hover {
		background: var(--sm-antracite);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	/*
	 * Foto in alto delle pagine interne (Servizi), come la home: testo scuro
	 * centrato in alto e foto intera in basso, sul fondo dello schermo. La foto
	 * resta uno sfondo: si allarga a tutta larghezza e il padding sotto ne fa
	 * spazio (66.67vw = foto 3:2; con proporzioni diverse va cambiato).
	 */
	.sm-hero--pagina {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(100vh - var(--sm-admin, 0px));
		min-height: calc(100svh - var(--sm-admin, 0px));
		padding-bottom: 66.67vw;
		background-color: var(--sm-bianco);
		background-size: 100% auto !important;
		background-position: 50% 100%;
		color: var(--sm-antracite);
	}

	.sm-hero--pagina::before {
		display: none;
	}

	/* Spazi più stretti che in home: il testo è più lungo e deve stare sopra la foto. */
	.sm-hero--pagina > .sm-wrap {
		padding: 141px 0 32px;
	}

	.sm-hero--pagina .sm-hero__testa {
		gap: 24px;
	}

	.sm-hero--pagina h1,
	.sm-hero--pagina .sm-hero__testa {
		color: var(--sm-antracite);
	}

	/* Header bianco con il logo a colori anche prima di scorrere (home e Servizi). */
	body.sm-header-trasparente .sm-header {
		background: var(--sm-bianco);
	}

	body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-logo-chiaro {
		opacity: 0;
	}

	body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-logo-colore {
		opacity: 1;
	}

	body.sm-header-trasparente .sm-header:not(.is-pieno) .sm-burger span {
		background: var(--sm-nero);
	}
}

@media (max-width: 600px) {
	.sm-hero--home .sm-hero__testa,
	.sm-hero--home .sm-hero__card {
		width: calc(100% - 40px);
	}

	/* «partner strategico» non va a capo: con 10vw sta nella larghezza dello schermo. */
	.sm-hero--home h1 {
		font-size: clamp(30px, 10vw, 44px);
	}
}

/* Riquadro «a vetro» (sfondo scuro trasparente e sfocato). */
.sm-vetro {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
	background: var(--sm-vetro);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--sm-chiaro);
	transition: background .3s;
}

.sm-hero__card .sm-vetro:hover {
	background: rgba(60, 60, 59, .6);
}

.sm-vetro h2,
.sm-vetro h3 {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.02;
	color: var(--sm-chiaro);
}

.sm-vetro p {
	font-size: 18px;
	line-height: 1.2;
}

.sm-vetro .sm-cresce {
	flex: 1;
}

@media (max-width: 600px) {
	.sm-vetro {
		padding: 24px;
	}
}

/* Link chiaro sottolineato in rame, dentro i riquadri a vetro. */
.sm-link-rame {
	margin-top: 20px;
}

.sm-link-rame a {
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--sm-rame);
	color: var(--sm-chiaro);
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	transition: color .2s, border-color .2s;
}

.sm-link-rame a:hover {
	color: var(--sm-rame);
	border-bottom-color: transparent;
}

/* Fascia dell'iscrizione all'Albo. */
.sm-albo {
	background: var(--sm-antracite);
	color: var(--sm-chiaro);
}

.sm-albo > .sm-wrap {
	max-width: 960px;
	padding: 36px 0;
	display: flex;
	align-items: center;
	gap: 27px;
}

.sm-albo figure,
.sm-albo .wp-block-image {
	flex-shrink: 0;
	width: 93px;
	margin: 0;
}

.sm-albo img {
	display: block;
	width: 93px;
	height: 93px;
	object-fit: contain;
}

.sm-albo p {
	font-size: 18px;
	line-height: 1.2;
}

@media (max-width: 980px) {
	.sm-albo figure,
	.sm-albo .wp-block-image,
	.sm-albo img {
		width: 60px;
		height: 60px;
	}
}

@media (max-width: 600px) {
	.sm-albo > .sm-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}
}

/* ==========================================================================
   Home: gruppi di servizi
   ========================================================================== */

.sm-gruppi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 48px;
}

.sm-gruppo {
	display: grid;
	grid-row: span 6;
	grid-template-rows: subgrid;
	row-gap: 0;
}

.sm-gruppo h3 {
	margin-bottom: 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sm-bordeaux);
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	color: var(--sm-bordeaux);
	text-transform: uppercase;
	text-wrap: wrap;
}

.sm-gruppo p {
	padding: 16px 0;
	border-bottom: 1px solid var(--sm-grigio);
	font-size: 18px;
	line-height: 1.3;
	text-wrap: pretty;
}

.sm-gruppo .wp-block-buttons {
	align-self: end;
	margin-top: 26px;
}

@media (max-width: 980px) {
	.sm-gruppi {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.sm-gruppo {
		display: flex;
		flex-direction: column;
		grid-row: auto;
	}
}

@media (max-width: 600px) {
	.sm-gruppi {
		row-gap: 32px;
	}
}

/* ==========================================================================
   Sezioni con foto e riquadro a vetro
   ========================================================================== */

.sm-foto-vetro {
	position: relative;
	background-color: var(--sm-antracite);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 33% 55%;
}

.sm-foto-vetro > .sm-wrap {
	position: relative;
	padding: var(--sm-sez) 0;
	display: flex;
	justify-content: center;
}

.sm-foto-vetro .sm-vetro {
	width: 66.666%;
	gap: 31px;
	padding: 120px 50px;
	background: rgba(60, 60, 59, .5);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
}

.sm-foto-vetro .sm-vetro h2 {
	font-size: clamp(40px, 4.2vw, 64px);
	text-wrap: wrap;
}

.sm-foto-vetro .wp-block-buttons {
	margin-top: 9px;
}

@media (max-width: 980px) {
	.sm-foto-vetro .sm-vetro {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.sm-foto-vetro .sm-vetro {
		padding: 60px 24px;
	}
}

/* Foto libera in alto e riquadro a vetro sotto, largo quanto la pagina, metà sulla
   foto e metà sul bianco (1.0.23 home, 1.0.24 Chi siamo; richiesta del cliente).
   La foto è larga quanto lo schermo; ogni variante sceglie da che altezza parte e
   dove comincia il riquadro. Vetro più scuro del solito perché sul bianco il testo
   resti leggibile. Lo !important vince sulla dimensione «cover» che l'editor scrive
   nello stile. */
.sm-foto-vetro--home,
.sm-foto-vetro--sinistra {
	background-color: var(--sm-bianco);
	background-size: 100% auto !important;
}

.sm-foto-vetro--home > .sm-wrap,
.sm-foto-vetro--sinistra > .sm-wrap {
	display: block;
}

.sm-foto-vetro--home .sm-vetro,
.sm-foto-vetro--sinistra .sm-vetro {
	width: 100%;
	box-sizing: border-box;
	padding: 64px 80px;
	background: rgba(60, 60, 59, .72);
}

.sm-foto-vetro--home .sm-vetro > p:not(.sm-occhiello) {
	max-width: 900px;
}

/* Home, Chi siamo: reception dal 12% (8vw), lampadario e bancone interi sopra il riquadro. */
.sm-foto-vetro--home {
	background-position: center -8vw;
}

.sm-foto-vetro--home > .sm-wrap {
	padding: 44vw 0 0;
}

/* Pagina Chi siamo, I nostri servizi: corridoio dal 18% (12vw), piante intere sopra il riquadro. */
.sm-foto-vetro--sinistra {
	background-position: center -12vw;
}

.sm-foto-vetro--sinistra > .sm-wrap {
	padding: 38vw 0 0;
}

@media (max-width: 980px) {
	.sm-foto-vetro--home .sm-vetro,
	.sm-foto-vetro--sinistra .sm-vetro {
		padding: 48px 24px;
	}

	/* Tablet e telefono: foto più alta e tagliata ai lati. */
	.sm-foto-vetro--sinistra {
		background-size: auto 120vw !important;
		background-position: 50% -21.6vw;
	}

	.sm-foto-vetro--sinistra > .sm-wrap {
		padding-top: 68vw;
	}

	/* Reception centrata fra lampadario e bancone. */
	.sm-foto-vetro--home {
		background-size: auto 120vw !important;
		background-position: 62% -14.4vw;
	}

	.sm-foto-vetro--home > .sm-wrap {
		padding-top: 79vw;
	}
}

/* Invito a lavorare con noi: fascia bordeaux con il pulsante bianco. */
.sm-invito {
	position: relative;
	background: var(--sm-bordeaux);
	color: var(--sm-chiaro);
}

.sm-invito > .sm-wrap {
	position: relative;
	padding: var(--sm-sez) 0;
}

.sm-invito .sm-testa p {
	max-width: calc((100% - 24px) * 2 / 3);
}

.sm-invito .wp-block-buttons {
	margin-top: 9px;
}

.sm-invito .wp-block-button,
.sm-invito .wp-block-button__link {
	width: 100%;
	max-width: 360px;
}

.sm-invito .wp-block-button__link {
	background: var(--sm-bianco);
	color: var(--sm-bordeaux);
}

.sm-invito .wp-block-button__link:hover,
.sm-invito .wp-block-button__link:focus-visible {
	background: var(--sm-antracite);
	color: var(--sm-bianco);
}

@media (max-width: 980px) {
	.sm-invito .sm-testa p {
		max-width: none;
	}
}

/* ==========================================================================
   Team
   ========================================================================== */

.sm-persona-card {
	position: relative;
	display: block;
	aspect-ratio: 454 / 638;
	overflow: hidden;
	background: var(--sm-grigio-foto);
	color: var(--sm-chiaro);
}

.sm-persona-card:hover {
	color: var(--sm-chiaro);
}

.sm-persona-card__foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
	transition: transform .6s var(--sm-ease);
}

.sm-persona-card__didascalia {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, .13);
	background: var(--sm-vetro);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-align: center;
}

.sm-persona-card__nome {
	font-family: var(--sm-serif);
	font-size: 28px;
	line-height: 1.1;
}

.sm-persona-card__ruolo {
	font-size: 16px;
}

/* Linea bordeaux che si allunga e foto che si ingrandisce al passaggio. */
.sm-zoom {
	position: relative;
	overflow: hidden;
}

.sm-zoom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 4px;
	background: var(--sm-bordeaux);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .45s var(--sm-ease);
}

@media (hover: hover) and (min-width: 601px) {
	.sm-zoom:hover::after {
		transform: scaleX(1);
	}

	.sm-zoom:hover .sm-persona-card__foto {
		transform: scale(1.06);
	}
}

.sm-team-griglia {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	padding-bottom: var(--sm-sez);
}

@media (max-width: 980px) {
	.sm-team-griglia {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sm-team-griglia {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Carosello: card affiancate che scorrono a gruppi. */
.sm-car {
	--pv: 3;
	--gap: 24px;
}

.sm-car__vista {
	overflow: hidden;
}

.sm-car__traccia {
	display: flex;
	gap: var(--gap);
	transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}

.sm-car__traccia > * {
	flex: 0 0 calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv));
	min-width: 0;
}

@media (max-width: 980px) {
	.sm-car {
		--pv: 2;
	}
}

@media (max-width: 600px) {
	.sm-car {
		--pv: 1;
	}
}

.sm-punti {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 40px;
}

.sm-punti:empty {
	display: none;
}

.sm-punti button {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--sm-grigio);
	cursor: pointer;
	transition: width .3s, background .3s;
}

.sm-punti button[aria-current="true"] {
	width: 28px;
	background: var(--sm-bordeaux);
}

/* ==========================================================================
   Scheda di una persona del team
   ========================================================================== */

.sm-profilo {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: start;
}

.sm-profilo__foto {
	position: sticky;
	top: 0;
	height: 100vh;
	background-color: var(--sm-grigio-foto);
	overflow: hidden;
}

.sm-profilo__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
}

.sm-profilo__foto::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(60, 60, 59, .15);
}

.sm-profilo__testo {
	display: flex;
	flex-direction: column;
	padding: calc(10vw + 100px) 13% 120px;
}

.sm-profilo__testo > .sm-occhiello {
	margin-bottom: 40px;
}

.sm-profilo__testo h1 {
	margin-bottom: 20px;
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(40px, 4.2vw, 64px);
	line-height: 1.02;
	color: var(--sm-antracite);
	text-wrap: wrap;
}

.sm-profilo__contenuto {
	display: flex;
	flex-direction: column;
}

/* Presentazione sotto il nome. */
.sm-profilo__contenuto > p {
	margin-bottom: 80px;
	font-size: 18px;
	line-height: 1.2;
	text-wrap: pretty;
}

.sm-profilo__contenuto > p + p {
	margin-top: -60px;
}

.sm-profilo__contenuto > .wp-block-buttons {
	margin-bottom: 80px;
}

/*
 * Senza presentazione (dall'11/11/2026 chi non ha iscrizioni non ha il paragrafo
 * sotto il nome) la scheda parte dai Contatti: 40px in più sotto il nome, 60 in
 * tutto. Un paragrafo lasciato vuoto nell'editor non si vede e vale come assente.
 */
.sm-profilo__contenuto > p:empty {
	display: none;
}

.sm-profilo__contenuto > :first-child:not(p),
.sm-profilo__contenuto > p:empty:first-child + * {
	margin-top: 40px;
}

/*
 * Sezioni della scheda (Contatti, Attività in studio…): titolo bordeaux con la
 * riga accanto e una voce per paragrafo, separate da una riga grigia. Con
 * sm-profilo__sezione--testo le voci sono paragrafi di testo, senza righe.
 */
.sm-profilo__sezione {
	display: flex;
	flex-direction: column;
	margin-bottom: 60px;
}

.sm-profilo__sezione--contatti {
	margin-bottom: 40px;
}

.sm-profilo__contenuto > .sm-profilo__sezione:last-child {
	margin-bottom: 0;
}

.sm-profilo__sezione h2 {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 8px;
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--sm-bordeaux);
}

.sm-profilo__sezione h2::after {
	content: "";
	flex: 1;
	min-width: 24px;
	height: 1px;
	background: var(--sm-bordeaux);
}

.sm-profilo__sezione p {
	padding: 16px 0;
	border-bottom: 1px solid var(--sm-grigio);
	font-size: 18px;
	line-height: 1.3;
	color: var(--sm-antracite);
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.sm-profilo__sezione--testo p {
	padding: 10px 0;
	border-bottom: 0;
	overflow-wrap: normal;
}

.sm-profilo__sezione p a {
	color: inherit;
}

.sm-profilo__sezione p a:hover {
	color: var(--sm-bordeaux);
}

@media (max-width: 980px) {
	.sm-profilo {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-profilo__foto {
		position: relative;
		height: 680px;
	}

	.sm-profilo__testo {
		padding: 90px 10%;
	}
}

@media (max-width: 600px) {
	.sm-profilo__foto {
		height: 560px;
	}

	.sm-profilo__testo {
		padding: 60px 20px;
	}

	.sm-profilo__sezione h2 {
		gap: 12px;
	}
}

/* Domande a scomparsa (blocco «Dettagli»). */
.sm-domande {
	display: flex;
	flex-direction: column;
}

.sm-domande details,
details.sm-domanda {
	border-bottom: 1px solid var(--sm-grigio);
}

.sm-domande summary,
details.sm-domanda summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	color: var(--sm-antracite);
	cursor: pointer;
	list-style: none;
	transition: color .2s;
}

.sm-domande summary::-webkit-details-marker,
details.sm-domanda summary::-webkit-details-marker {
	display: none;
}

.sm-domande summary::after,
details.sm-domanda summary::after {
	content: "+";
	flex-shrink: 0;
	font-weight: 400;
	font-size: 22px;
	line-height: 1;
	color: var(--sm-bordeaux);
}

.sm-domande details[open] summary,
details.sm-domanda[open] summary,
.sm-domande summary:hover,
details.sm-domanda summary:hover {
	color: var(--sm-bordeaux);
}

.sm-domande details[open] summary::after,
details.sm-domanda[open] summary::after {
	content: "–";
}

.sm-domande details > :not(summary),
details.sm-domanda > :not(summary) {
	padding-bottom: 22px;
	font-size: 18px;
	line-height: 1.5;
}

.sm-domande details > :not(summary) + :not(summary) {
	margin-top: -16px;
}

/* ==========================================================================
   Contatti dello studio (fascia ricorrente)
   ========================================================================== */

.sm-contatti {
	padding: var(--sm-sez) 0;
}

.sm-contatti .sm-linea-titolo {
	margin-bottom: 46px;
}

/* Pagina Servizi: la sezione dei servizi ha già lo spazio sotto. */
.sm-servizi-pagina + .sm-contatti {
	padding-top: 0;
}

/* Pagina Contatti: niente titolo, segue subito l'apertura. */
.sm-contatti--senza-titolo {
	padding-top: 60px;
}

/* Dal 1.0.22: e-mail e telefono affiancati, «Richiedi informazioni» sotto a tutta larghezza. */
.sm-contatti__griglia {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 46px;
}

.sm-contatti__voce--link {
	grid-column: 1 / -1;
}

.sm-contatti--scheda .sm-contatti__griglia {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 46px;
}

.sm-contatti__voce {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--sm-bordeaux);
	font-family: var(--sm-serif);
	font-size: 18px;
	line-height: 1.4;
	color: var(--sm-antracite);
}

.sm-contatti--scheda .sm-contatti__voce {
	align-items: flex-start;
}

.sm-contatti__voce a {
	color: var(--sm-antracite);
}

a.sm-contatti__voce:hover,
.sm-contatti__voce a:hover {
	color: var(--sm-bordeaux);
}

.sm-contatti__voce > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sm-contatti__voce svg {
	flex-shrink: 0;
	margin-bottom: 6px;
	color: var(--sm-bordeaux);
}

.sm-contatti--scheda .sm-contatti__voce svg {
	margin: 4px 0 0;
}

.sm-contatti__freccia {
	flex-shrink: 0;
	font-family: var(--sm-font);
	font-size: 22px;
	line-height: 1;
	color: var(--sm-bordeaux);
}

@media (max-width: 980px) {
	.sm-contatti .sm-linea-titolo {
		margin-bottom: 36px;
	}

	.sm-contatti__griglia,
	.sm-contatti--scheda .sm-contatti__griglia {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.sm-contatti .sm-linea-titolo {
		margin-bottom: 28px;
	}
}

/* ==========================================================================
   News
   ========================================================================== */

.sm-news-griglia {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sm-news-griglia--elenco {
	gap: 40px 24px;
}

@media (max-width: 980px) {
	.sm-news-griglia {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sm-news-griglia {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Ultime news della home: slider da tablet e telefono (classi sm-car). */
.sm-news-ultime .sm-punti {
	margin-top: 28px;
}

/* Da computer stanno tutte e tre nella vista: niente pallini e niente spazio sotto. */
.sm-news-ultime .sm-punti:empty {
	display: none;
}

/* Negli slider le card si allungano tutte come la più alta (height: 100% qui non vale). */
.sm-car__traccia > .sm-news-card {
	height: auto;
}

.sm-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sm-chiaro);
	color: var(--sm-antracite);
}

.sm-news-card:hover {
	color: var(--sm-antracite);
}

.sm-news-card--bianca {
	background: var(--sm-bianco);
}

.sm-news-card__foto {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sm-grigio);
}

.sm-news-card__foto img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--sm-ease);
}

.sm-news-card__corpo {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
}

.sm-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.sm-news-card .sm-meta {
	margin-bottom: 10px;
}

.sm-meta__cat {
	color: var(--sm-bordeaux);
	font-weight: 700;
}

.sm-meta__punto {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--sm-grigio);
}

.sm-meta__data {
	color: var(--sm-grigio-testo);
}

.sm-news-card__titolo {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.15;
	color: inherit;
	text-wrap: wrap;
	transition: color .2s;
}

.sm-news-card__riassunto {
	flex: 1;
	font-size: 16px;
	line-height: 1.4;
	text-wrap: pretty;
}

.sm-news-card .sm-link-linea {
	margin-top: 6px;
}

@media (hover: hover) and (min-width: 601px) {
	.sm-news-card.sm-zoom:hover img {
		transform: scale(1.06);
	}
}

@media (max-width: 600px) {
	.sm-news-card__corpo {
		padding: 24px;
	}
}

/* Fascia grigia con le news che scorrono, in fondo alle pagine interne. */
.sm-news-fascia {
	padding: 100px 0;
	background: var(--sm-bianco);
}

.sm-news-fascia > .sm-wrap {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Il titolo resta un po' più grande degli altri titoli con la riga. */
.sm-news-fascia .sm-linea-titolo h2 {
	font-size: 18px;
}

.sm-news-fascia .sm-news-card {
	background: var(--sm-chiaro);
	transition: color .2s;
}

.sm-news-fascia .sm-news-card:hover {
	color: var(--sm-bordeaux);
}

.sm-news-fascia .sm-news-card__titolo {
	font-size: 26px;
}

.sm-news-fascia .sm-news-card__riassunto {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--sm-antracite);
}

.sm-news-fascia__piede {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.sm-news-fascia__piede .sm-punti {
	margin: 0;
	justify-content: flex-end;
}

.sm-news-fascia__frecce {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	order: 2;
}

@media (max-width: 980px) {
	.sm-news-fascia {
		padding: 80px 0;
	}
}

@media (max-width: 600px) {
	.sm-news-fascia {
		padding: 60px 0;
	}

	.sm-news-fascia > .sm-wrap {
		gap: 28px;
	}
}

/* Pagina delle news: filtri, news in evidenza, elenco. */
.sm-news-elenco {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.sm-filtri {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sm-filtro {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	border: 1px solid var(--sm-grigio);
	border-radius: 30px;
	background: var(--sm-bianco);
	color: var(--sm-antracite);
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.sm-filtro:hover {
	border-color: var(--sm-bordeaux);
	color: var(--sm-bordeaux);
}

.sm-filtro[aria-pressed="true"] {
	border-color: var(--sm-bordeaux);
	background: var(--sm-bordeaux);
	color: var(--sm-chiaro);
}

.sm-news-evidenza {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--sm-chiaro);
	color: var(--sm-antracite);
}

.sm-news-evidenza:hover {
	color: var(--sm-antracite);
}

.sm-news-evidenza--foto {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.sm-news-evidenza .sm-news-card__foto {
	aspect-ratio: auto;
	min-height: 460px;
}

.sm-news-evidenza__corpo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	padding: 56px;
}

.sm-news-evidenza h2 {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(30px, 2.8vw, 40px);
	line-height: 1.08;
	color: inherit;
	text-wrap: wrap;
}

.sm-news-evidenza p {
	font-size: 18px;
	line-height: 1.4;
	text-wrap: pretty;
}

.sm-news-vuoto {
	padding: 40px 0;
	border-top: 1px solid var(--sm-bordeaux);
	border-bottom: 1px solid var(--sm-bordeaux);
	font-size: 18px;
	line-height: 1.4;
}

.sm-news-paginazione {
	display: flex;
	justify-content: center;
	gap: 10px;
}

@media (max-width: 980px) {
	.sm-news-evidenza--foto {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-news-evidenza .sm-news-card__foto {
		min-height: 360px;
	}
}

@media (max-width: 600px) {
	.sm-news-elenco {
		gap: 40px;
	}

	.sm-news-evidenza .sm-news-card__foto {
		min-height: 240px;
	}

	.sm-news-evidenza__corpo {
		padding: 32px 24px;
	}
}

/* Singola news. */
.sm-articolo {
	width: 80%;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.sm-articolo {
		width: calc(100% - 40px);
	}
}

.sm-articolo__testa {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 220px 0 40px;
	border-bottom: 1px solid var(--sm-bordeaux);
}

.sm-articolo__testa h1 {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(40px, 4.2vw, 64px);
	line-height: 1.04;
	color: var(--sm-antracite);
	text-wrap: wrap;
}

.sm-articolo__testa p {
	font-size: 20px;
	line-height: 1.45;
	color: var(--sm-grigio-testo);
	text-wrap: pretty;
}

@media (max-width: 980px) {
	.sm-articolo__testa {
		padding-top: 150px;
	}
}

.sm-articolo__corpo {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 56px 0 0;
}

@media (max-width: 600px) {
	.sm-articolo__corpo {
		padding: 40px 0 0;
	}
}

.sm-articolo__testo {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sm-articolo__testo > p {
	font-size: 18px;
	line-height: 1.6;
	text-wrap: pretty;
}

.sm-articolo__testo > h2 {
	margin-top: 16px;
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: clamp(30px, 2.8vw, 40px);
	line-height: 1.1;
	color: var(--sm-antracite);
	text-wrap: wrap;
}

.sm-articolo__testo > h3 {
	margin-top: 8px;
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.15;
	color: var(--sm-antracite);
}

.sm-articolo__testo > figure,
.sm-articolo__testo > .wp-block-image {
	margin: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sm-articolo__testo img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--sm-chiaro);
}

.sm-articolo__testo figcaption {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--sm-grigio-testo);
	text-align: left;
}

.sm-articolo__testo > blockquote,
.sm-articolo__testo > .wp-block-quote {
	margin: 16px 0;
	padding: 16px 0;
	border: 0;
	font-family: var(--sm-serif);
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.3;
	color: var(--sm-bordeaux);
	text-wrap: pretty;
}

.sm-articolo__testo > .wp-block-quote p {
	font-size: inherit;
	line-height: inherit;
}

.sm-articolo__testo > .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--sm-font);
	font-size: 14px;
	font-style: normal;
	color: var(--sm-grigio-testo);
}

.sm-articolo__testo > ul,
.sm-articolo__testo > ol {
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sm-bordeaux);
}

.sm-articolo__testo > ul > li,
.sm-articolo__testo > ol > li {
	padding: 16px 0;
	border-bottom: 1px solid var(--sm-grigio);
	font-size: 18px;
	line-height: 1.4;
	text-wrap: pretty;
}

.sm-articolo__testo > .wp-block-buttons {
	margin-top: 8px;
}

.sm-articolo__testo > hr,
.sm-articolo__testo > .wp-block-separator {
	width: 100%;
	height: 1px;
	margin: 16px 0;
	border: 0;
	background: var(--sm-bordeaux);
	opacity: 1;
}

.sm-articolo__piede {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--sm-bordeaux);
}

.sm-articolo__piede a {
	color: var(--sm-bordeaux);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
}

.sm-articolo__piede a:hover {
	color: var(--sm-antracite);
}

.sm-altre-news {
	padding: var(--sm-sez) 0;
	background: var(--sm-chiaro);
}

.sm-altre-news .sm-linea-titolo {
	margin-bottom: 46px;
}

/* ==========================================================================
   Pagina Servizi: indice e schede
   ========================================================================== */

.sm-servizi-pagina {
	padding: var(--sm-sez) 0;
}

.sm-servizi-pagina > .sm-wrap {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
	gap: 40px;
	align-items: start;
}

.sm-indice {
	position: sticky;
	/* Header bianco alto 104px, più la barra di WordPress per chi è collegato. */
	top: calc(var(--sm-admin, 0px) + 140px);
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 40px;
	padding-left: 20px;
	border-left: 3px solid var(--sm-bordeaux);
}

.sm-indice a {
	color: var(--sm-nero);
	font-size: 18px;
	line-height: 1.3;
}

.sm-indice a:hover,
.sm-indice a.is-attiva {
	color: var(--sm-bordeaux);
}

.sm-indice a.is-attiva {
	font-weight: 700;
}

.sm-pillole {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(104px + var(--sm-admin, 0px));
	z-index: 99;
	display: none;
	gap: 24px;
	padding: 12px 20px;
	background: var(--sm-bianco);
	box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .25);
	overflow-x: auto;
	scrollbar-width: none;
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
}

.sm-pillole::-webkit-scrollbar {
	display: none;
}

.sm-pillole.is-visibile {
	transform: none;
	visibility: visible;
}

.sm-pillole a {
	flex-shrink: 0;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--sm-nero);
	font-size: 15px;
	white-space: nowrap;
}

.sm-pillole a.is-attiva {
	border-bottom-color: var(--sm-bordeaux);
	color: var(--sm-bordeaux);
	font-weight: 700;
}

.sm-servizi-lista {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sm-servizio {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 40px;
	border-bottom: 1px solid var(--sm-bordeaux);
	scroll-margin-top: calc(var(--sm-admin, 0px) + 110px);
}

.sm-servizio:last-child {
	border-bottom: 0;
}

/* Selettore più specifico: le regole di layout di WordPress azzerano il margine. */
.sm-servizio > h2.wp-block-heading,
.sm-servizio h2 {
	margin-top: 15px;
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.15;
	color: var(--sm-nero);
	text-wrap: wrap;
}

.sm-servizio__testo {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 18px;
	line-height: 1.8;
	color: var(--sm-nero);
}

.sm-servizio__testo p {
	text-wrap: pretty;
}

.sm-punti-elenco {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sm-punti-elenco li {
	position: relative;
	padding-left: 22px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--sm-nero);
	text-wrap: pretty;
}

.sm-punti-elenco li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sm-bordeaux);
}

@media (max-width: 980px) {
	.sm-servizi-pagina > .sm-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-indice {
		position: static;
		gap: 14px;
		margin-top: 0;
	}

	.sm-pillole {
		display: flex;
	}

	.sm-servizio {
		gap: 20px;
		padding: 40px 0;
	}

	.sm-servizio > h2.wp-block-heading,
	.sm-servizio h2 {
		margin-top: 0;
		font-size: 32px;
	}

	.sm-servizio__testo {
		line-height: 1.6;
	}
}

@media (max-width: 600px) {
	.sm-servizi-pagina {
		padding: 56px 0 60px;
	}

	.sm-servizio {
		padding: 30px 0;
	}

	.sm-servizio > h2.wp-block-heading,
	.sm-servizio h2 {
		font-size: 26px;
	}

	.sm-servizio__testo {
		font-size: 16px;
	}
}

/* ==========================================================================
   Link utili
   ========================================================================== */

.sm-link-utili {
	padding: 240px 0 var(--sm-sez);
}

.sm-link-utili .sm-testa {
	margin-bottom: 90px;
}

.sm-link-utili .sm-testa p {
	max-width: 900px;
}

.sm-link-gruppi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px 46px;
	align-items: start;
}

.sm-link-gruppo .sm-linea-titolo {
	margin-bottom: 24px;
}

.sm-link-gruppo .sm-linea-titolo::after {
	background: var(--sm-grigio);
}

.sm-link-gruppo .sm-linea-titolo h2 {
	color: var(--sm-bordeaux);
}

.sm-link-lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-link-lista li {
	border-bottom: 1px solid var(--sm-grigio);
}

.sm-link-lista a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	font-family: var(--sm-serif);
	font-size: 18px;
	line-height: 1.3;
	color: var(--sm-antracite);
}

/* La freccia bordeaux della libreria media (freccia.png), copiata nel tema. */
.sm-link-lista a::after {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: url("assets/img/freccia.png") center / contain no-repeat;
	transition: transform .2s;
}

.sm-link-lista a:hover::after {
	transform: translateX(4px);
}

.sm-link-lista a:hover {
	color: var(--sm-bordeaux);
}

@media (max-width: 980px) {
	.sm-link-utili {
		padding-top: 150px;
	}

	.sm-link-gruppi {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.sm-link-utili .sm-testa {
		margin-bottom: 50px;
	}
}

/* ==========================================================================
   Chi siamo: apertura su due colonne
   ========================================================================== */

.sm-apertura {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 48px;
	align-items: end;
}

@media (max-width: 600px) {
	.sm-apertura {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Moduli (contatti e candidature)
   ========================================================================== */

.sm-modulo-sezione > .sm-wrap {
	display: flex;
	flex-direction: column;
	gap: 31px;
}

.sm-modulo-sezione .sm-testo {
	max-width: 900px;
}

.sm-modulo__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	margin-top: 9px;
}

.sm-modulo__form[hidden] {
	display: none;
}

/* Da tablet i campi vanno in colonna, come nel design. */
@media (max-width: 980px) {
	.sm-modulo__form {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sm-campo {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 16px;
	color: var(--sm-antracite);
}

.sm-campo--largo {
	grid-column: 1 / -1;
}

.sm-campo > span {
	padding-left: 10px;
}

.sm-campo input,
.sm-campo select,
.sm-campo textarea {
	width: 100%;
	padding: 12px 18px;
	border: 0;
	border-radius: 30px;
	background: var(--sm-chiaro);
	color: var(--sm-antracite);
	font-family: var(--sm-font);
	font-size: 16px;
	outline: none;
	transition: box-shadow .2s;
}

.sm-campo textarea {
	padding: 18px;
	resize: vertical;
}

.sm-campo select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f2d2a' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	cursor: pointer;
}

.sm-campo input:focus,
.sm-campo select:focus,
.sm-campo textarea:focus {
	box-shadow: 0 0 0 2px var(--sm-bordeaux);
}

.sm-campo em,
.sm-campo-privacy em {
	padding-left: 10px;
	font-style: normal;
	font-size: 14px;
	color: var(--sm-bordeaux);
}

.sm-campo em:empty,
.sm-campo-privacy em:empty {
	display: none;
}

.sm-campo.has-errore input,
.sm-campo.has-errore select,
.sm-campo.has-errore textarea,
.sm-campo.has-errore .sm-file {
	box-shadow: 0 0 0 2px var(--sm-bordeaux);
}

.sm-campo-privacy {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-left: 10px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--sm-antracite);
}

.sm-campo-privacy input {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	accent-color: var(--sm-bordeaux);
}

.sm-modulo__form > .sm-btn {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 5px;
}

.sm-modulo__trappola {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sm-modulo__esito {
	grid-column: 1 / -1;
	font-size: 16px;
	font-weight: 700;
	color: var(--sm-bordeaux);
}

.sm-modulo__esito:empty {
	display: none;
}

.sm-modulo__grazie {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 40px 0;
	border-top: 1px solid var(--sm-bordeaux);
	border-bottom: 1px solid var(--sm-bordeaux);
}

.sm-modulo__grazie[hidden] {
	display: none;
}

.sm-modulo__grazie p:first-child {
	font-size: 18px;
	font-weight: 700;
	color: var(--sm-bordeaux);
}

.sm-link-btn {
	padding: 0 0 5px;
	border: 0;
	border-bottom: 2px solid var(--sm-bordeaux);
	background: none;
	color: var(--sm-bordeaux);
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	cursor: pointer;
}

/* Scelta del curriculum. */
.sm-file {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 14px 14px 22px;
	border: 1.5px dashed var(--sm-grigio);
	border-radius: 30px;
	background: var(--sm-chiaro);
	cursor: pointer;
	transition: border-color .2s;
}

.sm-file:hover,
.sm-file.has-file {
	border-color: var(--sm-bordeaux);
}

.sm-file input {
	position: absolute;
	left: 24px;
	bottom: 8px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sm-file input:focus-visible + .sm-file__testo {
	outline: 2px solid var(--sm-bordeaux);
	outline-offset: 4px;
}

.sm-file__testo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sm-file__nome {
	font-size: 16px;
	overflow-wrap: anywhere;
}

.sm-file__aiuto {
	font-size: 13px;
	color: var(--sm-grigio-testo);
}

.sm-file__bottone {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 40px;
	padding: 0 22px;
	border-radius: 30px;
	background: var(--sm-antracite);
	color: var(--sm-chiaro);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
}

/* ==========================================================================
   Mappa (si carica solo al clic)
   ========================================================================== */

.sm-mappa {
	position: relative;
	width: 100%;
	aspect-ratio: 1440 / 340;
	min-height: 340px;
	overflow: hidden;
	background: var(--sm-antracite);
}

@media (max-width: 980px) {
	.sm-mappa {
		aspect-ratio: 1440 / 480;
		min-height: 420px;
	}
}

.sm-mappa iframe {
	position: absolute;
	left: 0;
	top: -110px;
	width: 100%;
	height: calc(100% + 220px);
	border: 0;
	pointer-events: none;
	filter: grayscale(1) brightness(1.04) contrast(.92);
}

.sm-mappa__pin {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, calc(-100% + 8px));
	pointer-events: none;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35));
}

.sm-mappa:not(.is-caricata) .sm-mappa__pin {
	display: none;
}

.sm-mappa__consenso {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 90px 24px;
	text-align: center;
	color: var(--sm-chiaro);
	font-size: 15px;
	line-height: 1.4;
}

.sm-mappa__consenso p {
	max-width: 520px;
}

.sm-mappa__consenso a {
	color: var(--sm-chiaro);
	text-decoration: underline;
}

.sm-mappa.is-caricata .sm-mappa__consenso {
	display: none;
}

.sm-mappa__scheda {
	position: absolute;
	left: 24px;
	top: 24px;
	z-index: 2;
	max-width: calc(100% - 40px);
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 16px;
	background: var(--sm-bianco);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.sm-mappa__scheda div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sm-mappa__scheda strong {
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.2;
	color: var(--sm-nero);
}

.sm-mappa__scheda span {
	font-size: 13px;
	line-height: 1.3;
	color: var(--sm-antracite);
}

.sm-mappa__vai {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sm-bordeaux);
	transition: background .2s;
}

.sm-mappa__vai:hover {
	background: var(--sm-rame);
}

.sm-mappa__btn {
	position: absolute;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 16px;
	border: 0;
	background: var(--sm-bianco);
	color: var(--sm-nero);
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	transition: color .2s;
}

.sm-mappa__btn:hover {
	color: var(--sm-bordeaux);
}

.sm-mappa.is-caricata .sm-mappa__btn {
	display: flex;
}

.sm-mappa__sat {
	left: 24px;
	bottom: 24px;
}

.sm-mappa__apri {
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
}

.sm-mappa__zoom {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	display: none;
	flex-direction: column;
	gap: 1px;
	background: #e0e0e0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.sm-mappa.is-caricata .sm-mappa__zoom {
	display: flex;
}

.sm-mappa__zoom .sm-mappa__btn {
	position: static;
	width: 44px;
	padding: 0;
	font-size: 22px;
	box-shadow: none;
}

@media (max-width: 600px) {
	.sm-mappa__scheda {
		left: 20px;
		top: 20px;
	}

	.sm-mappa__sat {
		left: 20px;
		bottom: 20px;
	}

	.sm-mappa.is-caricata .sm-mappa__apri {
		display: none;
	}

	.sm-mappa__zoom {
		right: 20px;
		bottom: 20px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Dal 1.0.20 il footer è solo la barra finale: due righe a sinistra, la firma a destra. */
.sm-footer {
	background: var(--sm-grigio);
	color: var(--sm-chiaro);
	font-size: 18px;
	line-height: 1.2;
}

.sm-footer a {
	color: var(--sm-chiaro);
}

.sm-footer a:hover {
	color: var(--sm-bordeaux);
}

.sm-footer__fondo > .sm-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 24px 0;
}

.sm-footer__righe {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Da telefono «Cookie policy» e gli altri link non si spezzano a metà. */
.sm-footer__righe a {
	white-space: nowrap;
}

.sm-footer__firma a {
	color: var(--sm-bordeaux);
}

.sm-footer__firma a:hover {
	color: var(--sm-chiaro);
}

/* ==========================================================================
   Pagine di testo (privacy, 404)
   ========================================================================== */

.sm-testo-libero {
	max-width: 820px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 17px;
	line-height: 1.6;
}

.sm-testo-libero h2 {
	margin-top: 24px;
	font-family: var(--sm-serif);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.15;
}

.sm-testo-libero h3 {
	margin-top: 8px;
	font-family: var(--sm-font);
	font-weight: 700;
	font-size: 18px;
}

.sm-testo-libero ul,
.sm-testo-libero ol {
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sm-testo-libero a {
	text-decoration: underline;
}

/*
 * Privacy: dall'introduzione all'ultima riga un solo testo, con la stessa
 * larghezza, la stessa misura dei caratteri e la stessa interlinea.
 */
.sm-intro-pagina:has(.sm-testo-libero) {
	padding-bottom: var(--sm-sez);
}

.sm-intro-pagina .sm-testa:has(+ .sm-testo-libero) {
	width: auto;
	max-width: 820px;
	margin-bottom: 56px;
}

.sm-testa:has(+ .sm-testo-libero) .sm-testo {
	font-size: 17px;
	line-height: 1.6;
}

.sm-testo-libero > h2:first-child {
	margin-top: 0;
}

.sm-testo-libero h2 {
	margin-top: 32px;
}

/* Sottotitolo vicino al suo paragrafo, con un'interlinea che regge le due righe. */
.sm-testo-libero h3 {
	margin-bottom: -6px;
	line-height: 1.3;
}

.sm-testo-libero li {
	line-height: 1.6;
}

/* ==========================================================================
   Comparsa durante lo scorrimento (solo con JavaScript)
   ========================================================================== */

.sm-js .sm-rivela {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .8s var(--sm-ease), transform .8s var(--sm-ease);
	transition-delay: var(--sm-ritardo, 0ms);
}

.sm-js .sm-rivela.is-visibile {
	opacity: 1;
	transform: none;
}

/* Link che resta identico al testo intorno: solo cliccabile. */
.sm-link-neutro,
.sm-link-neutro:hover {
	color: inherit;
}

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

/* Accessibilità: rispetta chi ha chiesto meno animazioni. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}

	.sm-js .sm-rivela {
		opacity: 1;
		transform: none;
	}
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--sm-bordeaux);
	outline-offset: 3px;
}
