/* ============================================================
   fucinanexus.org — stile «la colata», tema del sito
   Palette dal redesign EN scartato (piano i7ywt.2, 2026-08-18),
   approvata da DD sulla landing ed estesa a tutte le pagine.
   Contrasti verificati WCAG AA (corpo 14.7:1 · accento 6.1:1).
   Caricato dopo style.css, che resta la base di layout.
   ============================================================ */

body {
    -webkit-font-smoothing: antialiased;
    --iron: #14161A;      /* fondo, carbone caldo */
    --steel: #1E232B;     /* pannelli */
    --steel-edge: #2C333D;/* bordi */
    --paper: #EAE7E0;     /* testo primario — APCA Lc 91 */
    --ash: #CED2D7;       /* testo secondario — APCA Lc 78 (era 50: illeggibile) */
    --melt: #E07B39;      /* accento fuso: SOLO segni grafici (filetti, bordi, punti) */
    --melt-text: #F0B183; /* accento quando porta testo ≥20px — APCA Lc 67 */
    --melt-btn: #F6BE92;  /* fondo dei bottoni pieni — testo carbone Lc 74 */
    --melt-deep: #B85E23;
    --verify: #C2D5E5;    /* link — APCA Lc 78 su iron, 76 su acciaio */

    background: var(--iron);
    color: var(--paper);
    font-family: 'Source Sans 3', sans-serif;
}

body h1, body h2, body h3,
body h4, body h5 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--paper);
    font-weight: 600;
}

body a { color: var(--verify); }

/* ---------------------------------------------------------- nav + footer */
body .nav {
    background: rgba(20, 22, 26, 0.97);
    border-bottom: 1px solid var(--steel-edge);
    /* niente sfocatura del fondo: su pagine lunghe costa un passaggio GPU per
       fotogramma e provoca tremolio, mentre su un fondo al 97% non si vede. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
body .nav.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
body .logo { color: var(--paper); }
body .logo-text { font-family: 'Source Serif 4', Georgia, serif; }
body .logo-tagline { color: var(--ash); }
body .logo-icon img { filter: drop-shadow(0 0 8px rgba(224, 123, 57, 0.35)); }
body .nav-links a { color: var(--ash); }
body .nav-links a:hover { color: var(--melt-text); }
body .nav-links a::after { background: var(--melt); }
body .nav-cta {
    background: var(--melt-btn);
    color: var(--iron);
    font-weight: 700;
}
body .nav-cta:hover {
    background: var(--paper);
    color: var(--iron);
    box-shadow: 0 4px 20px rgba(224, 123, 57, 0.35);
}
body .menu-toggle span { background: var(--paper); }
body .mobile-nav {
    background: var(--iron);
    border-bottom: 1px solid var(--steel-edge);
}
body .mobile-nav a { color: var(--paper); }
body .mobile-nav a:hover { color: var(--melt-text); }
body .mobile-nav .mobile-nav-group { color: var(--ash); }

body .footer {
    background: var(--iron);
    border-top: 1px solid var(--steel-edge);
    color: var(--ash);
}
body .footer h4 { color: var(--paper); }
body .footer a { color: var(--ash); }
body .footer a:hover { color: var(--melt-text); }
body .footer-tagline { color: var(--paper); }
body .footer-bottom { border-top-color: var(--steel-edge); }
body .footer-social a { color: var(--ash); }

/* ---------------------------------------------------------- bottoni */
body .btn { border-radius: 3px; }
body .btn-primary {
    background: var(--melt-btn);
    color: var(--iron);
    font-weight: 700;
}
body .btn-primary:hover {
    background: var(--paper);
    color: var(--iron);
    box-shadow: 0 8px 30px rgba(224, 123, 57, 0.3);
}
body .btn-secondary {
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--steel-edge);
}
body .btn-secondary:hover {
    background: transparent;
    border-color: var(--melt-text);
    color: var(--melt-text);
}

/* ---------------------------------------------------------- la colata
   Un binario fuso corre sul bordo sinistro del contenuto, dall'hero
   fino alle porte: il canale di colata della dottrina. */
