
/*
Theme Name: FoodMinds
Theme URI: https://foodminds.it
Author: FoodMinds
Description: Tema editoriale leggero per FoodMinds, pensato per progetti, consulenza, formazione e sviluppo prodotto nel food.
Version: 1.0.63
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: foodminds
*/

:root {
  --fm-ink: #182019;
  --fm-green: #35553a;
  --fm-green-soft: #7f9475;
  --fm-cream: #f6f1e7;
  --fm-sand: #e8dfcf;
  --fm-yellow: #e8b33d;
  --fm-white: #fffdf8;
  --fm-border: rgba(24,32,25,.13);
  --fm-radius: 28px;
  --fm-shadow: 0 18px 60px rgba(36,46,36,.08);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fm-white);
  color: var(--fm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto;
  object-fit: contain;
  background: transparent; }
.fm-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.fm-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.fm-section { padding: clamp(72px, 9vw, 128px) 0; }
.fm-section--soft { background: var(--fm-cream); }
.fm-section--green { background: var(--fm-green); color: white; }
.fm-eyebrow {
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .15em;
  font-weight: 700;
}
.fm-display {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 5.6vw, 6rem);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 0;
  font-weight: 400;
}
.fm-display em,
.fm-title em { color: var(--fm-green); font-weight: 400; }
.fm-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  font-weight: 400;
}
.fm-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.36rem);
  max-width: 640px;
  color: rgba(24,32,25,.78);
}
.fm-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  background: var(--fm-green) !important;
  color: white !important;
  border: 1px solid var(--fm-green);
  transition: transform .2s ease, opacity .2s ease;
}
.fm-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); opacity: .92; }
.fm-button--ghost {
  background: transparent !important;
  color: var(--fm-green) !important;
}
.fm-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid var(--fm-border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  font-size: .88rem;
}
.fm-hero {
  padding: clamp(54px, 6vw, 88px) 0 66px;
  overflow: hidden;
}
.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(540px, 1.12fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
}
.fm-hero-copy p { margin: 28px 0; }
.fm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fm-hero-visual {
  position: relative;
  border-radius: 48% 48% 34px 34px;
  overflow: hidden;
  background: var(--fm-cream);
}
.fm-hero-visual img { display: block; width: 100%; min-height: 520px; object-fit: cover; object-position: center; }
.fm-hero-note { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: rgba(24,32,25,.72); }
.fm-hero-note strong { display: block; color: var(--fm-ink); }

.fm-grid-4,
.fm-grid-3,
.fm-grid-2 {
  display: grid;
  gap: 22px;
}
.fm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fm-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 28px;
  min-height: 260px;
  box-shadow: var(--fm-shadow);
}
.fm-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 20px 0 10px;
  font-weight: 400;
}
.fm-card p { color: rgba(24,32,25,.72); }
.fm-icon {
  width: 70px; height: 70px;
  border-radius: 22px;
  background: var(--fm-cream);
  display: grid; place-items: center;
  font-size: 2rem;
}
.fm-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .88rem; }
.fm-link::after { content: "→"; }

.fm-icon--illustrated {
  background: transparent;
  width: 72px;
  height: 72px;
  border-radius: 0;
  padding: 0;
}
.fm-icon--illustrated img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.fm-project {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: 36px;
  overflow: hidden;
  background: var(--fm-green);
  color: white;
}
.fm-project img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.fm-project-copy { padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.fm-project-copy p { color: rgba(255,255,255,.76); }
.fm-project-copy .fm-button { background: white !important; color: var(--fm-green) !important; align-self: flex-start; }

.fm-method { counter-reset: step; }
.fm-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--fm-border);
}
.fm-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--fm-green);
}
.fm-step h3 { margin: 0 0 6px; }
.fm-step p { margin: 0; color: rgba(24,32,25,.68); }

.fm-person {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
}
.fm-person + .fm-person { margin-top: 30px; }
.fm-person img,
.fm-person-placeholder {
  width: 150px; height: 180px;
  object-fit: cover;
  border-radius: 42% 42% 24px 24px;
  background: linear-gradient(135deg, var(--fm-sand), var(--fm-green-soft));
}
.fm-person-placeholder {
  display: grid; place-items: center;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}
.fm-person h3 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; }
.fm-person small { color: var(--fm-green); font-weight: 700; }
.fm-person p { color: rgba(24,32,25,.68); }

.fm-page-hero {
  padding: clamp(70px, 9vw, 130px) 0 60px;
  border-bottom: 1px solid var(--fm-border);
}
.fm-page-hero .fm-title { max-width: 920px; }

.fm-contact-box {
  border-radius: 34px;
  padding: clamp(32px, 5vw, 72px);
  background: var(--fm-green);
  color: white;
}
.fm-contact-box p { color: rgba(255,255,255,.76); max-width: 600px; }
.fm-contact-box .fm-button { background: white !important; color: var(--fm-green) !important; }

.fm-post-card {
  border-top: 1px solid var(--fm-border);
  padding: 24px 0;
}
.fm-post-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0 0 8px; }

.fm-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,253,248,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,32,25,.08);
}
.fm-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fm-wordmark {
  font-size: 1.45rem;
  letter-spacing: -.04em;
}
.fm-wordmark strong { color: var(--fm-green); }
.fm-nav { display: flex; align-items: center; gap: 25px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fm-nav a:hover { color: var(--fm-green); }
.fm-menu-toggle { display: none; }
.fm-site-footer { border-top: 0; background: var(--fm-cream); }
.fm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .9fr;
  gap: 50px;
  padding: 70px 0;
}
.fm-footer-bottom {
  border-top: 1px solid var(--fm-border);
  padding: 18px 0;
  font-size: .78rem;
  color: rgba(24,32,25,.64);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.fm-footer-links { display: grid; gap: 9px; font-size: .9rem; }
.fm-legal { display: flex; gap: 18px; flex-wrap: wrap; }


@media (max-width: 1180px) {
  .fm-hero-grid { grid-template-columns: .92fr 1.08fr; }
  .fm-hero-visual img { min-height: 460px; }
}

@media (max-width: 960px) {
  .fm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fm-grid-3 { grid-template-columns: 1fr 1fr; }
  .fm-hero-grid, .fm-project { grid-template-columns: 1fr; }
  .fm-hero-visual { order: -1; }
  .fm-nav { display: none; }
  .fm-menu-toggle { display: inline-flex; }
  .fm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .fm-shell, .fm-narrow { width: min(100% - 28px, 1180px); }
  .fm-grid-4, .fm-grid-3, .fm-grid-2 { grid-template-columns: 1fr; }
  .fm-card { min-height: auto;
  object-fit: contain;
  background: transparent; }
  .fm-person { grid-template-columns: 110px 1fr; }
  .fm-person img, .fm-person-placeholder { width: 110px; height: 140px; }
  .fm-footer-grid { grid-template-columns: 1fr; }
  .fm-footer-bottom { flex-direction: column; }
  .fm-display { font-size: clamp(3.15rem, 17vw, 5rem); }
}

section[id] {
  scroll-margin-top: 96px;
}
.fm-nav a {
  transition: color .18s ease, opacity .18s ease;
}
.fm-nav a:focus-visible,
.fm-button:focus-visible {
  outline: 3px solid rgba(232,179,61,.55);
  outline-offset: 4px;
}


/* Team and mentor cards */
.fm-grid-3:has(.fm-person),
.fm-grid-2:has(.fm-person) {
  align-items: stretch;
}

.fm-grid-3 > .fm-person,
.fm-grid-2 > .fm-person {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--fm-border);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--fm-shadow);
  min-width: 0;
}

.fm-grid-3 > .fm-person + .fm-person,
.fm-grid-2 > .fm-person + .fm-person {
  margin-top: 0;
}

.fm-grid-3 > .fm-person img,
.fm-grid-3 > .fm-person .fm-person-placeholder,
.fm-grid-2 > .fm-person img,
.fm-grid-2 > .fm-person .fm-person-placeholder {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  background: linear-gradient(145deg, #ece6d9, #9caf8f);
}

.fm-grid-3 > .fm-person .fm-person-placeholder,
.fm-grid-2 > .fm-person .fm-person-placeholder {
  place-items: center;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: rgba(255,255,255,.96);
}

.fm-grid-3 > .fm-person > div:last-child,
.fm-grid-2 > .fm-person > div:last-child {
  padding: 24px 24px 28px;
  flex: 1;
}

.fm-grid-3 > .fm-person h3,
.fm-grid-2 > .fm-person h3 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.08;
  margin-bottom: 8px;
}

.fm-grid-3 > .fm-person small,
.fm-grid-2 > .fm-person small {
  display: block;
  line-height: 1.35;
  margin-bottom: 14px;
}

.fm-grid-3 > .fm-person p,
.fm-grid-2 > .fm-person p {
  margin: 0;
  line-height: 1.55;
}

/* Mentors remain two balanced cards, matching the founders' visual language. */
.fm-grid-2:has(.fm-person) {
  max-width: 820px;
}

