/* =============================================================================
   Fiera di San Martino — stili del tema
   Riproduce l'aspetto del sito originale (Jupiter 6 + WPBakery) con CSS nativo.
   ========================================================================== */

/* ---------- Font (autohostati, SIL OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Delius"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/delius-latin-400-normal.woff2") format("woff2"); }

/* ---------- Token ---------- */
:root {
	--fsm-accent: #f97352;
	--fsm-text: #777;
	--fsm-heading: #404040;
	--fsm-link: #2e2e2e;
	--fsm-dark: #252525;
	--fsm-border: #e3e3e3;
	--fsm-nav: #444;
	--fsm-intro-bg: #f7f7f7;
	--fsm-footer: #3d4045;
	--fsm-subfooter: #43474d;
	--fsm-social: #dd9933;
	--fsm-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fsm-font-head: "Delius", "Comic Sans MS", cursive, var(--fsm-font);
	--fsm-container: 1140px;
	--fsm-gutter: 15px;
	--fsm-header-h: 90px;
	--fsm-header-sticky: 55px;
	--fsm-inner: 20px; /* rientro del contenuto nelle pagine interne (theme-content di Jupiter) */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: #fff;
	color: var(--fsm-text);
	font-family: var(--fsm-font);
	font-size: 14px;
	line-height: 1.66;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }
a { color: var(--fsm-link); text-decoration: none; transition: color .15s ease-in-out; }
a:hover { color: var(--fsm-accent); }
:focus-visible { outline: 2px solid var(--fsm-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .8em;
	font-family: var(--fsm-font-head);
	font-weight: 400;
	line-height: 1.3em;
	color: var(--fsm-heading);
	overflow-wrap: break-word;
	font-synthesis: weight style;
}
h1 { font-size: 36px; margin-bottom: 16px; font-weight: 600; }
h2 { font-size: 30px; margin-bottom: 14px; font-weight: 600; text-transform: uppercase; }
h3 { font-size: 24px; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
h4 { font-size: 18px; margin-bottom: 9px; font-weight: 600; }
h5 { font-size: 18px; margin-bottom: 8px; }
h6 { font-size: 14px; margin-bottom: 8px; }
p { margin: 0 0 20px; font-size: 16px; line-height: 1.66; }
ul { margin: 0 0 1em 1.5em; padding: 0; list-style: disc; }
ul li { margin-left: .85em; }
ol { margin: 0 0 1em 2.35em; padding: 0; list-style: decimal outside; }
li ul, li ol { margin-bottom: 0; }
strong, b { font-weight: 700; }
.fsm-main strong, .fsm-main b { color: var(--fsm-accent); }
blockquote { margin: 0 0 20px; padding-left: 20px; border-left: 3px solid var(--fsm-border); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--fsm-border); margin: 30px 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
th, td { border: 1px solid var(--fsm-border); padding: 8px 10px; text-align: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
img.aligncenter { margin-bottom: 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; text-align: center; margin-top: 5px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fsm-skip:focus { position: fixed !important; top: 10px; left: 10px; z-index: 10000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--fsm-link); }
.fsm-icon { display: inline-block; fill: currentColor; vertical-align: middle; }

/* ---------- Contenitore e colonne ---------- */
.fsm-container { width: 100%; max-width: var(--fsm-container); margin-inline: auto; padding-inline: var(--fsm-gutter); }
.fsm-cols { display: flex; flex-wrap: wrap; }
.fsm-container.fsm-cols { padding-inline: 0; }
.fsm-col { padding-inline: var(--fsm-gutter); min-width: 0; }
.fsm-cols--2 > .fsm-col { width: 50%; }
.fsm-col--1-1 { width: 100%; }
.fsm-col--1-2 { width: 50%; }
.fsm-col--1-3 { width: 33.3333%; }
.fsm-col--2-3 { width: 66.6667%; }
.fsm-col--1-4 { width: 25%; }
.fsm-col--3-4 { width: 75%; }
.fsm-col--1-6 { width: 16.6667%; }
.fsm-col--5-6 { width: 83.3333%; }
@media (max-width: 1140px) { :root { --fsm-gutter: 20px; --fsm-inner: 40px; } .fsm-col { padding-inline: 15px; } .fsm-container.fsm-cols { padding-inline: 20px; } }
@media (max-width: 767px) { .fsm-cols--2 > .fsm-col, .fsm-cols > [class*="fsm-col--"] { width: 100%; } }

/* ---------- Header ---------- */
.fsm-header { position: relative; z-index: 300; }
.fsm-header__bar {
	position: fixed; top: 0; left: 0; right: 0;
	height: calc(var(--fsm-header-h) + 1px);
	background: #fff;
	transition: height .25s;
}
.admin-bar .fsm-header__bar { top: 32px; }
body:not(.fsm-front) .fsm-header__bar { border-bottom: 1px solid #ededed; }
.fsm-main { padding-top: calc(var(--fsm-header-h) + 1px); }
.fsm-header__inner { display: flex; align-items: center; height: var(--fsm-header-h); transition: height .25s; }
.fsm-header__logo { flex: 0 0 auto; height: 100%; display: flex; align-items: center; margin-right: auto; }
.fsm-header__logo a { display: flex; align-items: center; height: 100%; }
.fsm-header__logo-img { display: block; width: auto; height: auto; max-height: min(70px, 100%); transition: max-height .25s; }
.fsm-header__logo-text { font-family: var(--fsm-font-head); font-size: 22px; color: var(--fsm-heading); text-transform: uppercase; }
.fsm-nav { height: 100%; }
.fsm-nav__list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.fsm-nav__list > li { position: relative; display: flex; align-items: center; height: 100%; margin: 0; }
.fsm-nav__list > li > a {
	display: block; padding: 2px 20px 0;
	font-size: 13px; font-weight: 600; line-height: 20px; text-transform: uppercase; color: var(--fsm-nav);
}
.fsm-nav__list > li > a::after {
	content: ""; display: block; width: 100%; height: 2px; margin-top: 0;
	background: var(--fsm-accent);
	transform: scale(0, 1); transform-origin: left center; opacity: 0;
	transition: all .15s ease-out;
}
.fsm-nav__list > li:hover > a::after,
.fsm-nav__list > li.current-menu-item > a::after,
.fsm-nav__list > li.current-menu-ancestor > a::after,
.fsm-nav__list > li.is-active > a::after { transform: scale(1, 1); opacity: 1; }
.fsm-nav__list > li > a:hover { color: var(--fsm-nav); }
.fsm-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 230px; margin: 0; padding: 0; list-style: none;
	background: #fff; border-top: 2px solid var(--fsm-accent); box-shadow: 0 20px 50px 10px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.fsm-nav__list li:hover > .sub-menu, .fsm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fsm-nav__list .sub-menu li { margin: 0; }
.fsm-nav__list .sub-menu a { display: block; padding: 10px 20px; font-size: 12px; line-height: 1.5; color: var(--fsm-nav); }
.fsm-nav__list .sub-menu a:hover { color: var(--fsm-accent); }

.fsm-social { position: absolute; top: 0; right: 15px; display: flex; gap: 4px; height: var(--fsm-header-h); margin: 0; padding: 0; list-style: none; transition: height .25s; }
.fsm-social li { margin: 0; }
.fsm-social__link {
	display: block; margin-top: 28px; padding: 8px; width: 34px; height: 34px; line-height: 16px;
	border: 1px solid #fff; border-radius: 25%;
	background: var(--fsm-social); color: #fff; transition: all .15s ease-in-out;
}
.fsm-social__link svg { display: block; width: 16px; height: 16px; fill: #fff; }
.fsm-social__link:hover { background: rgba(221, 153, 51, .56); border-color: rgba(221, 153, 51, .56); color: #fff; }

/* Header compatto dopo lo scroll (come lo sticky di Jupiter). */
@media (min-width: 1141px) {
	.fsm-header.is-sticky .fsm-header__bar { height: calc(var(--fsm-header-sticky) + 1px); }
	.fsm-header.is-sticky .fsm-header__inner, .fsm-header.is-sticky .fsm-social { height: var(--fsm-header-sticky); }
	.fsm-header.is-sticky .fsm-header__logo-img { max-height: var(--fsm-header-sticky); }
	.fsm-header.is-sticky .fsm-social__link { margin-top: 10.5px; }
	.fsm-section, .fsm-grid-wrap { scroll-margin-top: var(--fsm-header-sticky); }
}

/* Burger e menu mobile */
.fsm-burger { display: none; margin-left: 20px; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--fsm-nav); }
.fsm-burger__lines { position: relative; display: block; width: 18px; height: 14px; }
.fsm-burger__lines span { position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 0; transition: transform .2s, opacity .2s, top .2s; }
.fsm-burger__lines span:nth-child(1) { top: 0; }
.fsm-burger__lines span:nth-child(2) { top: 6px; }
.fsm-burger__lines span:nth-child(3) { top: 12px; }
.fsm-burger[aria-expanded="true"] .fsm-burger__lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.fsm-burger[aria-expanded="true"] .fsm-burger__lines span:nth-child(2) { opacity: 0; }
.fsm-burger[aria-expanded="true"] .fsm-burger__lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.fsm-mobile-nav { background: #fff; }
.fsm-mobile-nav__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ededed; }
.fsm-mobile-nav__list li { margin: 0; border-bottom: 1px solid #ededed; }
.fsm-mobile-nav__list a { display: block; padding: 15px 20px; font-size: 13px; font-weight: 600; line-height: 13px; text-transform: uppercase; color: var(--fsm-nav); }
.fsm-mobile-nav__list .sub-menu { margin: 0; padding: 0 0 0 15px; list-style: none; }
.fsm-mobile-nav__list .sub-menu li:last-child { border-bottom: 0; }

@media (max-width: 1140px) {
	.fsm-header__bar { position: relative; }
	.admin-bar .fsm-header__bar { top: 0; }
	.fsm-main { padding-top: 0; }
	.fsm-nav, .fsm-social { display: none; }
	.fsm-burger { display: block; }
	.fsm-header__logo-img { max-height: 30px; }
	.fsm-mobile-nav { position: relative; z-index: 20; }
}

/* ---------- Fascia titolo ---------- */
.fsm-intro { position: relative; padding: 15px 0; background: var(--fsm-intro-bg); font-family: var(--fsm-font-head); }
.fsm-intro .fsm-container { padding-inline: 0; }
.fsm-intro__title {
	margin: 25px 20px 15px; font-family: var(--fsm-font-head);
	font-size: 20px; font-weight: 400; line-height: 120%; letter-spacing: 2px; text-transform: uppercase; color: #4d4d4d;
}
@media (max-width: 1140px) { .fsm-intro .fsm-container { padding-inline: var(--fsm-gutter); } .fsm-intro__title { margin-inline: 0; } }

/* ---------- Pagine ---------- */
.fsm-page--content, .fsm-single, .fsm-archive { padding-block: 50px 30px; }
.fsm-page--content > .fsm-container, .fsm-single, .fsm-archive { padding-inline: var(--fsm-inner); }
.fsm-page--sections:not(.fsm-page--front) { padding-block: 30px; }
.fsm-entry::after { content: ""; display: table; clear: both; }
.fsm-text ul li, .fsm-text ol li { font-size: 14px; line-height: 1.66; }
.fsm-entry h3 { font-size: 24px; }
.fsm-entry iframe { display: block; }

/* ---------- Sezioni ---------- */
.fsm-section { position: relative; }
.fsm-section--pad { padding-top: var(--fsm-pt, 70px); padding-bottom: var(--fsm-pb, 70px); }
.fsm-section--tile { background-color: var(--fsm-section-color, transparent); background-image: var(--fsm-bg, none); background-repeat: repeat; background-position: left top; }
.fsm-section--cover { background-color: var(--fsm-section-color, #eee); background-image: var(--fsm-bg, none); background-size: cover; background-repeat: no-repeat; background-position: left top; }
@media (max-width: 767px) {
	.fsm-section--tile, .fsm-section--cover { background-image: var(--fsm-bg-m, var(--fsm-bg, none)); }
}

/* Copertina */
.fsm-hero {
	position: relative; display: flex; align-items: center; min-height: 100px; overflow: hidden;
	background-color: var(--fsm-hero-color, #7b1216);
}
.fsm-hero__media { display: block; width: 100%; }
.fsm-hero__img { display: block; width: 100%; height: auto; }
.fsm-hero__text { position: relative; z-index: 1; text-align: center; }
.fsm-hero--img .fsm-hero__text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
/* Schermi orizzontali dal tablet in su: copertina a tutto schermo come sul sito originale. */
@media (min-width: 768px) and (min-aspect-ratio: 4/3) {
	.fsm-hero--full { min-height: calc(100vh - var(--fsm-header-h)); min-height: calc(100svh - var(--fsm-header-h)); }
	.fsm-hero--full .fsm-hero__media { position: absolute; inset: 0; }
	.fsm-hero--full .fsm-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}
/* Smartphone e schermi verticali: l'immagine si adatta alla larghezza e si vede per intero. */
@media not all and (min-width: 768px) and (min-aspect-ratio: 4/3) {
	.fsm-hero--img { display: block; min-height: 0; }
}

/* Testo su sfondo */
.fsm-textsec--center .fsm-text { text-align: center; }
.fsm-page:not(.fsm-page--front) .fsm-textsec--plain .fsm-container { padding-inline: var(--fsm-inner); }
.fsm-textsec .fsm-text h2 { font-size: 30px; line-height: 39px; }
.fsm-textsec .fsm-text h4 { font-size: 18px; line-height: 23.4px; }
.fsm-textsec .fsm-text > div { font-size: 14px; }
.fsm-text .fsm-spacer { height: 40px; }

/* Riquadri colorati */
.fsm-boxes { display: grid; grid-template-columns: repeat(var(--fsm-boxes, 3), minmax(0, 1fr)); }
.fsm-box { padding: 30px 20px; background: var(--fsm-box-color, #dd9933); text-align: center; color: #fff; }
.fsm-box__icon { display: block; width: 130px; height: 130px; margin: 0 auto; line-height: 128px; border-radius: 50%; }
.fsm-box__icon a { color: #fff; display: block; }
.fsm-box__icon svg { width: 64px; height: 64px; fill: #fff; vertical-align: middle; }
.fsm-box__title { margin: 0; padding: 10px 0; font-family: var(--fsm-font-head); font-size: 20px; font-weight: 400; line-height: 26px; text-transform: uppercase; color: #fff; }
.fsm-box__title a, .fsm-box__title a:hover { color: #fff; }
.fsm-box__text { margin: 0 0 20px; font-size: 16px; color: #fff; }
@media (max-width: 767px) { .fsm-boxes { grid-template-columns: 1fr; } }

/* Due riquadri su foto */
.fsm-section__veil { position: absolute; inset: 0; background: #000; opacity: var(--fsm-veil, .3); pointer-events: none; }
.fsm-cards .fsm-container { position: relative; z-index: 1; }
.fsm-cards .fsm-cols { align-items: flex-start; }
.fsm-card-paper {
	padding: 30px;
	background: #fff var(--fsm-paper, none) repeat left top;
	border: 1px double #ccc;
}
.fsm-card-paper p { font-size: 16px; }
.fsm-card-paper p:last-child:has(img) { margin-bottom: 0; }
.fsm-card-paper ul { margin: 0 0 14px 21px; }
.fsm-card-paper ul li { margin-left: 11.9px; font-size: 14px; line-height: 23.24px; }
@media (max-width: 767px) { .fsm-cards .fsm-col + .fsm-col { margin-top: 30px; } }

/* Elenchi di articoli */
.fsm-posts-section { background: #fff; }
.fsm-posts-section__title { margin: 0 0 54px; font-size: 30px; line-height: 39px; font-weight: 600; text-transform: uppercase; }
.fsm-posts-section__title--center { text-align: center; }
.fsm-posts-section__title--left { text-align: left; }
.fsm-posts-section .fsm-grid-wrap + .fsm-posts-section__title { margin-top: 0; }
.fsm-grid-wrap { position: relative; margin-bottom: 40px; transition: opacity .2s; }
.fsm-grid-wrap.is-loading { opacity: .4; pointer-events: none; }

/* Loghi */
.fsm-logos { background: #fff; }
.fsm-logos--lines { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.fsm-logos__title { margin: 0 0 10px; text-align: center; font-size: 24px; line-height: 31.2px; font-weight: 600; text-transform: uppercase; }
.fsm-logos .fsm-text { padding-bottom: 40px; }
.fsm-logos__img { display: block; width: 100%; height: auto; }

/* Sezione modulo */
.fsm-formsec__title { margin: 0 0 54px; text-align: center; font-size: 30px; line-height: 39px; font-weight: 600; text-transform: uppercase; }

/* Luoghi */
.fsm-places { padding-block: 31px 10px; }
.fsm-places__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 20px; }
.fsm-container.fsm-places__grid { padding-inline: var(--fsm-gutter); }
.fsm-place { display: flex; align-items: flex-start; margin-bottom: 30px; min-height: 107px; }
.fsm-place__icon { flex: 0 0 64px; margin-right: 20px; color: var(--fsm-link); line-height: 1; }
.fsm-place__icon a { color: inherit; }
.fsm-place__svg { width: 64px; height: 64px; fill: currentColor; }
.fsm-place__body { flex: 1 1 auto; min-width: 0; padding-right: 15px; }
.fsm-place__body::after { content: ""; display: table; clear: both; }
.fsm-place__title { margin: 0 0 9px; font-size: 20px; line-height: 26px; font-weight: 400; color: var(--fsm-accent); text-transform: none; }
.fsm-place__title a, .fsm-place__title a:hover { color: var(--fsm-accent); }
.fsm-place p { margin: 0; }
.fsm-place__more { float: right; margin: 10px 15px 10px 0; font-size: 12px; line-height: 23.24px; color: var(--fsm-link); }
.fsm-place__more .fsm-icon { height: 16px; width: auto; padding-left: 8px; vertical-align: middle; }
@media (max-width: 767px) { .fsm-places__grid { grid-template-columns: 1fr; row-gap: 0; } }

/* Mappa */
.fsm-map { padding-bottom: 35px; }
.fsm-map .fsm-container { padding-inline: var(--fsm-inner); }
.fsm-map__frame { display: block; width: 100%; border: 0; }

/* Due colonne / testo + modulo */
.fsm-twocols .fsm-container, .fsm-textform .fsm-container { padding-inline: 0; }
.fsm-twocols .fsm-col, .fsm-textform .fsm-col { padding-inline: 20px; }
@media (max-width: 1140px) { .fsm-twocols .fsm-container, .fsm-textform .fsm-container { padding-inline: 20px; } }
.fsm-textform { margin-bottom: var(--fsm-mb, 180px); }
.fsm-textform__button { margin: 0 0 15px; }

/* Pulsante */
.fsm-button {
	display: inline-flex; align-items: center; max-width: 100%;
	padding: 20px 28px; background: var(--fsm-accent); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 1px; text-transform: uppercase;
	border-radius: 0; transition: background .1s ease-in-out, color .1s ease-in-out;
}
.fsm-button:hover { color: #fff; background: #f85f39; }
.fsm-button__icon { height: 16px; width: auto; margin: -2px 15px 0 0; fill: #fff; }

/* ---------- Griglia articoli (card) ---------- */
.fsm-grid { --fsm-cols: 4; display: grid; grid-template-columns: repeat(var(--fsm-cols), minmax(0, 1fr)); align-items: start; margin-inline: 0; }
.fsm-grid--3 { --fsm-cols: 3; }
.fsm-grid.is-masonry { display: block; position: relative; }
.fsm-grid.is-masonry > .fsm-card { position: absolute; top: 0; left: 0; width: calc(100% / var(--fsm-cols)); }
.fsm-card { padding: 0; }
.fsm-card__holder { margin: 0 8px 16px; background: #fff; border: 1px solid var(--fsm-border); }
.fsm-card__media { position: relative; overflow: hidden; height: 200px; background: #eee; }
.fsm-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: all .15s ease-in-out; }
.fsm-card__cover { position: absolute; inset: 0; z-index: 14; }
.fsm-card__overlay { position: absolute; inset: 0; z-index: 11; background: var(--fsm-accent); opacity: 0; transition: opacity .25s ease-in-out; }
.fsm-card__badge { position: absolute; left: 50%; top: 50%; z-index: 12; margin: -24px 0 0 -24px; opacity: 0; transition: opacity .25s ease-in-out; line-height: 0; }
.fsm-card__badge svg { height: 48px; width: 48px; fill: #fff; }
.fsm-card__media:hover .fsm-card__overlay { opacity: .8; }
.fsm-card__media:hover .fsm-card__badge { opacity: 1; }
.fsm-card__body { padding: 20px; line-height: 18px; }
.fsm-card__title { margin: 5px 0 10px; font-family: var(--fsm-font-head); font-size: 14px; font-weight: 600; line-height: 18px; letter-spacing: 0; text-transform: uppercase; color: var(--fsm-heading); }
.fsm-card__title a { color: var(--fsm-link); }
.fsm-card__title a:hover { color: var(--fsm-accent); }
.fsm-card__excerpt { margin: 5px 0; }
.fsm-card__excerpt p { margin: 0; font-size: 16px; line-height: 26.56px; color: var(--fsm-text); overflow-wrap: break-word; }
.fsm-card__footer { padding: 15px 20px; border-top: 1px solid var(--fsm-border); }
.fsm-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; line-height: 12px; color: var(--fsm-link); }
.fsm-card__more .fsm-icon { height: 8px; width: auto; }
@media (max-width: 1140px) { .fsm-grid { --fsm-cols: 3; } .fsm-grid--3 { --fsm-cols: 3; } }
@media (max-width: 960px) { .fsm-grid, .fsm-grid--3 { --fsm-cols: 2; } }
@media (max-width: 540px) { .fsm-grid, .fsm-grid--3 { --fsm-cols: 1; } }

/* ---------- Paginazione ---------- */
.fsm-pagination { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 65px 0 40px; }
.fsm-pagination__inner { display: flex; flex-wrap: wrap; align-items: center; }
.fsm-pagination__num, .fsm-pagination__arrow, .fsm-pagination__dots {
	display: inline-block; margin: 0 6px; padding: 10px 14px;
	font-size: 12px; font-weight: 700; line-height: 12px;
	color: rgba(0, 0, 0, .4); border: 2px solid transparent; transition: all .15s ease-in-out;
}
.fsm-pagination__num.is-current { border-color: rgba(0, 0, 0, .4); }
.fsm-pagination__num:hover, .fsm-pagination__arrow:hover { color: rgba(0, 0, 0, .7); border-color: rgba(0, 0, 0, .15); }
.fsm-pagination__arrow { padding-inline: 10px; }
.fsm-pagination__arrow svg { height: 16px; width: auto; fill: currentColor; margin-top: -2px; }
.fsm-pagination__arrow.is-hidden { visibility: hidden; }
.fsm-pagination__total { font-size: 14px; color: var(--fsm-text); white-space: nowrap; }
@media (max-width: 767px) { .fsm-pagination { flex-direction: column; } }

/* ---------- Articolo: post recenti e frecce laterali ---------- */
.fsm-single__article { margin: 10px 0 60px; }
.fsm-related { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 2px solid #ddd; }
.fsm-related__title { margin: 0 0 20px; font-family: var(--fsm-font); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 2px; text-align: center; text-transform: uppercase; color: var(--fsm-text); }
.fsm-related__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 0 5px; padding: 0; list-style: none; }
.fsm-related__item { margin: 0; }
.fsm-related__holder { margin: 0 10px 20px; border: 1px solid #efefef; overflow: hidden; }
.fsm-related__thumb { position: relative; display: block; height: 202px; overflow: hidden; background: #eee; }
.fsm-related__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fsm-related__thumb:hover .fsm-card__overlay { opacity: .8; }
.fsm-related__name { display: block; padding: 15px 10px; font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: 1px; text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fsm-link); }
@media (max-width: 960px) { .fsm-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .fsm-related__list { grid-template-columns: 1fr; } }

.fsm-postnav { position: fixed; top: 50%; z-index: 200; width: 260px; margin-top: -115px; color: var(--fsm-link); transition: all .6s cubic-bezier(.77, 0, .175, 1); }
.fsm-postnav--prev { left: -200px; }
.fsm-postnav--next { right: -200px; }
.fsm-postnav:hover { color: var(--fsm-link); }
.fsm-postnav--prev:hover, .fsm-postnav--prev:focus-visible { left: 0; }
.fsm-postnav--next:hover, .fsm-postnav--next:focus-visible { right: 0; }
.fsm-postnav__top { position: relative; display: block; height: 130px; }
.fsm-postnav__image { position: absolute; top: 0; display: block; width: 130px; height: 130px; background: #ddd; overflow: hidden; }
.fsm-postnav__image img { display: block; width: 130px; height: 130px; object-fit: cover; }
.fsm-postnav__icon { position: absolute; top: 0; display: flex; align-items: center; justify-content: center; width: 130px; height: 130px; background: rgba(0, 0, 0, .3); color: #fff; transition: background .3s ease-out; }
.fsm-postnav__icon svg { height: 16px; width: auto; fill: #fff; transition: transform .3s ease-in; }
.fsm-postnav--prev .fsm-postnav__image { left: 0; }
.fsm-postnav--prev .fsm-postnav__icon { right: 0; }
.fsm-postnav--prev .fsm-postnav__icon svg { transform: translate(30px, 0); }
.fsm-postnav--next .fsm-postnav__image { right: 0; }
.fsm-postnav--next .fsm-postnav__icon { left: 0; }
.fsm-postnav--next .fsm-postnav__icon svg { transform: translate(-30px, 0); }
.fsm-postnav:hover .fsm-postnav__icon svg { transform: none; }
.fsm-postnav:hover .fsm-postnav__icon { background: rgba(0, 0, 0, .5); }
.fsm-postnav__info { display: block; height: 90px; width: 260px; overflow: hidden; }
.fsm-postnav__bottom { display: block; height: 100%; background: rgba(255, 255, 255, .85); border: 1px solid #f0f0f0; opacity: 0; transform: translate(0, -50px); transition: all .3s ease-out .2s; }
.fsm-postnav--prev .fsm-postnav__bottom { text-align: left; }
.fsm-postnav--next .fsm-postnav__bottom { text-align: right; }
.fsm-postnav:hover .fsm-postnav__bottom { opacity: 1; transform: none; }
.fsm-postnav__title { display: block; padding: 20px 20px 0; font-size: 13px; font-weight: 700; line-height: 20px; text-transform: uppercase; color: var(--fsm-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsm-postnav__cat { display: block; padding: 5px 20px 0; font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1140px) { .fsm-postnav { display: none; } }

/* ---------- Moduli (stesso aspetto di Contact Form 7 sul tema originale) ---------- */
.fsm-form { position: relative; }
.fsm-form__row { margin: 0 0 10px; font-size: 16px; }
.fsm-form label { font-size: 16px; }
.fsm-form__wrap { position: relative; display: block; }
.fsm-form__privacy .fsm-form__wrap { display: inline; }
.fsm-form input[type="text"], .fsm-form input[type="email"], .fsm-form textarea {
	display: block; width: 100%; margin: 0 0 4px; padding: 10px 12px;
	font-family: var(--fsm-font); font-size: 13px; color: #767676;
	background: #fdfdfd; border: 1px solid var(--fsm-border); border-radius: 0; box-shadow: none;
	transition: border-color .15s ease-in-out;
}
.fsm-form input[type="text"], .fsm-form input[type="email"] { height: 42px; }
.fsm-form textarea { height: 262px; font-size: 16px; resize: vertical; }
.fsm-form input:focus, .fsm-form textarea:focus { outline: 0; border-color: #c1c1c1; }
.fsm-form input[type="checkbox"] { margin: 0 4px 0 0; vertical-align: middle; accent-color: var(--fsm-accent); }
.fsm-form__submit {
	display: inline-block; padding: 12px 15px; cursor: pointer;
	font-family: var(--fsm-font); font-size: 13px; font-weight: 700; line-height: 13px; letter-spacing: 1px; text-transform: uppercase;
	color: #fff; background: var(--fsm-dark); border: 0; border-radius: 0; transition: background .15s;
}
.fsm-form__submit:hover { background: #000; }
.fsm-form__submit[disabled] { opacity: .6; cursor: wait; }
.fsm-form__captcha { margin: 0 0 20px; min-height: 65px; }
.fsm-form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fsm-form__tip { display: block; margin-top: 2px; font-size: 14px; color: #dc3232; }
.fsm-form .is-invalid { border-color: #dc3232 !important; }
.fsm-form__response { margin: 2em .5em 1em; padding: .2em 1em; border: 2px solid #ff0000; font-size: 14px; }
.fsm-form__response.is-ok { border-color: #398f14; }
.fsm-form__response.is-error { border-color: #ff0000; }
.fsm-form__response.is-warn { border-color: #f7e700; }
.fsm-form__admin-warning { padding: 10px 14px; background: #fff3cd; border: 1px solid #f0c36d; color: #7a5a00; font-size: 14px; }

/* ---------- Ricerca ---------- */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form .search-field { flex: 1; height: 42px; padding: 10px 12px; border: 1px solid var(--fsm-border); background: #fdfdfd; font: inherit; }
.search-form .search-submit { padding: 0 16px; border: 0; background: var(--fsm-dark); color: #fff; font: 700 13px/1 var(--fsm-font); text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }

/* ---------- Footer ---------- */
.fsm-footer { background: var(--fsm-footer); color: #808080; }
.fsm-footer__sub { background: var(--fsm-subfooter); }
.fsm-footer__copy { margin: 0; padding: 25px 0 20px; font-size: 11px; line-height: 16px; letter-spacing: 1px; color: #ccc; }
.fsm-footer__copy a { color: inherit; }
.fsm-footer__copy a:hover { color: var(--fsm-accent); }
.fsm-footer .fsm-container { padding-inline: 15px; }
@media (max-width: 1140px) { .fsm-footer .fsm-container { padding-inline: 20px; } }

/* ---------- Torna su ---------- */
.fsm-totop {
	position: fixed; bottom: 15px; right: -60px; z-index: 300;
	width: 45px; height: 45px; background: rgba(0, 0, 0, .2); opacity: 0;
	transition: all .2s ease-in-out;
}
.fsm-totop.is-active { right: 15px; opacity: 1; }
.fsm-totop:hover { background: rgba(0, 0, 0, .3); }
.fsm-totop svg { position: absolute; top: 15px; left: 15px; width: 16px; height: 16px; fill: #fff; }

/* ---------- Stampa ---------- */
@media print {
	.fsm-header__bar { position: static; }
	.fsm-main { padding-top: 0; }
	.fsm-nav, .fsm-social, .fsm-burger, .fsm-mobile-nav, .fsm-totop, .fsm-postnav, .fsm-form, .fsm-formsec { display: none !important; }
}
