/* SPUN Farm — sito, carattere «le stagioni» (D-051).
   Tutto sotto .fm3. Token SPUN Beta (v2) e coppia di campo di palette C (D-039): #4C6800 con #F1FFCC.
   Scritto per questo prodotto: nessuna regola copiata dai siti fratelli. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-normal-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Token ----------------------------------------------------- */
.fm3 {
  --ink: #101013; --ink-2: #1A1A1E; --ink-3: #27272B; --muted: #6D6D78; --muted-2: #A1A1AA;
  --paper: #FAFAF4; --paper-2: #F5F4EF; --paper-3: #EBE9E0; --line: #E4E3DE;
  --cobalt: #2348FF; --lime: #B6F36B; --sky: #9EE7FF; --coral: #FF6B4A; --butter: #FFD64A; --plum: #E9D5FF;
  --field: #4C6800; --field-ink: #F1FFCC;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --bg: var(--paper); --surface: var(--paper-2); --surface-2: var(--paper-3); --rule: var(--line);
  --text: var(--ink); --text-2: var(--muted); --focus: var(--cobalt);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 56px;

  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 16px/24px var(--sans); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.fm3[data-theme="dark"] {
  --bg: var(--ink); --surface: var(--ink-2); --surface-2: var(--ink-3); --rule: var(--ink-3);
  --text: var(--paper); --text-2: var(--muted-2); --focus: var(--lime);
}
html:has(.fm3) { background: var(--paper); scroll-padding-top: calc(var(--nav-h) + 8px); }
html:has(.fm3[data-theme="dark"]) { background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html:has(.fm3) { scroll-behavior: smooth; } }

:where(.fm3) *, :where(.fm3) *::before, :where(.fm3) *::after { box-sizing: border-box; }
:where(.fm3) a { color: inherit; text-decoration: none; }
:where(.fm3) ul, :where(.fm3) ol { list-style: none; margin: 0; padding: 0; }
:where(.fm3) h1, :where(.fm3) h2, :where(.fm3) h3, :where(.fm3) p, :where(.fm3) dl, :where(.fm3) dd, :where(.fm3) figure { margin: 0; }
:where(.fm3) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:where(.fm3) img { max-width: 100%; display: block; }
.fm3 :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fm3 [hidden] { display: none !important; }
.fm3 .sx-px { display: block; width: 100%; height: 100%; overflow: visible; }

.fm3-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
.fm3-skip:focus { top: 8px; }

/* ---------- Pezzi comuni ---------------------------------------------- */
.fm3-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fm3-in { max-width: 1440px; margin-inline: auto; padding-inline: 16px; }
.fm3-label {
  display: flex; align-items: center; gap: 8px;
  font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.fm3-ico { flex: none; width: 16px; height: 16px; display: inline-block; color: currentColor; }
.fm3-h1 { font-weight: 600; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.fm3-h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.fm3-h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.fm3-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 34em; color: var(--text); }
.fm3-sub { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 38em; }
.fm3-note { margin-top: 20px; font: 400 12px/18px var(--mono); letter-spacing: .02em; color: var(--text-2); max-width: 70em; }
.fm3-head { display: grid; gap: 16px; padding-block: 72px 40px; }
.fm3-ticks { display: grid; gap: 8px; margin-top: 8px; }
.fm3-ticks li { position: relative; padding-left: 24px; line-height: 22px; }
.fm3-ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--field); }
.fm3[data-theme="dark"] .fm3-ticks li::before { background: var(--lime); }

.fm3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 4px;
  border: 1px solid var(--text); color: var(--text); background: transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.fm3-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .fm3-btn:hover { background: var(--surface-2); } }
