/*
Theme Name: DUE - Marina Fulgeri
Theme URI: https://weelab.net
Template: due
Author: Weevo
Author URI: https://weevo.it
Description: Tema figlio di DUE per Marina Fulgeri. Qui dentro vanno le personalizzazioni del progetto: il genitore resta aggiornabile.
Version: 1.18.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: due-marina-fulgeri
*/


/* ==========================================================================
   Grafica dal logo "Marina Fulgeri Studio": fondo bianco, il beige del fondo
   del logo (#e0dbd5) e un beige piu' scuro per pulsanti e accenti, il grigio
   caldo del logo (#6d6862) per i testi. Titoli come il logo: maiuscolo,
   sans serif geometrico (Josefin Sans), grigio con la copia nel colore del
   fondo sovrapposta e spostata (vedi "Titoli come il logo" qui sotto).
   ========================================================================== */

html:root {
  --color-primary: #6d6862;
  --color-secondary: #c9bfb2;
  --color-text: #6d6862;
  --color-bg: #ffffff;
  --color-bg-2: #ebe7e2;
  --mf-beige: #e0dbd5;
  --mf-greige: #e0dbd5;
  --mf-accento: #c9bfb2;          /* beige scuro: pulsanti, filetti, bordi */
  --mf-accento-testo: #9a8e7f;    /* beige scuro leggibile come testo */
  --mf-testo-forte: #4f4b46;      /* grigio caldo piu' fondo, sui pulsanti beige */
  --mf-tortora: #857f78;
  --font-headings: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --weight-headings: 300;
  --e-global-color-accent: #c9bfb2;
  --e-global-color-primary: #6d6862;
  --e-global-color-text: #6d6862;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  letter-spacing: .01em;
}