@media (max-width: 960px) {
  .fm-grid-3:has(.fm-person) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fm-grid-2:has(.fm-person) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 640px) {
  .fm-grid-3:has(.fm-person),
  .fm-grid-2:has(.fm-person) {
    grid-template-columns: 1fr;
  }
  .fm-grid-3 > .fm-person img,
  .fm-grid-3 > .fm-person .fm-person-placeholder,
  .fm-grid-2 > .fm-person img,
  .fm-grid-2 > .fm-person .fm-person-placeholder {
    aspect-ratio: 5 / 4;
  }
}


/* Editorial rhythm v0.5 */
.fm-section {
  padding: clamp(88px, 10vw, 150px) 0;
}
.fm-section--soft {
  background: #f8f4ec;
}
.fm-card {
  box-shadow: none;
}
.fm-services-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fm-border);
  border: 1px solid var(--fm-border);
  border-radius: 28px;
  overflow: hidden;
}
.fm-service-editorial {
  background: var(--fm-white);
  padding: 34px;
  min-height: 290px;
}
.fm-service-editorial h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 28px 0 12px;
}
.fm-service-editorial p {
  color: rgba(24,32,25,.68);
  margin: 0;
}
.fm-project-feature {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 0;
  border: 1px solid var(--fm-border);
  border-radius: 34px;
  overflow: hidden;
  background: var(--fm-white);
}
.fm-project-feature__visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.fm-project-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-project-feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 34px;
  background: linear-gradient(180deg, transparent 45%, rgba(15,22,16,.74));
  color: white;
}
.fm-project-feature__overlay h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem,4vw,4.6rem);
  font-weight: 400;
}
.fm-project-feature__copy {
  padding: clamp(34px,4.8vw,72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fm-project-feature__copy p {
  color: rgba(24,32,25,.7);
}
.fm-photo-strip {
  margin-top: 22px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--fm-border);
}
.fm-photo-strip img {
  display:block;
  width:100%;
}
.fm-team-story {
  margin-top: 44px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--fm-border);
  background: var(--fm-cream);
}
.fm-team-story img {
  display:block;
  width:100%;
  aspect-ratio: 18 / 7;
  object-fit:cover;
}
.fm-team-story__caption {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:36px;
  padding:28px 32px 34px;
}
.fm-team-story__caption h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight:400;
  margin:0;
}
.fm-team-story__caption p {
  margin:0;
  color:rgba(24,32,25,.68);
}
.fm-founder-list {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:34px;
  margin-top:52px;
}
.fm-founder-card {
  border-top:1px solid var(--fm-border);
  padding-top:22px;
}
.fm-founder-card__portrait {
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center top;
  border-radius:28px;
  background:linear-gradient(145deg,#ece6d9,#9caf8f);
}
.fm-founder-card__placeholder {
  display:grid;
  place-items:center;
  font-family:Georgia,"Times New Roman",serif;
  font-size:3.4rem;
  color:white;
}
.fm-founder-card h3 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.75rem;
  font-weight:400;
  margin:20px 0 4px;
}
.fm-founder-card small {
  color:var(--fm-green);
  font-weight:700;
}
.fm-founder-card p {
  color:rgba(24,32,25,.68);
}
.fm-mentor-band {
  margin-top:84px;
  padding-top:34px;
  border-top:1px solid var(--fm-border);
}
.fm-mentor-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
  max-width:900px;
}
.fm-mentor {
  display:grid;
  grid-template-columns:92px 1fr;
  gap:18px;
  align-items:center;
}
.fm-mentor__portrait {
  width:92px;
  height:110px;
  border-radius:28px 28px 18px 18px;
  background:linear-gradient(145deg,#ece6d9,#9caf8f);
  display:grid;
  place-items:center;
  color:white;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.8rem;
}
.fm-mentor h3 {
  margin:0 0 4px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:1.45rem;
}
.fm-mentor p {
  margin:8px 0 0;
  color:rgba(24,32,25,.65);
  font-size:.93rem;
}
.fm-method-cards {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:38px;
}
.fm-method-card {
  border:1px solid var(--fm-border);
  border-radius:22px;
  padding:24px;
  background:var(--fm-white);
}
.fm-method-card span {
  color:var(--fm-green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.55rem;
}
.fm-method-card h3 {
  margin:8px 0 6px;
  font-size:1.05rem;
}
.fm-method-card p {
  margin:0;
  color:rgba(24,32,25,.65);
}
@media (max-width:960px){
  .fm-project-feature{grid-template-columns:1fr;}
  .fm-services-editorial{grid-template-columns:1fr;}
  .fm-founder-list{grid-template-columns:repeat(2,1fr);}
  .fm-team-story__caption{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .fm-founder-list,
  .fm-mentor-grid,
  .fm-method-cards{grid-template-columns:1fr;}
  .fm-team-story img{aspect-ratio:4/3;}
}


/* v0.6 — fixed header and restored proportions */

/* Header always visible */
.fm-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(24,32,25,.08);
}
body {
  padding-top: 79px;
}
body.admin-bar .fm-site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .fm-site-header {
    top: 46px;
  }
}

/* Return to the more balanced vertical rhythm of v0.4 */
.fm-section {
  padding: clamp(72px, 8vw, 118px) 0;
}
.fm-page-hero {
  padding: clamp(64px, 7vw, 105px) 0 54px;
}
.fm-hero {
  padding: clamp(46px, 5vw, 72px) 0 58px;
}
.fm-title {
  margin-bottom: 20px;
}

/* Service area: less tall and less card-like */
.fm-service-editorial {
  min-height: 245px;
  padding: 28px;
}
.fm-service-editorial h3 {
  margin-top: 22px;
  font-size: 1.65rem;
}

/* Cotolà feature: retain editorial treatment without dominating the page */
.fm-project-feature {
  grid-template-columns: 1.12fr .88fr;
}
.fm-project-feature__visual {
  min-height: 430px;
}
.fm-project-feature__copy {
  padding: clamp(32px, 4vw, 58px);
}
.fm-photo-strip {
  margin-top: 18px;
}
.fm-photo-strip img {
  max-height: 420px;
  object-fit: cover;
}

/* Method blocks regain compact proportions */
.fm-method-cards {
  gap: 12px;
  margin-top: 32px;
}
.fm-method-card {
  padding: 20px 22px;
}

/* Team section: wide story image, but less vertical weight */
.fm-team-story {
  margin-top: 36px;
}
.fm-team-story img {
  aspect-ratio: 18 / 6;
}
.fm-team-story__caption {
  padding: 24px 28px 28px;
}
.fm-founder-list {
  margin-top: 44px;
  gap: 28px;
}
.fm-founder-card__portrait {
  aspect-ratio: 4 / 4.65;
}
.fm-mentor-band {
  margin-top: 64px;
}

/* Anchor navigation must stop below the fixed header */
section[id] {
  scroll-margin-top: 102px;
}

@media (max-width: 960px) {
  .fm-project-feature {
    grid-template-columns: 1fr;
  }
  .fm-project-feature__visual {
    min-height: 390px;
  }
  .fm-team-story img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 72px;
  }
  .fm-section {
    padding: 64px 0;
  }
  .fm-hero {
    padding-top: 34px;
  }
  .fm-project-feature__visual {
    min-height: 330px;
  }
  .fm-photo-strip img {
    max-height: none;
  }
  .fm-team-story img {
    aspect-ratio: 4 / 3;
  }
}

.fm-site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(24,32,25,.08);
}


/* v0.7 — Chi siamo inspired by the approved early mockup */
.fm-about-hero {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.fm-about-hero__copy {
  max-width: 470px;
}
.fm-about-hero__visual {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--fm-border);
  background: var(--fm-cream);
}
.fm-about-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.fm-about-founders {
  margin-top: clamp(52px, 7vw, 86px);
}
.fm-about-founders .fm-founder-list {
  margin-top: 26px;
}
.fm-about-founders .fm-founder-card {
  border-top: 0;
  padding-top: 0;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--fm-border);
  border-radius: 26px;
  overflow: hidden;
}
.fm-about-founders .fm-founder-card__portrait {
  border-radius: 0;
  aspect-ratio: 4 / 4.7;
}
.fm-about-founders .fm-founder-card > h3,
.fm-about-founders .fm-founder-card > small,
.fm-about-founders .fm-founder-card > p {
  margin-left: 22px;
  margin-right: 22px;
}
.fm-about-founders .fm-founder-card > h3 {
  margin-top: 20px;
}
.fm-about-founders .fm-founder-card > p {
  margin-bottom: 24px;
}
.fm-about-mentors {
  margin-top: clamp(58px, 7vw, 82px);
}
.fm-about-mentors .fm-mentor-grid {
  margin-top: 24px;
  max-width: none;
}
.fm-about-mentors .fm-mentor {
  border: 1px solid var(--fm-border);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,.72);
}
.fm-network-cta {
  margin-top: clamp(58px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #718666, #93a27f);
  color: white;
  padding: clamp(30px, 5vw, 58px);
}
.fm-network-cta__copy {
  max-width: 620px;
}
.fm-network-cta h3 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 400;
}
.fm-network-cta p {
  color: rgba(255,255,255,.82);
  max-width: 540px;
}
.fm-network-cta .fm-button {
  background: white !important;
  color: var(--fm-green) !important;
}
.fm-network-cta__mark {
  min-height: 220px;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 100%;
}
.fm-network-cta__mark::before,
.fm-network-cta__mark::after,
.fm-network-cta__mark span {
  display: none;
}
.fm-network-cta__mark img {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 960px) {
  .fm-about-hero,
  .fm-network-cta {
    grid-template-columns: 1fr;
  }
  .fm-about-hero__copy {
    max-width: none;
  }
  .fm-network-cta__mark {
    min-height: 150px;
  }
  .fm-network-cta__mark img {
    width: min(100%, 340px);
  }
}