.fm3-btn--primary { background: var(--field); border-color: var(--field); color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) { .fm3-btn--primary:hover { background: #3E5600; } }
.fm3-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.fm3-btn--static { pointer-events: none; }
.fm3-btn-arrow { width: 14px; height: 14px; display: inline-block; }
.fm3-actions { display: flex; flex-wrap: wrap; gap: 8px; }

mark { background: none; color: inherit; }
.fm3-win mark, .fm3-status mark {
  display: inline-block; padding: 0 8px; border-radius: 3px; border: 1px solid var(--rule);
  font: 400 11px/18px var(--mono); letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2);
}
.fm3-win mark.ok { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.fm3-win mark.late { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.fm3-status mark.ok { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.fm3-win { border: 1px solid var(--rule); background: var(--surface); border-radius: 6px; overflow: hidden; }
.fm3-win-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.fm3-win-bar em { font-style: normal; color: var(--text-2); }

.fm3-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.fm3-table th { text-align: left; font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.fm3-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.fm3-table tfoot td { font-weight: 600; border-bottom: 0; }
.fm3-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.fm3-table tbody tr:last-child td { border-bottom: 0; }
.fm3-table tfoot td { border-top: 1px solid var(--rule); }

@media (max-width: 559px) {
  .fm3-table .hm { display: none; }
  .fm3-table th, .fm3-table td { padding: 10px 10px; }
  .fm3-bar { grid-template-columns: 76px minmax(0, 1fr) 44px; gap: 8px; }
  .fm3-rows li { padding: 12px; }
}

/* ---------- Barra e menu ---------------------------------------------- */
.fm3-nav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }
.fm3-nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }
.fm3-logo { display: block; width: 92px; flex: none; color: var(--text); }
.fm3-logo-svg svg { display: block; width: 100%; height: auto; fill: currentColor; }
.fm3-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 4px;
  background: var(--field); color: var(--field-ink); font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.fm3-links { display: none; margin-left: auto; gap: 4px; }
.fm3-links a { padding: 8px 10px; border-radius: 4px; font-size: 14px; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .fm3-links a:hover { color: var(--text); background: var(--surface-2); } }
.fm3-nav-cta { margin-left: auto; }
.fm3-burger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 4px; }
.fm3-burger [data-arrow] { width: 20px; height: 20px; }
.fm3-menu { position: sticky; top: var(--nav-h); z-index: 39; background: var(--bg); border-bottom: 1px solid var(--rule); }
.fm3-menu a { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-top: 1px solid var(--rule); font-weight: 500; }
.fm3-menu [data-arrow] { width: 14px; height: 14px; }
@media (min-width: 1100px) {
  .fm3-links { display: flex; }
  .fm3-nav-cta { margin-left: 8px; }
  .fm3-burger { display: none; }
  .fm3-menu { display: none !important; }
}
@media (min-width: 1024px) { .fm3-in { padding-inline: 40px; } }
/* Con il selettore della lingua (D-072) la barra a telefono non basta per tutto: il chip «Farm» lascia il posto (il
   prodotto resta nella barra di famiglia sopra), il «Contattaci» fisso in alto no. Senza selettore non cambia nulla. */
@media (max-width: 479px) {
  .fm3-nav-bar:has(.sx-lang) { gap: 8px; }
  .fm3-nav-bar:has(.sx-lang) .fm3-chip { display: none; }
}
@media (max-width: 399px) { .fm3-nav-bar:has(.sx-lang) .fm3-logo { width: 80px; } }

/* ---------- Hero: la foto diventa mappa -------------------------------- */
.fm3-hero { border-bottom: 1px solid var(--rule); }
.fm3-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1920px; margin-inline: auto; }
.fm3-hero-copy { display: flex; flex-direction: column; gap: 24px; padding: 40px 16px 32px; justify-content: flex-end; }
.fm3-facts { display: grid; gap: 8px; margin-top: 8px; }
.fm3-facts li { display: flex; align-items: center; gap: 10px; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.fm3-facts .fm3-ico { color: var(--field); }
.fm3[data-theme="dark"] .fm3-facts .fm3-ico { color: var(--lime); }
.fm3-facts .fm3-ico [data-arrow] { display: block; width: 16px; height: 16px; }

.fm3-stage { position: relative; display: grid; grid-template-rows: auto auto; min-width: 0; border-top: 1px solid var(--rule); }
.fm3-map { position: relative; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.fm3-map img, .fm3-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm3-map img { object-fit: cover; object-position: 50% 50%; }
.fm3-map canvas { opacity: 0; transition: opacity 240ms var(--ease); touch-action: pan-y; }
.fm3-map.is-ready canvas { opacity: 1; }
.fm3-map.is-ready img { visibility: hidden; }
.fm3-legend {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: calc(100% - 24px);
  padding: 8px 10px; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px;
  font: 400 11px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.fm3-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fm3-legend i { width: 10px; height: 10px; background: var(--c); border: 1px solid rgba(16, 16, 19, .35); }
.fm3-photo-btn {
  position: absolute; right: 12px; top: 12px; z-index: 2; height: 32px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 4px;
  font: 400 11px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.fm3-photo-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fm3-credit {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 24px);
  padding: 4px 8px; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px;
  font: 400 10px/14px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
}
.fm3-tip {
  position: absolute; z-index: 3; left: 0; top: 0; min-width: 190px; max-width: 260px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--text); border-radius: 4px; pointer-events: none;
  font-size: 13px; line-height: 18px; box-shadow: none;
}
.fm3-tip b { display: block; font-weight: 600; }
.fm3-tip span { display: block; color: var(--text-2); font: 400 11px/16px var(--mono); letter-spacing: .03em; text-transform: uppercase; margin-top: 2px; }
.fm3-seasonbar { display: grid; gap: 0; border-top: 1px solid var(--rule); background: var(--bg); }
.fm3-seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm3-seasons button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 8px;
  border-right: 1px solid var(--rule); font-weight: 600; font-size: 15px;
  transition: background-color 160ms var(--ease);
}
.fm3-seasons button:last-child { border-right: 0; }
.fm3-seasons button .fm3-ico { width: 16px; height: 16px; }
.fm3-seasons button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--field); transform: scaleX(0); transform-origin: left; }
.fm3[data-theme="dark"] .fm3-seasons button::after { background: var(--lime); }
.fm3-seasons button[aria-pressed="true"] { background: var(--surface); }
.fm3-seasons button[aria-pressed="true"]::after { transform: scaleX(1); }
.fm3-seasons.is-auto button[aria-pressed="true"]::after { animation: fm3-fill var(--auto, 5600ms) linear forwards; }
@keyframes fm3-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .fm3-seasons button:hover { background: var(--surface); } }
.fm3-caption { padding: 14px 16px 16px; font-size: 15px; line-height: 22px; color: var(--text-2); min-height: 76px; border-top: 1px solid var(--rule); }

@media (max-width: 559px) {
  .fm3-photo-btn { top: auto; right: auto; left: 12px; bottom: 12px; }
  .fm3-credit { right: 12px; bottom: 12px; max-width: calc(100% - 150px); }
}
@media (min-width: 560px) { .fm3-hero-copy { padding-inline: 40px; } }
@media (min-width: 1024px) {
  .fm3-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(calc(100svh - var(--nav-h)), 900px); }
  .fm3-hero-copy { padding: 72px 48px 56px 40px; }
  .fm3-stage { border-top: 0; border-left: 1px solid var(--rule); grid-template-rows: minmax(0, 1fr) auto; }
  .fm3-map { aspect-ratio: auto; min-height: 520px; }
  .fm3-seasonbar { grid-template-columns: 1fr; }
}