h1, h2, h3, h4,
.elementor-heading-title,
.due-split__title .elementor-heading-title {
  font-family: var(--font-headings);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a { color: var(--color-text); }
a:hover { color: var(--mf-accento-testo); }

/* Testata: logo di Marina su bianco, fascia menu nel beige del logo. */
.due-header__logo { background: #fff; }
.due-header__logo img { max-width: min(520px, 86vw); width: 100%; }
.due-header__mini img { max-height: 22px; }
.due-header__bar,
.due-header.elementor-sticky--effects {
  --background-color: var(--mf-beige);
  background-color: var(--mf-beige);
}
.due-header .elementor-nav-menu--dropdown { background-color: var(--mf-beige); }
.due-header__bar .elementor-nav-menu a,
.due-header .elementor-nav-menu .elementor-item {
  font-family: var(--font-headings);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--color-text);
  fill: var(--color-text);
}
.due-header .elementor-nav-menu .elementor-item:hover,
.due-header .elementor-nav-menu .elementor-item:focus,
.due-header .elementor-nav-menu .elementor-item.elementor-item-active,
.due-header .elementor-nav-menu .elementor-item.highlighted {
  background-color: var(--mf-accento);
  color: var(--mf-testo-forte);
}
.due-header .elementor-nav-menu--main .elementor-item::after,
.due-header .elementor-nav-menu--main .elementor-item::before { background-color: var(--mf-accento); }
.due-header .elementor-menu-toggle { color: var(--color-text); }

/* Piede nel grigio caldo: logo chiaro. */
.due-footer__logo img { filter: brightness(0) invert(1); opacity: .9; }

/* Nessuno sbordo orizzontale (clip non rompe la testata appiccicosa). */
html, body { overflow-x: clip; }
.due-footer a:hover { color: var(--mf-beige); }

/* Occhielli e filetti nel beige. */
.due-split__eyebrow .elementor-heading-title,
.due-eyebrow { color: var(--mf-tortora); font-family: var(--font-headings); letter-spacing: .2em; font-weight: 400; }
.due-split__title .elementor-heading-title::after { background: var(--mf-accento); }
.fascia-titolo__title { font-family: var(--font-headings); font-weight: 300; }
.fascia-titolo__text { color: var(--mf-tortora); letter-spacing: .12em; }

.due-bg-alt { background-color: var(--mf-beige); }

.elementor-button,
.due-btn {
  font-family: var(--font-headings);
  font-weight: 400;
  border-radius: 0;
  letter-spacing: .16em;
  text-transform: uppercase;
  background-color: var(--mf-accento);
  color: var(--mf-testo-forte);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.elementor-button:hover,
.due-btn:hover { background-color: var(--color-text); color: #fff; transform: translateY(-2px); }
.due-btn--ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.due-btn--ghost:hover { background: var(--mf-beige); color: var(--mf-testo-forte); }

/* Hero */
.due-hero__h1 { font-family: var(--font-headings); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.due-hero__p { font-family: var(--font-headings); letter-spacing: .2em; text-transform: uppercase; }
.due-hero .due-hero__img { transform: scale(1.12); will-change: transform; }

/* ---------- Titoli come il logo ----------
   Il logo di Marina e' fatto con due scritte uguali, tutte e due grigie:
   quella sopra ha un contorno sottile nel colore del fondo, quella sotto e'
   spostata a destra e sporge come un'ombra. Qui: il titolo vero (grigio
   #6d6862, peso 400) ha il contorno di 0,03em nel colore del fondo dietro al
   titolo (--mf-fondo) con paint-order: stroke fill, cosi' la lettera resta
   piena e il chiaro e' solo una linea; ::before (testo in data-mf-stencil,
   messo da movimento.js) e' la copia grigia sotto, spostata a destra di
   0,06em. Confronto col logo, 1:1 e ingrandito: strumenti/simula2.php.
   Sui titoli sopra le foto niente effetto: movimento.js non li tocca.
   Senza JavaScript i titoli restano grigi e normali. */
html:root { --mf-fondo: #ffffff; }
.due-bg-alt,
.due-split--reverse,
.mf-servizio:hover { --mf-fondo: var(--mf-beige); }
.due-bg-text,
.due-cta,
.due-footer { --mf-fondo: var(--color-text); }

.mf-stencil {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  font-weight: 400;
  letter-spacing: .08em;
  -webkit-text-stroke: .03em var(--mf-fondo);
  paint-order: stroke fill;
  transition: -webkit-text-stroke-color .4s ease;
}
.mf-stencil::before {
  content: attr(data-mf-stencil);
  content: attr(data-mf-stencil) / "";
  position: absolute;
  inset: 0;
  z-index: -1;
  color: inherit;
  -webkit-text-stroke: 0;
  transform: translateX(.06em);
  pointer-events: none;
}

/* ---------- Frase a lettere grandi ---------- */
.mf-frase { overflow: hidden; }
.mf-frase__wrap { padding: clamp(3rem, 8vw, 7rem) 0; }
.mf-frase__testo {
  font-family: var(--font-headings);
  font-size: clamp(1.8rem, 4.5vw, 4.25rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--mf-greige);
  margin: 0;
  transform: translate3d(var(--mf-x, 0px), 0, 0);
  will-change: transform;
}
.mf-frase__sotto {
  max-width: var(--container-width);
  margin: 1.5rem auto 0;
  padding: 0 20px;
  color: var(--mf-beige);
  font-family: var(--font-headings);
  letter-spacing: .12em;
  text-transform: lowercase;
}

/* ---------- Immagini che si aprono ---------- */
.mf-rivela { margin: 0; overflow: hidden; }
.mf-rivela__img { display: block; width: 100%; height: auto; }
html.mf-js .mf-rivela .mf-rivela__img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1), transform 1.6s cubic-bezier(.2, .7, .2, 1);
}
html.mf-js .mf-rivela.is-visibile .mf-rivela__img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ---------- Servizi ---------- */
.mf-servizio {
  height: 100%;
  padding: 2rem 1.75rem;
  border-top: 2px solid var(--color-text);
  background: #fff;
  transition: background-color .4s ease, transform .4s ease;
}
.mf-servizio:hover { background: var(--mf-greige); transform: translateY(-6px); }
.mf-servizio__n { font-family: var(--font-headings); color: var(--mf-accento-testo); }
.mf-servizio__titolo { font-size: 1.35rem; margin: .5rem 0 1rem; }
.mf-link { font-family: var(--font-headings); text-decoration: none; border-bottom: 1px solid var(--mf-accento); }

/* ---------- Mostre e testi ---------- */
.mf-mostre, .mf-testi { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.mf-mostre__voce {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--mf-greige);
}
.mf-mostre__anno { font-family: var(--font-headings); color: var(--mf-accento-testo); font-size: 1.2rem; }
.mf-mostre__titolo, .mf-testi__titolo { font-size: 1.2rem; margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .02em; }
.mf-mostre__voce p, .mf-testi__voce p { margin: 0; color: #5a5650; }
.mf-testi__voce { padding: 1.5rem 0 1.5rem 1.5rem; border-left: 2px solid var(--mf-greige); margin-bottom: 1rem; transition: border-color .3s; }
.mf-testi__voce:hover { border-left-color: var(--mf-accento); }
.mf-nota, .mf-intro { max-width: 760px; margin: 0 auto; text-align: center; color: var(--mf-tortora); }
.mf-intro { font-size: 1.15rem; color: var(--color-text); }
.mf-colonne { column-count: 2; column-gap: 3rem; max-width: 1000px; margin: 0 auto; }
@media (max-width: 767px) { .mf-colonne { column-count: 1; } }

/* ---------- Recapiti ---------- */
.mf-recapiti__voce { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--mf-greige); margin: 0; flex-wrap: wrap; }
.mf-recapiti__voce span { font-family: var(--font-headings); color: var(--mf-tortora); min-width: 4.5rem; text-transform: lowercase; }

/* ---------- Modulo di contatto ---------- */
.mf-modulo .elementor-form { background: var(--mf-greige); padding: clamp(1.25rem, 4vw, 2.5rem); }
.mf-modulo .elementor-field-label {
  font-family: var(--font-headings);
  color: var(--color-text);
  text-transform: lowercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.mf-modulo .elementor-field-group .elementor-field,
.mf-modulo .elementor-field-group .elementor-field-textual {
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-text);
  border: 0;
  border-bottom: 2px solid var(--mf-tortora);
  border-radius: 0;
  padding: .85rem 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.mf-modulo .elementor-field::placeholder { color: #9b958e; }
.mf-modulo .elementor-field:focus {
  outline: none;
  border-bottom-color: var(--mf-accento);
  box-shadow: 0 6px 18px -10px rgba(37, 37, 37, .35);
}
.mf-modulo .elementor-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-text);
  color: #fff;
  font-size: 1rem;
}
.mf-modulo .elementor-button:hover { background: var(--mf-accento); }
.mf-modulo .elementor-message { font-family: var(--font-headings); }
.mf-modulo .elementor-message-danger,
.mf-modulo .elementor-error .elementor-field { border-bottom-color: var(--mf-testo-forte); }
.mf-modulo .elementor-message-success { color: #2f6b3a; }

/* Galleria: didascalie leggibili */
.due-galleria .elementor-gallery-item__title { font-family: var(--font-headings); }
.due-galleria .elementor-gallery-title { font-family: var(--font-headings); text-transform: lowercase; }
.due-galleria .elementor-gallery-title.elementor-item-active,
.due-galleria .elementor-gallery-title:hover { color: var(--mf-accento-testo); }

/* ---------- Events ---------- */
.mf-mostre__tipo {
  font-family: var(--font-headings);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--mf-tortora);
  border: 1px solid var(--mf-greige);
  padding: .05rem .45rem;
  margin-right: .35rem;
}
.mf-tutti { max-width: 900px; margin: 1.5rem auto 0; text-align: right; }

/* ---------- Griglia delle opere ---------- */
.mf-filtri { display: none; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0 0 2rem; }
html.mf-filtri-on .mf-filtri { display: flex; }
.mf-filtri__voce {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: .3rem 0;
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--mf-tortora);
  cursor: pointer;
}
.mf-filtri__voce:hover,
.mf-filtri__voce.is-attivo { color: var(--color-text); border-bottom-color: var(--mf-accento); }
.mf-opere {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}
.mf-opere__voce.is-nascosta { display: none; }
.mf-opera { display: block; text-decoration: none; color: var(--color-text); }
.mf-opera__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mf-greige); }
.mf-opera__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
  filter: grayscale(.35);
}
.mf-opera:hover .mf-opera__img img,
.mf-opera:focus-visible .mf-opera__img img { transform: scale(1.06); filter: none; }
.mf-opera__testo { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--mf-greige); }
.mf-opera__titolo { font-family: var(--font-headings); font-size: 1.1rem; }
.mf-opera__anno { color: var(--mf-tortora); font-size: .9rem; text-align: right; }
.mf-opera:hover .mf-opera__titolo { color: var(--mf-accento-testo); }