.fm-service-spot {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  background: #fffaf1;
  border: 1px solid var(--fm-border);
}
.fm-service-spot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}


.fm-service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}
.fm-service-page-hero__copy {
  max-width: 650px;
}
.fm-service-page-hero__visual {
  border-radius: 36px;
  overflow: hidden;
  background: #fffaf1;
  border: 1px solid var(--fm-border);
}
.fm-service-page-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
@media (max-width: 900px) {
  .fm-service-page-hero {
    grid-template-columns: 1fr;
  }
}


.fm-card .fm-icon--illustrated,
.fm-card .fm-icon--service-illustrated {
  width: 132px;
  height: 96px;
  margin-bottom: 18px;
}

.fm-card .fm-icon--illustrated img,
.fm-card .fm-icon--service-illustrated img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .fm-card .fm-icon--illustrated,
  .fm-card .fm-icon--service-illustrated {
    width: 116px;
    height: 88px;
  }
}


/* v0.8.9: correct enlargement for the actual Home service cards */
.fm-service-editorial .fm-icon--illustrated,
.fm-service-editorial .fm-icon--service-illustrated {
  width: 144px !important;
  height: 108px !important;
  max-width: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.fm-service-editorial .fm-icon--illustrated img,
.fm-service-editorial .fm-icon--service-illustrated img {
  width: 144px !important;
  height: 108px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 900px) {
  .fm-service-editorial .fm-icon--illustrated,
  .fm-service-editorial .fm-icon--service-illustrated,
  .fm-service-editorial .fm-icon--illustrated img,
  .fm-service-editorial .fm-icon--service-illustrated img {
    width: 128px !important;
    height: 96px !important;
  }
}


.fm-cotola-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.fm-cotola-city-cta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #667b5a, #8d9b73);
  color: white;
  padding: clamp(34px, 5vw, 66px);
}

.fm-cotola-city-cta__copy {
  max-width: 560px;
}

.fm-cotola-city-cta__copy .fm-eyebrow,
.fm-cotola-city-cta__copy p {
  color: rgba(255,255,255,.82);
}

.fm-cotola-city-cta__copy h2 {
  color: white;
}

.fm-cotola-city-cta__copy .fm-button {
  background: white !important;
  color: var(--fm-green) !important;
  border-color: white !important;
}

.fm-cotola-city-cta__visual {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-cotola-city-cta__visual img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border-radius: 26px;
}

@media (max-width: 900px) {
  .fm-cotola-city-cta {
    grid-template-columns: 1fr;
  }

  .fm-cotola-city-cta__visual {
    min-height: 0;
  }
}


/* v0.9.2 — Cotolà page refinement */
.fm-cotola-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.fm-cotola-hero__copy {
  max-width: 640px;
}

.fm-cotola-hero__visual {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--fm-border);
  background: var(--fm-cream);
}

.fm-cotola-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.fm-cotola-project {
  display: block;
}

.fm-cotola-project__visual {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--fm-border);
  background: var(--fm-cream);
}

.fm-cotola-project__visual img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.fm-cotola-project__copy {
  max-width: 760px;
  padding-top: clamp(30px, 4vw, 52px);
  text-align: left;
}

.fm-cotola-project__copy .fm-title,
.fm-cotola-project__copy p,
.fm-cotola-project__copy .fm-link {
  text-align: left;
}

.fm-cotola-city-band {
  width: 100%;
  background: linear-gradient(135deg, #667b5a, #8d9b73);
  color: white;
}

.fm-cotola-city-band__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.fm-cotola-city-band__copy {
  max-width: 560px;
}

.fm-cotola-city-band__copy .fm-eyebrow,
.fm-cotola-city-band__copy p {
  color: rgba(255,255,255,.82);
}

.fm-cotola-city-band__copy .fm-title {
  color: white;
}

.fm-cotola-city-band__copy .fm-button {
  background: white !important;
  color: var(--fm-green) !important;
  border-color: white !important;
}

.fm-cotola-city-band__visual {
  overflow: hidden;
  border-radius: 28px;
}

.fm-cotola-city-band__visual img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .fm-cotola-hero,
  .fm-cotola-city-band__inner {
    grid-template-columns: 1fr;
  }

  .fm-cotola-hero__visual img {
    min-height: 0;
  }

  .fm-cotola-city-band__visual {
    order: 2;
  }
}


/* v0.9.3 — Metodo home redesign */
.fm-method-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.fm-method-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 188px;
  padding: 28px 26px;
  border: 1px solid var(--fm-border);
  border-radius: 28px;
  background: rgba(255,255,255,.55);
}

.fm-method-card__icon img {
  display: block;
  width: 124px;
  height: 96px;
  object-fit: contain;
}

.fm-method-card__meta span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--fm-green);
  font-family: var(--fm-serif);
  margin-bottom: 12px;
}

.fm-method-card__meta h3 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2vw, 2.3rem);
  line-height: 1.05;
  font-weight: 500;
  font-family: var(--fm-serif);
}

.fm-method-card__meta p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.fm-method-cta-band {
  margin-top: 26px;
  border: 1px solid var(--fm-border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(250,248,241,.92));
  overflow: hidden;
}

.fm-method-cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
  padding: 34px 34px 28px;
}

.fm-method-cta-band__copy {
  max-width: 640px;
}

.fm-method-cta-band__copy .fm-title {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 10px;
}

.fm-method-cta-band__copy .fm-lead {
  margin-bottom: 18px;
}

.fm-method-cta-band__visual {
  justify-self: end;
}

.fm-method-cta-band__visual img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 980px) {
  .fm-method-cards {
    grid-template-columns: 1fr;
  }

  .fm-method-card {
    grid-template-columns: 100px 1fr;
    gap: 18px;
    min-height: auto;
  object-fit: contain;
  background: transparent;
  }

  .fm-method-card__icon img {
    width: 92px;
    height: 76px;
  }

  .fm-method-cta-band__inner {
    grid-template-columns: 1fr;
  }

  .fm-method-cta-band__visual {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .fm-method-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .fm-method-card__icon img {
    width: 96px;
    height: 72px;
  }

  .fm-method-cta-band__inner {
    padding: 24px 20px;
  }
}


/* v0.9.4 — exact approved method illustrations */
.fm-method-card {
  grid-template-columns: 160px 1fr;
}

.fm-method-card__icon img {
  width: 150px;
  height: 124px;
  object-fit: contain;
}

.fm-method-cta-band__visual img {
  max-width: 280px;
  border-radius: 26px;
}

@media (max-width: 980px) {
  .fm-method-card {
    grid-template-columns: 118px 1fr;
  }

  .fm-method-card__icon img {
    width: 108px;
    height: 92px;
  }
}


/* v0.9.5 — method images fully visible */
.fm-method-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.fm-method-card__icon img {
  width: 160px !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}

@media (max-width: 980px) {
  .fm-method-card__icon img {
    width: 118px !important;
    height: auto !important;
  }
}


/* v0.9.6 — CTA idea illustration fully visible */
.fm-method-cta-band__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.fm-method-cta-band__visual img {
  max-width: 320px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}

@media (max-width: 980px) {
  .fm-method-cta-band__visual img {
    max-width: 220px !important;
  }
}


/* v1.0.3 — Chi siamo visual without double frame */
.fm-about-hero__visual {
  border: 0 !important;
  background: transparent !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}
.fm-about-hero__visual img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
}


