/**
 * Pagine pubbliche di www.campify.it: homepage, pagine di soluzione (pages/soluzione.php) e guide
 * (pages/guide.php). Tutto è sotto .home-page: area famiglie, login e registrazione non cambiano.
 */

.home-page {
    --hp-ink: #0f172a;
    --hp-text: #334155;
    --hp-muted: #64748b;
    --hp-line: #e8e8f0;
    --hp-soft: #f7f7fb;
    --hp-violet: #7c3aed;
    --hp-violet-dark: #6d28d9;
    --hp-indigo: #4f46e5;
    --hp-grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --hp-radius: 24px;
    --hp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .16);
    --hp-shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 40px 80px -30px rgba(49, 26, 110, .35);
    --hp-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: var(--hp-text);
}

.home-page main { overflow-x: clip; }

.home-page h1, .home-page h2, .home-page h3, .home-page h4 {
    font-family: var(--hp-display);
    color: var(--hp-ink);
    letter-spacing: -.02em;
}

.home-page section[id] { scroll-margin-top: 80px; }

/* ---------- Header (solo in homepage) ---------- */
.home-page .navbar {
    background: rgba(255, 255, 255, .82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: none !important;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.home-page .navbar.is-scrolled {
    border-bottom-color: rgba(15, 23, 42, .07);
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35) !important;
}
.home-page .nav-link { font-size: .95rem; }
/* Su telefono e tablet il menu aperto copre la pagina: sfondo pieno, niente trasparenza */
@media (max-width: 1199.98px) {
    .home-page .navbar { background: #fff !important; }
}
@media (max-width: 399.98px) {
    .navbar-brand img { height: 32px; width: auto; }
}

/* ---------- Pulsanti ---------- */
.home-page .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    border-radius: 14px;
    padding: .9rem 1.5rem;
    font-size: 1.02rem;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.home-page .hp-btn:hover { transform: translateY(-1px); }
.home-page .hp-btn-primary {
    color: #fff;
    background: var(--hp-grad);
    box-shadow: 0 10px 24px -10px rgba(109, 40, 217, .7);
}
.home-page .hp-btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(109, 40, 217, .75); }
.home-page .hp-btn-light {
    color: var(--hp-ink);
    background: #fff;
    border-color: var(--hp-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.home-page .hp-btn-light:hover { color: var(--hp-violet-dark); border-color: #d9d3f5; }
.home-page .hp-btn-white { color: var(--hp-violet-dark); background: #fff; }
.home-page .hp-btn-white:hover { color: var(--hp-violet-dark); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.home-page .hp-btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.home-page .hp-btn-outline-white:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Titoli di sezione ---------- */
.home-page .hp-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.home-page .hp-section-soft { background: var(--hp-soft); }
.home-page .hp-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.home-page .hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-violet);
    margin-bottom: .9rem;
}
.home-page .hp-h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.home-page .hp-sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--hp-muted); margin: 0; }
.home-page .hp-nowrap { white-space: nowrap; }
.home-page .hp-grad-text {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Le righe colorate del logo */
.home-page .hp-stripe { display: inline-flex; gap: 4px; }
.home-page .hp-stripe i { display: block; height: 4px; border-radius: 4px; }
.home-page .hp-stripe i:nth-child(1) { width: 18px; background: #3b82f6; }
.home-page .hp-stripe i:nth-child(2) { width: 14px; background: #ef4444; }
.home-page .hp-stripe i:nth-child(3) { width: 20px; background: #22c55e; }
.home-page .hp-stripe i:nth-child(4) { width: 10px; background: #f59e0b; }
.home-page .hp-stripe i:nth-child(5) { width: 6px; background: #0ea5e9; }

/* ---------- Hero ---------- */
.home-page .hp-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
    isolation: isolate;
}
.home-page .hp-hero::before {
    content: "";
    position: absolute;
    inset: -76px 0 0;
    z-index: -1;
    background:
        radial-gradient(38rem 26rem at 88% 8%, rgba(124, 58, 237, .16), transparent 70%),
        radial-gradient(30rem 22rem at 8% 18%, rgba(14, 165, 233, .12), transparent 70%),
        radial-gradient(34rem 24rem at 60% 100%, rgba(236, 72, 153, .08), transparent 70%);
}
.home-page .hp-hero::after {
    content: "";
    position: absolute;
    inset: -76px 0 0;
    z-index: -1;
    background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
.home-page .hp-announce {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .9rem .35rem .4rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6e1fb;
    box-shadow: 0 6px 18px -12px rgba(109, 40, 217, .55);
    color: var(--hp-text);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.home-page .hp-announce:hover { color: var(--hp-violet-dark); border-color: #d5cbfa; }
.home-page .hp-announce-tag {
    background: var(--hp-grad);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .25rem .6rem;
}
.home-page .hp-title {
    font-size: clamp(2.35rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 1.25rem;
}
.home-page .hp-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--hp-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}
.home-page .hp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.home-page .hp-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    font-size: .92rem;
    color: var(--hp-muted);
}
.home-page .hp-checks li::before {
    content: "\F26A"; /* bi-check-circle-fill */
    font-family: "bootstrap-icons";
    color: #22c55e;
    margin-right: .4rem;
    vertical-align: -.1em;
}

/* Composizione: finestra del gestionale + telefono con l'app */
.home-page .hp-hero-visual {
    position: relative;
    padding: 0 8% 12% 0;
}
.home-page .hp-browser {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: var(--hp-shadow-lg);
    overflow: hidden;
}
.home-page .hp-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: #f4f4f8;
    border-bottom: 1px solid #e9e9f0;
}
.home-page .hp-browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e1e1e8; }
.home-page .hp-browser-bar > span:nth-child(1) { background: #ff6059; }
.home-page .hp-browser-bar > span:nth-child(2) { background: #ffbe2f; }
.home-page .hp-browser-bar > span:nth-child(3) { background: #29c941; }
.home-page .hp-browser-url {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: 10px;
    height: 22px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    color: var(--hp-muted);
    font-size: 11px;
}
.home-page .hp-browser img { display: block; width: 100%; height: auto; }

.home-page .hp-phone {
    position: relative;
    border-radius: 44px;
    padding: 9px;
    background: #111118;
    box-shadow: inset 0 0 0 2px #2c2c3a, 0 40px 70px -28px rgba(15, 23, 42, .55);
}
.home-page .hp-phone::after { /* dynamic island */
    content: "";
    position: absolute;
    top: 21px;
    left: 50%;
    width: 30%;
    height: 5.5%;
    max-height: 26px;
    transform: translateX(-50%);
    background: #000;
    border-radius: 20px;
}
.home-page .hp-phone img { display: block; width: 100%; height: auto; border-radius: 35px; }
.home-page .hp-hero-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 31%;
    border-radius: 32px;
    padding: 6px;
}
.home-page .hp-hero-phone::after { top: 14px; height: 4.8%; }
.home-page .hp-hero-phone img { border-radius: 26px; }

.home-page .hp-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
    font-size: .82rem;
    line-height: 1.25;
    color: var(--hp-muted);
    white-space: nowrap;
}
.home-page .hp-float strong { display: block; color: var(--hp-ink); font-size: .88rem; }
.home-page .hp-float-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.home-page .hp-float-pay { left: -4%; bottom: 20%; }
.home-page .hp-float-pay .hp-float-icon { background: #dcfce7; color: #16a34a; }
.home-page .hp-float-doc { left: 26%; bottom: 2%; }
.home-page .hp-float-doc .hp-float-icon { background: #ede9fe; color: var(--hp-violet); }

@media (max-width: 991.98px) {
    .home-page .hp-hero-visual { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .home-page .hp-hero-visual { padding-right: 6%; }
    .home-page .hp-hero-phone { width: 34%; border-radius: 22px; padding: 4px; }
    .home-page .hp-hero-phone img { border-radius: 18px; }
    .home-page .hp-hero-phone::after { top: 9px; }
    .home-page .hp-float { font-size: .72rem; padding: .5rem .65rem; gap: .5rem; border-radius: 12px; }
    .home-page .hp-float strong { font-size: .76rem; }
    .home-page .hp-float-icon { width: 28px; height: 28px; font-size: .9rem; border-radius: 8px; }
    .home-page .hp-float-pay { left: 0; bottom: 16%; }
    .home-page .hp-float-doc { display: none; }
}

/* ---------- Striscia attività ---------- */
.home-page .hp-strip { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.home-page .hp-strip p { text-align: center; color: var(--hp-muted); font-size: .95rem; margin-bottom: 1rem; }
.home-page .hp-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}
.home-page .hp-chips li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hp-line);
    color: var(--hp-ink);
    font-weight: 600;
    font-size: .92rem;
}
.home-page .hp-chips i { color: var(--hp-violet); }

/* ---------- Per chi è ---------- */
.home-page .hp-audience {
    position: relative;
    height: 100%;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
    display: flex;
    flex-direction: column;
}
.home-page .hp-audience-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.home-page .hp-audience h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.home-page .hp-audience > p { color: var(--hp-muted); margin-bottom: 1.25rem; }
.home-page .hp-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.home-page .hp-list li { position: relative; padding: .45rem 0 .45rem 2rem; color: var(--hp-text); }
.home-page .hp-list li::before {
    content: "\F272"; /* bi-check2 */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .42rem;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: .8rem;
    background: #ede9fe;
    color: var(--hp-violet);
}
.home-page .hp-audience-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.home-page .hp-audience-org .hp-audience-icon { background: #ede9fe; color: var(--hp-violet); }
.home-page .hp-audience-fam .hp-audience-icon { background: #dcfce7; color: #16a34a; }
.home-page .hp-audience-fam .hp-list li::before { background: #dcfce7; color: #16a34a; }

/* ---------- Funzionalità (bento) ---------- */
.home-page .hp-bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .home-page .hp-bento { grid-template-columns: repeat(2, 1fr); }
    .home-page .hp-tile-wide { grid-column: span 2; }
}
@media (min-width: 992px) {
    .home-page .hp-bento { grid-template-columns: repeat(3, 1fr); }
    .home-page .hp-tile-full { grid-column: 1 / -1; }
}
.home-page .hp-tile {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-page .hp-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 48px -24px rgba(15, 23, 42, .3); }
.home-page .hp-tile-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}
.home-page .hp-tile h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.home-page .hp-tile p { color: var(--hp-muted); margin-bottom: 0; }
.home-page .hp-tile-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.home-page .hp-tile-tags span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--hp-text);
    background: var(--hp-soft);
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    padding: .25rem .65rem;
}
.home-page .hp-tile-wide { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .home-page .hp-tile-wide { grid-template-columns: 1fr 1.15fr; } }
@media (min-width: 992px) { .home-page .hp-tile-full { grid-template-columns: 1fr 2fr; gap: 2.5rem; padding: 2.25rem; } }

/* Riquadro pagamenti: righe d'esempio in fondo */
.home-page .hp-tile-col { display: flex; flex-direction: column; }
.home-page .hp-mini-list { margin-top: auto; padding-top: 1.25rem; display: grid; gap: .5rem; }
.home-page .hp-mini-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: 14px;
    border: 1px solid var(--hp-line);
    background: #fff;
}
.home-page .hp-mini-row div { flex: 1; min-width: 0; line-height: 1.25; }
.home-page .hp-mini-row strong { display: block; font-size: .88rem; color: var(--hp-ink); }
.home-page .hp-mini-row small { color: var(--hp-muted); font-size: .78rem; }
.home-page .hp-mini-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.home-page .hp-mini-badge { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .55rem; white-space: nowrap; }
.home-page .hp-mini-badge.ok { background: #dcfce7; color: #15803d; }
.home-page .hp-mini-badge.wait { background: #fef3c7; color: #b45309; }
.home-page .hp-mini-badge.next { background: #ede9fe; color: #6d28d9; }
.home-page .hp-tile-shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .4);
    background: #fff;
}
.home-page .hp-tile-shot img { display: block; width: 100%; height: auto; }
.home-page .hp-extra {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
    margin-top: 2.25rem;
    color: var(--hp-muted);
    font-size: .95rem;
}
.home-page .hp-extra span { display: inline-flex; align-items: center; gap: .4rem; }
.home-page .hp-extra i { color: var(--hp-violet); }

/* Colori delle icone */
.home-page .ic-violet { background: #ede9fe; color: #7c3aed; }
.home-page .ic-green { background: #dcfce7; color: #16a34a; }
.home-page .ic-blue { background: #dbeafe; color: #2563eb; }
.home-page .ic-orange { background: #ffedd5; color: #ea580c; }
.home-page .ic-pink { background: #fce7f3; color: #db2777; }
.home-page .ic-teal { background: #ccfbf1; color: #0d9488; }
.home-page .ic-red { background: #fee2e2; color: #dc2626; }

/* ---------- Come funziona ---------- */
.home-page .hp-steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .home-page .hp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .home-page .hp-steps { grid-template-columns: repeat(4, 1fr); } }
.home-page .hp-step {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
}
.home-page .hp-step-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-family: var(--hp-display);
    font-weight: 800;
    color: #fff;
    background: var(--hp-grad);
    box-shadow: 0 10px 20px -10px rgba(109, 40, 217, .7);
}
.home-page .hp-step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.home-page .hp-step p { color: var(--hp-muted); margin: 0; font-size: .96rem; }

/* ---------- App ---------- */
.home-page .hp-app {
    position: relative;
    isolation: isolate;
    color: #e9e5ff;
    background: #1e1147;
    overflow: hidden;
}
.home-page .hp-app::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(40rem 30rem at 85% 30%, rgba(124, 58, 237, .55), transparent 70%),
        radial-gradient(30rem 26rem at 10% 90%, rgba(79, 70, 229, .45), transparent 70%),
        linear-gradient(160deg, #241454 0%, #150b33 100%);
}
.home-page .hp-app h2 { color: #fff; }
.home-page .hp-app .hp-eyebrow { color: #c4b5fd; }
.home-page .hp-app-lead { color: #cfc7f5; font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 34rem; }
.home-page .hp-app-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.home-page .hp-app-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
}
.home-page .hp-app-features { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
@media (min-width: 576px) { .home-page .hp-app-features { grid-template-columns: repeat(2, 1fr); } }
.home-page .hp-app-features li { display: flex; gap: .85rem; }
.home-page .hp-app-features .hp-app-ic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.1rem;
}
.home-page .hp-app-features strong { display: block; color: #fff; font-weight: 600; margin-bottom: .1rem; }
.home-page .hp-app-features span { color: #bfb6ea; font-size: .92rem; line-height: 1.45; }
.home-page .hp-stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.home-page .hp-store {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 1.1rem .6rem .9rem;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    line-height: 1.1;
    cursor: default;
    user-select: none;
}
.home-page a.hp-store { cursor: pointer; text-decoration: none; transition: border-color .2s; }
.home-page a.hp-store:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.home-page .hp-store i { font-size: 1.6rem; }
.home-page .hp-store small { display: block; font-size: .68rem; opacity: .8; letter-spacing: .02em; }
.home-page .hp-store strong { display: block; font-size: 1.05rem; font-weight: 600; }
.home-page .hp-app-note { color: #bfb6ea; font-size: .92rem; margin: 0; }
.home-page .hp-app-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.home-page .hp-app-note a:hover { color: #ddd6fe; }

.home-page .hp-app-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1rem 0 0;
}
.home-page .hp-app-phones .hp-phone { width: 44%; max-width: 270px; }
.home-page .hp-app-phones .hp-phone-side { width: 36%; max-width: 225px; opacity: .92; }
.home-page .hp-app-phones .hp-phone-left { transform: translateX(22%) rotate(-7deg); z-index: 1; }
.home-page .hp-app-phones .hp-phone-center { z-index: 2; }
.home-page .hp-app-phones .hp-phone-right { transform: translateX(-22%) rotate(7deg); z-index: 1; }
@media (max-width: 575.98px) {
    .home-page .hp-app-phones .hp-phone { width: 56%; border-radius: 30px; padding: 6px; }
    .home-page .hp-app-phones .hp-phone img { border-radius: 24px; }
    .home-page .hp-app-phones .hp-phone::after { top: 13px; }
    .home-page .hp-app-phones .hp-phone-side { width: 42%; }
}

/* ---------- Prezzi ---------- */
.home-page .hp-plan {
    position: relative;
    height: 100%;
    padding: 2rem;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
    display: flex;
    flex-direction: column;
}
.home-page .hp-plan-featured {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--hp-grad) border-box;
    box-shadow: 0 30px 60px -30px rgba(109, 40, 217, .55);
}
.home-page .hp-plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: .35rem .9rem;
    border-radius: 999px;
    background: var(--hp-grad);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.home-page .hp-plan-name { font-weight: 700; color: var(--hp-violet); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.home-page .hp-plan-price {
    font-family: var(--hp-display);
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--hp-ink);
    letter-spacing: -.03em;
    line-height: 1;
    margin: .75rem 0 .35rem;
}
.home-page .hp-plan-price small { font-size: 1rem; font-weight: 600; color: var(--hp-muted); letter-spacing: 0; }
.home-page .hp-plan-note { color: var(--hp-muted); font-size: .9rem; min-height: 1.4em; }
.home-page .hp-plan-save {
    display: inline-block;
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    border-radius: 999px;
    padding: .2rem .6rem;
}
.home-page .hp-plan hr { margin: 1.5rem 0; border-color: var(--hp-line); opacity: 1; }
.home-page .hp-plan .hp-list { margin-bottom: 1.75rem; }
.home-page .hp-plan .hp-list li.no { color: var(--hp-muted); }
.home-page .hp-plan .hp-list li.no::before { content: "\F62A"; background: #f1f5f9; color: #94a3b8; } /* bi-x */
.home-page .hp-plan .hp-btn { margin-top: auto; width: 100%; }
.home-page .hp-plan-foot { text-align: center; color: var(--hp-muted); font-size: .85rem; margin: .65rem 0 0; }

/* ---------- FAQ ---------- */
.home-page .hp-faq .accordion-item {
    border: 1px solid var(--hp-line);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: .75rem;
    background: #fff;
}
.home-page .hp-faq .accordion-button {
    font-family: var(--hp-display);
    font-weight: 700;
    color: var(--hp-ink);
    font-size: 1.05rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
    box-shadow: none;
}
.home-page .hp-faq .accordion-button:not(.collapsed) { color: var(--hp-violet-dark); background: #faf8ff; }
.home-page .hp-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.home-page .hp-faq .accordion-body { color: var(--hp-muted); padding: 0 1.35rem 1.25rem; background: #faf8ff; }

/* ---------- CTA finale ---------- */
.home-page .hp-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: 32px;
    background: var(--hp-grad);
    color: #ede9fe;
    text-align: center;
}
.home-page .hp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(26rem 18rem at 12% 0%, rgba(255, 255, 255, .22), transparent 70%),
        radial-gradient(24rem 18rem at 100% 100%, rgba(14, 165, 233, .35), transparent 70%);
}
.home-page .hp-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.home-page .hp-cta p { font-size: 1.1rem; margin: 0 auto 2rem; max-width: 36rem; }
.home-page .hp-cta .hp-actions { justify-content: center; margin-bottom: 1.25rem; }
.home-page .hp-cta-mail { color: #ddd6fe; font-size: .95rem; }
.home-page .hp-cta-mail a { color: #fff; font-weight: 600; }

/* ---------- Animazioni (GSAP, assets/js/home.js) ---------- */
/* Nascosti solo finché parte GSAP: hp-anim la mette l'head (mai con "riduci movimento") e la toglie se GSAP non arriva */
.hp-anim .home-page [data-anim] { visibility: hidden; }

/* Come funziona: linea che si riempie scorrendo (solo con i 4 passi in fila) */
.home-page .hp-steps-track { display: none; }
@media (min-width: 1200px) {
    .home-page .hp-steps-track {
        display: block;
        position: relative;
        height: 4px;
        margin: 0 12.5% 1.75rem;
        border-radius: 4px;
        background: var(--hp-line);
        overflow: hidden;
    }
    .home-page .hp-steps-track span {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(90deg, #7c3aed, #4f46e5 50%, #0ea5e9);
        transform-origin: left center;
    }
}

/* Movimenti continui, leggeri (solo trasformazioni e sfondi), mai con "riduci movimento" */
@media (prefers-reduced-motion: no-preference) {
    .home-page .hp-grad-text {
        background-image: linear-gradient(90deg, #7c3aed 0%, #4f46e5 25%, #0ea5e9 50%, #4f46e5 75%, #7c3aed 100%);
        background-size: 200% auto;
        animation: hp-riflesso 7s linear infinite;
    }
    .home-page .hp-hero::before { animation: hp-aurora 18s ease-in-out infinite alternate; }
    .home-page .hp-app::before { animation: hp-aurora 24s ease-in-out infinite alternate; }
    .home-page .hp-cta { background-size: 200% 200%; animation: hp-sfondo 12s ease-in-out infinite alternate; }
}
@keyframes hp-riflesso { to { background-position: 200% center; } }
@keyframes hp-aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
@keyframes hp-sfondo {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* ---------- Pagine di soluzione e guide (SEO) ---------- */
.home-page .hp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    padding-top: 1.25rem;
    font-size: .85rem;
    color: var(--hp-muted);
}
.home-page .hp-breadcrumb a { color: var(--hp-muted); }
.home-page .hp-breadcrumb a:hover { color: var(--hp-violet); }
.home-page .hp-breadcrumb i { font-size: .7rem; opacity: .6; }
.home-page .hp-breadcrumb span { color: var(--hp-ink); font-weight: 600; }

.home-page .hp-hero-seo { padding-top: clamp(1.5rem, 4vw, 3rem); }
.home-page .hp-title-seo { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.home-page .hp-seo-visual { max-width: 620px; margin: 0 auto; }
.home-page .hp-seo-phone { width: min(300px, 70%); margin: 0 auto; }
.home-page .hp-seo-testo { color: var(--hp-muted); font-size: 1.05rem; }
.home-page .hp-stores-chiari { margin-top: .5rem; }

.home-page .hp-problema {
    height: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hp-line);
}
.home-page .hp-problema i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.15rem;
    background: #fee2e2;
    color: #dc2626;
    margin-bottom: .9rem;
}
.home-page .hp-problema h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.home-page .hp-problema p { color: var(--hp-muted); margin: 0; font-size: .95rem; }

.home-page .hp-link-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    height: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
    color: var(--hp-ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-page .hp-link-card:hover { transform: translateY(-3px); border-color: #d9d3f5; color: var(--hp-ink); }
.home-page .hp-link-card strong { font-family: var(--hp-display); font-size: 1.12rem; line-height: 1.3; }
.home-page .hp-link-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-violet); }
.home-page .hp-link-testo { color: var(--hp-muted); font-size: .95rem; }
.home-page .hp-link-go { margin-top: auto; font-weight: 600; color: var(--hp-violet-dark); font-size: .95rem; }
.home-page .hp-link-guida .hp-link-eyebrow { color: #0d9488; }

.home-page .hp-guida-testa { max-width: 820px; margin-bottom: 2.5rem; }
.home-page .hp-guida-titolo { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.home-page .hp-guida-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; color: var(--hp-muted); font-size: .9rem; }
.home-page .hp-guida-meta i { color: var(--hp-violet); margin-right: .3rem; }

.home-page .hp-guida-corpo { font-size: 1.08rem; line-height: 1.75; color: var(--hp-text); }
.home-page .hp-guida-corpo h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 90px;
}
.home-page .hp-guida-corpo h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.home-page .hp-guida-corpo p { margin-bottom: 1.1rem; }
.home-page .hp-guida-corpo ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.home-page .hp-guida-corpo li { margin-bottom: .45rem; }
.home-page .hp-guida-corpo a { color: var(--hp-violet-dark); text-decoration: underline; text-underline-offset: 3px; }
.home-page .hp-guida-box {
    margin: 2.5rem 0 0;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: #faf8ff;
    border: 1px solid #e6e1fb;
}
.home-page .hp-guida-box h3 { margin-top: 0; }
.home-page .hp-guida-box ul { margin-bottom: 0; }

.home-page .hp-guida-lato { position: sticky; top: 96px; display: grid; gap: 1rem; }
.home-page .hp-guida-indice {
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: var(--hp-soft);
    border: 1px solid var(--hp-line);
    font-size: .92rem;
}
.home-page .hp-guida-indice strong { display: block; margin-bottom: .6rem; color: var(--hp-ink); }
.home-page .hp-guida-indice ul { margin: 0; padding: 0; list-style: none; }
.home-page .hp-guida-indice li { margin-bottom: .35rem; }
.home-page .hp-guida-indice a { color: var(--hp-text); }
.home-page .hp-guida-indice a:hover { color: var(--hp-violet); }
@media (max-width: 991.98px) {
    .home-page .hp-guida-lato { position: static; }
}
.home-page .hp-audience-link { font-size: .92rem; color: var(--hp-muted); margin: -.5rem 0 1.25rem; }
.home-page .hp-audience-link a { color: var(--hp-violet-dark); font-weight: 600; }