/* ---------- L'anno a scorrimento -------------------------------------- */
.fm3-year { border-bottom: 1px solid var(--rule); }
.fm3-year-track { border-top: 1px solid var(--rule); }
.fm3-year-stage { position: relative; }
.fm3-year-rail { display: none; }
.fm3-season { display: grid; gap: 28px; padding: 48px 16px; border-bottom: 1px solid var(--rule); width: 100%; }
.fm3-year-stage > .fm3-season:last-of-type { border-bottom: 0; }
.fm3-season { position: relative; isolation: isolate; overflow: hidden; }
.fm3-season-bg { position: absolute; inset: 0; z-index: -1; background: var(--ink-2); }
.fm3-season-bg img, .fm3-season-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 50%); }
.fm3-season-bg video { opacity: 0; transition: opacity 400ms var(--ease); }
.fm3-season-bg video.is-playing { opacity: 1; }
.fm3-season-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 42%, color-mix(in srgb, var(--bg) 36%, transparent) 100%);
}
.fm3-season-copy { display: grid; gap: 16px; align-content: start; max-width: 34em; }
.fm3-season-copy p:not(.fm3-label) { color: var(--text-2); font-size: 17px; line-height: 26px; }
.fm3-season-ui { min-width: 0; }
.fm3-load { padding: 14px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.fm3-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; }
.fm3-bar i { height: 10px; background: var(--surface-2); position: relative; }
.fm3-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--field); }
.fm3[data-theme="dark"] .fm3-bar i::after { background: var(--lime); }
.fm3-bar b { font: 400 12px/16px var(--mono); text-align: right; }
.fm3-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px; border-bottom: 1px solid var(--rule); }
.fm3-rows li > div { display: grid; gap: 2px; }
.fm3-rows li > div:last-child { justify-items: end; text-align: right; }
.fm3-rows span { color: var(--text-2); font-size: 13px; line-height: 18px; }
.fm3-hash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.fm3-hash code { font: 400 12px/16px var(--mono); }
.fm3-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm3-kv > div { padding: 14px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.fm3-kv > div:nth-child(2n) { border-right: 0; }
.fm3-kv dt { font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.fm3-kv dd { font-weight: 600; font-size: 20px; line-height: 28px; font-variant-numeric: tabular-nums; }
.fm3-lot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px; }
.fm3-lot-out { display: grid; gap: 2px; padding: 8px 12px; border: 1px dashed var(--text-2); border-radius: 4px; }
.fm3-lot-out b { font: 400 14px/20px var(--mono); }
.fm3-lot-out span { font-size: 13px; color: var(--text-2); }
.fm3-status { display: flex; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-2); flex-wrap: wrap; }

/* Sticky: lo applica lo script, a ogni larghezza, quando il movimento è consentito e l'altezza basta;
   altrimenti le quattro stagioni restano in colonna e si leggono tutte. */
.fm3-year.is-sticky .fm3-year-track { height: calc(var(--n, 4) * 72svh + 28svh); position: relative; }
.fm3-year.is-sticky .fm3-year-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; }
.fm3-year.is-sticky .fm3-season {
  position: absolute; inset: 0; border-bottom: 0; opacity: 0; transform: translateY(12px); pointer-events: none;
  align-content: center; padding-block: 20px 40px;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.fm3-year.is-sticky .fm3-season.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fm3-year.is-sticky .fm3-year-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.fm3-year-rail i { height: 4px; background: var(--rule); position: relative; }
.fm3-year-rail i::after { content: ""; position: absolute; inset: 0; background: var(--field); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.fm3[data-theme="dark"] .fm3-year-rail i::after { background: var(--lime); }
.fm3-year-rail i.is-on::after { transform: scaleX(1); }

/* Telefono: ogni stagione deve stare tutta nello schermo fermo, quindi testi e finestre più compatti. */
@media (max-width: 1023px) {
  .fm3-year.is-sticky .fm3-season { gap: 14px; align-content: start; padding: 18px 16px 40px; }
  .fm3-year.is-sticky .fm3-season-copy { gap: 8px; }
  .fm3-year.is-sticky .fm3-season-copy .fm3-h3 { font-size: clamp(20px, 5.6vw, 26px); }
  .fm3-year.is-sticky .fm3-season-copy p:not(.fm3-label) { font-size: 15px; line-height: 21px; }
  .fm3-year.is-sticky .fm3-ticks { gap: 4px; margin-top: 0; }
  .fm3-year.is-sticky .fm3-ticks li { font-size: 14px; line-height: 20px; }
  .fm3-year.is-sticky .fm3-load { display: none; }
  .fm3-year.is-sticky .fm3-table th, .fm3-year.is-sticky .fm3-table td { padding: 8px 10px; }
  .fm3-year.is-sticky .fm3-rows li { padding: 10px 12px; }
  .fm3-year.is-sticky .fm3-kv > div { padding: 10px 12px; }
  .fm3-year.is-sticky .fm3-kv dd { font-size: 18px; line-height: 24px; }
  .fm3-year.is-sticky .fm3-lot { padding: 10px 12px; }
  .fm3-year.is-sticky .fm3-status { padding: 10px 12px; }
}
@media (max-width: 1023px) and (max-height: 700px) { .fm3-year.is-sticky .fm3-ticks { display: none; } }
@media (min-width: 1024px) {
  .fm3-season { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 64px 40px; align-items: center; }
  .fm3-season-bg img, .fm3-season-bg video { object-position: var(--pos, 50% 50%); }
  .fm3-season-bg::after {
    background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 36%, color-mix(in srgb, var(--bg) 22%, transparent) 100%);
  }
  .fm3-year.is-sticky .fm3-year-rail { left: 40px; right: 40px; bottom: 28px; }
}

/* ---------- Demo guidata · pagina a tutto schermo ---------------------- */
html:has(.fm3-dp-page) { height: 100%; overflow: hidden; scroll-behavior: auto; }
.fm3-dp-page { height: 100%; min-height: 0; overflow: hidden; }
.fm3-dp-page main { height: 100%; }
.fm3-dp {
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--bg);
}
.fm3-dp-bar {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--rule);
}
.fm3-dp-bar .fm3-logo { width: 84px; }
.fm3-dp-title { display: none; margin-left: 8px; font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.fm3-dp-title em { font-style: normal; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--rule); }
.fm3-dp-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fm3-dp-cta, .fm3-dp-fs { display: none; }
.fm3-dp-exit { gap: 8px; padding-inline: 12px; }
.fm3-dp-exit [data-arrow] { width: 14px; height: 14px; display: block; }
.fm3-dp-exit-t { display: none; }
.fm3-dp-tabs {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--rule); background: var(--bg);
}
.fm3-dp-tabs::-webkit-scrollbar { display: none; }
.fm3-dp-tabs button {
  flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg);
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease);
}
.fm3-dp-tabs button:active { transform: scale(.97); }
.fm3-dp-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .fm3-dp-tabs button[aria-selected="false"]:hover { border-color: var(--text); } }