/* v1.0.4 — Idee editorial archive */
.fm-ideas-hero {
  padding: clamp(72px, 9vw, 128px) 0 clamp(42px, 6vw, 72px);
  border-bottom: 1px solid var(--fm-border);
}
.fm-ideas-hero .fm-title { max-width: 900px; }
.fm-ideas-index {
  padding: clamp(48px, 7vw, 92px) 0;
}
.fm-ideas-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fm-idea-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--fm-border);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
}
.fm-idea-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  background: var(--fm-cream);
}
.fm-idea-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-idea-card__body {
  padding: 24px;
}
.fm-idea-card .wp-block-post-date {
  margin: 0 0 10px;
  color: var(--fm-green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fm-idea-card .wp-block-post-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
  line-height: 1.05;
  font-weight: 400;
}
.fm-idea-card .wp-block-post-excerpt {
  margin: 0;
  color: rgba(24,32,25,.72);
}
.fm-idea-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--fm-green);
  font-weight: 700;
}
.fm-ideas-empty {
  padding: 34px;
  border: 1px solid var(--fm-border);
  border-radius: 24px;
  background: var(--fm-cream);
}
.fm-article {
  padding: clamp(68px, 9vw, 120px) 0;
}
.fm-article__header,
.fm-article__content,
.fm-article__image {
  width: min(900px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.fm-article__header .wp-block-post-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.05em;
}
.fm-article__header .wp-block-post-date {
  color: var(--fm-green);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fm-article__image {
  margin-top: 38px;
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 30px;
}
.fm-article__image img { width: 100%; height: auto; display: block; }
.fm-article__content {
  font-size: 1.12rem;
  line-height: 1.75;
}
.fm-article__content h2,
.fm-article__content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
@media (max-width: 900px) {
  .fm-ideas-grid { grid-template-columns: 1fr; }
}


/* v1.0.5 — Home hero emphasis */
.fm-display strong {
  color: var(--fm-green);
  font-weight: 700;
  font-style: normal;
}


/* v1.0.6 — Hero Home semplificata */
.fm-hero-copy .fm-hero-actions {
  margin-top: 2px;
}


/* v1.0.7 — logo ufficiale Cotolà nella card progetto in home */
.fm-project-feature__overlay .fm-cotola-logo {
  display: block;
  width: clamp(150px, 26vw, 270px);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* v1.0.8 — full Cotolà wordmark in home + prototype support visual */
.fm-project-feature__overlay .fm-cotola-logo {
  width: clamp(180px, 32vw, 290px);
  max-width: 72%;
  height: auto;
  display: block;
}

.fm-photo-strip img[src*="cotola-prototype"] {
  background: transparent;
  object-fit: contain;
  max-height: 340px;
  padding: 18px;
}


/* v1.0.13 — mobile navigation + floating CTA + Cotolà gallery fix */
.fm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fm-header-cta {
  display: inline-flex;
}

.fm-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  background: rgba(255,253,248,.96);
  color: var(--fm-ink);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24,32,25,.06);
}

.fm-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.fm-mobile-overlay {
  display: none;
}

.fm-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  background: rgba(255,253,248,.98);
  backdrop-filter: blur(14px);
  box-shadow: -16px 0 44px rgba(24,32,25,.12);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 120;
  box-sizing: border-box;
}

.fm-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.fm-mobile-menu__title {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(24,32,25,.62);
}

.fm-mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fm-border);
  border-radius: 14px;
  background: var(--fm-white);
  color: var(--fm-ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.fm-mobile-nav {
  display: grid;
  gap: 8px;
}

.fm-mobile-nav a {
  display: block;
  padding: 14px 12px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.fm-mobile-nav a:hover,
.fm-mobile-nav a:focus-visible {
  background: rgba(53,85,58,.08);
  color: var(--fm-green);
  outline: none;
}

.fm-mobile-parliamone {
  display: none;
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 110;
  box-shadow: 0 14px 32px rgba(24,32,25,.14);
}

body.fm-mobile-menu-open {
  overflow: hidden;
}

body.fm-mobile-menu-open .fm-mobile-menu {
  transform: translateX(0);
}

body.fm-mobile-menu-open .fm-mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(24,32,25,.26);
  z-index: 115;
}

@media (max-width: 960px) {
  .fm-header-inner {
    gap: 12px;
  }

  .fm-nav {
    display: none;
  }

  .fm-header-cta {
    display: none;
  }

  .fm-hamburger {
    display: inline-flex;
  }

  .fm-mobile-parliamone {
    display: inline-flex;
  }
}

@media (min-width: 961px) {
  .fm-mobile-menu,
  .fm-mobile-overlay,
  .fm-mobile-parliamone {
    display: none !important;
  }
}


/* v1.0.16 — force corrected Cotolà strip, reliable mobile menu, footer articles */
#progetti .fm-photo-strip {
  aspect-ratio: 2 / 1;
  background: var(--fm-cream) url("assets/images/cotola-gallery-v4.webp") center / cover no-repeat;
}

#progetti .fm-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.fm-footer-grid {
  grid-template-columns: 1.25fr .72fr .95fr .88fr;
  align-items: start;
}

.fm-footer-posts {
  display: grid;
  gap: 13px;
  margin-top: 12px;
}

.fm-footer-post {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fm-border);
}

.fm-footer-post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fm-footer-post time {
  color: rgba(24,32,25,.55);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.fm-footer-post span {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.fm-footer-post:hover span {
  color: var(--fm-green);
}

.fm-footer-empty {
  margin-top: 12px;
  color: rgba(24,32,25,.62);
  font-size: .88rem;
}

/* The old database header used fm-menu-toggle for the mail button.
   Never allow that legacy class to replace the hamburger on mobile. */
.fm-menu-toggle {
  display: none !important;
}

@media (max-width: 1100px) {
  .fm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .fm-hamburger {
    display: inline-flex !important;
  }

  .fm-mobile-parliamone {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .fm-footer-grid {
    grid-template-columns: 1fr;
  }

}


/* v1.0.17 — definitive Cotolà panels and mobile CTA positioning */
#progetti .fm-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  aspect-ratio: auto;
  min-height: 360px;
  overflow: hidden;
  background: var(--fm-cream);
  gap: 0;
}

#progetti .fm-photo-strip::before,
#progetti .fm-photo-strip::after {
  content: none !important;
}

#progetti .fm-photo-panel {
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  background: var(--fm-cream);
}

#progetti .fm-photo-panel img,
#progetti .fm-photo-strip > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1 !important;
  object-fit: cover;
  background: transparent;
}

#progetti .fm-photo-panel--storefront {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-sizing: border-box;
  background: #f7f4ee;
}

#progetti .fm-photo-panel--storefront img {
  min-height: 0;
  height: auto;
  max-height: 92%;
  object-fit: contain;
}

.fm-mobile-parliamone {
  position: fixed !important;
  right: calc(16px + env(safe-area-inset-right)) !important;
  bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  z-index: 110;
}

.fm-hamburger {
  position: relative;
  z-index: 45;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .fm-header-cta,
  .fm-menu-toggle {
    display: none !important;
  }

  .fm-hamburger {
    display: inline-flex !important;
  }

  body > .fm-mobile-parliamone {
    display: inline-flex !important;
  }
}

@media (max-width: 720px) {
  #progetti .fm-photo-strip {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #progetti .fm-photo-panel {
    min-height: 300px;
  }

  #progetti .fm-photo-panel img,
  #progetti .fm-photo-strip > img {
    min-height: 300px;
  }

  #progetti .fm-photo-panel--storefront {
    min-height: 270px;
    padding: 18px;
  }
}


/* v1.0.18 — stable Cotolà strip asset + clearer separation between Home sections */
#progetti {
  background: #f1f3eb;
  border-top: 1px solid rgba(53,85,58,.08);
  border-bottom: 1px solid rgba(53,85,58,.08);
}

#progetti .fm-photo-strip {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 45 / 17;
  overflow: hidden;
  border-radius: 26px;
  background: #f7f4ee url("assets/images/cotola-gallery-v3.webp?fm=1018") center / cover no-repeat;
}

#progetti .fm-photo-strip > * {
  display: none !important;
}

#progetti .fm-photo-strip > img.fm-cotola-gallery-composite {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

@media (max-width: 720px) {
  #progetti .fm-photo-strip {
    aspect-ratio: 2.25 / 1;
  }
}


/* v1.0.20 — rebuild the Cotolà strip even when old database markup leaves
   the three images outside their original wrapper. */
#progetti img[src*="cotola-panel-"] {
  display: none !important;
}

#progetti .fm-photo-strip.fm-photo-strip--panels {
  display: grid !important;
  grid-template-columns: 1.16fr 1fr .92fr;
  width: 100%;
  height: clamp(320px, 31vw, 430px);
  min-height: 0;
  aspect-ratio: auto;
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--fm-border);
  border-radius: 26px;
  background: #f7f4ee;
}

#progetti .fm-photo-strip.fm-photo-strip--panels > * {
  display: block !important;
}

#progetti .fm-photo-strip--panels .fm-photo-panel {
  display: block !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

#progetti .fm-photo-strip--panels .fm-photo-panel--storefront {
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  padding: 0;
  background: #f7f4ee;
}

#progetti .fm-photo-strip--panels img.fm-photo-panel__image {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

#progetti .fm-photo-strip--panels .fm-photo-panel--storefront img.fm-photo-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  #progetti .fm-photo-strip.fm-photo-strip--panels {
    grid-template-columns: 1fr;
    height: auto;
  }

  #progetti .fm-photo-strip--panels .fm-photo-panel {
    height: min(84vw, 420px);
  }

  #progetti .fm-photo-strip--panels .fm-photo-panel--storefront {
    height: min(72vw, 360px);
  }
}