/* ---------- Pagina dell'opera ---------- */
.mf-opera-pagina > .e-con-inner > .e-con:first-child { position: sticky; top: 120px; }
.mf-scheda { margin: 0 0 1.5rem; }
.mf-scheda__riga { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--mf-greige); }
.mf-scheda dt { font-family: var(--font-headings); color: var(--mf-tortora); text-transform: lowercase; }
.mf-scheda dd { margin: 0; }
.mf-opera-pagina__immagini { display: grid; gap: 24px; }
.mf-nav-opere {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 2px solid var(--color-text);
  padding-top: 1.5rem;
}
.mf-nav-opere a { text-decoration: none; font-family: var(--font-headings); }
.mf-nav-opere span { display: block; font-size: .8rem; color: var(--mf-tortora); letter-spacing: .1em; text-transform: lowercase; }
.mf-nav-opere__succ { text-align: right; }
.mf-nav-opere__tutte { border-bottom: 1px solid var(--mf-accento); }
@media (max-width: 767px) {
  .mf-opera-pagina > .e-con-inner > .e-con:first-child { position: static; }
  .mf-nav-opere { grid-template-columns: 1fr 1fr; }
  .mf-nav-opere__tutte { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .mf-scheda__riga { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Pagine di eventi e testi (stessa struttura delle opere) ---------- */
.mf-opera-pagina--testo > .e-con-inner > .e-con:first-child { position: static; max-width: 820px; margin: 0 auto; }
.mf-opera-pagina__fig figcaption { margin-top: .5rem; font-size: .9rem; color: var(--mf-tortora); }
.mf-collegati { margin-top: 2rem; }
.mf-collegati__titolo { font-size: 1rem; letter-spacing: .16em; color: var(--mf-tortora); margin: 0 0 .6rem; }
.mf-collegati ul { list-style: none; margin: 0; padding: 0; }
.mf-collegati li { padding: .35rem 0; }
.mf-testo-lungo { margin-top: 2rem; font-size: 1.08rem; line-height: 1.75; }
.mf-testo-lungo p { margin: 0 0 1.1em; }
.mf-mostre__titolo a,
.mf-testi__titolo a { text-decoration: none; color: inherit; }
.mf-mostre__titolo a:hover,
.mf-testi__titolo a:hover { color: var(--mf-accento-testo); }
.mf-testi__voce .mf-link { display: inline-block; margin-top: .6rem; }

/* ---------- Contact: solo email e Instagram ---------- */
.mf-recapiti--semplice { text-align: center; }
.mf-recapiti__email { margin: 1rem 0 1.5rem; font-family: var(--font-headings); font-size: clamp(1.3rem, 4.2vw, 2.4rem); letter-spacing: .06em; overflow-wrap: anywhere; }
.mf-recapiti__email a { text-decoration: none; border-bottom: 1px solid var(--mf-accento); }
.mf-recapiti__social { margin: 0; font-family: var(--font-headings); letter-spacing: .12em; text-transform: uppercase; }
.mf-recapiti__social a { text-decoration: none; }

/* Events senza eventi in programma; ancora della timeline in About. */
.mf-nessun-evento { max-width: 640px; }
.mf-ancora { scroll-margin-top: 140px; }

/* ---------- Hero di pietra: una parola alla volta, scolpita ----------
   Fatta a mano (markup in costruisci.php, regia in assets/js/scultura.js).
   La pietra e' un canvas generato alla risoluzione dello schermo; sotto, il
   suo colore medio come ripiego. Ogni parola: colore poco piu' scuro della
   pietra, ombra interna in alto a sinistra e luce sul bordo in basso a destra
   (text-shadow), il tutto proporzionato a --d (profondita'); la maschera
   segue --p (la luce radente che incide da sinistra a destra); --e e' l'erosione
   finale, --f la fine della frase. Senza JavaScript: la prima parola incisa. */
.mf-scultura-fascia,
.mf-scultura-fascia > .elementor-widget-html,
.mf-scultura-fascia .elementor-widget-container { padding: 0; margin: 0; }
.mf-scultura {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(90% 70% at 85% 80%, rgba(232, 214, 210, .35), transparent 70%),
    #e2deda;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.mf-scultura__pietra,
.mf-scultura__polvere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.mf-scultura__pietra { z-index: 0; opacity: 0; transition: opacity 1.4s ease; }
.mf-scultura.is-pietra .mf-scultura__pietra { opacity: 1; }
.mf-scultura__polvere { z-index: 3; }
/* Luce radente: una lama chiara che attraversa la pietra mentre incide. */
.mf-scultura__luce {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent calc(var(--luce, -.3) * 100% - 22%), rgba(255, 252, 248, .34) calc(var(--luce, -.3) * 100% - 4%), transparent calc(var(--luce, -.3) * 100% + 12%));
}
.mf-scultura__slide {
  --p: 1; --d: 1; --e: 0; --f: 1;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9vh 4vw 11vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.mf-scultura__slide.is-attiva { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.mf-scultura__parola {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-headings);
  font-weight: 400;
  font-size: var(--mf-fs, min(13vw, 26vh, calc(80vw / (var(--n, 8) * .72))));
  line-height: 1;
  letter-spacing: calc(.04em + var(--e) * .06em);
  text-transform: uppercase;
  white-space: nowrap;
  /* Scavata: dentro le lettere un'ombra interna (filtro SVG #mf-incisa, creato da scultura.js
     e misurato sulla parola) scurisce la parete alta del solco; sotto, il labbro di pietra
     preso dalla luce. Un'ombra solo in CSS dentro le lettere in Chrome le copriva di bianco. */
  color: #c2b8b0;
  color: color-mix(in srgb, #c2b8b0 calc(var(--d) * 100%), #e2deda);
  text-shadow:
    0 .02em 0 rgba(255, 255, 255, calc(var(--d) * .9)),
    0 .03em .02em rgba(255, 255, 255, calc(var(--d) * .5));
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 116% - 16%), transparent calc(var(--p) * 116% - 2%));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) * 116% - 16%), transparent calc(var(--p) * 116% - 2%));
  filter: url(#mf-incisa) blur(calc(var(--e) * 3px));
  opacity: calc(1 - var(--e) * var(--e));
}
/* Il bordo appena tagliato, acceso dalla luce radente. */
.mf-scultura__parola::after {
  content: attr(data-parola);
  content: attr(data-parola) / "";
  position: absolute;
  inset: 0;
  color: rgba(255, 253, 250, .9);
  text-shadow: 0 0 .08em rgba(255, 250, 242, .9);
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--p) * 116% - 22%), #000 calc(var(--p) * 116% - 7%), transparent calc(var(--p) * 116% - 2%));
  mask-image: linear-gradient(90deg, transparent calc(var(--p) * 116% - 22%), #000 calc(var(--p) * 116% - 7%), transparent calc(var(--p) * 116% - 2%));
  opacity: calc((1 - var(--p)) * 3);
  pointer-events: none;
}
.mf-scultura__resto {
  margin: clamp(1rem, 2.6vw, 2.4rem) 0 0;
  padding-left: .55em;
  font-family: var(--font-headings);
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  letter-spacing: .45em;
  text-transform: lowercase;
  white-space: nowrap;
  color: #8f857d;
  text-shadow: -1px -1px 0 rgba(78, 66, 58, .22), 1px 1px 0 rgba(255, 255, 255, .9);
  opacity: var(--f);
  transform: translateY(calc((1 - var(--f)) * 10px));
}
.mf-scultura__nav {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(1.4rem, 5vh, 3rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-headings);
  font-size: .85rem;
  letter-spacing: .2em;
  color: #6d6862;
  white-space: nowrap;
}
.mf-scultura__numero { color: #4f4b46; }
.mf-scultura__barre { display: flex; gap: .45rem; }
.mf-scultura__barra {
  position: relative;
  width: clamp(26px, 3.6vw, 52px);
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mf-scultura__barra span {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgba(109, 104, 98, .25);
  overflow: hidden;
  transition: background-color .3s ease;
}
.mf-scultura__barra span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #6d6862;
  transform: scaleX(0);
  transform-origin: left;
}
.mf-scultura__barra.is-attiva span::after { transform: scaleX(var(--avanza, 1)); }
.mf-scultura__barra:hover span { background: rgba(109, 104, 98, .5); }
.mf-scultura__barra:focus-visible { outline: 1px solid #6d6862; outline-offset: 2px; }
.mf-scultura.is-pausa .mf-scultura__barra.is-attiva span::after { background: #9a9189; }
/* Movimento ridotto: le parole sono gia' incise e cambiano con una dissolvenza. */
.mf-scultura.is-ridotto .mf-scultura__slide { transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.mf-scultura.is-ridotto .mf-scultura__slide.is-attiva { transition: opacity 1.1s ease; }
.mf-scultura.is-ridotto .mf-scultura__parola::after,
.mf-scultura.is-ridotto .mf-scultura__luce { display: none; }
@media (max-width: 767px) {
  .mf-scultura__resto { letter-spacing: .38em; padding-left: .38em; }
  .mf-scultura__nav { gap: .8rem; font-size: .75rem; }
}

/* Home: logo e menu stanno sulla pietra, trasparenti; scorrendo l'intestazione
   diventa beige chiaro con un leggero sfocato. Le altre pagine non cambiano. */
body.home .elementor-location-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
body.home .due-header,
body.home .due-header .due-header__logo,
body.home .due-header .due-header__bar {
  --background-color: transparent;
  background-color: transparent;
  box-shadow: none;
}
body.home .due-header.elementor-sticky--effects {
  --background-color: rgba(224, 219, 213, .84);
  background-color: rgba(224, 219, 213, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(109, 104, 98, .12);
}

/* ---------- Elsewhere ---------- */
.mf-altrove-frase {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-headings);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--color-text);
}
.mf-altrove-foto { display: block; }
.mf-altrove-foto img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mf-altrove-foto:hover img { transform: scale(1.03); }
.mf-citazione { margin: 1.5rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--mf-accento); font-style: italic; }
.mf-citazione p { margin: 0 0 .8em; }
.mf-citazione cite { display: block; font-style: normal; font-family: var(--font-headings); letter-spacing: .1em; color: var(--mf-tortora); font-size: .9rem; }

/* ---------- Movimento ridotto: tutto fermo e aperto ---------- */
@media (prefers-reduced-motion: reduce) {
  .mf-frase__testo { transform: none; white-space: normal; }
  html.mf-js .mf-rivela .mf-rivela__img { clip-path: none; transform: none; transition: none; }
  .due-hero .due-hero__img { transform: scale(1.12); }
}

/* Telefono: niente sbordi */
@media (max-width: 767px) {
  .mf-mostre__voce { grid-template-columns: 1fr; gap: .2rem; }
  .due-hero__h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}

/* ==========================================================================
   Testata con hamburger ovunque e menu a tendina da destra (10/11/2026,
   Gabriele: «ovunque l'hamburger menu con logo a sinistra e icona a destra»,
   «tieni il logo e il menu nel layout centrale 1140», e dopo la prima prova a
   tutto schermo: «fallo a tendina laterale a destra con le voci piu' piccole
   ma tieni l'effetto della luce»). Una sola barra: logo a sinistra,
   hamburger a destra, dentro la colonna di 1140px. La tendina e' una stanza
   buia con un fascio di luce che segue il puntatore: «la luce come
   strumento», il lavoro di Marina.
   Tutto sotto html.mf-js: senza JavaScript resta il menu di Elementor.
   ========================================================================== */

html.mf-js .due-header .due-header__logo,
html.mf-js .due-header .elementor-widget-nav-menu { display: none; }

html.mf-js .due-header .due-header__bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px max(20px, calc((100% - 1140px) / 2));
  min-height: 68px;
}
html.mf-js .due-header .due-header__mini {
  display: block !important;
  width: auto;
  max-width: 70%;
  margin: 0;
}
html.mf-js .due-header .due-header__mini img {
  display: block;
  width: auto;
  height: auto;
  max-height: 26px;
  max-width: min(360px, 60vw);
}

/* hamburger: tre linee sottili come i tratti del logo, quella centrale piu' corta */
.mf-burger {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mf-testo-forte);
  cursor: pointer;
}
.mf-burger span {
  position: absolute;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: width .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}
