:root {
    --bg: #f7f8fc;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #4b5563;
    --line: #d9deea;
    --primary: #ff6a3d;
    --accent: #f5b700;
    --deep: #0f172a;
    --ok: #0f9d84;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 14%, #ffe5cc 0%, #ffe5cc 12%, rgba(255, 229, 204, 0) 38%),
        radial-gradient(circle at 88% 18%, #ffe8a3 0%, #ffe8a3 10%, rgba(255, 232, 163, 0) 33%),
        linear-gradient(180deg, #ffffff 0%, var(--bg, #f7f8fc) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 28px 0 84px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.nav img {
    width: min(320px, 56vw);
    height: auto;
    display: block;
}

.nav a,
.cta-main,
.cta-alt {
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--deep);
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 26px;
}

.hero-main,
.hero-side,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 46px -34px rgba(15, 23, 42, 0.42);
}

.hero-main {
    padding: 44px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff2eb;
    color: #c13d18;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 4.3vw, 54px);
    line-height: 1.08;
    margin-bottom: 16px;
    max-width: 14ch;
}

.hero-main p {
    color: var(--muted);
    max-width: 58ch;
    font-size: 17px;
    margin-bottom: 26px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cta-main {
    padding: 12px 22px;
    background: var(--primary);
    color: #fff;
}

.cta-alt {
    padding: 12px 22px;
    background: #fff6d7;
    color: #6a4a00;
    border: 1px solid #f2da8d;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.stats span {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
}

.hero-side {
    padding: 24px;
    display: grid;
    gap: 12px;
    align-content: center;
    background: linear-gradient(160deg, #0f172a 0%, #1d3557 100%);
    color: #eef2ff;
}

.hero-side h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    line-height: 1.15;
}

.hero-side p {
    color: #dbe4ff;
    font-size: 15px;
    margin-bottom: 8px;
}

.check {
    display: grid;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.check li::before {
    content: "✓";
    color: #f5b700;
    margin-right: 8px;
    font-weight: 800;
}

.grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    padding: 22px;
}

.panel h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.panel p,
.panel li {
    color: var(--muted);
    font-size: 15px;
}

.panel ul {
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.flow {
    list-style: none;
    display: grid;
    gap: 10px;
    counter-reset: step;
    margin-top: 2px;
}

.flow li {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    position: relative;
    padding-left: 48px;
}

.flow li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--ok);
}

.footer-cta {
    margin-top: 24px;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #f0d6c9;
    background: linear-gradient(90deg, #fff0e8 0%, #fffbe8 100%);
    text-align: center;
}

.footer-cta h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    margin-bottom: 8px;
    color: #1f2937;
}

.footer-cta p {
    color: #4b5563;
    margin-bottom: 14px;
}

.legal {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
}

.legal a {
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.legal a:hover {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.cta-main:hover,
.cta-alt:hover,
.nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.7);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        padding: 34px 24px;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* --- Nuove classi per home migliorata --- */

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* CTA secondaria: stile coerente, meno “pesante” della main */
.cta-secondary {
    padding: 12px 22px;
    background: var(--surface);
    color: var(--deep);
    border: 1px solid var(--line);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.7);
}

/* Barra “trust” sotto le CTA */
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}

.trust span {
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 999px;
    padding: 6px 12px;
}

/* CTA nel box a destra + microcopy */
.side-cta {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.microcopy {
    font-size: 13px;
    color: #dbe4ff;
    opacity: 0.95;
}

/* Migliorie: focus visibile (accessibilità) */
a:focus-visible {
    outline: 3px solid rgba(245, 183, 0, 0.7);
    outline-offset: 3px;
    border-radius: 999px;
}

/* Migliorie: heading più “elastico” su mobile e righe più leggibili */
h1 {
    max-width: 18ch; /* un filo più largo: evita spezzature strane */
}

/* Riduci un po’ la densità dei pill su schermi stretti */
@media (max-width: 520px) {
    .stats span,
    .trust span {
        width: 100%;
        border-radius: 14px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-main,
    .cta-secondary,
    .cta-alt {
        text-align: center;
        width: 100%;
    }
}

/* --- Nuove classi: CTA secondaria + trust bar + product shot + mini reasons --- */

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cta-secondary {
    padding: 12px 22px;
    background: var(--surface);
    color: var(--deep);
    border: 1px solid var(--line);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.7);
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}

.trust span {
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 999px;
    padding: 6px 12px;
}

/* Placeholder screenshot / frame */
.product-shot {
    margin: 10px 0 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    object-position: top center;
}

.shot-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.shot-label {
    margin-left: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.shot-body {
    padding: 14px;
}

.shot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.shot-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.5);
    min-height: 92px;
}

.shot-card.wide {
    grid-column: 1 / -1;
    min-height: 120px;
}

.shot-title {
    width: 56%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 12px;
}

.shot-line {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    margin-bottom: 10px;
}

.shot-line.short {
    width: 72%;
}

/* Hero side: mini lista 3 motivi */
.mini-reasons {
    margin-top: 6px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.mini-reasons h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.mini-reasons ul {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #dbe4ff;
}

.mini-reasons li strong {
    color: #ffffff;
}

/* Sezione info placeholder */
.info-panel {
    margin-top: 18px;
}

.info-panel p {
    margin-bottom: 12px;
}

.info-placeholder {
    border-radius: 16px;
    border: 1px dashed var(--line);
    background: #f8fafc;
    padding: 14px;
}

.landing-alert {
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.landing-alert-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.landing-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.landing-alert-error ul {
    margin-top: 6px;
    padding-left: 18px;
}

.info-form {
    display: grid;
    gap: 14px;
}

.info-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-field {
    display: grid;
    gap: 6px;
}

.info-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--deep);
}

.info-field input,
.info-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
}

.info-field input:focus,
.info-field textarea:focus {
    outline: 2px solid rgba(245, 183, 0, 0.45);
    outline-offset: 1px;
}

.info-form-footer {
    display: flex;
    justify-content: flex-start;
}

/* Focus accessibile */
a:focus-visible {
    outline: 3px solid rgba(245, 183, 0, 0.7);
    outline-offset: 3px;
    border-radius: 999px;
}

/* Mobile: pill in colonna + CTA full width */
@media (max-width: 520px) {
    .stats span,
    .trust span {
        width: 100%;
        border-radius: 14px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-main,
    .cta-secondary,
    .cta-alt {
        text-align: center;
        width: 100%;
    }

    .shot-grid {
        grid-template-columns: 1fr;
    }

    .shot-card.wide {
        grid-column: auto;
    }

    .info-form-grid {
        grid-template-columns: 1fr;
    }
}