/* v1.0.21 — Iubenda legal links, kept visually consistent with the custom footer */
.fm-legal a,
.fm-legal .iubenda-white,
.fm-legal .iubenda-embed,
.fm-legal .iubenda-cs-preferences-link {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}

.fm-legal a:hover,
.fm-legal .iubenda-cs-preferences-link:hover {
  color: var(--fm-green) !important;
}


/* v1.0.24 — remove WordPress flow gaps between the Home sections */
.home .wp-site-blocks > *,
.home .wp-block-post-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.home .wp-block-post-content > p:empty,
.home .wp-block-post-content > .wp-block-spacer:empty {
  display: none !important;
}

.home #progetti {
  border-bottom: 0;
}

.home #contatti,
.home .fm-site-footer,
.home .wp-site-blocks > .wp-block-template-part:last-child {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.home .fm-site-footer {
  border-top: 0;
}


/* v1.0.27 — keep the native iubenda control free on mobile */
@media (max-width: 640px) {
  body > .fm-mobile-parliamone {
    right: calc(16px + env(safe-area-inset-right)) !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    z-index: 108 !important;
  }
}


/* v1.0.28 — tighter mobile CTA spacing and a warmer branded mobile menu */
@media (max-width: 640px) {
  body > .fm-mobile-parliamone {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .fm-mobile-menu {
    background:
      radial-gradient(circle at 92% 8%, rgba(232,179,61,.22), transparent 28%),
      linear-gradient(180deg, #edf2e8 0%, #fffdf8 38%, #f6f1e7 100%);
    border-left: 1px solid rgba(53,85,58,.12);
  }

  .fm-mobile-menu__header {
    margin: -4px -4px 22px;
    padding: 10px 8px 16px;
    border-bottom: 1px solid rgba(53,85,58,.12);
  }

  .fm-mobile-menu__title {
    color: var(--fm-green);
    font-size: .9rem;
    letter-spacing: .14em;
  }

  .fm-mobile-menu__title::before {
    content: "FOOD";
    font-weight: 900;
    color: var(--fm-green);
    margin-right: 0;
  }

  .fm-mobile-menu__title::after {
    content: "MINDS";
    font-weight: 700;
    color: var(--fm-ink);
  }

  .fm-mobile-menu__title {
    font-size: 0;
  }

  .fm-mobile-menu__title::before,
  .fm-mobile-menu__title::after {
    font-size: 1rem;
  }

  .fm-mobile-menu__close {
    background: var(--fm-green);
    color: #fffdf8;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(53,85,58,.18);
  }

  .fm-mobile-nav {
    gap: 10px;
  }

  .fm-mobile-nav a {
    position: relative;
    padding: 15px 16px 15px 46px;
    border: 1px solid rgba(53,85,58,.11);
    background: rgba(255,253,248,.78);
    box-shadow: 0 8px 22px rgba(53,85,58,.05);
  }

  .fm-mobile-nav a::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--fm-green-soft);
    box-shadow: 0 0 0 6px rgba(127,148,117,.12);
  }

  .fm-mobile-nav a:nth-child(3n+2)::before {
    background: var(--fm-yellow);
    box-shadow: 0 0 0 6px rgba(232,179,61,.13);
  }

  .fm-mobile-nav a:nth-child(3n)::before {
    background: var(--fm-green);
    box-shadow: 0 0 0 6px rgba(53,85,58,.11);
  }

  .fm-mobile-nav a:hover,
  .fm-mobile-nav a:focus-visible {
    background: #fffdf8;
    transform: translateX(-2px);
    box-shadow: 0 12px 28px rgba(53,85,58,.09);
  }
}


/* v1.0.29 — minimal mobile menu with dedicated line icons and exact wordmark */
@media (max-width: 640px) {
  .fm-mobile-menu {
    border-left: 0;
    box-shadow: -12px 0 36px rgba(24,32,25,.10);
  }

  .fm-mobile-menu__header {
    margin: -4px -4px 16px;
    padding: 10px 8px 12px;
    border-bottom: 0;
  }

  .fm-mobile-menu__wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.45rem;
    letter-spacing: -.04em;
    line-height: 1;
  }

  .fm-mobile-menu__wordmark strong {
    color: var(--fm-green);
  }

  .fm-mobile-menu__title {
    display: none !important;
  }

  .fm-mobile-nav {
    gap: 2px;
  }

  .fm-mobile-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 11px 10px 11px 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }

  .fm-mobile-nav a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 0;
    transform: translateY(-50%);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: none;
  }

  .fm-mobile-nav a:nth-child(1)::before { background-image: url("assets/images/menu-progetti.svg"); }
  .fm-mobile-nav a:nth-child(2)::before { background-image: url("assets/images/menu-consulenza.svg"); }
  .fm-mobile-nav a:nth-child(3)::before { background-image: url("assets/images/menu-corsi.svg"); }
  .fm-mobile-nav a:nth-child(4)::before { background-image: url("assets/images/menu-ricerca.svg"); }
  .fm-mobile-nav a:nth-child(5)::before { background-image: url("assets/images/menu-chi-siamo.svg"); }
  .fm-mobile-nav a:nth-child(6)::before { background-image: url("assets/images/menu-idee.svg"); }
  .fm-mobile-nav a:nth-child(7)::before { background-image: url("assets/images/menu-contatti.svg"); }

  .fm-mobile-nav a:hover,
  .fm-mobile-nav a:focus-visible {
    background: rgba(53,85,58,.065);
    color: var(--fm-green);
    transform: translateX(2px);
    box-shadow: none;
  }
}


/* v1.0.30 — mobile menu aligned to the site illustration style */
@media (max-width: 640px) {
  .fm-mobile-menu {
    background: #fffdf8 !important;
    backdrop-filter: none;
    border-left: 1px solid rgba(24,32,25,.08);
    box-shadow: -16px 0 40px rgba(24,32,25,.10);
  }

  .fm-mobile-menu__header {
    position: relative;
    margin: 0 0 16px !important;
    padding: 2px 0 14px !important;
    border-bottom: 1px solid rgba(24,32,25,.08);
  }

  .fm-mobile-menu__wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.48rem;
    letter-spacing: -.045em;
    line-height: 1;
    color: var(--fm-ink);
  }

  .fm-mobile-menu__wordmark strong {
    color: var(--fm-green);
  }

  .fm-mobile-menu__close {
    background: transparent;
    color: var(--fm-ink);
    border: 1px solid rgba(24,32,25,.10);
    box-shadow: none;
  }

  .fm-mobile-nav {
    gap: 4px;
  }

  .fm-mobile-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 10px 10px 10px 68px;
    border: 0 !important;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fm-ink);
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }

  .fm-mobile-nav a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 50px;
    height: 36px;
    transform: translateY(-50%);
    border-radius: 0;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: none !important;
  }

  .fm-mobile-nav a:nth-child(1)::before { background-image: url("assets/images/menu-progetti-v31.webp"); }
  .fm-mobile-nav a:nth-child(2)::before { background-image: url("assets/images/menu-consulenza-v31.webp"); }
  .fm-mobile-nav a:nth-child(3)::before { background-image: url("assets/images/menu-corsi-v31.webp"); }
  .fm-mobile-nav a:nth-child(4)::before { background-image: url("assets/images/menu-ricerca-v31.webp"); }
  .fm-mobile-nav a:nth-child(5)::before { background-image: url("assets/images/menu-chi-siamo-v31.webp"); }
  .fm-mobile-nav a:nth-child(6)::before { background-image: url("assets/images/menu-idee-v31.webp"); }
  .fm-mobile-nav a:nth-child(7)::before { background-image: url("assets/images/menu-contatti-v31.webp"); }

  .fm-mobile-nav a:hover,
  .fm-mobile-nav a:focus-visible {
    background: rgba(53,85,58,.06) !important;
    color: var(--fm-green);
    transform: translateX(2px);
    box-shadow: none !important;
  }
}


/* v1.0.31 — free-form menu illustrations without boxed edges */
@media (max-width: 640px) {
  .fm-mobile-nav a::before {
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }
}