body section { background: var(--iron); }
body .hero,
body .problem,
body .vision,
body .technology,
body .beneficiaries,
body .team,
body .governance,
body .cta { background: var(--iron); }

body .hero::before { display: none; }

body .hero-content,
body .section-container {
    position: relative;
    max-width: 1000px;
    padding-left: 2.75rem;
}
body .hero-content::before,
body .section-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(224, 123, 57, 0.85) 0%,
        rgba(224, 123, 57, 0.35) 60%,
        rgba(224, 123, 57, 0.15) 100%);
    transform-origin: top;
    animation: colata 1.1s ease-out both;
}
@keyframes colata { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* il punto di colata all'inizio di ogni atto */
body .section-container::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--melt);
    box-shadow: 0 0 10px rgba(224, 123, 57, 0.6);
}
body .cta .section-container::after { display: none; }
@media (prefers-reduced-motion: reduce) {
    body .hero-content::before,
    body .section-container::before { animation: none; }
}

/* ---------------------------------------------------------- hero */
body .hero { min-height: auto; padding: 11rem 2rem 6rem; }
body .hero-content { margin: 0 auto; }
body .hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}
body .hero h1 span {
    background: none;
    -webkit-text-fill-color: var(--melt-text);
    color: var(--melt-text);
}
body .hero-subtitle {
    color: var(--paper);
    max-width: 68ch;
    margin: 0 0 1.25rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
body .hero-subtitle:last-of-type {
    color: var(--ash);
    border-left: 2px solid var(--steel-edge);
    padding-left: 1rem;
    margin-bottom: 2.5rem;
}
body .hero-cta-group { justify-content: flex-start; }
body .hero-scroll { color: var(--ash); }
body .hero-scroll span { background: var(--ash); }

/* ---------------------------------------------------------- sezioni */
body section { padding: 5.5rem 2rem; }
body .section-header { margin-bottom: 3rem; }
body .section-label,
body .problem .section-label,
body .technology .section-label,
.page-hero .page-hero-label,
body .door-card .door-label {
    color: var(--paper);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
body .section-label::before,
.page-hero .page-hero-label::before,
body .door-card .door-label::before {
    content: '';
    width: 1.6rem;
    height: 2px;
    background: var(--melt);
    flex-shrink: 0;
}
body .section-title,
body .problem .section-title {
    color: var(--paper);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
body .section-subtitle,
body .problem .section-subtitle {
    color: var(--ash);
    max-width: 72ch;
    margin: 0;
}
body .section-header .section-subtitle + .section-subtitle { margin-top: 0.9rem; }

body .facts-list .fact-name { color: var(--paper); }
body .prose-block { max-width: 72ch; margin: 0; }
body .prose-block p { color: var(--ash); }
body .prose-block a { color: var(--verify); }
body .prose-block.uscita { border-top: 1px solid var(--steel-edge); }

/* ---------------------------------------------------------- archetipi (tavola) */
body .archetypes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
}
body .archetypes-table th,
body .archetypes-table td {
    padding: 1.15rem 1rem 1.15rem 0;
    border-top: 1px solid var(--steel-edge);
    vertical-align: baseline;
}
body .archetypes-table tr:last-child th,
body .archetypes-table tr:last-child td { border-bottom: 1px solid var(--steel-edge); }
body .archetypes-table th {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--paper);
    white-space: nowrap;
    padding-right: 2.5rem;
    width: 1%;
}
body .archetypes-table td { color: var(--ash); }

/* ---------------------------------------------------------- passi */
body .steps-list { max-width: 78ch; margin: 2.5rem 0 0; }
body .step-item {
    border-bottom: 1px solid var(--steel-edge);
    padding: 1.9rem 0;
}
body .step-item:first-child { border-top: 1px solid var(--steel-edge); }
body .step-number {
    background: transparent;
    border: 1px solid var(--melt);
    color: var(--melt-text);
    font-family: 'Source Serif 4', Georgia, serif;
    width: 42px;
    height: 42px;
    border-radius: 0;
}
body .step-item h4 { font-size: 1.3rem; }
body .step-item p { color: var(--ash); }

/* ---------------------------------------------------------- fatti */
body .facts-list { max-width: 78ch; margin: 2.5rem 0 0; }
body .fact-row { border-bottom: 1px solid var(--steel-edge); }
body .fact-row:first-child { border-top: 1px solid var(--steel-edge); }
body .fact-name {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--paper);
}
body .fact-state { color: var(--ash); }