.fm3-dp-body { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.fm3-dp-stage { position: relative; min-height: 0; overflow: hidden; background: var(--surface-2); }
.fm3-dp-crumb {
  position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; height: 28px; padding: 0 10px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 4px;
  font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); pointer-events: none;
}
.fm3-shot { position: absolute; inset: 0; margin: 0; }
@media (max-width: 1023px) { .fm3-dp-crumb { display: none; } }
.fm3-shot[hidden] { display: none; }
.fm3-shot-frame { position: absolute; inset: 0; overflow: hidden; }
.fm3-shot-pan {
  --z: 1; position: absolute; left: 0; top: 0; width: calc(var(--pw) * 1px); height: calc(var(--ph) * 1px);
  transform-origin: 0 0; transition: transform 320ms var(--ease); background: var(--bg);
  box-shadow: 0 0 0 calc(1px / var(--z)) var(--rule), 0 calc(10px / var(--z)) calc(30px / var(--z)) rgba(16, 16, 19, .16);
}
.fm3-shot-pan img { display: block; width: 100%; height: 100%; max-width: none; }
.fm3-shot--phone .fm3-shot-pan { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 calc(2px / var(--z)) var(--text), 0 calc(10px / var(--z)) calc(30px / var(--z)) rgba(16, 16, 19, .2); }
@media (prefers-reduced-motion: reduce) { .fm3-shot-pan { transition: none; } }

.fm3-hot { position: absolute; padding: 0; border: calc(2px / var(--z)) solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.fm3-hot span {
  position: absolute; left: calc(-2px / var(--z)); top: calc(-2px / var(--z)); display: grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px; transform: scale(calc(1 / var(--z))); transform-origin: 0 0;
  background: var(--text); color: var(--bg); font: 700 12px/1 var(--mono); border-radius: 4px 0 4px 0; opacity: .85;
}
.fm3-hot.is-active { border-color: var(--cobalt); box-shadow: 0 0 0 3000px rgba(16, 16, 19, .34); }
.fm3-hot.is-active span { background: var(--cobalt); color: #fff; opacity: 1; }
.fm3-shot-pan.is-zoomed .fm3-hot.is-active { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .fm3-hot:not(.is-active):hover { border-color: var(--cobalt); } }

.fm3-dp-card {
  position: relative; display: grid; gap: 8px; align-content: start; min-height: 0; max-height: 46dvh; overflow-y: auto;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg); border-top: 1px solid var(--rule);
}
.fm3-dp-card .fm3-h3 { font-size: 20px; }
.fm3-dp-card p:not(.fm3-label) { color: var(--text-2); font-size: 15px; line-height: 22px; }
.fm3-tour-nav { display: flex; gap: 8px; margin-top: 4px; }
.fm3-tour-nav .fm3-btn[disabled] { opacity: .4; }
.fm3-tour-bar { position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--rule); }
.fm3-tour-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cobalt); transition: width 240ms var(--ease); }
.fm3-dp-cta2 { justify-self: start; min-height: 40px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.fm3-dp-hint { display: none; }

@media (min-width: 1024px) {
  .fm3-dp-bar { min-height: 60px; gap: 14px; }
  .fm3-dp-bar .fm3-logo { width: 96px; }
  .fm3-dp-title { display: flex; }
  .fm3-dp-cta, .fm3-dp-fs { display: inline-flex; }
  .fm3-dp-exit-t { display: inline; }
  .fm3-dp-tabs { padding-block: 10px; gap: 6px; }
  .fm3-dp-body { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); }
  .fm3-dp-card { max-height: none; padding: 28px; border-top: 0; border-left: 1px solid var(--rule); gap: 12px; }
  .fm3-dp-card .fm3-h3 { font-size: clamp(24px, 2vw, 30px); }
  .fm3-dp-card p:not(.fm3-label) { font-size: 17px; line-height: 26px; }
  .fm3-tour-bar { top: 0; height: 3px; }
  .fm3-dp-cta2 { display: none; }
  .fm3-dp-hint { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font: 400 12px/18px var(--mono); letter-spacing: .04em; color: var(--text-2); }
}