.mf-burger span:nth-child(1) { top: 16px; width: 28px; }
.mf-burger span:nth-child(2) { top: 23px; width: 18px; }
.mf-burger span:nth-child(3) { top: 30px; width: 28px; }
.mf-burger:hover span:nth-child(2),
.mf-burger:focus-visible span:nth-child(2) { width: 28px; }
.mf-burger:hover span:nth-child(1) { transform: translateY(-2px); }
.mf-burger:hover span:nth-child(3) { transform: translateY(2px); }
.mf-burger:focus-visible { outline: 1px solid var(--mf-accento); outline-offset: 2px; }
/* i pulsanti del tema hanno il fondo beige: qui niente fondo, in nessuno stato */
button.mf-burger, button.mf-burger:hover, button.mf-burger:focus, button.mf-burger:active,
button.mf-menu__chiudi, button.mf-menu__chiudi:hover, button.mf-menu__chiudi:focus, button.mf-menu__chiudi:active {
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0;
}

/* ---------- la tendina ---------- */
html.mf-menu-aperto, html.mf-menu-aperto body { overflow: hidden; }
/* senza barra di scorrimento la pagina non deve allargarsi sotto la tendina */
html.mf-menu-aperto { padding-right: var(--mf-sb, 0px); }

.mf-menu {
  --lx: 50%;
  --ly: 35%;
  --mf-buio: #26231f;
  --mf-luce: #f4efe8;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.mf-menu[hidden] { display: none; }

/* la pagina dietro si abbassa e si sfoca; toccandola la tendina si chiude */
.mf-menu__velo {
  position: absolute;
  inset: 0;
  background: rgba(38, 35, 31, .45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  cursor: pointer;
  transition: opacity .5s;
}
.mf-menu.is-aperto .mf-menu__velo { opacity: 1; }

.mf-menu__pannello {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  padding: 20px clamp(24px, 3vw, 44px) max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--mf-beige);
  background: var(--mf-buio);
  box-shadow: -30px 0 80px rgba(38, 35, 31, .35);
  transform: translateX(100%);
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.mf-menu.is-aperto .mf-menu__pannello { transform: none; }
/* una linea di luce sul bordo, come uno spiraglio */
.mf-menu__pannello::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(244, 239, 232, .35) var(--ly), transparent);
  pointer-events: none;
}

