/* ==========================================================================
   HORNOI V2 — FORMAZIONE
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.fo-hero {
    padding-top: clamp(114px, 11vw, 156px);
    overflow: hidden;
}
.fo-hero__glow { top: -25%; right: -12%; width: 58vw; }

.fo-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
}
@media (max-width: 940px) {
    .fo-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .fo-ladder { max-width: 420px; margin-inline: auto; }
}

/* firma in apertura: chi parla */
.fo-hero__sig {
    padding: 7px 18px 7px 7px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 100px;
    width: max-content;
    max-width: 100%;
}
.fo-hero__sig .sig__ph { border-color: rgba(255, 255, 255, .16); }
.fo-hero__sig .sig__r { font-size: .72rem; }

/* la scala: dalla sintassi al criterio */
.fo-ladder svg { width: 100%; height: auto; overflow: visible; }

.fo-ladder .fol-bar {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1.2;
}
.fo-ladder .fol-bar.is-top {
    fill: rgba(255, 90, 31, .12);
    stroke: rgba(255, 90, 31, .45);
}

.fo-ladder .fol-lbl {
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 500;
    fill: var(--fg-muted);
}
.fo-ladder .fol-lbl.is-top { fill: var(--orange); font-weight: 600; }

.fo-ladder .fol-axis  { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 5; }
.fo-ladder .fol-arrow { stroke: var(--orange); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fo-ladder .fol-note  { font-family: var(--f-mono); font-size: 10px; fill: var(--fg-faint); }

/* --------------------------------------------------------------------------
   TEMI
   -------------------------------------------------------------------------- */
.fo-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
}
@media (max-width: 900px) { .fo-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fo-topics { grid-template-columns: minmax(0, 1fr); } }

.fo-topic {
    position: relative;
    padding: clamp(24px, 2.8vw, 34px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background var(--t);
}
.fo-topic:hover { background: var(--surface-2); }

/* niente bordi appesi sui margini della griglia */
.fo-topic:nth-child(3n) { border-right: 0; }
.fo-topic:nth-last-child(-n+3) { border-bottom: 0; }

@media (max-width: 900px) {
    .fo-topic { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .fo-topic:nth-child(3n) { border-right: 1px solid var(--line); }
    .fo-topic:nth-child(2n) { border-right: 0; }
    .fo-topic:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .fo-topic:last-child { border-bottom: 0; border-right: 0; }
}
@media (max-width: 560px) {
    .fo-topic { border-right: 0; }
    .fo-topic:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .fo-topic:last-child { border-bottom: 0; }
}

.fo-topic__ico {
    display: block;
    margin: 18px 0 16px;
    color: var(--orange);
}
.fo-topic__ico svg { width: 22px; height: 22px; }

.fo-topic .d4 { margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   BLOCCO WORKSPACE
   -------------------------------------------------------------------------- */
.fo-inside {
    padding: clamp(28px, 3.4vw, 44px);
    background: var(--surface);
    border: 1px solid rgba(255, 90, 31, .24);
    border-radius: var(--r-xl);
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.fo-inside__t {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--f-display);
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
    text-wrap: balance;
}
.fo-inside__t svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.fo-inside .body { max-width: 58ch; margin-inline: auto; }
.fo-inside .btn-txt { justify-content: center; }

/* --------------------------------------------------------------------------
   COSA TROVERAI / COSA NO
   -------------------------------------------------------------------------- */
.fo-vs { display: grid; gap: 16px; }

.fo-vs__b {
    padding: clamp(22px, 2.6vw, 30px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.fo-vs__b .mono { color: var(--fg-faint); letter-spacing: .12em; }
.fo-vs__b--good {
    border-color: rgba(255, 90, 31, .24);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .05);
}

/* --------------------------------------------------------------------------
   EVENTI
   -------------------------------------------------------------------------- */
.fo-events {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 900px) { .fo-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fo-event { margin: 0; }

.fo-event__img {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 4 / 3;
}
.fo-event__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.4);
    transition: transform .7s var(--ease), filter .5s var(--ease-io);
}
.fo-event:hover .fo-event__img img { transform: scale(1.05); filter: grayscale(0); }

.fo-event figcaption { padding-top: 14px; display: grid; gap: 4px; }
.fo-event figcaption strong {
    font-family: var(--f-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.016em;
}
.fo-event figcaption span {
    font-family: var(--f-mono);
    font-size: .7rem;
    color: var(--orange);
}