/* ---------- Chiedi · approva · traccia -------------------------------- */
.fm3-ask { border-bottom: 1px solid var(--rule); background: var(--surface); padding-bottom: 64px; }
.fm3-ask .fm3-head { padding-bottom: 32px; }
.fm3-board { display: grid; border: 1px solid var(--rule); background: var(--bg); border-radius: 6px; overflow: hidden; }
.fm3-col { display: grid; gap: 16px; align-content: start; padding: 20px; border-bottom: 1px solid var(--rule); min-width: 0; }
.fm3-col:last-child { border-bottom: 0; }
.fm3-col-h { display: flex; align-items: center; gap: 10px; font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fm3-col-h span { display: grid; place-items: center; width: 22px; height: 22px; background: var(--text); color: var(--bg); }
.fm3-qs { display: grid; gap: 8px; }
.fm3-qs button, .fm3-tabs button {
  text-align: left; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 4px; font-size: 15px; line-height: 20px;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.fm3-qs button[aria-pressed="true"], .fm3-tabs button[aria-pressed="true"] { border-color: var(--text); background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .fm3-qs button:hover, .fm3-tabs button:hover { border-color: var(--text); } }
.fm3-answer { padding: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.fm3-src { font: 400 11px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.fm3-draft { display: grid; gap: 12px; padding: 14px; border: 1px dashed var(--text-2); border-radius: 4px; }
.fm3-draft-text { font-size: 15px; line-height: 22px; }
.fm3-draft-text[contenteditable="true"] { outline: 2px solid var(--focus); outline-offset: 4px; }
.fm3-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fm3-state { font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--field); }
.fm3[data-theme="dark"] .fm3-state { color: var(--lime); }
.fm3-log { display: grid; gap: 0; }
.fm3-log li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.fm3-log li:last-child { border-bottom: 0; }
.fm3-log time { font: 400 12px/20px var(--mono); color: var(--text-2); grid-row: span 2; }
.fm3-log em { font-style: normal; color: var(--text-2); font-size: 13px; }
@keyframes fm3-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fm3-log li.is-new { animation: fm3-in 220ms var(--ease); }
@media (min-width: 1024px) {
  .fm3-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm3-col { border-bottom: 0; border-right: 1px solid var(--rule); padding: 28px; }
  .fm3-col:last-child { border-right: 0; }
}

/* ---------- In campo -------------------------------------------------- */
.fm3-field { border-bottom: 1px solid var(--rule); padding-block: 72px; }
.fm3-field-grid { display: grid; gap: 32px; }
.fm3-field-photo { position: relative; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.fm3-field-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }
.fm3-field-copy { display: grid; gap: 16px; align-content: start; }
.fm3-phone { width: min(100%, 340px); justify-self: start; border: 1px solid var(--text); border-radius: 18px; background: var(--bg); padding: 14px; display: grid; gap: 14px; }
.fm3-phone-top { display: flex; justify-content: space-between; align-items: center; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.fm3-phone-top em { font-style: normal; color: var(--text-2); }
.fm3-check { display: grid; gap: 8px; }
.fm3-check label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.fm3-check input { width: 22px; height: 22px; accent-color: var(--field); flex: none; }
.fm3-check input:checked + span { text-decoration: line-through; color: var(--text-2); }
.fm3-upload { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fm3-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm3-upload-prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 400 11px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.fm3-upload-prog b { font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.fm3-upload-track { display: block; height: 8px; background: var(--surface-2); position: relative; }
.fm3-upload-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--field); }
.fm3[data-theme="dark"] .fm3-upload-track i { background: var(--lime); }
.fm3-upload-done { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; }
.fm3-upload-done img { width: 56px; height: 56px; object-fit: cover; object-position: 78% 76%; border: 1px solid var(--rule); border-radius: 4px; }
.fm3-upload-done figcaption { display: grid; gap: 2px; font-size: 14px; line-height: 20px; }
.fm3-upload-done code { font: 400 12px/16px var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.fm3-phone-time { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.fm3-phone-time b { font: 400 28px/32px var(--mono); font-variant-numeric: tabular-nums; }
.fm3-phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm3-btn[disabled] { opacity: .45; cursor: default; }
@media (min-width: 1024px) {
  .fm3-field-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "photo copy" "photo phone"; gap: 32px 56px; align-items: start; }
  .fm3-field-photo { grid-area: photo; height: 100%; }
  .fm3-field-photo img { height: 100%; aspect-ratio: auto; min-height: 480px; }
  .fm3-field-copy { grid-area: copy; }
  .fm3-phone { grid-area: phone; }
}

/* ---------- Banda: l'agricoltore con il telefono ---------------------- */
.fm3-band { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--ink-2); display: grid; align-items: end; min-height: clamp(420px, 46vw, 620px); }
.fm3-band-media { position: absolute; inset: 0; z-index: -1; }
.fm3-band-media img, .fm3-band-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; }
.fm3-band-media video { opacity: 0; transition: opacity 400ms var(--ease); }
.fm3-band-media video.is-playing { opacity: 1; }
.fm3-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 16, 19, 0) 38%, rgba(16, 16, 19, .78) 100%); }
.fm3-band-copy { width: 100%; padding-block: 40px 60px; }
.fm3-band-text { font-weight: 600; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.025em; color: var(--paper); max-width: 17em; text-wrap: balance; }
@media (min-width: 1024px) { .fm3-band-media img, .fm3-band-media video { object-position: 60% 40%; } }

/* ---------- Importa --------------------------------------------------- */
.fm3-import { border-bottom: 1px solid var(--rule); background: var(--surface); padding-block: 72px; }
.fm3-import-grid { display: grid; gap: 32px; }
.fm3-import-grid > div:first-child, .fm3-price-grid > div:first-child { display: grid; gap: 16px; align-content: start; }
.fm3-imp { background: var(--bg); }
.fm3-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.fm3-tabs button { padding: 8px 12px; font-size: 14px; }
.fm3-imp-body { padding: 14px; display: grid; gap: 12px; }
.fm3-imp-body .fm3-table { border: 1px solid var(--rule); }
.fm3-imp-sum { display: flex; flex-wrap: wrap; gap: 8px 14px; font: 400 12px/18px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); }
.fm3-imp-sum b { color: var(--text); font-weight: 400; }
.fm3-imp-map { font-size: 13px; color: var(--text-2); }
@media (min-width: 1024px) { .fm3-import-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }

/* ---------- Passaporto ------------------------------------------------ */
.fm3-pass { border-bottom: 1px solid var(--rule); padding-block: 72px; }
.fm3-pass-grid { display: grid; gap: 40px; }
.fm3-pass-copy { display: grid; gap: 16px; align-content: start; }
.fm3-pass-art { display: grid; gap: 20px; align-items: start; }
.fm3-label-card {
  width: min(100%, 220px); display: grid; gap: 8px; justify-items: start; padding: 16px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; transform: rotate(-2deg); font-size: 13px; line-height: 18px;
}
.fm3-label-card b { font: 400 14px/20px var(--mono); }
.fm3-label-card svg { width: 100%; height: auto; display: block; }
.fm3-passport-body { padding: 18px; display: grid; gap: 8px; }
.fm3-where { color: var(--text-2); }
.fm3-optional {
  display: inline-block; justify-self: start; padding: 4px 8px; border: 1px solid currentColor; border-radius: 3px;
  font: 400 11px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--field);
}
.fm3[data-theme="dark"] .fm3-optional { color: var(--lime); }
.fm3-chain-card {
  display: grid; gap: 10px; margin-top: 8px; padding: 20px 22px; border: 1px solid var(--rule);
  border-left: 6px solid var(--field); border-radius: 6px; background: var(--surface);
}
.fm3[data-theme="dark"] .fm3-chain-card { border-left-color: var(--lime); }
.fm3-chain-card .fm3-h3 { font-size: clamp(20px, 2vw, 26px); }
.fm3-chain-card p:not(.fm3-optional) { color: var(--text-2); font-size: 15px; line-height: 23px; }
.fm3-chain-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 8px;
  padding: 12px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface);
}
.fm3[data-theme="dark"] .fm3-chain-row { border-color: var(--lime); }
.fm3-chain-row b { display: block; font-size: 14px; line-height: 20px; }
.fm3-chain-row div span { display: block; color: var(--text-2); font: 400 12px/18px var(--mono); overflow-wrap: anywhere; }
.fm3-chain-ico { display: grid; place-items: center; width: 28px; height: 28px; background: var(--field); color: var(--field-ink); border-radius: 4px; }
.fm3[data-theme="dark"] .fm3-chain-ico { background: var(--lime); color: var(--ink); }
.fm3-chain-ico [data-arrow] { width: 16px; height: 16px; display: block; }
@media (max-width: 480px) { .fm3-chain-row { grid-template-columns: 28px minmax(0, 1fr); } .fm3-chain-row .fm3-optional { grid-column: 2; } }
.fm3-steps { display: grid; margin-top: 8px; border-top: 1px solid var(--rule); }
.fm3-steps li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.fm3-steps span { color: var(--text-2); }
@media (min-width: 720px) { .fm3-pass-art { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .fm3-pass-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; } }

/* ---------- Per chi ---------------------------------------------------- */
.fm3-who { border-bottom: 1px solid var(--rule); padding-bottom: 72px; }
.fm3-index { border-top: 1px solid var(--rule); }
.fm3-index li { border-bottom: 1px solid var(--rule); }
.fm3-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 20px 4px; }
.fm3-index .sq { width: 40px; height: 40px; padding: 8px; background: var(--c); color: var(--ink); display: block; }
.fm3-index b { display: block; font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
.fm3-index span.t { display: block; color: var(--text-2); font-size: 15px; line-height: 22px; }
.fm3-index .go { width: 18px; height: 18px; transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .fm3-index a:hover { background: var(--surface); } .fm3-index a:hover .go { transform: translateX(4px); } }

/* ---------- Prezzi e domande ------------------------------------------ */
.fm3-price { border-bottom: 1px solid var(--rule); padding-block: 72px; background: var(--surface); }
.fm3-price-grid { display: grid; gap: 24px; }
.fm3-price-body { display: grid; gap: 16px; justify-items: start; max-width: 40em; font-size: 18px; line-height: 27px; color: var(--text-2); }
.fm3-faq { border-bottom: 1px solid var(--rule); padding-block: 72px; }
.fm3-faq-grid { display: grid; gap: 28px; }
.fm3-faq-list { border-top: 1px solid var(--rule); }
.fm3-faq details { border-bottom: 1px solid var(--rule); }
.fm3-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -0.015em; }
.fm3-faq summary::-webkit-details-marker { display: none; }
.fm3-faq summary::after { content: "+"; font: 400 20px/26px var(--mono); flex: none; }
.fm3-faq details[open] summary::after { content: "−"; }
.fm3-faq details p { padding: 0 4px 22px; color: var(--text-2); max-width: 44em; }
@media (min-width: 1024px) {
  .fm3-price-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .fm3-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
}

