/* NEURAMA · pagina "Formule". Usa le variabili di legal.css (--ink, --bone, --hot...). */
.fm { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut) 90px; }
.fm-hero { padding: clamp(56px, 12vh, 140px) 0 clamp(36px, 7vh, 72px); }
.fm h1 { font-size: clamp(40px, 7.4vw, 104px); line-height: .98; letter-spacing: -.04em; font-weight: 700; margin: 0 0 26px; max-width: 16ch; text-wrap: balance; }
.fm h1 em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--hot); }
.fm .lede { max-width: 52ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: rgba(235, 230, 220, .8); margin: 0; }

.fm-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.fm-card { position: relative; flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 4px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(235, 230, 220, .08), transparent 70%), var(--ink-2, #0b0b10);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), border-color .4s; }
.fm-card:hover, .fm-card:focus-within { transform: translateY(-6px); border-color: var(--hot); }
.fm-idx { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--mute); }
.fm-name { margin: 14px 0 0; font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -.03em; font-stretch: 125%; text-transform: uppercase; }
.fm-card[data-n="4"] .fm-name { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 56px; line-height: 1; color: var(--hot); }
.fm-desc { margin: 14px 0 0; font-family: var(--f-serif); font-size: 22px; line-height: 1.25; color: rgba(235, 230, 220, .85); }

.fm-wave { margin: 28px 0; height: 84px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.fm-wv { width: 200%; animation: fm-sl 14s linear infinite; }
.fm-card[data-n="1"] .fm-wv { animation-duration: 18s; }
.fm-card[data-n="2"] .fm-wv { animation-duration: 14s; }
.fm-card[data-n="3"] .fm-wv { animation-duration: 10s; }
.fm-card[data-n="4"] .fm-wv { animation-duration: 7s; }
.fm-wv svg { display: block; width: 100%; height: 84px; }
.fm-wv path { fill: none; stroke: rgba(235, 230, 220, .45); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.fm-card:hover .fm-wv path, .fm-card:focus-within .fm-wv path { stroke: var(--hot); }
@keyframes fm-sl { to { transform: translateX(-50%); } }

.fm-base { margin: 0; padding-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fm-list { margin: 0; padding: 0; list-style: none; }
.fm-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--bone); }
.fm-list i { display: block; flex: none; width: 10px; height: 1px; margin-top: 11px; background: var(--mute); transition: width .45s cubic-bezier(.2, .7, .2, 1), background .3s; }
.fm-card:hover .fm-list i, .fm-card:focus-within .fm-list i { width: 22px; background: var(--hot); }

.fm-act { margin-top: auto; padding-top: 28px; }
.fm-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--bone); text-decoration: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.fm-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.fm-btn:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
/* sezione nella home */
.plans { padding: clamp(70px, 12vh, 150px) var(--gut); position: relative; }
.plans .sec-head { padding: 0 0 36px; }
.plans .pl-lead { margin: 0 0 56px; max-width: 52ch; color: rgba(235, 230, 220, .8); }
.plans .fm-grid { max-width: none; }
.fm-note { margin: 40px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: var(--mute); }

@media (prefers-reduced-motion: reduce) { .fm-wv { animation: none; } .fm-card, .fm-list i { transition: none; } .fm-card:hover, .fm-card:focus-within { transform: none; } }