/* il fascio di luce: segue il puntatore, sotto le voci */
.mf-menu__luce {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 260px at var(--lx) var(--ly), rgba(244, 239, 232, .14), transparent 70%),
    radial-gradient(circle 70px at var(--lx) var(--ly), rgba(244, 239, 232, .10), transparent 70%);
}
/* grana leggera, come la pietra della home */
.mf-menu__pannello::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.mf-menu__testa {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.mf-menu__logo {
  font-family: var(--font-headings);
  font-weight: 300;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mf-beige);
}
.mf-menu__logo span { color: var(--mf-accento-testo); }
.mf-menu__logo:hover { color: var(--mf-luce); }

.mf-menu__chiudi {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mf-beige);
  cursor: pointer;
}
.mf-menu__chiudi span {
  position: absolute;
  left: 12px;
  top: 23px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1) .3s;
}
.mf-menu.is-aperto .mf-menu__chiudi span:nth-child(1) { transform: rotate(45deg); }
.mf-menu.is-aperto .mf-menu__chiudi span:nth-child(2) { transform: rotate(-45deg); }
.mf-menu__chiudi:hover { color: var(--mf-luce); }
.mf-menu__chiudi:focus-visible { outline: 1px solid var(--mf-accento); outline-offset: 2px; }

.mf-menu__nav {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 6vh, 3.5rem) 0;
}
.mf-menu__voci {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.mf-menu__voci li {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(224, 219, 213, .1);
}
.mf-menu__voci li:last-child { border-bottom: 1px solid rgba(224, 219, 213, .1); }

.mf-menu__voci a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: .85rem 0;
  text-decoration: none;
  color: var(--mf-beige);
  transform: translateX(40px);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s, color .35s;
}
.mf-menu.is-aperto .mf-menu__voci a {
  transform: none;
  opacity: 1;
  transition-delay: calc(.2s + var(--i) * .05s), calc(.2s + var(--i) * .05s), 0s;
}
.mf-menu__num {
  flex: none;
  width: 2em;
  font-family: var(--font-headings);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--mf-accento-testo);
}
.mf-menu__nome {
  position: relative;
  font-family: var(--font-headings);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: letter-spacing .5s cubic-bezier(.2, .7, .2, 1), color .35s, text-shadow .35s;
}