/* ---------- Chiusura a paesaggio (C4) --------------------------------- */
.fm3-close { position: relative; overflow: hidden; background: var(--field); color: var(--field-ink); border-bottom: 1px solid var(--rule); isolation: isolate; }
.fm3-close::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/media/vigneti-alba.jpg") center 55% / cover no-repeat;
  mix-blend-mode: multiply; opacity: .62;
}
.fm3-close-land {
  position: absolute; inset: auto 0 0 0; height: 96px;
  background:
    repeating-linear-gradient(90deg, rgba(241, 255, 204, .5) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, rgba(16, 16, 19, .0), rgba(16, 16, 19, .26));
  border-top: 1px solid rgba(241, 255, 204, .5);
}
.fm3-close-grid { position: relative; display: grid; gap: 40px; padding-block: 88px 152px; align-items: end; }
.fm3-close .fm3-sub { color: var(--field-ink); opacity: .86; margin-top: 12px; }
.fm3-close .fm3-actions { margin-top: 28px; }
.fm3-close .fm3-btn--primary { background: var(--field-ink); border-color: var(--field-ink); color: var(--field); }
@media (hover: hover) and (pointer: fine) { .fm3-close .fm3-btn--primary:hover { background: #E2F2B4; } }
.fm3-close-symbol { width: 112px; color: var(--field-ink); justify-self: start; }
.fm3-close-symbol svg { width: 100%; height: auto; display: block; }
.fm3-close-symbol .sx-symbol__spark { stroke: var(--lime); animation: fm3-spark 3.2s linear infinite; }
@keyframes fm3-spark { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (min-width: 1024px) { .fm3-close-grid { grid-template-columns: minmax(0, 1fr) 160px; padding-block: 112px 168px; } .fm3-close-symbol { width: 160px; justify-self: end; } }

/* ---------- Pagine interne: soluzioni e legali ----------------------- */
.fm3-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.fm3-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.fm3-h1--sol { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; }
.fm3-h1--legal { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; }

.fm3-solhero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--ink-2); }
.fm3-solhero-bg { position: absolute; inset: 0; z-index: -1; }
.fm3-solhero-bg img, .fm3-solhero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 40%); }
.fm3-solhero-bg video { opacity: 0; transition: opacity 400ms var(--ease); }
.fm3-solhero-bg video.is-playing { opacity: 1; }
.fm3-solhero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 100%);
}
.fm3-solhero-grid { display: grid; gap: 32px; padding-block: 56px 72px; }
.fm3-solhero-copy { display: grid; gap: 20px; align-content: start; }
.fm3-solhero-ui { min-width: 0; align-self: end; }
.fm3-credit--hero { position: absolute; right: 12px; bottom: 12px; top: auto; }
/* Telefono: la foto sta in una fascia sua, ben visibile, sopra il testo; non dietro. */
@media (max-width: 1023px) {
  .fm3-solhero { background: var(--bg); --media-h: clamp(210px, 56vw, 320px); }
  .fm3-solhero-bg { position: relative; inset: auto; z-index: auto; height: var(--media-h); border-bottom: 1px solid var(--rule); background: var(--ink-2); }
  .fm3-solhero-bg::after { display: none; }
  .fm3-solhero-grid { padding-block: 28px 56px; }
  .fm3-credit--hero { top: calc(var(--media-h) - 38px); bottom: auto; }
}
@media (min-width: 1024px) {
  .fm3-solhero-bg img, .fm3-solhero-bg video { object-position: var(--pos, 50% 40%); }
  .fm3-solhero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; padding-block: 96px 112px; align-items: end; min-height: min(78svh, 720px); }
  .fm3-solhero-bg::after {
    background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 42%, color-mix(in srgb, var(--bg) 18%, transparent) 100%);
  }
}

