/* Le pagine pubbliche di contenuto: home, guida, proposte. Si carica dopo i fogli prima di lui in index.html: l'ordine conta. */

/* ---- Hero ---- */
.hero { position: relative; padding: 2.2rem 0 2rem; border-bottom: 1px solid var(--hairline); margin-bottom: 1.8rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6a6c88; }
.hero__eyebrow::before { content: ""; width: 2.4rem; height: .3rem; border-radius: 1rem; background: var(--brand-rainbow); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.02; letter-spacing: -.03em; margin: .1rem 0 1rem; }
.hero h1 .accent { background: linear-gradient(90deg, var(--brand-violet), #7a3fb0 55%, var(--brand-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #5b5d78; font-size: 1.05rem; max-width: 42rem; }
.hero__azioni { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }

/* ---- Home: come si usa un blueprint ---- */
.percorso { margin-top: 2.4rem; scroll-margin-top: 4rem; }
.percorso__intro { font-size: 1.05rem; color: #3a3c58; max-width: 52rem; }
.copertura { display: flex; border-radius: 1rem; overflow: hidden; margin: 1.2rem 0 1.8rem; font-size: .85rem; box-shadow: var(--shadow); }
.copertura__blueprint { background: linear-gradient(90deg, var(--brand-violet), #7a3fb0); color: #fff; padding: .7rem 1rem; }
.copertura__resto { flex: 1; background: repeating-linear-gradient(45deg, #fdf6dd, #fdf6dd 8px, #fbefc4 8px, #fbefc4 16px); color: #6b4a00; padding: .7rem 1rem; }
.copertura b { font-size: 1.05rem; margin-right: .3rem; }
.passi-uso { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; position: relative; }
.passi-uso::before { content: ""; position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; border-left: 2px dashed rgba(109,94,252,.35); }
.passo-uso { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1rem; position: relative; }
.passo-uso__n { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--brand-ink); color: #fff; display: grid; place-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 4px var(--bg); }
.passo-uso__corpo { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.passo-uso__corpo h3 { margin: 0 0 .4rem; }
.passo-uso__corpo p { margin: 0 0 .6rem; }
.passo-uso__corpo pre { margin: .2rem 0 .6rem; white-space: pre-wrap; font-size: .85rem; }
.passo-uso__chi { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-violet-ink); margin: 0 !important; }
.percorso__regola { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--brand-ink); color: #fff; }
.percorso__regola b { color: var(--brand-lime); }
.percorso__regola a { color: #fff; }

/* ---- Home: gli atti della guida a scomparsa ---- */
.atto-box { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); margin: .6rem 0; }
.atto-box > summary { list-style: none; cursor: pointer; margin: 0; padding: .7rem 1rem; }
.atto-box > summary::-webkit-details-marker { display: none; }
.atto-box > summary::after { content: "+"; font-size: 1.3rem; font-weight: 700; color: var(--brand-violet); align-self: center; }
.atto-box[open] > summary::after { content: "–"; }
.atto-box[open] > summary { border-bottom: 1px solid var(--hairline); }
.atto-box > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.atto-box > :last-child { margin-bottom: 1rem; }
.atto-box--proposta { border-style: dashed; }
.atto-box > summary.atto { grid-template-columns: 2.7rem 1fr auto; margin: 0; }

/* ---- Home: il deck della demo ---- */
.deck { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.deck__slide { position: relative; aspect-ratio: auto; background: linear-gradient(160deg, #fff, #f6f5ff); border: 1px solid var(--hairline); border-radius: .7rem; padding: .9rem 1rem .8rem; box-shadow: var(--shadow); }
.deck__n { position: absolute; top: .6rem; right: .8rem; font-size: .7rem; font-weight: 800; color: var(--brand-violet-ink); }
.deck__slide h4 { margin: 0 0 .4rem; font-size: 1rem; }
.deck__slide p { margin: .3rem 0 0; font-size: .85rem; line-height: 1.45; }
.deck__esempio { color: var(--muted); }
.deck__slide h4 { padding-right: 5.2rem; }

/* ---- Home: i tre ingressi ---- */
.ingressi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.ingresso { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.ingresso:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ingresso__figura { width: 100%; height: 96px; margin-bottom: .4rem; border-radius: .6rem; background: linear-gradient(135deg, #f3f1ff, #eef9fb); padding: .5rem; box-sizing: border-box; }
.ingresso__eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-violet-ink); }
.ingresso__titolo { font-size: 1.2rem; color: var(--brand-ink); }
.ingresso__testo { font-size: .9rem; line-height: 1.5; color: #3a3c58; flex: 1; }
.ingresso__vai { margin-top: .4rem; font-weight: 700; font-size: .88rem; color: var(--brand-violet); }
.ingresso .f-scuro { fill: var(--brand-ink); } .ingresso .f-lime { fill: var(--brand-lime); } .ingresso .f-viola { fill: var(--brand-violet); }
.ingresso .f-viola2 { fill: #b9b0ff; } .ingresso .f-tenue { fill: #dcdbe8; } .ingresso .f-bianco { fill: #fff; }
.ingresso .s-viola { stroke: var(--brand-violet); stroke-width: 2; } .ingresso .s-scuro { stroke: var(--brand-ink); } .ingresso .s-lime { stroke: #8fbf14; } .ingresso .s-spesso { stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ingresso .t-num { font: 800 10px var(--font, sans-serif); fill: #fff; text-anchor: middle; } .ingresso .t-num--scuro { fill: var(--brand-ink); }

/* «Proponi»: il testo a sinistra, la chat sempre visibile in alto a destra. */
.proposta--chat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.6rem; align-items: start; }
.proposta__testo .proposta__passi { margin: 1rem 0 0; }
.proposta__chat { position: sticky; top: 1rem; display: grid; gap: .5rem; }
.proposta__chat .assistente-chat { min-height: 460px; }
@media (max-width: 900px) { .proposta--chat { grid-template-columns: 1fr; } .proposta__chat { position: static; order: -1; } }