/* ---------------------------------------------------------- porte */
body .doors-grid { gap: 1.5rem; margin-top: 3rem; }
body .door-card {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    border-radius: 4px;
    box-shadow: none;
    padding: 2.25rem 2rem;
}
body .door-card:hover {
    transform: none;
    border-color: var(--melt);
    box-shadow: none;
}
body .door-card.door-primary {
    border: 1px solid var(--melt);
    background: linear-gradient(180deg, var(--steel) 0%, rgba(224, 123, 57, 0.07) 100%);
}
body .door-card h3 { color: var(--paper); font-size: 1.5rem; }
body .door-card p { color: var(--ash); }
body .door-card:nth-child(3):hover { border-color: var(--verify); }

body .prose-block a[href^="mailto:"],
body .cta a[href^="mailto:"] {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(224, 123, 57, 0.6);
    text-underline-offset: 4px;
}

/* ---------------------------------------------------------- team + governance */
body .team-intro p,
body .governance-card p { color: var(--ash); }
body .team-subsection-title {
    color: var(--paper);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}
body .team-card,
body .governance-card {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    border-radius: 4px;
    box-shadow: none;
}
body .team-card:hover,
body .governance-card:hover { transform: none; box-shadow: none; }
body .team-card h3 { color: var(--paper); }
body .team-role { color: var(--melt-text); font-weight: 600; }
body .team-bio { color: var(--ash); }
body .governance-card h3 { color: var(--paper); }
body .team-avatar { border: 1px solid var(--steel-edge); }

/* ---------------------------------------------------------- chiusa */
body .cta {
    background: var(--iron);
    color: var(--paper);
    border-top: 1px solid var(--steel-edge);
}
body .cta h2 { color: var(--paper); }
body .cta p { color: var(--ash); opacity: 1; max-width: 72ch; margin: 0 0 1rem; }
body .cta p + p { margin-top: 0; }
body .cta .btn {
    background: var(--melt-btn);
    color: var(--iron);
    margin-top: 1.5rem;
}
body .cta .btn:hover { background: var(--paper); color: var(--iron); }

@media (max-width: 968px) {
    body .hero { padding: 8rem 1.5rem 4rem; }
    body .hero-content,
    body .section-container { padding-left: 1.5rem; }
    body .archetypes-table th,
    body .archetypes-table td { display: block; width: auto; }
    body .archetypes-table th { border-top: 1px solid var(--steel-edge); padding-bottom: 0.25rem; }
    body .archetypes-table td { border-top: none; padding-top: 0; }
}

