/*
 * Tema Marco Fragale – stili base.
 *
 * TUTTE le regole sono avvolte in :where() (specificità zero) e senza !important:
 * qualsiasi scelta fatta in Elementor (Impostazioni sito, widget, container) o nel CSS personalizzato
 * le sovrascrive sempre. Colori e font leggono le variabili globali di Elementor con un valore di riserva.
 */

/* ------------------------------------------------------------ Token */
:where(body) {
	--mf-gold: var(--e-global-color-primary, #F7C51E);
	--mf-gold-hover: var(--e-global-color-accent, #DAAA08);
	--mf-ink: var(--e-global-color-secondary, #000);
	--mf-text: var(--e-global-color-text, #696969);
	--mf-gold-text: var(--e-global-color-mfgoldtx, #8C6A00);
	--mf-light: var(--e-global-color-mflight, #EAEAEA);
	--mf-dark: var(--e-global-color-mfdark, #2D2D2D);
	--mf-deep: var(--e-global-color-mfdeep, #1E1E1E);
	--mf-line: var(--e-global-color-mfline, #8A8A8A);
	--mf-font-body: var(--e-global-typography-text-font-family, "Roboto"), "Helvetica Neue", Arial, sans-serif;
	--mf-font-head: var(--e-global-typography-primary-font-family, "Montserrat"), "Helvetica Neue", Arial, sans-serif;
	--mf-font-alt: var(--e-global-typography-secondary-font-family, "Open Sans"), "Helvetica Neue", Arial, sans-serif;
	--mf-ease-out: cubic-bezier(.22, 1, .36, 1);
	--mf-ease-std: cubic-bezier(.4, 0, .2, 1);
	--mf-ease-drawer: cubic-bezier(.7, 0, .3, 1);
	--mf-shadow-card: 0 18px 36px -12px rgba(0, 0, 0, .25);
	--mf-container: 1170px;
	--mf-gutter: 20px;
	--mf-header-h-min: 64px;
}

/* ------------------------------------------------------------ Base */
:where(html) { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mf-header-h-min) + 16px); }
:where(body) {
	margin: 0;
	background: #fff;
	color: var(--mf-text);
	font-family: var(--mf-font-body);
	font-size: 15px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(img, svg, video, iframe) { max-width: 100%; }
:where(img) { height: auto; }
:where(a) { color: var(--mf-gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
:where(a:hover) { color: var(--mf-ink); }
:where(h1, h2, h3, h4, h5, h6) { margin: 0 0 .6em; color: var(--mf-ink); font-family: var(--mf-font-head); line-height: 1.25; }
:where(p) { margin: 0 0 1em; }
:where(hr) { border: 0; border-top: 1px solid var(--mf-light); margin: 2em 0; }
:where(blockquote) { margin: 1.5em 0; padding: .2em 0 .2em 1.25em; border-left: 4px solid var(--mf-gold); font-style: italic; }
:where(table) { width: 100%; border-collapse: collapse; }
:where(th, td) { padding: 8px 10px; border-bottom: 1px solid var(--mf-light); text-align: left; }
:where(::selection) { background: var(--mf-gold); color: #000; }

/* Focus sempre visibile (anello nero + alone oro: leggibile su chiaro e scuro) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--mf-gold);
}
:where(.mf-main:focus, #mf-top:focus) { outline: none; box-shadow: none; }

/* Testo accessibile solo agli screen reader */
:where(.screen-reader-text) {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; word-wrap: normal;
}
:where(.mf-skip-link:focus) {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	position: fixed; left: 12px; top: 12px; z-index: 100000;
	padding: 12px 18px; background: #000; color: #fff; font-weight: 700; text-decoration: none;
}

:where(.mf-container) { width: 100%; max-width: calc(var(--mf-container) + var(--mf-gutter) * 2); margin-inline: auto; padding-inline: var(--mf-gutter); }
:where(.mf-section) { padding-block: 72px; }
:where(.mf-main) { display: block; min-height: 40vh; }

/* ------------------------------------------------------------ Header fisso che si riduce */
:where(.mf-site-header) { position: relative; z-index: 1000; background: #fff; transition: box-shadow .3s var(--mf-ease-std); }
:where(.mf-has-sticky-header .mf-site-header) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
:where(.mf-site-header) { box-shadow: 0 3px 3px rgba(0, 0, 0, .05); }
:where(.mf-site-header.is-scrolled) { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
/* Logo nell'header Elementor: aggiungi la classe CSS "mf-logo" al widget Immagine */
:where(.mf-site-header .mf-logo img) { transition: transform .3s var(--mf-ease-std); transform-origin: 0 50%; }
:where(.mf-site-header.is-scrolled .mf-logo img) { transform: scale(.78); }
:where(.mf-header-sentinel) { position: absolute; top: 120px; left: 0; width: 1px; height: 1px; pointer-events: none; }
@media (max-width: 600px) {
	:where(.mf-has-sticky-header .mf-site-header) { top: 0; }
}

/* Header/footer di riserva (senza Elementor) */
:where(.mf-fallback-header__inner) { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
:where(.mf-fallback-header__logo img, .mf-fallback-logo img) { display: block; max-height: 74px; width: auto; }
:where(.mf-fallback-nav ul) { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
:where(.mf-fallback-nav a) { color: #000; text-transform: uppercase; font-family: var(--mf-font-head); font-size: 12px; letter-spacing: 1px; text-decoration: none; }
:where(.mf-fallback-nav .sub-menu) { display: none; }
:where(.mf-fallback-footer) { background: var(--mf-deep); color: #969696; font-size: 13px; }
:where(.mf-fallback-footer__inner) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; }
:where(.mf-fallback-footer a) { color: #fff; }
:where(.mf-fallback-footer ul) { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; text-transform: uppercase; }

/* ------------------------------------------------------------ Barra di avanzamento + torna su */
:where(.mf-progress) { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 100001; height: 3px; pointer-events: none; }
:where(.mf-progress) span { display: block; height: 100%; background: var(--mf-gold); transform: scaleX(var(--mf-p, 0)); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
	:where(.mf-progress) span { animation: mfProgress linear both; animation-timeline: scroll(root); }
	@keyframes mfProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
:where(.mf-progress.is-hidden) { display: none; }

:where(.mf-totop) {
	position: fixed; right: 24px; bottom: 24px; z-index: 9990;
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: #000; color: var(--mf-gold);
	opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0);
	transition: opacity .25s var(--mf-ease-out), transform .25s var(--mf-ease-out), visibility 0s linear .25s, background-color .25s, color .25s;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
}
:where(.mf-totop.is-visible) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
:where(.mf-nav-open) .mf-totop { visibility: hidden; }
:where(.mf-totop:hover, .mf-totop:focus-visible) { background: var(--mf-gold); color: #000; transform: translate3d(0, -3px, 0); }
@media (max-width: 767px) { :where(.mf-totop) { right: 16px; bottom: 16px; } }

/* ------------------------------------------------------------ Banner titolo (template del tema) */
:where(.mf-page-title) {
	padding-block: 96px 72px;
	background-color: var(--mf-gold);
	background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 14px);
	color: #000; text-align: center;
}
:where(.mf-page-title__heading) { margin: 0 0 16px; color: #000; font-size: clamp(1.375rem, 1.208rem + .74vw, 1.875rem); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
:where(.mf-page-title__heading)::after { content: ""; display: block; width: 48px; height: 3px; margin: 14px auto 0; background: #000; transform-origin: 50% 50%; animation: mfLineIn .6s var(--mf-ease-out) .2s backwards; }
:where(.mf-page-title__crumbs) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: #1E1E1E; }
:where(.mf-page-title__crumbs a) { color: #1E1E1E; text-decoration: none; }
:where(.mf-page-title__crumbs a:hover) { text-decoration: underline; }
@keyframes mfLineIn { from { transform: scaleX(0); } }
@media (max-width: 1024px) { :where(.mf-page-title) { padding-block: 72px 56px; } }
@media (max-width: 767px) { :where(.mf-page-title) { padding-block: 48px 40px; } :where(.mf-section) { padding-block: 48px; } }

/* ------------------------------------------------------------ Articoli e archivi */
:where(.mf-entry--narrow) { max-width: calc(860px + var(--mf-gutter) * 2); }
:where(.mf-entry__meta) { margin-bottom: 16px; font-size: 13px; color: #737373; }
:where(.mf-entry__thumb) { margin: 0 0 28px; }
:where(.mf-entry__thumb img) { display: block; width: 100%; }
:where(.mf-entry__content) { font-size: 16px; line-height: 1.75; }
:where(.mf-entry__content) > :where(*) { margin-block: 0 1.1em; }
:where(.mf-entry__content h2, .mf-entry__content h3) { margin-top: 1.6em; }
:where(.mf-entry__content iframe) { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
:where(.mf-post-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1024px) { :where(.mf-post-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 767px) { :where(.mf-post-grid) { grid-template-columns: 1fr; gap: 20px; } }
:where(.mf-post-card) { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mf-light); transition: transform .4s var(--mf-ease-out), box-shadow .4s var(--mf-ease-out); }
:where(.mf-post-card__media) { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #f1f1f1; }
:where(.mf-post-card__media img) { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mf-ease-out); }
:where(.mf-post-card__body) { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px; }
:where(.mf-post-card__title) { margin: 0; font-size: 17px; }
:where(.mf-post-card__title a) { color: #000; text-decoration: none; }
:where(.mf-post-card__meta) { font-size: 13px; color: #737373; }
:where(.mf-post-card__excerpt p) { margin: 0; }
:where(.mf-post-card__more) { margin-top: auto; align-self: flex-start; color: var(--mf-gold-text); font-family: var(--mf-font-head); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
@media (hover: hover) {
	:where(.mf-post-card:hover) { transform: translateY(-6px); box-shadow: var(--mf-shadow-card); }
	:where(.mf-post-card:hover .mf-post-card__media img) { transform: scale(1.06); }
}
:where(.mf-pagination, .navigation.pagination) { margin-top: 40px; }
:where(.mf-pagination .nav-links, .navigation.pagination .nav-links) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
:where(.page-numbers) { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--mf-light); color: #000; text-decoration: none; }
:where(.page-numbers.current, a.page-numbers:hover) { background: var(--mf-gold); border-color: var(--mf-gold); color: #000; }
:where(.post-navigation .nav-links) { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--mf-light); }
:where(.post-navigation a) { color: #000; text-decoration: none; }
:where(.mf-nav-label) { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #737373; }
:where(.mf-404__code) { margin: 0; font-family: var(--mf-font-head); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; color: var(--mf-gold); }

/* ------------------------------------------------------------ Moduli: Contact Form 7, commenti, ricerca */
:where(.wpcf7-form, .comment-form, .search-form) label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #000; }
:where(.wpcf7-form, .comment-form, .search-form) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], textarea, select) {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--mf-line); border-radius: 0; background: #fff; color: #222;
	font: inherit; font-size: 16px; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}
:where(.wpcf7-form, .comment-form) textarea { min-height: 180px; resize: vertical; }
:where(.wpcf7-form, .comment-form, .search-form) :where(input, textarea, select):focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px var(--mf-gold); }
:where(.wpcf7-form p) { margin: 0 0 18px; }
:where(.wpcf7-form .mf-cf7-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 767px) { :where(.wpcf7-form .mf-cf7-grid) { grid-template-columns: 1fr; } }
:where(.wpcf7-form .mf-cf7-full) { grid-column: 1 / -1; }
:where(.wpcf7-submit, .comment-form .submit, .search-form .search-submit, .mf-button) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 14px 32px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--mf-gold); color: #000;
	font-family: var(--mf-font-head); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
	transition: background-color .25s, transform .15s, box-shadow .25s;
}
:where(.wpcf7-submit, .comment-form .submit, .search-form .search-submit, .mf-button):hover { background: var(--mf-gold-hover); color: #000; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
:where(.wpcf7-submit, .comment-form .submit, .mf-button):active { transform: translateY(1px); }
:where(.wpcf7-form .wpcf7-spinner) { margin: 0 0 0 12px; vertical-align: middle; }
:where(.wpcf7-not-valid) { border-color: #B3261E; border-width: 2px; }
:where(.wpcf7-not-valid-tip) { display: block; margin-top: 6px; color: #B3261E; font-size: 13px; }
:where(.wpcf7 form .wpcf7-response-output) { margin: 18px 0 0; padding: 14px 18px; border: 2px solid currentColor; font-size: 14px; }
:where(.wpcf7 form.sent .wpcf7-response-output) { color: #1E7B34; background: #EAF5EC; }
:where(.wpcf7 form:where(.invalid, .unaccepted, .failed, .spam, .aborted) .wpcf7-response-output) { color: #B3261E; background: #FCEEEE; }
:where(.wpcf7-acceptance .wpcf7-list-item) { margin: 0; }
:where(.wpcf7-acceptance label) { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--mf-text); }
:where(.wpcf7-acceptance input) { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
:where(.search-form) { display: flex; gap: 8px; max-width: 520px; }
:where(.mf-comments) { margin-top: 48px; }
:where(.mf-comments__list) { margin: 0 0 32px; padding: 0; list-style: none; }
:where(.mf-comments__list .comment-body) { padding: 20px 0; border-bottom: 1px solid var(--mf-light); }

/* ------------------------------------------------------------ Classi d'aiuto per Elementor
 * Si aggiungono in Avanzate → Classi CSS. Tutte rimovibili/sovrascrivibili.
 */

/* Titolo di sezione con barretta oro verticale (widget Titolo + classe "mf-title") */
/* (0,2,0): deve battere il CSS base del widget Titolo di Elementor (.elementor-heading-title { padding: 0 }) */
.mf-title .elementor-heading-title { position: relative; padding-left: 20px; }
.mf-title .elementor-heading-title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; background: var(--mf-gold); transform-origin: 50% 0; }
:where(.mf-title-center) .elementor-heading-title::after { content: ""; display: block; width: 48px; height: 3px; margin: 14px auto 0; background: var(--mf-gold); }

/* Link "Leggi tutto…" con sottolineatura che cresce (widget Pulsante o Testo + classe "mf-link") */
:where(.mf-link) :where(a, .elementor-button) {
	background-color: transparent;
	background-image: linear-gradient(var(--mf-sweep, var(--mf-gold)), var(--mf-sweep, var(--mf-gold)));
	background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px;
	transition: background-size .35s var(--mf-ease-out), color .25s;
}
:where(.mf-link) :where(a, .elementor-button):hover, :where(.mf-link) :where(a, .elementor-button):focus-visible { background-size: 100% 2px; }
:where(.mf-link .elementor-button-icon) { transition: transform .3s var(--mf-ease-out); }
:where(.mf-link .elementor-button:hover .elementor-button-icon) { transform: translateX(4px); }

/* Pulsante con riempimento da sinistra (classe "mf-btn-sweep" sul widget Pulsante) */
:where(.mf-btn-sweep .elementor-button) {
	background-image: linear-gradient(var(--mf-sweep, var(--mf-gold)), var(--mf-sweep, var(--mf-gold)));
	background-repeat: no-repeat; background-position: 0 0; background-size: 0 100%;
	transition: background-size .35s var(--mf-ease-out), color .3s, border-color .3s;
}
:where(.mf-btn-sweep .elementor-button:hover, .mf-btn-sweep .elementor-button:focus-visible) { background-size: 100% 100%; color: #000; }

/* Box icona (widget Image Box + classe "mf-iconbox") */
:where(.mf-iconbox) { position: relative; transition: transform .4s var(--mf-ease-out), box-shadow .4s var(--mf-ease-out); }
:where(.mf-iconbox)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mf-gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--mf-ease-out); z-index: 1; }
:where(.mf-iconbox) .elementor-image-box-img img { transition: transform .45s var(--mf-ease-out); }
@media (hover: hover) {
	:where(.mf-iconbox:hover) { transform: translateY(-6px); box-shadow: var(--mf-shadow-card); }
	:where(.mf-iconbox:hover)::before { transform: scaleX(1); }
	:where(.mf-iconbox:hover) .elementor-image-box-img img { transform: rotate(-6deg) scale(1.08); }
}
:where(.mf-iconbox:focus-within) { box-shadow: var(--mf-shadow-card); }
:where(.mf-iconbox:focus-within)::before { transform: scaleX(1); }

/* Copertina libro in 3D al passaggio (widget Immagine + classe "mf-book") */
:where(.mf-book) img { box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35); transition: transform .5s var(--mf-ease-out), box-shadow .5s var(--mf-ease-out); transform-origin: 0 50%; }
@media (hover: hover) and (min-width: 1025px) {
	:where(.mf-book:hover) img { transform: perspective(800px) rotateY(-8deg); box-shadow: 18px 26px 44px -14px rgba(0, 0, 0, .45); }
}

/* Video con effetto al passaggio (widget Video + classe "mf-video") */
:where(.mf-video) .elementor-wrapper { overflow: hidden; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .5); }
:where(.mf-video) .elementor-custom-embed-image-overlay { transition: transform .5s var(--mf-ease-out); }
@media (hover: hover) { :where(.mf-video:hover) .elementor-custom-embed-image-overlay { transform: scale(1.04); } }

/* Immagine che resta ferma mentre il testo scorre (classe "mf-sticky", da desktop) */
@media (min-width: 1025px) {
	/* (0,2,0): batte la regola generica .e-con di Elementor ma resta sotto le impostazioni del singolo elemento */
	.e-con.mf-sticky, :where(.mf-sticky) { position: sticky; top: calc(var(--mf-header-h-min, 64px) + 24px); align-self: flex-start; }
}

/* Immagine con zoom lento al passaggio (classe "mf-zoom") */
:where(.mf-zoom) .elementor-widget-container, :where(.mf-zoom.elementor-widget-image) { overflow: hidden; }
:where(.mf-zoom) img { transition: transform .8s var(--mf-ease-out); }
@media (hover: hover) { :where(.mf-zoom:hover) img { transform: scale(1.05); } }

/* Icone social con cerchio al passaggio (widget Icone social + classe "mf-social") */
:where(.mf-social) .elementor-social-icon { position: relative; isolation: isolate; transition: color .25s; }
:where(.mf-social) .elementor-social-icon::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #000; transform: scale(0); transition: transform .25s var(--mf-ease-out); }
:where(.mf-social) .elementor-social-icon:hover::before, :where(.mf-social) .elementor-social-icon:focus-visible::before { transform: scale(1); }
:where(.mf-social) .elementor-social-icon:hover i, :where(.mf-social) .elementor-social-icon:hover svg { color: var(--mf-gold); fill: var(--mf-gold); }

/* Colonne del footer: titoli con filetto oro (classe "mf-foot-title" sul widget Titolo) */
.mf-foot-title .elementor-heading-title { position: relative; padding-top: 14px; }
:where(.mf-foot-title) .elementor-heading-title::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 2px; background: var(--mf-gold); }
:where(.mf-foot-links) a { position: relative; transition: color .25s, padding-left .25s var(--mf-ease-out); }
:where(.mf-foot-links) a:hover { padding-left: 4px; }

/* Testo giustificato solo da desktop */
@media (min-width: 1025px) { :where(.mf-justify) { text-align: justify; hyphens: auto; } }

/* Citazione poetica */
:where(.mf-quote) { position: relative; }
:where(.mf-quote) .elementor-widget-container, :where(.mf-quote.elementor-widget-text-editor) { position: relative; }
:where(.mf-quote) p:first-child::before { content: "“"; position: absolute; left: -.55em; top: -.25em; font-family: Georgia, serif; font-size: 3.2em; line-height: 1; color: var(--mf-gold); opacity: .85; }

/* Banner titolo pagina con trama leggera (classe "mf-banner-texture" sul container) */
:where(.mf-banner-texture) { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 14px); }

/* Elenchi con puntino oro (classe "mf-list" sul widget Testo) */
:where(.mf-list) ul { margin: 0; padding: 0; list-style: none; }
:where(.mf-list) li { position: relative; margin: 0 0 .7em; padding-left: 22px; }
:where(.mf-list) li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-gold); box-shadow: 0 0 0 3px rgba(247, 197, 30, .25); }

/* ------------------------------------------------------------ Elementor: piccoli aggiustamenti neutri */
:where(.elementor-widget-text-editor) p:last-child { margin-bottom: 0; }
:where(.elementor-widget-video .elementor-wrapper) { background: #000; }

/* ------------------------------------------------------------ Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	:where(html) { scroll-behavior: auto; }
	:where(*, *::before, *::after) { transition-duration: 1ms; }
	:where(.mf-page-title__heading)::after { animation: none; }
	:where(.mf-progress) span { animation: none; }
}

/* ------------------------------------------------------------ Galleria fotografica
 * Classe "mf-gallery" sul widget Galleria di base di Elementor: zoom lento al passaggio del mouse.
 * Colonne, spaziatura e dimensione immagini restano nei controlli del widget.
 */
:where(.mf-gallery) .gallery-icon { overflow: hidden; background: #f1f1f1; }
:where(.mf-gallery) .gallery-icon img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--mf-ease-out), opacity .3s; }
@media (hover: hover) {
	:where(.mf-gallery) .gallery-icon a:hover img { transform: scale(1.06); }
	:where(.mf-gallery) .gallery-icon a:focus-visible img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { :where(.mf-gallery) .gallery-icon img { transition: none; } }

/* Briciole di pane del banner titolo: titoli lunghi degli articoli */
:where(.mf-page-title__crumbs) [aria-current="page"] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Link delle briciole nel banner oro: le Impostazioni sito → Link (0,1,1) li renderebbero oro su oro.
 * Specificità (0,2,1) solo per questi link del tema; colore modificabile con la variabile --mf-crumb. */
.mf-page-title .mf-page-title__crumbs a { color: var(--mf-crumb, #1E1E1E); }
.mf-page-title .mf-page-title__crumbs a:hover,
.mf-page-title .mf-page-title__crumbs a:focus-visible { color: var(--mf-crumb-hover, #000); }

/* Galleria "mf-gallery" responsive: la Galleria di base di Elementor sotto i 768px mostra 1 sola colonna
 * e sul tablet tiene le colonne del desktop. Con la classe mf-gallery: 2 colonne su telefono,
 * 3 su tablet (solo per gallerie da 4 colonne in su). Specificità (0,5,0): Elementor usa (0,4,0) sotto i 480px;
 * togliendo la classe dal widget torna il comportamento standard. */
@media (max-width: 767px) {
	.mf-gallery.elementor-widget-image-gallery .elementor-image-gallery .gallery .gallery-item { max-width: 50%; }
	.mf-gallery.elementor-widget-image-gallery .elementor-image-gallery .gallery.gallery-columns-1 .gallery-item { max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.mf-gallery.elementor-widget-image-gallery .elementor-image-gallery .gallery:is(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9, .gallery-columns-10) .gallery-item { max-width: 33.333%; }
}