/* sotto il puntatore la voce prende luce, le altre si abbassano */
@media (hover: hover) {
  .mf-menu__voci:hover a { color: rgba(224, 219, 213, .4); }
  .mf-menu__voci a:hover { color: var(--mf-luce); }
  .mf-menu__voci a:hover .mf-menu__nome {
    letter-spacing: .28em;
    text-shadow: 0 0 18px rgba(244, 239, 232, .4);
  }
}
.mf-menu__voci a:focus-visible { outline: none; color: var(--mf-luce); }
.mf-menu__voci a:focus-visible .mf-menu__nome { text-shadow: 0 0 18px rgba(244, 239, 232, .4); }
.mf-menu__voci a.is-qui .mf-menu__num { color: var(--mf-luce); }
.mf-menu__voci a.is-qui .mf-menu__nome::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: .6rem;
  height: 1px;
  background: var(--mf-luce);
}

.mf-menu__piede {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-family: var(--font-headings);
  font-size: .68rem;
  line-height: 1.6;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mf-accento-testo);
  opacity: 0;
  transition: opacity .5s;
}
.mf-menu.is-aperto .mf-menu__piede { opacity: 1; transition-delay: .6s; }
.mf-menu__piede a { color: var(--mf-beige); text-transform: none; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid rgba(224, 219, 213, .3); }
.mf-menu__piede a:hover { color: var(--mf-luce); }

@media (prefers-reduced-motion: reduce) {
  .mf-menu__velo,
  .mf-menu__pannello,
  .mf-menu__voci a,
  .mf-menu__piede,
  .mf-menu__chiudi span { transition: none !important; }
  .mf-menu__luce { display: none; }
}

.mf-menu__pannello:focus { outline: none; }


/* Piede: l'email era grigia sul grigio del piede (la regola generale dei link vinceva sul bianco).
   10/11/2026, Gabriele: «l'indirizzo email non si vede perche' e' dello stesso colore dello sfondo». */
.due-footer .elementor-widget-text-editor a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.due-footer .elementor-widget-text-editor a:hover { color: var(--mf-beige); border-bottom-color: var(--mf-beige); }

/* Prefooter «An exhibition, a commission, a project» (modello DUE - Single, contenitore duesg20):
   piu' piccolo dappertutto, e niente in Contact, dove sei gia' (10/11/2026, Gabriele). */
.elementor-element-duesg20 .fascia-titolo__title { font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: .14em; }
body.page-id-46 .elementor-element-duesg20 { display: none; }

/* Blocchi ricostruiti con gli elementi v4 di Elementor (10/11/2026, perche' il cliente li modifichi
   dal pannello): i tag che il v4 non ha (dl, dt, dd, figure, blockquote, cite, ul, li) sono diventati
   div e paragrafi con le stesse classi; qui riprendono l'aspetto che avevano. */
.e-paragraph-base.mf-v4-p0, .e-paragraph-base.mf-v4-dt, .e-paragraph-base.mf-v4-dd, .e-paragraph-base.mf-v4-cite { margin: 0; }
.mf-scheda .mf-v4-dt { font-family: var(--font-headings); color: var(--mf-tortora); text-transform: lowercase; }
.mf-v4-dl.mf-scheda { margin: 0 0 24px; }
.mf-v4-blockquote.mf-citazione { margin: 24px 0; }
.mf-citazione .mf-v4-cite { display: block; font-style: normal; font-family: var(--font-headings); letter-spacing: .1em; color: var(--mf-tortora); font-size: .9rem; }

/* Piede tutto in Josefin Sans Light come il logo (10/11/2026, Gabriele: «usa il Josefin Sans Light
   anche per il footer»): prima mescolava Open Sans, Poppins e Karla. */
.elementor-location-footer,
.elementor-location-footer :is(h1, h2, h3, h4, h5, h6, p, a, li, span, .elementor-heading-title, .elementor-item) {
  font-family: var(--font-headings) !important;
  font-weight: 300 !important;
}
.elementor-location-footer :is(h2, h3, h4, .elementor-heading-title) { letter-spacing: .2em; }
.elementor-location-footer p, .elementor-location-footer a { letter-spacing: .04em; }


/* Elementi v4: gli stili di base di Elementor (.elementor .e-div-block-base { padding: 10px }, la classe
   e-con con position e display dei contenitori, margini azzerati a titoli e paragrafi, link dei
   paragrafi con all: unset, pulsanti blu) pesano piu' del CSS del tema. Qui sotto le regole del tema
   che toccano questi elementi, raccolte dalle pagine il 10/11/2026 e rese piu' forti tutte dello
   stesso tanto: vincono su Elementor e restano nel loro ordine. Valgono solo per gli elementi v4.
   Se si cambia una di quelle regole del tema, va cambiata anche qui. */

/* via gli stili di base: contenitori senza padding, pulsanti che sono link (Read the text →) */
html body .elementor.elementor .e-div-block-base { padding: 0; min-width: 0; }
html body .elementor.elementor .e-button-base { padding: 0; border-radius: 0; border-width: 0; background-color: transparent; text-align: inherit; display: inline; font: inherit; letter-spacing: inherit; }

/* un ex blocco HTML e' un contenitore che fa da widget: nei contenitori di Elementor prende tutta la
   larghezza come i widget, altrimenti i titoli finivano stretti a sinistra */
html body .elementor.elementor .e-con:not(.e-atomic-element) > :is(.e-div-block-base, .e-paragraph-base, .e-heading-base, .e-image-base, .e-button-base) {
  width: var(--container-widget-width, 100%);
  max-width: 100%;
  flex-grow: var(--container-widget-flex-grow, 0);
}
/* contenitore al posto di un <p> che aveva dentro solo uno span o un link con classe: i margini del paragrafo */
html body .elementor.elementor .mf-v4-p:is(.e-div-block-base) { margin: 0 0 1rem; }