/* v1.0.32 — final mobile menu icons: free-form illustrated symbols, no boxed edges */
@media (max-width: 640px) {
  .fm-mobile-menu {
    background: #fffdf8 !important;
    backdrop-filter: none !important;
    border-left: 1px solid rgba(24,32,25,.08) !important;
    box-shadow: -16px 0 40px rgba(24,32,25,.10) !important;
  }

  .fm-mobile-menu__header {
    margin: 0 0 16px !important;
    padding: 2px 0 14px !important;
    border-bottom: 1px solid rgba(24,32,25,.08) !important;
  }

  .fm-mobile-menu__close {
    background: transparent !important;
    border: 1px solid rgba(24,32,25,.10) !important;
    box-shadow: none !important;
    color: var(--fm-ink) !important;
  }

  .fm-mobile-nav {
    gap: 4px !important;
  }

  .fm-mobile-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 10px 10px 10px 66px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fm-mobile-nav a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 48px;
    height: 34px;
    transform: translateY(-50%);
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: none !important;
    filter: none !important;
  }

  .fm-mobile-nav a:nth-child(1)::before { background-image: url("assets/images/menu-progetti-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(2)::before { background-image: url("assets/images/menu-consulenza-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(3)::before { background-image: url("assets/images/menu-corsi-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(4)::before { background-image: url("assets/images/menu-ricerca-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(5)::before { background-image: url("assets/images/menu-chi-siamo-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(6)::before { background-image: url("assets/images/menu-idee-v32.svg") !important; }
  .fm-mobile-nav a:nth-child(7)::before { background-image: url("assets/images/menu-contatti-v32.svg") !important; }

  .fm-mobile-nav a:hover,
  .fm-mobile-nav a:focus-visible {
    background: rgba(53,85,58,.06) !important;
    color: var(--fm-green) !important;
    transform: translateX(2px);
    box-shadow: none !important;
  }
}


/* v1.0.33 — option B: clean text-only mobile menu */
@media (max-width: 640px) {
  .fm-mobile-menu {
    background: #fffdf8 !important;
  }

  .fm-mobile-nav {
    gap: 2px !important;
  }

  .fm-mobile-nav a {
    min-height: 52px !important;
    padding: 12px 10px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fm-mobile-nav a::before,
  .fm-mobile-nav a::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
  }

  .fm-mobile-nav a:hover,
  .fm-mobile-nav a:focus-visible {
    background: rgba(53,85,58,.06) !important;
    color: var(--fm-green) !important;
    transform: translateX(2px);
    box-shadow: none !important;
  }
}


/* v1.0.34 — replace the default blue mobile tap flash with FoodMinds green */
@media (max-width: 640px) {
  .fm-mobile-nav a {
    -webkit-tap-highlight-color: rgba(127,148,117,.22);
    tap-highlight-color: rgba(127,148,117,.22);
    touch-action: manipulation;
  }

  .fm-mobile-nav a:active {
    background: rgba(127,148,117,.16) !important;
    color: var(--fm-green) !important;
    transform: translateX(1px);
  }
}


/* v1.0.35 — Consulenza food page implementation + footer expansion */
.fm-footer-note {
  margin-top: 18px;
}

.fm-consult-hero {
  padding: clamp(76px, 9vw, 126px) 0 82px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
}

.fm-consult-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: center;
}

.fm-consult-hero__visual {
  border-radius: 36px;
  overflow: hidden;
  background: #fffaf1;
}

.fm-consult-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fm-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fm-consult-audience {
  padding: 58px 0;
  background: var(--fm-green);
  color: white;
}

.fm-consult-audience__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.fm-consult-audience .fm-title {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.fm-consult-audience p {
  color: rgba(255,255,255,.76);
  margin: 0;
}

.fm-consult-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fm-consult-chip {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .9rem;
  background: rgba(255,255,255,.06);
}

.fm-consult-service {
  padding: clamp(72px, 8vw, 116px) 0;
}

.fm-consult-service--soft {
  background: var(--fm-cream);
}

.fm-consult-service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 7vw, 95px);
  align-items: center;
}

.fm-consult-service__grid--reverse .fm-consult-visual {
  order: -1;
}

.fm-consult-copy {
  max-width: 560px;
}

.fm-consult-copy .fm-title {
  font-size: clamp(2.25rem, 3.8vw, 4rem);
}

.fm-consult-copy p {
  color: rgba(24,32,25,.72);
}

.fm-consult-list {
  display: grid;
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.fm-consult-list li {
  position: relative;
  padding-left: 22px;
}

.fm-consult-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fm-ochre);
  position: absolute;
  left: 0;
  top: .65em;
}

.fm-consult-text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--fm-green);
  font-weight: 700;
}

.fm-consult-visual {
  min-height: 410px;
  border-radius: 34px;
  overflow: hidden;
  background: #fffaf1;
  display: grid;
  place-items: center;
}

.fm-consult-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-consult-visual--illustration img {
  object-fit: contain;
  padding: 24px;
}

.fm-consult-midcta {
  padding: 52px 0;
  background: #e9efe4;
}

.fm-consult-midcta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.fm-consult-midcta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -.03em;
}

.fm-consult-results {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--fm-green);
  color: white;
}

.fm-consult-results .fm-title {
  max-width: 760px;
}

.fm-consult-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.fm-consult-result {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.25);
}

.fm-consult-result strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 400;
}

.fm-consult-result span {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
}

.fm-consult-method {
  padding: 70px 0;
}

.fm-consult-method__box {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 50px;
  align-items: center;
  padding: clamp(32px, 5vw, 68px);
  background: var(--fm-cream);
  border-radius: 34px;
}

.fm-consult-method__box .fm-title {
  font-size: clamp(2.2rem, 3.8vw, 4rem);
}

.fm-consult-method__art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fm-consult-method__art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fffaf1;
  border-radius: 26px;
}

.fm-consult-final {
  padding: clamp(78px, 9vw, 128px) 0;
  background: #fffdf8;
}

.fm-consult-final__box {
  padding: clamp(38px, 6vw, 78px);
  border-radius: 38px;
  background: var(--fm-green);
  color: white;
}

.fm-consult-final__box .fm-title {
  max-width: 900px;
}

.fm-consult-final__box p {
  color: rgba(255,255,255,.75);
  max-width: 680px;
}

.fm-consult-final__box .fm-button {
  background: white !important;
  color: var(--fm-green) !important;
  border-color: white !important;
}

@media (max-width: 960px) {
  .fm-consult-hero__grid,
  .fm-consult-service__grid,
  .fm-consult-audience__inner,
  .fm-consult-method__box {
    grid-template-columns: 1fr;
  }

  .fm-consult-service__grid--reverse .fm-consult-visual {
    order: 0;
  }

  .fm-consult-result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fm-consult-midcta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .fm-consult-visual {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .fm-consult-hero {
    padding-top: 32px;
  }

  .fm-consult-hero__grid {
    gap: 30px;
  }

  .fm-consult-hero__visual {
    max-height: 310px;
    border-radius: 0;
    margin-inline: -14px;
  }

  .fm-consult-actions {
    display: grid;
  }

  .fm-consult-actions .fm-button,
  .fm-consult-actions .fm-button--ghost {
    width: 100%;
  }

  .fm-consult-audience {
    padding: 44px 0;
  }

  .fm-consult-chips {
    gap: 7px;
  }

  .fm-consult-chip {
    font-size: .78rem;
    padding: 7px 10px;
  }

  .fm-consult-service {
    padding: 62px 0;
  }

  .fm-consult-service__grid {
    gap: 28px;
  }

  .fm-consult-visual {
    min-height: 280px;
    border-radius: 26px;
  }

  .fm-consult-copy .fm-title {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .fm-consult-result-grid {
    grid-template-columns: 1fr;
  }

  .fm-consult-method__art {
    grid-template-columns: 1fr 1fr;
  }

  .fm-consult-final__box {
    border-radius: 28px;
  }

  .fm-consult-midcta {
    padding: 42px 0;
  }
}


/* v1.0.37 — fine tuning consulenza page: remove image card edges and section gap */
.wp-block-post-content > .fm-consult-hero,
.wp-block-post-content > .fm-consult-audience,
.wp-block-post-content > .fm-consult-service,
.wp-block-post-content > .fm-consult-midcta,
.wp-block-post-content > .fm-consult-results,
.wp-block-post-content > .fm-consult-method,
.wp-block-post-content > .fm-consult-final {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.fm-consult-service,
.fm-consult-midcta,
.fm-consult-results,
.fm-consult-method,
.fm-consult-final {
  margin: 0 !important;
  border: 0 !important;
}

.fm-consult-visual--illustration {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  min-height: auto !important;
}

.fm-consult-visual--illustration img {
  padding: 0 !important;
  object-fit: contain !important;
}

.fm-consult-method__art img {
  background: transparent !important;
}


/* v1.0.38 — consulenza image cleanup + visible list markers */
.fm-consult-list li::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--fm-yellow, #e8b33d) !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 0 !important;
  top: .66em !important;
}


/* v1.0.40 — restore the approved Consulenza illustrations and blend away residual pale image boxes */
.fm-consult-visual--illustration,
.fm-consult-method__art img {
  background: transparent !important;
}

.fm-consult-visual--illustration img,
.fm-consult-method__art img {
  mix-blend-mode: multiply;
}


/* v1.0.41 — crop approved consulenza illustrations tightly and remove blend hack */
.fm-consult-visual--illustration img,
.fm-consult-method__art img {
  mix-blend-mode: normal !important;
}


/* v1.0.42 — consulenza image sizing fine tuning */
/* Enlarge the two architectural/service illustrations */
#servizi-permanenti .fm-consult-visual,
#servizi-temporanei .fm-consult-visual {
  align-items: center;
  justify-items: center;
}

#servizi-permanenti .fm-consult-visual img,
#servizi-temporanei .fm-consult-visual img {
  width: min(108%, 780px);
  max-width: none;
}