/* menu a tendina Fondamenta, coerente con la nav scura */
body .nav-dropdown-menu-inner {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
body .nav-dropdown-menu-inner a { color: var(--paper); }
body .nav-dropdown-menu-inner a:hover {
    color: var(--melt-text);
    background: rgba(224, 123, 57, 0.08);
}

/* ============================================================
   Pagine interne — stessi materiali della landing
   ============================================================ */

/* hero di pagina */
.page-hero {
    background: var(--iron);
    border-bottom: 1px solid var(--steel-edge);
    padding: 10rem 2rem 4.5rem;
}
.page-hero h1 { color: var(--paper); margin-left: 0; margin-right: 0; }
/* La regola qui sotto centra ogni figlio dell'hero. Il titolo se ne sottrae
   con margin-left: 0, il sottotitolo no: restava rientrato di ~350px rispetto
   al titolo su tutte le pagine interne. Testo a bandiera a sinistra, mai
   centrato: si allineano tutti al titolo. */
.page-hero .page-hero-sub { color: var(--ash); max-width: 72ch; margin-left: 0; margin-right: 0; }
/* ash e non melt: l'accento saturo non porta mai testo piccolo. */
.page-hero .page-hero-collocazione { color: var(--ash); max-width: 72ch; margin-left: 0; margin-right: 0; }
.page-hero > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* riquadri di nota */
.note-box {
    background: var(--steel);
    border-left: 2px solid var(--melt);
    border-radius: 0 3px 3px 0;
    color: var(--ash);
    margin-left: 0;
}
.note-box strong { color: var(--paper); }

/* archetipi in tavola (investitori, founder) */
.archetypes-grid { display: block; }
.archetype-card {
    background: transparent;
    border: none;
    border-top: 1px solid var(--steel-edge);
    border-radius: 0;
    box-shadow: none;
    padding: 1.15rem 0;
}
.archetypes-grid .archetype-card:last-child { border-bottom: 1px solid var(--steel-edge); }
.archetype-card h4 { color: var(--paper); font-size: 1.2rem; margin-bottom: 0.35rem; }
.archetype-card p { color: var(--ash); }

/* La Visione */
.problem-grid, .vision-content, .why-now-content,
.nessi-grid, .tech-grid, .beneficiaries-grid, .blog-grid { gap: 1.5rem; }
.problem-card, .vision-pillar, .convergence-card,
.nesso-card, .tech-card, .beneficiary-card {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    border-radius: 3px;
    box-shadow: none;
}
.problem-card:hover, .nesso-card:hover, .tech-card:hover,
.beneficiary-card:hover { transform: none; box-shadow: none; border-color: var(--melt); }
.problem-card h3, .vision-pillar h4, .convergence-card h4,
.nesso-card h4, .tech-card h3, .beneficiary-content h3 { color: var(--paper); }
.problem-card p, .vision-pillar p, .convergence-card p,
.nesso-card p, .tech-card p, .beneficiary-content p,
.vision-text p, .why-now-text p, .tech-features li { color: var(--ash); }
.vision-text h3, .why-now-text h3 { color: var(--paper); }
.problem-card-icon {
    background: rgba(224, 123, 57, 0.12);
    border-radius: 3px;
}
.problem-conclusion {
    background: transparent;
    border-left: 2px solid var(--melt);
    border-radius: 0;
    padding-left: 1.5rem;
}
.problem-conclusion p { color: var(--paper); }

/* I 7 Nessi */
.solution { background: var(--iron); }
.solution-intro {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    border-radius: 3px;
}
.solution-intro-text h3 { color: var(--paper); }
.solution-intro-text p { color: var(--ash); }
.solution-metaphor { color: var(--melt-text); }
.nessi-title h3 { color: var(--paper); }
.nesso-number { color: var(--melt-text); background: none; -webkit-text-fill-color: var(--melt-text); }
.tech-subtitle { color: var(--melt-text); font-weight: 600; }
.tech-features li::before { color: var(--melt-text); }
.beneficiary-icon { background: rgba(224, 123, 57, 0.12); border-radius: 3px; }

/* Perché Ora */
.why-now { background: var(--iron); }
.convergence-icon { background: rgba(224, 123, 57, 0.12); border-radius: 3px; }

/* Building in Public */
.blog { background: var(--iron); }
.blog-intro p { color: var(--ash); }
.blog-card {
    background: var(--steel);
    border: 1px solid var(--steel-edge);
    border-radius: 3px;
    box-shadow: none;
}
.blog-card:hover { transform: none; box-shadow: none; border-color: var(--melt); }
.blog-card-content h3 { color: var(--paper); }
.blog-card-content p { color: var(--ash); }
.blog-card-date { color: var(--ash); }
.blog-card-toggle { color: var(--verify); border-color: var(--steel-edge); }
.blog-link { color: var(--verify); }
.blog-card-accordion { border-top: 1px solid var(--steel-edge); }
.blog-card-accordion p, .blog-card-accordion li { color: var(--ash); }
.blog-card-accordion h4 { color: var(--paper); }
.blog-card-accordion strong { color: var(--paper); }
.blog-card-accordion blockquote {
    border-left: 2px solid var(--melt);
    color: var(--paper);
    background: transparent;
}
.blog-card-accordion em { color: var(--ash); }

/* Rete di sicurezza: le variabili di testo della base valgono i colori del tema,
   così nessuna regola non intercettata resta scura sul carbone. */
:root {
    --text-primary: #EAE7E0;
    --text-secondary: #CED2D7;
}

/* Conflitti di specificità con la base (selettori a due classi) */
.fact-row .fact-name { color: var(--paper); }
.fact-row .fact-state { color: var(--ash); }
.prose-block h3 { color: var(--paper); }
.tech-card .tech-subtitle { color: var(--melt-text); font-weight: 600; }
.beneficiary-card .beneficiary-content h3 { color: var(--paper); }
.archetype-card .archetype-product { color: var(--melt-text); font-weight: 600; }

/* ============================================================
   Correzioni dalla review di leggibilità (motore APCA, 2026-08-18)
   ============================================================ */

/* Titoli che la base tingeva di carbone: erano invisibili sul carbone */
body .hero h1,
body .step-item h4,
.page-hero h1,
.prose-block h3,
.vision-text h3,
.why-now-text h3,
.solution-intro-text h3,
.nessi-title h3,
.problem-card h3,
.nesso-card h4,
.tech-card h3,
.vision-pillar h4,
.convergence-card h4,
.beneficiary-content h3,
.blog-card-content h3,
.blog-card-accordion h4,
.team-card h3,
.governance-card h3,
.door-card h3,
.archetype-card h4,
.note-box strong { color: var(--paper); }

/* Footer: i bianchi trasparenti della base cadevano a Lc 39 */
body .footer-brand p,
body .footer-bottom p,
body .footer-column ul li { color: var(--ash); }
body .footer-brand p.footer-tagline { color: var(--paper); }

/* Numero sulle testate delle card del blog: era quasi invisibile sull'arancione */
.blog-card-header {
    background: var(--steel) !important;
    border-bottom: 2px solid var(--melt);
}
.blog-card-number { color: var(--paper); opacity: 1; }

/* Etichette informative: il caldo resta ai segni grafici e ai numeri grandi,
   il testo che va letto passa al bianco caldo (Lc 90 contro 65). */
.tech-card .tech-subtitle,
body .team-role,
.archetype-card .archetype-product { color: var(--paper); }

/* Nomi dei fatti che rimandano al prodotto: il rimando si vede senza gridare */
.fact-name a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(224, 123, 57, 0.55);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
.fact-name a:hover {
    color: var(--melt-text);
    text-decoration-color: var(--melt-text);
}

/* Blocco in rilievo: il passaggio che regge l'intero modello */
.rilievo {
    max-width: 78ch;
    margin: 2.5rem 0 0;
    padding: 2.25rem 2.5rem;
    background: var(--steel);
    border-left: 3px solid var(--melt);
    border-radius: 0 3px 3px 0;
}
.rilievo p {
    color: var(--paper);
    font-size: 1.15rem;
    line-height: 1.75;
}
.rilievo p + p { margin-top: 1rem; }
.rilievo .rilievo-chiusa {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.35;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--steel-edge);
}
@media (max-width: 768px) {
    .rilievo { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   Mobile — la barra deve restare bassa e non coprire il contenuto
   ============================================================ */
@media (max-width: 1024px) {
    /* il bottone è già nel menu a scomparsa: nella barra ruba spazio al logo */
    body .nav-cta { display: none; }
    body .nav-container { padding: 0.6rem 1rem; }
    body .logo { gap: 0.55rem; }
    body .logo-icon { width: 36px; height: 36px; }
    body .logo-text { font-size: 1.15rem; white-space: nowrap; }
    body .logo-tagline { font-size: 0.58rem; letter-spacing: 0.12em; }
    /* il menu a scomparsa parte sotto la barra, non sopra il contenuto */
    body .mobile-nav { padding: 1rem 1.25rem 1.5rem; }
}
@media (max-width: 768px) {
    body .hero { padding: 7rem 1.25rem 3.5rem; }
    body .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    body section { padding: 3.5rem 1.25rem; }
    body .hero-content,
    body .section-container { padding-left: 1.1rem; }
    body .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
    body .step-item { gap: 1rem; }
    body .step-number { width: 38px; height: 38px; font-size: 1.15rem; }
    body .door-card { padding: 1.75rem 1.35rem; }
    .page-hero { padding: 7rem 1.25rem 2.5rem; }
    .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
