/* ═══ HOME-SPECIFIC STYLES ═══
   Copia IDENTICA del blocco <style> di portal/home.php del portale legacy (2026-09-23).
   Si carica dopo public.css, come nel legacy. File statico fuori da Vite (vedi public.css). */

@keyframes tickLine {
    from { width: 0; }
    to { width: 100%; }
}

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 60px; position: relative;
}
/* Technical grid background */
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(35,43,58,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35,43,58,0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 20%, transparent 70%);
}
/* Amber glow */
.hero::after {
    content: ''; position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(232,168,56,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--amber-dim); color: var(--amber);
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
    padding: 7px 18px; border-radius: 4px; margin-bottom: 32px;
    letter-spacing: 0.08em; text-transform: uppercase;
    border: 1px solid rgba(232,168,56,0.2);
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--amber); animation: pulseGlow 2s infinite;
}
.hero h1 {
    font-family: var(--font-display); font-size: 4rem; font-weight: 800;
    line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.025em;
}
.hero h1 .accent {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-color: rgba(232,168,56,0.3);
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}
.hero-desc {
    font-size: 1.12rem; color: var(--text-secondary);
    max-width: 520px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══ STATS ═══ */
.stats {
    display: flex; justify-content: center; gap: 0;
    padding: 0 24px 100px; position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
}
.stat {
    flex: 1; text-align: center; padding: 0 32px;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    color: var(--amber); margin-bottom: 4px;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* ═══ FEATURES ═══ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 36px 30px; position: relative;
    transition: all 0.35s ease; overflow: hidden;
}
.feat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--amber), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.feat:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feat:hover::before { opacity: 1; }
.feat-icon {
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; background: var(--amber-dim);
    color: var(--amber);
}
.feat-icon i, .feat-icon img { width: 22px; height: 22px; }
.feat h3 {
    font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.feat p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ═══ HOW IT WORKS ═══ */
.steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; position: relative; }
.steps::before {
    content: ''; position: absolute; top: 36px; left: 15%; right: 15%;
    height: 1px; background: var(--border);
    z-index: 0;
}
.step {
    flex: 1; min-width: 260px; max-width: 320px; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 44px 28px 36px; position: relative; z-index: 1;
    transition: all 0.35s;
}
.step:hover { border-color: var(--border-light); transform: translateY(-3px); }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-deep); border: 2px solid var(--amber);
    color: var(--amber); font-family: var(--font-display);
    font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.step h3 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    margin-bottom: 10px;
}
.step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }

/* ═══ PRICING ═══ */
.pricing-wrap {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    align-items: start;
}
.plan {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 36px 26px; text-align: center;
    transition: all 0.35s; position: relative;
}
.plan:hover { border-color: var(--border-light); }
.plan--featured {
    border-color: var(--amber);
    background: var(--bg-card-alt);
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(232,168,56,0.08);
}
.plan--featured:hover { transform: scale(1.06); }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--amber); color: var(--bg-deep);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 18px; border-radius: 4px; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.plan h3 {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    margin-bottom: 6px; letter-spacing: -0.01em;
}
.plan-price {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
    margin-bottom: 4px;
}
.plan-price span {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
    color: var(--text-dim);
}
.plan-list {
    list-style: none; padding: 0; margin: 24px 0; text-align: left;
}
.plan-list li {
    padding: 7px 0; font-size: 0.8rem; color: var(--text-secondary);
    border-bottom: 1px solid rgba(35,43,58,0.6);
    display: flex; align-items: center; gap: 8px;
}
.plan-list li:last-child { border: none; }
.plan-list .ck { color: var(--teal); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.plan-list .no { color: var(--danger); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.plan-list li.off { opacity: 0.4; }
.plan-list li.plan-highlight {
    background: linear-gradient(90deg, rgba(251,191,36,0.18) 0%, rgba(251,191,36,0) 100%);
    border-left: 3px solid #f59e0b;
    padding-left: 8px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
}
.plan-new {
    display: inline-block;
    background: #16a34a;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.plan .btn-primary, .plan .btn-ghost {
    display: block; width: 100%; text-align: center;
    margin-top: 12px; padding: 12px; font-size: 0.82rem;
}

/* ═══ NFC SECTION (removed from current page but keeping styles) ═══ */

/* ═══ CTA ═══ */
.cta {
    text-align: center; padding: 120px 24px; position: relative; z-index: 1;
}
.cta::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 300px;
    background: linear-gradient(180deg, transparent, rgba(232,168,56,0.03));
    pointer-events: none;
}
.cta h2 {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    margin-bottom: 16px; letter-spacing: -0.015em; position: relative;
}
.cta p {
    color: var(--text-secondary); font-size: 1.05rem;
    margin-bottom: 36px; position: relative;
}
.cta .btn-primary { position: relative; }

/* ═══ RESPONSIVE — TABLET ═══ */
@media (max-width: 1024px) {
    .pricing-wrap { grid-template-columns: repeat(2, 1fr); }
    .plan--featured { transform: scale(1.02); }
    .plan--featured:hover { transform: scale(1.04); }
}

/* ═══ RESPONSIVE — MOBILE ═══ */
@media (max-width: 768px) {
    .hero { padding: 100px 20px 50px; min-height: auto; }
    .hero h1 { font-size: 2.4rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions a { width: 100%; max-width: 300px; text-align: center; }

    .stats { flex-wrap: wrap; gap: 0; padding-bottom: 60px; }
    .stat { flex-basis: 50%; padding: 12px 16px; border-right: none; }
    .stat-val { font-size: 1.6rem; }

    .section { padding: 80px 20px; }
    .section-title { font-size: 1.8rem; }
    .section-desc { margin-bottom: 48px; }
    .features { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
    .steps::before { display: none; }
    .step { max-width: 100%; }

    .pricing-wrap { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .plan--featured { transform: none; }
    .plan--featured:hover { transform: translateY(-3px); }

    .cta h2 { font-size: 1.7rem; }
    .cta { padding: 80px 20px; }
}