/* Keep the smaller icon-like illustrations crisp by reducing display size a bit */
#cucina-spazi-flussi .fm-consult-visual,
#produzione-sprechi .fm-consult-visual {
  align-items: center;
  justify-items: center;
}

#cucina-spazi-flussi .fm-consult-visual img,
#produzione-sprechi .fm-consult-visual img {
  width: min(82%, 460px);
  max-width: none;
}

.fm-consult-method__art {
  justify-items: center;
}

.fm-consult-method__art img {
  width: min(84%, 260px);
  max-width: none;
}

@media (max-width: 960px) {
  #servizi-permanenti .fm-consult-visual img,
  #servizi-temporanei .fm-consult-visual img {
    width: min(104%, 700px);
  }

  #cucina-spazi-flussi .fm-consult-visual img,
  #produzione-sprechi .fm-consult-visual img {
    width: min(76%, 420px);
  }

  .fm-consult-method__art img {
    width: min(80%, 240px);
  }
}

@media (max-width: 640px) {
  #servizi-permanenti .fm-consult-visual img,
  #servizi-temporanei .fm-consult-visual img {
    width: min(110%, 540px);
  }

  #cucina-spazi-flussi .fm-consult-visual img,
  #produzione-sprechi .fm-consult-visual img {
    width: min(78%, 320px);
  }

  .fm-consult-method__art img {
    width: min(86%, 200px);
  }
}


/* v1.0.43 — make “Cosa cambia concretamente” more visible and editorial */
.fm-consult-result-grid {
  counter-reset: fm-consult-result;
  gap: 26px;
  margin-top: 56px;
}

.fm-consult-result {
  position: relative;
  padding: 18px 12px 0 0;
  border-top: 1px solid rgba(255,255,255,.28);
}

.fm-consult-result::before {
  counter-increment: fm-consult-result;
  content: counter(fm-consult-result, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: rgba(255,255,255,.45);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.fm-consult-result strong {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.25vw, 2.45rem);
  line-height: .98;
  max-width: 11ch;
}

.fm-consult-result__accent {
  color: var(--fm-ochre);
}

.fm-consult-result span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.48;
  max-width: 22ch;
}

@media (min-width: 961px) {
  .fm-consult-result:nth-child(n+2) {
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 960px) {
  .fm-consult-result strong {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .fm-consult-result-grid {
    gap: 22px;
    margin-top: 38px;
  }

  .fm-consult-result strong {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
    max-width: none;
  }

  .fm-consult-result span {
    max-width: none;
  }
}


/* v1.0.44 — Consulenza mobile stability and proportional sizing */
@media (max-width: 640px) {
  body.fm-consulenza-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body.fm-consulenza-page .wp-site-blocks,
  body.fm-consulenza-page .wp-block-post-content,
  body.fm-consulenza-page main,
  body.fm-consulenza-page section,
  body.fm-consulenza-page .fm-shell,
  body.fm-consulenza-page .fm-consult-hero__grid,
  body.fm-consulenza-page .fm-consult-service__grid,
  body.fm-consulenza-page .fm-consult-audience__inner,
  body.fm-consulenza-page .fm-consult-method__box {
    min-width: 0;
    max-width: 100%;
  }

  body.fm-consulenza-page .wp-site-blocks,
  body.fm-consulenza-page .wp-block-post-content,
  body.fm-consulenza-page main {
    overflow-x: clip;
  }

  body.fm-consulenza-page .fm-shell {
    width: calc(100% - 28px);
  }

  body.fm-consulenza-page .fm-consult-hero {
    padding: 34px 0 46px;
  }

  body.fm-consulenza-page .fm-consult-hero__grid {
    gap: 24px;
  }

  body.fm-consulenza-page .fm-consult-hero .fm-title {
    font-size: clamp(2.55rem, 12vw, 3.25rem);
    line-height: .98;
  }

  body.fm-consulenza-page .fm-consult-hero__visual {
    width: 100%;
    max-height: none;
    margin-inline: 0;
    border-radius: 24px;
  }

  body.fm-consulenza-page .fm-consult-audience {
    padding: 38px 0;
  }

  body.fm-consulenza-page .fm-consult-audience .fm-title {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
    line-height: 1;
  }

  body.fm-consulenza-page .fm-consult-service {
    padding: 46px 0;
  }

  body.fm-consulenza-page .fm-consult-service__grid {
    gap: 22px;
  }

  body.fm-consulenza-page .fm-consult-copy .fm-title {
    font-size: clamp(2.25rem, 10.5vw, 2.85rem);
    line-height: .98;
  }

  body.fm-consulenza-page .fm-consult-visual,
  body.fm-consulenza-page .fm-consult-visual--illustration {
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.fm-consulenza-page .fm-consult-visual img,
  body.fm-consulenza-page .fm-consult-visual--illustration img,
  body.fm-consulenza-page #servizi-permanenti .fm-consult-visual img,
  body.fm-consulenza-page #servizi-temporanei .fm-consult-visual img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body.fm-consulenza-page #cucina-spazi-flussi .fm-consult-visual img,
  body.fm-consulenza-page #produzione-sprechi .fm-consult-visual img {
    width: min(72%, 290px) !important;
    max-width: min(72%, 290px) !important;
    margin-inline: auto;
  }

  body.fm-consulenza-page .fm-consult-midcta {
    padding: 34px 0;
  }

  body.fm-consulenza-page .fm-consult-midcta h3 {
    font-size: clamp(1.65rem, 7.8vw, 2rem);
    line-height: 1.12;
  }

  body.fm-consulenza-page .fm-consult-results {
    padding: 50px 0;
  }

  body.fm-consulenza-page .fm-consult-results .fm-title {
    font-size: clamp(2.4rem, 11vw, 3rem);
    line-height: .98;
  }

  body.fm-consulenza-page .fm-consult-result-grid {
    margin-top: 32px;
    gap: 18px;
  }

  body.fm-consulenza-page .fm-consult-result {
    padding-top: 14px;
  }

  body.fm-consulenza-page .fm-consult-result strong {
    font-size: clamp(1.6rem, 7.8vw, 2rem);
  }

  body.fm-consulenza-page .fm-consult-method {
    padding: 46px 0;
  }

  body.fm-consulenza-page .fm-consult-method__box {
    gap: 26px;
    padding: 28px 20px;
    border-radius: 24px;
  }

  body.fm-consulenza-page .fm-consult-method__box .fm-title {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
    line-height: .98;
  }

  body.fm-consulenza-page .fm-consult-method__art {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.fm-consulenza-page .fm-consult-method__art img {
    width: min(78%, 165px) !important;
    max-width: min(78%, 165px) !important;
    height: auto !important;
    aspect-ratio: auto;
  }

  body.fm-consulenza-page .fm-consult-final {
    padding: 50px 0;
  }

  body.fm-consulenza-page .fm-consult-final__box {
    padding: 30px 22px;
    border-radius: 24px;
  }

  body.fm-consulenza-page .fm-consult-final__box .fm-title {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
    line-height: .98;
  }

  body.fm-consulenza-page > .fm-mobile-parliamone {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: calc(14px + env(safe-area-inset-right)) !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 !important;
    white-space: nowrap;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    touch-action: manipulation;
  }
}

/* v1.0.44 validation fix — prevent padding from increasing mobile element widths */
@media (max-width: 640px) {
  body.fm-consulenza-page *,
  body.fm-consulenza-page *::before,
  body.fm-consulenza-page *::after {
    box-sizing: border-box;
  }
}

/* v1.0.44 final mobile proportions */
@media (max-width: 640px) {
  body.fm-consulenza-page .fm-consult-hero__visual {
    width: 92%;
    margin-inline: auto;
  }

  body.fm-consulenza-page #servizi-permanenti .fm-consult-visual img,
  body.fm-consulenza-page #servizi-temporanei .fm-consult-visual img {
    width: 94% !important;
    max-width: 94% !important;
    margin-inline: auto;
  }

  body.fm-consulenza-page #cucina-spazi-flussi .fm-consult-visual img,
  body.fm-consulenza-page #produzione-sprechi .fm-consult-visual img {
    width: min(66%, 270px) !important;
    max-width: min(66%, 270px) !important;
  }

  body.fm-consulenza-page .fm-consult-results {
    padding: 46px 0;
  }

  body.fm-consulenza-page .fm-consult-results .fm-title {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  body.fm-consulenza-page .fm-consult-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin-top: 28px;
  }

  body.fm-consulenza-page .fm-consult-result {
    min-width: 0;
    padding: 12px 0 0;
  }

  body.fm-consulenza-page .fm-consult-result::before {
    margin-bottom: 10px;
    font-size: .68rem;
  }

  body.fm-consulenza-page .fm-consult-result strong {
    font-size: clamp(1.28rem, 5.7vw, 1.55rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  body.fm-consulenza-page .fm-consult-result span {
    font-size: .78rem;
    line-height: 1.4;
  }

  body.fm-consulenza-page .fm-consult-method__art img {
    width: min(72%, 150px) !important;
    max-width: min(72%, 150px) !important;
  }

  body.fm-consulenza-page .fm-consult-final__box .fm-title {
    font-size: clamp(2.05rem, 9.5vw, 2.55rem);
  }

  body.fm-consulenza-page > .fm-mobile-parliamone,
  body.fm-consulenza-page > .fm-mobile-parliamone:hover,
  body.fm-consulenza-page > .fm-mobile-parliamone:focus,
  body.fm-consulenza-page > .fm-mobile-parliamone:active {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}


/* v1.0.45 — dedicated Cucina, spazi e flussi illustration */
#cucina-spazi-flussi .fm-consult-visual img {
  width: min(100%, 720px) !important;
  max-width: min(100%, 720px) !important;
  height: auto !important;
  margin-inline: auto;
}

@media (max-width: 640px) {
  body.fm-consulenza-page #cucina-spazi-flussi .fm-consult-visual img {
    width: 96% !important;
    max-width: 96% !important;
  }
}


/* v1.0.46 — remove bordered image containers on Corsi e Ricerca & Sviluppo to match Consulenza */
.fm-service-page-hero__visual {
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fm-service-page-hero__visual img {
  background: transparent !important;
}


/* v1.0.47 — remove the residual top separator above the footer */
.fm-site-footer {
  border-top: 0 !important;
}


/* v1.0.48 — 2026-07-25 — footer spacing and benefit separator */
.fm-footer-grid > div:first-child > .fm-wordmark {
  display: inline-block;
  margin-bottom: 10px;
}

.fm-footer-grid > div:first-child > .fm-wordmark + p {
  margin-top: 0;
}

.fm-footer-note {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--fm-border);
}


/* v1.0.49 — 2026-07-25 — remove bottom separator and whitespace on Corsi / Ricerca & sviluppo */
body.fm-service-simple-page .wp-site-blocks > *,
body.fm-service-simple-page .wp-block-post-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

body.fm-service-simple-page .wp-block-post-content > p:empty,
body.fm-service-simple-page .wp-block-post-content > .wp-block-spacer:empty {
  display: none !important;
}

body.fm-service-simple-page .fm-page-hero {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 38px;
}

body.fm-service-simple-page .fm-site-footer,
body.fm-service-simple-page .wp-site-blocks > .wp-block-template-part:last-child {
  margin-block-start: 0 !important;
}


/* v1.0.52 — 2026-07-25 — improve the production illustration framing so it feels less cut */
#produzione-sprechi .fm-consult-visual img {
  width: min(78%, 430px) !important;
  max-width: min(78%, 430px) !important;
  margin-inline: auto;
}

@media (max-width: 960px) {
  #produzione-sprechi .fm-consult-visual img {
    width: min(72%, 360px) !important;
    max-width: min(72%, 360px) !important;
  }
}