html body .elementor.elementor h2:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 .75rem; }
html body .elementor.elementor h3:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 .75rem; }
html body .elementor.elementor p:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 1rem; }
html body .elementor.elementor a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { color: var(--color-primary, #E20714); text-decoration: none; transition: color .25s ease; }
html body .elementor.elementor a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base):hover { color: var(--color-secondary, #bc111b); }
html body .elementor.elementor .pt-60:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { padding-top: 60px; }
html body .elementor.elementor .pb-40:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { padding-bottom: 40px; }
@media (max-width: 768px) { html body .elementor.elementor .pt-60:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { padding-top: 40px; } }
@media (max-width: 768px) { html body .elementor.elementor .pb-40:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { padding-bottom: 25px; } }
html body .elementor.elementor :where(a, button, input, select, textarea):is(.e-paragraph-base a,.e-heading-base a,.e-button-base):focus-visible { outline-offset: 2px; }
html body .elementor.elementor .fascia-titolo:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { width: 100%; }
html body .elementor.elementor .fascia-titolo__container:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { max-width: var(--container-width, 75rem); margin: 0 auto; padding: 0 20px; }
html body .elementor.elementor .fascia-titolo__title:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 20px; }
html body .elementor.elementor .fascia-titolo__text:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 auto; }
html body .elementor.elementor .blocco-color:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { position: relative; display: block; width: 100%; overflow: hidden; min-height: 240px; }
html body .elementor.elementor .blocco-color .blocco-color__bg:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { display: block; }
html body .elementor.elementor .blocco-color__overlay-dark:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { position: absolute; inset: 0; z-index: 2; }
html body .elementor.elementor .blocco-color__hover-box:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { position: absolute; top: 50%; left: 50%; width: calc(100% - 40px); height: calc(100% - 40px); z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
html body .elementor.elementor .blocco-color__content:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { width: 100%; }
html body .elementor.elementor :is(.blocco-color__subtitle, .blocco-color__title, .blocco-color__paragraph):is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .blocco-color__title:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin-bottom: 5px; }
html body .elementor.elementor .blocco-color__subtitle:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin-bottom: 8px; }
html body .elementor.elementor .blocco-color__paragraph:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin-top: 10px; }
html body .elementor.elementor a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { color: var(--color-text); }
html body .elementor.elementor a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base):hover { color: var(--mf-accento-testo); }
html body .elementor.elementor .mf-rivela:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; overflow: hidden; }
html body .elementor.elementor .mf-rivela__img:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { display: block; }
html body .elementor.elementor .mf-servizio:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { height: 100%; padding: 2rem 1.75rem; }
html body .elementor.elementor .mf-servizio__titolo:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: .5rem 0 1rem; }
html body .elementor.elementor .mf-link:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { font-family: var(--font-headings); text-decoration: none; }
html body .elementor.elementor .mf-tutti:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { max-width: 900px; margin: 1.5rem auto 0; }
html body .elementor.elementor .elementor-widget-theme-post-content h2:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin-top: 2rem; }
html body .elementor.elementor .mf-scheda:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 1.5rem; }
html body .elementor.elementor .mf-scheda__riga:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; }
html body .elementor.elementor .mf-opera-pagina__immagini:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { display: grid; gap: 24px; }
@media (max-width: 767px) { html body .elementor.elementor .mf-scheda__riga:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { grid-template-columns: 1fr; gap: .2rem; } }
html body .elementor.elementor .mf-citazione:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 1.5rem 0; padding: 0 0 0 1.25rem; }
html body .elementor.elementor .mf-citazione p:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 .8em; }
html body .elementor.elementor .e-paragraph-base.mf-v4-dt:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .e-paragraph-base.mf-v4-dd:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .e-paragraph-base.mf-v4-cite:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .mf-v4-dl.mf-scheda:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 24px; }
html body .elementor.elementor .mf-v4-blockquote.mf-citazione:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 24px 0; }
html body .elementor.elementor .mf-colonne:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { column-gap: 3rem; max-width: 1000px; margin: 0 auto; }
html body .elementor.elementor .mf-testo-lungo:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin-top: 2rem; }
html body .elementor.elementor .mf-testo-lungo p:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 1.1em; }
html body .elementor.elementor .mf-testi:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 auto; padding: 0; max-width: 900px; }
html body .elementor.elementor .mf-testi__titolo:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 0 .3rem; }
html body .elementor.elementor .mf-testi__voce p:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .mf-testi__voce:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { padding: 1.5rem 0 1.5rem 1.5rem; margin-bottom: 1rem; }
html body .elementor.elementor .mf-testi__titolo a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { text-decoration: none; color: inherit; }
html body .elementor.elementor .mf-testi__titolo a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base):hover { color: var(--mf-accento-testo); }
html body .elementor.elementor .mf-testi__voce .mf-link:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { display: inline-block; margin-top: .6rem; }
html body .elementor.elementor .mf-altrove-frase:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 auto; }
html body .elementor.elementor .mf-altrove-foto:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { display: block; }
html body .elementor.elementor .mf-recapiti__email:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 1rem 0 1.5rem; }
html body .elementor.elementor .mf-recapiti__email a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { text-decoration: none; }
html body .elementor.elementor .mf-recapiti__social:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0; }
html body .elementor.elementor .mf-recapiti__social a:is(.e-paragraph-base a,.e-heading-base a,.e-button-base) { text-decoration: none; }
html body .elementor.elementor .mf-intro:is(.e-div-block-base,.e-paragraph-base,.e-heading-base,.e-image-base) { margin: 0 auto; }

/* Prefooter della home («A project, an exhibition, an idea?», sezione due-cta): in Josefin Sans Light
   come il piede, e l'email bianca: era grigia sul grigio (10/11/2026, Gabriele). */