.fm3-chat-body { display: grid; gap: 10px; padding: 16px; }
.fm3-msg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; font-size: 15px; line-height: 22px; background: var(--bg); }
.fm3-msg b { font: 400 11px/22px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.fm3-msg--ai { background: var(--surface); border-color: var(--text-2); }
.fm3-event { justify-self: start; padding: 4px 10px; border: 1px dashed var(--text-2); border-radius: 3px; font: 400 11px/18px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.fm3-flowsec { border-bottom: 1px solid var(--rule); padding-bottom: 72px; }
.fm3-flow { display: grid; border-top: 1px solid var(--rule); counter-reset: fm3-step; }
.fm3-flow li { counter-increment: fm3-step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.fm3-flow .n { grid-row: span 3; width: 40px; height: 40px; padding: 8px; background: var(--text); color: var(--bg); }
.fm3-flow h3 { font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
.fm3-flow p { color: var(--text-2); }
.fm3-flow .tag { font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
@media (min-width: 1024px) {
  .fm3-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; border-left: 1px solid var(--rule); }
  .fm3-flow li { grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 24px; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .fm3-flow .n { grid-row: auto; }
}

.fm3-inout { border-bottom: 1px solid var(--rule); background: var(--surface); padding-block: 72px 48px; }
.fm3-inout-grid { display: grid; gap: 32px; }
.fm3-inout-head, .fm3-inout-col { display: grid; gap: 12px; align-content: start; }
.fm3-inout .fm3-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (min-width: 1024px) { .fm3-inout-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 56px; } }

.fm3-integr { border-bottom: 1px solid var(--rule); padding-block: 72px; }
.fm3-integr-grid { display: grid; gap: 28px; }
.fm3-integr-grid > div { display: grid; gap: 16px; align-content: start; }
.fm3-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.fm3-chips li { padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; font-size: 15px; line-height: 20px; background: var(--surface); }
@media (min-width: 1024px) { .fm3-integr-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

.fm3-legalhead { border-bottom: 1px solid var(--rule); padding-block: 56px 40px; }
.fm3-legalhead .fm3-in { display: grid; gap: 16px; justify-items: start; }
.fm3-legalhead .fm3-lead { color: var(--text-2); max-width: 46em; }
.fm3-legal { display: grid; gap: 0; padding-block: 8px 80px; }
.fm3-legal-nav { padding: 24px 0; display: grid; gap: 12px; }
.fm3-legal-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.fm3-legal-nav a { display: inline-flex; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.fm3-legal-nav a[aria-current="page"] { background: var(--field); border-color: var(--field); color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) { .fm3-legal-nav a:not([aria-current]):hover { background: var(--surface-2); } }
.fm3-legal-body { display: grid; max-width: 46em; }
.fm3 .sx-legal-sec { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.fm3 .sx-legal-sec:last-child { border-bottom: 0; }
.fm3 .sx-legal-sec h2 { font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.015em; }
.fm3 .sx-legal-sec p, .fm3 .sx-legal-sec li { color: var(--text-2); }
.fm3 .sx-legal-sec b { font-weight: 600; color: var(--text); }
.fm3 .sx-legal-sec a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.fm3 .sx-legal-sec code { font: 400 14px/20px var(--mono); color: var(--text); background: var(--surface); padding: 1px 4px; border-radius: 4px; }
.fm3 .sx-legal-list { display: grid; gap: 10px; }
.fm3 .sx-legal-list li { position: relative; padding-left: 18px; }
.fm3 .sx-legal-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--text); }
@media (min-width: 1024px) {
  .fm3-legal { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 24px; }
  .fm3-legal-nav { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
  .fm3-legal-nav ul { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pacchetti ------------------------------------------------- */
.fm3-pack { border-bottom: 1px solid var(--rule); padding-bottom: 72px; background: var(--surface); }
.fm3-packs { display: grid; gap: 16px; }
.fm3-pkg { display: grid; gap: 16px; align-content: start; padding: 24px; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; }
.fm3-pkg .fm3-ticks { margin-top: 0; }
.fm3-pkg-for { color: var(--text-2); }
.fm3-pkg > .fm3-btn { justify-self: start; margin-top: 8px; }
.fm3-pkg--custom { background: var(--field); border-color: var(--field); color: var(--field-ink); }
.fm3-pkg--custom .fm3-label, .fm3-pkg--custom .fm3-pkg-for { color: var(--field-ink); opacity: .86; }
.fm3-pkg--custom .fm3-ticks li::before { background: var(--lime); }
.fm3-pkg--custom .fm3-btn--primary { background: var(--field-ink); border-color: var(--field-ink); color: var(--field); }
.fm3-pack .fm3-note { margin-top: 24px; }
@media (min-width: 1024px) { .fm3-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .fm3-pkg { border-radius: 0; padding: 32px; } .fm3-pkg:first-child { border-radius: 6px 0 0 6px; } .fm3-pkg:last-child { border-radius: 0 6px 6px 0; } .fm3-pkg + .fm3-pkg { border-left: 0; } }

/* ---------- Modulo di contatto ---------------------------------------- */
.fm3-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px; border-top: 1px solid var(--rule); font-weight: 500; text-align: left; }
.fm3-menu button [data-arrow] { width: 14px; height: 14px; }
html.fm3-lock { overflow: hidden; }
.fm3-modal { padding: 0; border: 1px solid var(--text); border-radius: 6px; background: var(--bg); color: var(--text); width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
.fm3-modal[open] { display: grid; }
.fm3-modal::backdrop { background: rgba(16, 16, 19, .62); }
.fm3-form { display: grid; gap: 20px; padding: 24px; overflow: auto; max-height: calc(100dvh - 34px); overscroll-behavior: contain; }
.fm3-form-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.fm3-form-head > div { display: grid; gap: 8px; }
.fm3-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 4px; }
.fm3-x [data-arrow] { width: 18px; height: 18px; }
.fm3-form-lead { color: var(--text-2); }
.fm3-form-offline { padding: 10px 12px; border: 1px dashed var(--text-2); border-radius: 4px; font: 400 12px/18px var(--mono); letter-spacing: .02em; }
.fm3-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.fm3-fs legend { padding: 0; font: 400 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.fm3-grid { display: grid; gap: 12px; }
.fm3-f { display: grid; gap: 6px; min-width: 0; }
.fm3-f > span { font-size: 14px; line-height: 20px; font-weight: 500; }
.fm3-f input, .fm3-f select, .fm3-f textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--text-2); border-radius: 4px;
  background: var(--bg); color: var(--text); font: 400 16px/22px var(--sans); letter-spacing: -0.005em;
}
.fm3-f textarea { resize: vertical; min-height: 88px; }
.fm3-f input:focus-visible, .fm3-f select:focus-visible, .fm3-f textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fm3-f [aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.fm3-err { font: 400 12px/16px var(--mono); letter-spacing: .02em; color: #B3321A; }
.fm3[data-theme="dark"] .fm3-err { color: var(--coral); }
.fm3-choice, .fm3-checks { display: grid; gap: 8px; }
.fm3-choice label, .fm3-checks label, .fm3-tick {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; font-size: 15px; line-height: 20px;
}
.fm3-choice input, .fm3-checks input, .fm3-tick input { width: 20px; height: 20px; accent-color: var(--field); flex: none; }
.fm3-choice label:has(input:checked), .fm3-checks label:has(input:checked) { border-color: var(--text); background: var(--surface); }
.fm3-tick a { text-decoration: underline; text-underline-offset: 3px; }
.fm3-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fm3-form-foot { display: grid; gap: 10px; justify-items: start; }
.fm3-form-status { font-size: 14px; line-height: 20px; color: var(--text-2); }
.fm3-form-status.is-error { color: #B3321A; }
.fm3[data-theme="dark"] .fm3-form-status.is-error { color: var(--coral); }
.fm3-form-done { display: grid; gap: 16px; justify-items: start; padding: 32px 24px; }
@media (min-width: 720px) {
  .fm3-form { padding: 32px; }
  .fm3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm3-f--wide { grid-column: 1 / -1; }
  .fm3-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm3-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .fm3-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0; margin: 0; }
  .fm3-form { max-height: 100dvh; padding: 16px; }
}

/* ---------- Footer comune del kit ------------------------------------- */
.fm3-foot { background: var(--bg); }
.fm3 .sx-kitbar { --kb-g: 16px; }
@media (min-width: 1024px) { .fm3 .sx-kitbar { --kb-g: 40px; --kb-max: 1440px; } }

/* ---------- Movimento ridotto ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .fm3 *, .fm3 *::before, .fm3 *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fm3-close-symbol .sx-symbol__spark { display: none; }
}