@media (max-width: 640px) {
  body.fm-consulenza-page #produzione-sprechi .fm-consult-visual img,
  #produzione-sprechi .fm-consult-visual img {
    width: min(66%, 260px) !important;
    max-width: min(66%, 260px) !important;
  }
}


/* v1.0.53 — 2026-07-25 — production illustration: much more breathing room below */
#produzione-sprechi .fm-consult-visual img {
  width: min(68%, 360px) !important;
  max-width: min(68%, 360px) !important;
  margin-inline: auto;
}

@media (max-width: 960px) {
  #produzione-sprechi .fm-consult-visual img {
    width: min(62%, 300px) !important;
    max-width: min(62%, 300px) !important;
  }
}

@media (max-width: 640px) {
  body.fm-consulenza-page #produzione-sprechi .fm-consult-visual img,
  #produzione-sprechi .fm-consult-visual img {
    width: min(60%, 220px) !important;
    max-width: min(60%, 220px) !important;
  }
}


/* v1.0.55 — 2026-07-25 — production illustration with transparent background and no visible box */
#produzione-sprechi .fm-consult-visual {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  min-height: 0 !important;
}

#produzione-sprechi .fm-consult-visual img {
  width: min(92%, 560px) !important;
  max-width: min(92%, 560px) !important;
  height: auto !important;
  object-fit: contain !important;
  margin-inline: auto;
}

@media (max-width: 960px) {
  #produzione-sprechi .fm-consult-visual img {
    width: min(88%, 440px) !important;
    max-width: min(88%, 440px) !important;
  }
}

@media (max-width: 640px) {
  body.fm-consulenza-page #produzione-sprechi .fm-consult-visual img,
  #produzione-sprechi .fm-consult-visual img {
    width: min(84%, 300px) !important;
    max-width: min(84%, 300px) !important;
  }
}


/* v1.0.56 — 2026-07-25 — home method layout reordered in 2 columns with background reading arrows */
body.fm-front-page .fm-method-cards {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "one four"
    "two five"
    "three six";
  gap: 22px 34px;
  margin-top: 32px;
  padding: 8px 18px 10px;
}

body.fm-front-page .fm-method-cards::before {
  content: "";
  position: absolute;
  inset: 18px 10px 18px 10px;
  background: url('assets/images/method-flow-desktop.svg') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

body.fm-front-page .fm-method-card {
  position: relative;
  z-index: 1;
}

body.fm-front-page .fm-method-card:nth-child(1) { grid-area: one; }
body.fm-front-page .fm-method-card:nth-child(2) { grid-area: two; }
body.fm-front-page .fm-method-card:nth-child(3) { grid-area: three; }
body.fm-front-page .fm-method-card:nth-child(4) { grid-area: four; }
body.fm-front-page .fm-method-card:nth-child(5) { grid-area: five; }
body.fm-front-page .fm-method-card:nth-child(6) { grid-area: six; }

@media (max-width: 980px) {
  body.fm-front-page .fm-method-cards {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 18px;
    padding: 0;
  }

  body.fm-front-page .fm-method-cards::before {
    display: none;
  }

  body.fm-front-page .fm-method-card:nth-child(n) {
    grid-area: auto;
  }

  body.fm-front-page .fm-method-card:not(:last-child)::after {
    content: "";
    display: block;
    width: 42px;
    height: 36px;
    margin: 14px auto -6px;
    background: url('assets/images/method-flow-mobile.svg') center / contain no-repeat;
    opacity: .92;
  }
}


/* v1.0.57 — 2026-07-25 — verified method flow: cleaner desktop path and arrows between mobile cards */
body.fm-front-page .fm-method-cards {
  padding-bottom: 34px;
}

body.fm-front-page .fm-method-cards::before {
  inset: 12px 10px 8px;
}

@media (max-width: 980px) {
  body.fm-front-page .fm-method-cards {
    gap: 56px;
    padding-bottom: 0;
  }

  body.fm-front-page .fm-method-card {
    overflow: visible !important;
  }

  body.fm-front-page .fm-method-card:not(:last-child)::after {
    position: absolute;
    left: 50%;
    bottom: -48px;
    transform: translateX(-50%);
    width: 38px;
    height: 40px;
    margin: 0;
    background: url('assets/images/method-flow-mobile.svg') center / contain no-repeat;
    pointer-events: none;
    z-index: 2;
  }
}


/* v1.0.59 — 2026-07-27 — clearer hand-drawn pencil flow for the home method section */
body.fm-front-page .fm-method-cards::before {
  inset: 10px 8px 10px;
  background: url('assets/images/method-flow-desktop-v1059.svg') center / 100% 100% no-repeat;
}


/* v1.0.60 — 2026-07-27 — lighter desktop method arrows, kept in the gutters */
body.fm-front-page .fm-method-cards {
  gap: 22px 42px;
}

body.fm-front-page .fm-method-cards::before {
  inset: 16px 18px 16px 18px;
  background: url('assets/images/method-flow-desktop-v1060.svg') center / 96% 96% no-repeat;
  opacity: 1;
}


/* v1.0.61 — 2026-07-27 — option A: soft curved pencil flow, fully kept in the gutters */
@media (min-width: 981px) {
  body.fm-front-page .fm-method-cards {
    column-gap: 82px;
    padding-inline: 12px;
    padding-bottom: 38px;
  }

  body.fm-front-page .fm-method-cards::before {
    inset: 10px 18px 8px;
    background: url('assets/images/method-flow-desktop-v1061.svg') center / 100% 100% no-repeat;
    opacity: 1;
  }
}


/* v1.0.62 — 2026-07-27 — lighter transparent line under the method cards */
@media (min-width: 981px) {
  body.fm-front-page .fm-method-cards {
    column-gap: 70px;
    padding-inline: 10px;
    padding-bottom: 30px;
  }

  body.fm-front-page .fm-method-cards::before {
    inset: 18px 26px 18px 26px;
    background: url('assets/images/method-flow-desktop-v1062.svg') center / 100% 100% no-repeat;
    opacity: 1;
  }
}


/* v1.0.63 — 2026-07-27 — remove method connector lines and add footer work-with-us link */
body.fm-front-page .fm-method-cards::before,
body.fm-front-page .fm-method-card:not(:last-child)::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

@media (max-width: 980px) {
  body.fm-front-page .fm-method-cards {
    gap: 18px;
  }
}