.due-cta :is(.elementor-heading-title, .mf-stencil, p, a, .elementor-button, .elementor-button-text) {
  font-family: var(--font-headings) !important;
  font-weight: 300 !important;
}
.due-cta .elementor-heading-title { letter-spacing: .14em; }
.due-cta .elementor-button { letter-spacing: .2em; }
.due-cta p a[href^="mailto:"] { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.due-cta p a[href^="mailto:"]:hover { color: var(--mf-beige); border-bottom-color: var(--mf-beige); }

/* Nell editor di Elementor le foto con la comparsa (mf-rivela) restavano chiuse: Elementor ridisegna
   gli elementi e movimento.js non li vede piu. Li le foto sono sempre aperte (10/11/2026). */
body.elementor-editor-active .mf-rivela .mf-rivela__img { clip-path: none !important; transform: none !important; }

/* Lavori scelti in home (shortcode [mf_lavori_scelti], 10/11/2026): le carte di prima in una griglia,
   tre per riga come le tre colonne che c'erano, una sotto l'altra sul telefono. */
.elementor-widget.mf-lavori-scelti-widget { width: 100%; flex: 1 1 100%; }
.mf-lavori-scelti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 767px) { .mf-lavori-scelti { grid-template-columns: 1fr; } }

/* Prossimi eventi (shortcode [mf_eventi], 10/11/2026): l'elenco delle mostre, con la colonna della
   data piu' larga perche' un evento ha un intervallo e non solo l'anno. */
.mf-eventi .mf-mostre__voce { grid-template-columns: 11rem 1fr; }
.mf-eventi .mf-mostre__anno { font-size: 1rem; line-height: 1.5; }
.mf-eventi__luogo { font-family: var(--font-headings); letter-spacing: .06em; color: var(--mf-tortora) !important; margin-bottom: .3rem !important; }
.mf-eventi__link { margin-top: .5rem !important; }
@media (max-width: 767px) { .mf-eventi .mf-mostre__voce { grid-template-columns: 1fr; gap: .3rem; } }

/* Titolo sopra la foto delle pagine interne nel carattere dei titoli (Josefin Sans Light) invece di
   Poppins grassetto; sotto la foto il titolo ripetuto non c e piu (10/11/2026, Gabriele). */
.due-page-hero .elementor-heading-title { font-family: var(--font-headings) !important; font-weight: 300 !important; letter-spacing: .14em !important; }

/* Titoli sopra le foto sdoppiati come gli altri (10/11/2026, Gabriele): li' il fondo e' la foto, quindi
   il contorno che separa le due scritte e' un grigio scuro trasparente invece del colore del fondo. */
.due-page-hero { --mf-fondo: rgba(38, 35, 31, .55); }

/* Pagina di un evento: date, luogo e programma a sinistra, locandina a destra (sotto sul telefono) */
.mf-evento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; max-width: 1100px; margin: 0 auto; }
.mf-evento--locandina { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.mf-evento__quando { font-family: var(--font-headings); font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mf-testo-forte); margin: 0 0 .3rem; }
.mf-evento__quando span { font-size: .9rem; color: var(--mf-tortora); text-transform: none; }
.mf-evento__luogo { font-family: var(--font-headings); letter-spacing: .08em; color: var(--mf-tortora); margin: 0 0 1.5rem; }
.mf-evento__intro { font-size: 1.1rem; margin: 0 0 1.5rem; }
.mf-evento__contenuto h3 { font-size: 1.1rem; margin: 2rem 0 .8rem; }
.mf-evento__contenuto ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mf-evento__contenuto li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--mf-greige); margin: 0; }
.mf-evento__contenuto li strong { font-family: var(--font-headings); font-weight: 400; color: var(--mf-accento-testo); }
.mf-evento__link, .mf-evento__tutti { margin: 1rem 0 0; }
.mf-evento__locandina { margin: 0; position: sticky; top: 100px; }
.mf-evento__locandina img { display: block; width: 100%; height: auto; box-shadow: 0 20px 50px rgba(38, 35, 31, .18); }
.mf-mostre__titolo a { color: inherit; text-decoration: none; }
.mf-mostre__titolo a:hover { color: var(--mf-accento-testo); }
@media (max-width: 900px) { .mf-evento--locandina { grid-template-columns: minmax(0, 1fr); } .mf-evento__locandina { position: static; max-width: 520px; } }

/* Filtri dei lavori: il kit di Elementor da ai pulsanti il fondo beige, e senza padding le etichette
   erano schiacciate (10/11/2026, Gabriele). Padding da etichetta, e quella scelta in grigio scuro. */
.elementor-kit-5 .mf-filtri__voce { padding: .45rem 1rem; line-height: 1.3; border-bottom-width: 0; }
.elementor-kit-5 .mf-filtri__voce.is-attivo { background-color: var(--color-text); color: #fff; }

/* Pagina di un evento: spazio dalla foto e dai bordi */
.mf-evento { padding: clamp(2.5rem, 6vw, 4.5rem) 20px clamp(2rem, 5vw, 3.5rem); }

/* La foto in alto e l immagine in evidenza della pagina (modello DUE - Single, 10/11/2026). Negli eventi
   l immagine in evidenza e la locandina, che come sfondo largo si taglierebbe: li resta la foto di sempre. */
body.single-mf_evento .due-page-hero { background-image: url("/wp-content/uploads/2026/11/due-sfondo.jpg") !important; }

/* Titolo delle carte dei lavori scelti: si rimpicciolisce con la carta e non spezza le parole (il tema
   permette di andare a capo dentro una parola, e «DISLOCATION» lasciava sola la N, 10/11/2026). */
.mf-lavori-scelti .blocco-color { container-type: inline-size; }
.mf-lavori-scelti .blocco-color__title { font-size: min(2.2rem, 9.5cqi); overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Menu del piede: sempre l elenco delle voci, anche su tablet e telefono (Elementor lo chiudeva in
   un hamburger sotto i 1024px, 10/11/2026) */
.elementor-location-footer .elementor-menu-toggle, .elementor-location-footer .elementor-nav-menu--dropdown { display: none !important; }
.elementor-location-footer .elementor-nav-menu--main { display: block !important; }
