/* ==========================================================================
   Home page: ogni sezione ha un linguaggio visivo proprio.
   - Problemi = "ticket" di assistenza (accento caldo) → portano al modulo.
   - Guide    = base di conoscenza (blu, icona libro) → portano alla guida.
   ========================================================================== */


/* Intestazioni di sezione */
.h-head { margin-bottom: var(--s-6); }
.h-head__title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); letter-spacing: -.01em; margin: 0 0 var(--s-2); }
.h-head__lead { color: var(--c-muted); font-size: 1.05rem; max-width: 60ch; margin: 0; }
.h-head--center { text-align: center; }
.h-head--center .h-head__lead { margin-inline: auto; }
.h-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); }
.h-head--split .link-arrow { white-space: nowrap; }
.h-kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin: 0 0 var(--s-2); }
.h-kicker--warm { color: #b45309; }
.h-kicker--cool { color: var(--c-primary); }
.h-kicker--light { color: var(--c-accent); }

/* Numeri sotto l'hero */
.h-proof { background: #fff; border-bottom: 1px solid var(--c-line); }
.h-proof__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-proof__item { padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: .2rem; border-left: 1px solid var(--c-line); }
.h-proof__item:first-child { border-left: 0; padding-left: 0; }
.h-proof__item strong { font-size: 1.9rem; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.h-proof__item span { color: var(--c-muted); font-size: .9rem; }

/* Come funziona: timeline orizzontale collegata */
.h-how { background: #fff; }
.h-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); position: relative; }
.h-timeline::before { content: ""; position: absolute; top: 1.75rem; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #c9d4ee 0 8px, transparent 8px 14px); }
.h-timeline__step { position: relative; text-align: center; padding: 0 var(--s-3); }
.h-timeline__icon { position: relative; display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-ink); color: var(--c-accent); box-shadow: 0 0 0 6px #fff, 0 6px 18px rgba(20, 33, 61, .18); margin-bottom: var(--s-4); }
.h-timeline__num { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-1); }
.h-timeline__step h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.h-timeline__step p { color: var(--c-muted); margin: 0 auto; max-width: 30ch; }

/* Di cosa ci occupiamo: tessere con icona */
.h-areas { background: var(--c-bg-alt); }
.h-areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.h-area { display: flex; gap: var(--s-3); align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: var(--s-5) var(--s-4); transition: border-color .15s, box-shadow .15s; }
.h-area:hover { border-color: #b9c4dc; box-shadow: var(--shadow); }
.h-area__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: linear-gradient(135deg, #e7eefc, #d6e2fb); color: var(--c-primary-d); flex: none; }
.h-area__title { font-size: 1.02rem; margin: .1rem 0 var(--s-2); }
.h-area__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; }
.h-area__list a { display: inline-block; color: var(--c-ink-2); background: var(--c-bg-alt); border: 1px solid #e6e9f0; border-radius: 999px; padding: .12rem .55rem; text-decoration: none; }
.h-area__list a:hover { color: var(--c-primary-d); background: #e7eefc; border-color: #c9d6f5; }

/* Problemi frequenti: ticket di assistenza */
.h-problems { background: linear-gradient(180deg, #fff7ed 0%, #fffbf5 100%); border-top: 1px solid #fde4c4; border-bottom: 1px solid #fde4c4; }
.h-problems__inner { display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: var(--s-7); align-items: start; }
.h-problems__head { position: sticky; top: 5.5rem; margin: 0; }
.h-problems__head .h-head__lead { margin-bottom: var(--s-5); }
.h-tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.h-ticket { display: grid; gap: .3rem; height: 100%; background: #fff; border: 1px solid #f4dcc0; border-left: 4px solid var(--c-accent); border-radius: 10px; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.h-ticket:hover, .h-ticket:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(180, 83, 9, .12); border-color: #f0c38f; border-left-color: var(--c-accent-d); }
.h-ticket__tech { justify-self: start; font-family: var(--mono); font-size: .72rem; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 4px; padding: .1rem .45rem; }
.h-ticket__title { font-weight: 700; color: var(--c-ink); font-size: 1rem; line-height: 1.3; }
.h-ticket__text { color: var(--c-muted); font-size: .9rem; font-style: italic; }
.h-ticket__text::before { content: "“"; }
.h-ticket__text::after { content: "”"; }
.h-ticket__cta { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: #b45309; margin-top: .2rem; }

/* Guide: base di conoscenza */
.h-guides { background: radial-gradient(900px 400px at 100% 0%, #e4ecfd 0%, transparent 60%), #f3f6fd; }

/* Esempi di richieste */
.h-examples { background: #fff; }

/* Perché DevRequest: banda scura */
.h-why { background: radial-gradient(900px 420px at 10% 0%, #263a6b 0%, transparent 60%), var(--c-ink); color: #c5d0e8; }
.h-why .h-head__title { color: #fff; }
.h-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.h-why__item { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: var(--s-5); }
.h-why__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: rgba(245, 159, 11, .14); color: var(--c-accent); margin-bottom: var(--s-3); }
.h-why__item h3 { color: #fff; font-size: 1.08rem; margin-bottom: var(--s-2); }
.h-why__item p { margin: 0; color: #aebbd8; font-size: .95rem; }

/* FAQ su due colonne */
.h-faq { background: #fff; }
.h-faq__inner { display: grid; grid-template-columns: 1fr 1.8fr; gap: var(--s-7); align-items: start; }
.h-faq__head { margin: 0; }
.h-faq__head .h-head__lead { margin-bottom: var(--s-4); }
.h-faq__list .faq__item { border: 1px solid var(--c-line); border-radius: 10px; padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); background: #fff; transition: border-color .15s; }
.h-faq__list .faq__item[open] { border-color: #b9c4dc; box-shadow: var(--shadow); }
.h-faq__list .faq__item summary::after { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-ink); flex: none; }

@media (max-width: 1100px) {
    .h-areas__grid { grid-template-columns: repeat(2, 1fr); }
    .h-problems__inner { grid-template-columns: 1fr; gap: var(--s-5); }
    .h-problems__head { position: static; }
}
@media (max-width: 960px) {
    .h-why__grid { grid-template-columns: repeat(2, 1fr); }
    .h-proof__inner { grid-template-columns: repeat(2, 1fr); }
    .h-proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
    .h-faq__inner { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 680px) {
    .h-timeline { grid-template-columns: 1fr; gap: var(--s-5); }
    .h-timeline::before { display: none; }
    .h-areas__grid, .h-tickets, .h-why__grid { grid-template-columns: 1fr; }
    .h-head--split { flex-direction: column; align-items: flex-start; }
    .h-proof__item strong { font-size: 1.5rem; }
}
