:root {
    --bg: #eef1ef;
    --card: #ffffff;
    --text: #1c2a33;
    --muted: #5f6c76;
    --line: #e4e8e6;
    --line-dash: #d3dad6;

    --green: #16684f;
    --green-dark: #0e4f3c;
    --green-light: #2f9a73;
    --green-tint: #e7f3ed;
    --green-border: #b7dac8;

    --navy: #2d5d88;
    --navy-dark: #203a52;
    --info-bg: linear-gradient(135deg, #f5f8fc 0%, #e8eff8 100%);
    --info-border: #b7cbe3;

    --orange: #c0531d;
    --orange-tint: #fff1ea;
    --orange-border: #f3c6ad;

    --red: #c43131;
    --red-tint: #fdeeee;
    --red-border: #f1bdbd;

    --amber: #a86a00;
    --amber-tint: #fff6e3;
    --amber-border: #efd49a;

    --r-xl: 34px;
    --r-lg: 26px;
    --r-md: 20px;
    --shadow: 0 24px 50px -24px rgba(28, 42, 51, 0.28), 0 2px 8px rgba(28, 42, 51, 0.04);
    --shadow-lg: 0 40px 80px -30px rgba(28, 42, 51, 0.35), 0 4px 14px rgba(28, 42, 51, 0.06);
    --shadow-btn: 0 14px 28px -12px rgba(15, 85, 65, 0.7);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

img,
svg {
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

b {
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

/* ---------- SFONDO ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(22, 104, 79, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 104, 79, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

.blob {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.blob-1 {
    width: 520px;
    height: 520px;
    background: #bfe3d1;
    top: -160px;
    right: -120px;
    animation: drift 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 460px;
    height: 460px;
    background: #cfdcf0;
    top: 280px;
    left: -200px;
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    to {
        transform: translate(60px, 80px) scale(1.1);
    }
}

/* ---------- BOTTONI ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 24px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 16px;
}

.btn-lg {
    height: 62px;
    padding: 0 28px;
    font-size: 17px;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 18px 34px -12px rgba(15, 85, 65, 0.75);
}

.btn-outline {
    background: var(--orange-tint);
    border: 1.5px solid var(--orange-border);
    color: var(--orange);
}

.btn-soft {
    background: var(--green-tint);
    border: 1.5px solid var(--green-border);
    color: var(--green);
}

.btn-white {
    background: #fff;
    color: var(--green-dark);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.45);
}

/* ---------- NAV ---------- */
.nav {
    position: sticky;
    top: 12px;
    z-index: 40;
    max-width: var(--max);
    margin: 12px auto 0;
    padding: 10px 10px 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.3s, background 0.3s;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.nav-logo img {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 15px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: var(--green-tint);
    color: var(--green);
}

/* ---------- HERO ---------- */
main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: calc(100vh - 90px);
    padding: 60px 0 40px;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--green-border);
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-light);
    box-shadow: 0 0 0 0 rgba(47, 154, 115, 0.6);
    animation: ping 1.8s infinite;
}

@keyframes ping {
    70% {
        box-shadow: 0 0 0 10px rgba(47, 154, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(47, 154, 115, 0);
    }
}

.hero h1 {
    font-size: clamp(44px, 6.4vw, 80px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 22px 0 22px;
}

.hl {
    position: relative;
    display: inline-block;
    background: linear-gradient(100deg, var(--green) 10%, var(--green-light) 50%, var(--navy) 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s ease-in-out infinite alternate;
}

.hl::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0.06em;
    height: 0.22em;
    border-radius: 999px;
    background: var(--green-tint);
    z-index: -1;
    transform-origin: left;
    animation: underline 1.2s 0.6s var(--ease) both;
}

@keyframes shine {
    to {
        background-position: 100% 0;
    }
}

@keyframes underline {
    from {
        transform: scaleX(0);
    }
}

.lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
}

.lead b {
    color: var(--text);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
}

/* ---------- TELEFONO ---------- */
.hero-visual {
    position: relative;
    text-align: left;
    display: grid;
    place-items: center;
    min-height: 640px;
    perspective: 1400px;
}

.phone {
    position: relative;
    width: 310px;
    height: 640px;
    border-radius: 50px;
    background: #111a20;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a353d, 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: rotateY(-10deg) rotateX(4deg);
    transition: transform 0.6s var(--ease);
    transform-style: preserve-3d;
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 96px;
    height: 26px;
    border-radius: 20px;
    background: #111a20;
    transform: translateX(-50%);
    z-index: 5;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg);
}

/* Fase scanner */
.scan-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #3b4a44 0%, #151c19 75%);
    display: grid;
    place-items: center;
    animation: scanPhase 9s infinite;
}

.pack {
    width: 200px;
    height: 250px;
    border-radius: 22px;
    background: linear-gradient(160deg, #7a4a2b, #4a2a16);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 18px 22px;
    transform: rotate(-4deg);
    animation: packWobble 9s infinite;
}

.pack-label {
    text-align: center;
    color: #f7e7c9;
}

.pack-label span {
    display: block;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: 0.08em;
}

.pack-label small {
    font-size: 14px;
    opacity: 0.85;
}

.barcode {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    width: 150px;
}

.barcode i {
    width: 3px;
    height: 44px;
    background: #111;
}

.barcode i:nth-child(3n) {
    width: 1.5px;
}

.barcode i:nth-child(4n+1) {
    width: 4px;
}

.barcode span {
    width: 100%;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #111;
}

.scan-frame {
    position: absolute;
    left: 50%;
    top: 60%;
    width: 210px;
    height: 110px;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    outline: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.45);
    animation: frameOk 9s infinite;
}

.scan-laser {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: #ff5b3a;
    box-shadow: 0 0 12px 2px #ff5b3a;
    animation: laser 1.6s ease-in-out infinite;
}

@keyframes laser {

    0%,
    100% {
        transform: translateY(-38px);
    }

    50% {
        transform: translateY(38px);
    }
}

.scan-hint {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

@keyframes frameOk {

    0%,
    30% {
        outline-color: rgba(255, 255, 255, 0.95);
    }

    34%,
    40% {
        outline-color: #3ddc97;
    }
}

@keyframes packWobble {

    0%,
    100% {
        transform: rotate(-4deg) translateY(0);
    }

    15% {
        transform: rotate(-2deg) translateY(-6px);
    }

    30% {
        transform: rotate(-3deg) translateY(2px);
    }
}

@keyframes scanPhase {

    0%,
    38% {
        opacity: 1;
    }

    46%,
    94% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Fase scheda */
.sheet-layer {
    position: absolute;
    inset: 0;
    padding: 46px 10px 10px;
    animation: sheetPhase 9s infinite;
}

@keyframes sheetPhase {

    0%,
    38% {
        transform: translateY(105%);
    }

    48%,
    92% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(105%);
    }
}

.m-sheet {
    background: #fff;
    border-radius: 26px;
    padding: 16px 14px 14px;
    height: 100%;
    box-shadow: var(--shadow);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.m-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.m-head strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.m-head small {
    color: var(--muted);
    font-size: 10.5px;
}

.m-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef0f1;
    display: grid;
    place-items: center;
    font-size: 11px;
    flex-shrink: 0;
}

.m-panel {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
}

.m-left {
    flex: 1;
}

.m-cat {
    display: flex;
    gap: 6px;
    align-items: center;
}

.m-cat b {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.05em;
    color: var(--navy);
}

.m-cat small {
    font-size: 9.5px;
    color: var(--muted);
}

.m-tile {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--info-border);
    display: grid;
    place-items: center;
    font-size: 15px;
}

.m-letter {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 8px;
    border-radius: 13px;
    background: #df3d13;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.m-right {
    flex: 1;
    border-left: 1.5px solid var(--info-border);
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.m-status {
    border-radius: 11px;
    padding: 6px 8px;
}

.m-status b {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.m-status small {
    font-size: 9px;
}

.m-status.danger {
    background: var(--red-tint);
    border: 1.5px solid var(--red-border);
    color: var(--red);
}

.m-trend {
    color: var(--red);
    font-weight: 700;
    font-size: 10px;
    padding: 0 2px;
}

.m-trend small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 9px;
}

.m-row {
    color: var(--muted);
    font-size: 10.5px;
}

.m-row b {
    color: var(--text);
}

.m-row .red {
    color: var(--red);
}

.m-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--green-tint);
    border: 1px solid var(--green-border);
    color: var(--green);
    font-weight: 700;
}

.m-acc {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1.5px dashed var(--line-dash);
}

.m-acc>span {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #f3f5f4;
    display: grid;
    place-items: center;
    font-size: 13px;
}

.m-acc div {
    flex: 1;
}

.m-acc b {
    display: block;
    font-size: 12px;
}

.m-acc small {
    color: var(--muted);
    font-size: 9.5px;
}

.m-acc em {
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.m-acc em.ok {
    background: var(--green-tint);
    color: var(--green);
}

.m-actions {
    margin-top: auto;
    display: flex;
    gap: 6px;
}

.m-actions span {
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 11px;
}

.m-sq {
    width: 38px;
    background: var(--green-tint);
    border: 1.5px solid var(--green-border);
    color: var(--green);
}

.m-out {
    padding: 0 12px;
    background: var(--orange-tint);
    border: 1.5px solid var(--orange-border);
    color: var(--orange);
}

.m-go {
    flex: 1;
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

/* Card flottanti */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 14px;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.float-card b {
    display: block;
    line-height: 1.2;
}

.float-card small {
    color: var(--muted);
    font-size: 12.5px;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.fc-icon.danger {
    background: var(--red-tint);
}

.fc-icon.ok {
    background: var(--green-tint);
}

.fc-icon.warn {
    background: var(--amber-tint);
}

.fc-1 {
    top: 11%;
    left: -2%;
    animation-delay: -1s;
}

.fc-2 {
    top: 36%;
    right: -6%;
    animation-delay: -3s;
}

.fc-3 {
    bottom: 22%;
    left: -6%;
    padding: 10px;
    animation-delay: -2s;
}

.fc-4 {
    bottom: 6%;
    right: 0;
    animation-delay: -4.5s;
}

@keyframes float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

.fc-scale {
    display: flex;
    gap: 4px;
}

.fc-scale i,
.ns-scale i {
    font-style: normal;
    width: 32px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    opacity: 0.3;
    transform: scale(0.88);
    transition: all 0.4s var(--ease);
}

.fc-scale i.on,
.ns-scale i.on {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5);
}

.a {
    background: #038141;
}

.b {
    background: #6fae2a;
}

.c {
    background: #f2b705;
}

.d {
    background: #e57a00;
}

.e {
    background: #df3d13;
}

/* ---------- MARQUEE ---------- */
.marquee {
    margin: 10px -20px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding: 10px 0;
}

.marquee-track span {
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px -12px rgba(28, 42, 51, 0.25);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- SEZIONI ---------- */
.section {
    padding: 110px 0 20px;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--info-border);
}

.section-head h2,
.chat-copy h2,
.final h2 {
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 16px 0 14px;
}

.section-head p,
.chat-copy p {
    color: var(--muted);
    font-size: 18px;
}

.sheet {
    background: var(--card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
}

/* Bento */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 18px;
}

.card {
    position: relative;
    background: var(--card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    padding: 28px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 154, 115, 0.1), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 8px;
}

.card p {
    color: var(--muted);
}

.card-xl {
    grid-column: span 2;
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
}

.card-wide {
    grid-column: 1 / -1;
    display: flex;
    gap: 22px;
    align-items: center;
    background: linear-gradient(120deg, #fff 0%, var(--green-tint) 100%);
    border: 1.5px solid var(--green-border);
}

.card-wide h3 {
    margin-top: 0;
}

.card-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.card-top h3 {
    margin-top: 4px;
}

.icon-tile {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 27px;
    background: var(--navy);
    flex-shrink: 0;
    box-shadow: 0 12px 22px -12px rgba(45, 93, 136, 0.8);
}

.icon-tile.green {
    background: var(--green-tint);
    border: 1.5px solid var(--green-border);
    box-shadow: none;
}

.icon-tile.orange {
    background: var(--orange-tint);
    border: 1.5px solid var(--orange-border);
    box-shadow: none;
}

.icon-tile.navy {
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
    box-shadow: none;
}

.allergen-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s var(--ease);
}

.chip.hit {
    background: var(--red-tint);
    border-color: var(--red-border);
    color: var(--red);
}

.allergen-cloud .chip {
    animation: chipIn 0.6s var(--ease) both;
    animation-play-state: paused;
}

.in .allergen-cloud .chip {
    animation-play-state: running;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
}

.status-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge.ok {
    background: var(--green-tint);
    color: var(--green);
}

.badge.warn {
    background: var(--amber-tint);
    color: var(--amber);
}

.badge.danger {
    background: var(--red-tint);
    color: var(--red);
}

.mini-rows {
    list-style: none;
    margin-top: 16px;
}

.mini-rows li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-weight: 600;
    font-size: 14.5px;
}

.mini-rows li+li {
    border-top: 1.5px dashed var(--line-dash);
}

.mini-rows .badge {
    margin-left: auto;
}

.code {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 9px;
    background: #f3f5f4;
}

.ns-scale {
    display: flex;
    gap: 6px;
    margin-top: 20px;
}

.ns-scale i {
    flex: 1;
    width: auto;
    height: 42px;
}

/* Steps */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 16%;
    right: 16%;
    border-top: 2px dashed var(--green-border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: var(--card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    padding: 30px 26px;
    text-align: center;
}

.step-num {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    box-shadow: var(--shadow-btn);
}

.step h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
}

/* Demo */
.demo {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: start;
}

.demo-controls {
    padding: 26px;
}

.demo-controls .label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 22px 0 10px;
}

.demo-controls .label:first-child {
    margin-top: 0;
}

.seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    border-radius: 18px;
    background: #f1f4f2;
}

.seg button {
    padding: 11px 6px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    transition: all 0.25s var(--ease);
}

.seg button.on {
    background: #fff;
    color: var(--text);
    box-shadow: 0 6px 14px -8px rgba(28, 42, 51, 0.4);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip.toggle {
    cursor: pointer;
    background: #f3f5f4;
    border-color: transparent;
    font-size: 14px;
}

.chip.toggle:hover {
    border-color: var(--green-border);
}

.chip.toggle.on {
    background: var(--green-tint);
    border-color: var(--green-border);
    color: var(--green);
}

.toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tgl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f7f9f8;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.switch {
    position: relative;
    width: 42px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d9dfdc;
    transition: background 0.25s;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease);
}

.switch input:checked+span {
    background: var(--green);
}

.switch input:checked+span::after {
    transform: translateX(16px);
}

.demo-card {
    padding: 24px 22px;
}

.d-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.d-head h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.d-head p {
    color: var(--muted);
}

.d-emoji {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid var(--info-border);
    display: grid;
    place-items: center;
    font-size: 26px;
    flex-shrink: 0;
}

.d-panel {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--r-lg);
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
}

.d-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.d-left .eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--navy);
}

.d-letter {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.d-right {
    flex: 1.1;
    border-left: 1.5px solid var(--info-border);
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.status-box {
    border-radius: 16px;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid var(--line);
    animation: pop 0.45s var(--ease);
}

.status-box strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.status-box small {
    font-size: 13px;
}

.status-box.ok {
    background: var(--green-tint);
    border-color: var(--green-border);
    color: var(--green);
}

.status-box.danger {
    background: var(--red-tint);
    border-color: var(--red-border);
    color: var(--red);
}

.status-box.warn {
    background: var(--amber-tint);
    border-color: var(--amber-border);
    color: var(--amber);
}

.trend {
    font-weight: 700;
    font-size: 14px;
    animation: pop 0.45s var(--ease);
}

.trend small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
}

.trend.danger {
    color: var(--red);
}

.trend.warn {
    color: var(--orange);
}

.trend.ok {
    color: var(--green);
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
    }
}

.d-rows {
    margin-top: 12px;
}

.d-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1.5px dashed var(--line-dash);
    animation: pop 0.4s var(--ease) both;
}

.d-row .em {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #f3f5f4;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.d-row .t {
    flex: 1;
    min-width: 0;
}

.d-row .t b {
    display: block;
}

.d-row .t small {
    display: block;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ns-chip {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.d-empty {
    color: var(--muted);
    padding: 16px 0 4px;
}

/* Chat */
.chat-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.chat-copy .btn {
    margin-top: 24px;
}

.tg {
    max-width: 460px;
    width: 100%;
    justify-self: center;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.tg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.tg-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.tg-head small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.tg-body {
    padding: 18px 14px 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px) 0 0 / 34px 34px,
        linear-gradient(160deg, #cfe3c1, #a9cf9a 60%, #c7ddb3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    max-width: 88%;
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.45;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.bubble.out {
    align-self: flex-end;
    background: #effdde;
    border-bottom-right-radius: 6px;
    font-weight: 600;
}

.bubble.in {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bubble.in i {
    color: var(--muted);
    font-size: 13px;
}

.tg-preview {
    height: 90px;
    border-radius: 12px;
    margin-bottom: 4px;
    display: grid;
    place-items: center;
    font-size: 44px;
    background: linear-gradient(160deg, #7a4a2b, #4a2a16);
}

.tg-alerts {
    margin: 6px 0 2px;
}

.tg-sec {
    margin-top: 6px;
}

.quote {
    position: relative;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
    padding: 6px 28px 6px 10px;
    border-left: 3px solid #3a8fd9;
    border-radius: 6px;
    background: rgba(58, 143, 217, 0.1);
    max-height: 30px;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    cursor: pointer;
}

.quote::after {
    content: "⌄";
    position: absolute;
    right: 9px;
    top: 4px;
    color: #3a8fd9;
    font-weight: 800;
    transition: transform 0.3s;
}

.quote.open {
    max-height: 200px;
}

.quote.open::after {
    transform: rotate(180deg);
}

.tg-foot {
    color: var(--muted);
    font-style: italic;
    font-size: 12.5px;
    margin-top: 6px;
}

.tg-button {
    align-self: flex-start;
    width: 88%;
    text-align: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(40, 70, 40, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 110px;
    padding: 30px;
    border-radius: var(--r-xl);
    background: var(--card);
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
    padding: 10px;
}

.stat+.stat {
    border-left: 1.5px dashed var(--line-dash);
}

.stat strong {
    display: block;
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
}

/* FAQ */
.faq {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 28px;
}

.acc+.acc {
    border-top: 1.5px dashed var(--line-dash);
}

.acc-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    text-align: left;
    font-weight: 700;
    font-size: 17px;
}

.acc-head svg {
    width: 22px;
    height: 22px;
    color: var(--muted);
    transition: transform 0.35s var(--ease);
}

.acc.open .acc-head svg {
    transform: rotate(180deg);
    color: var(--green);
}

.acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}

.acc.open .acc-body {
    grid-template-rows: 1fr;
}

.acc-body>div {
    overflow: hidden;
}

.acc-body p {
    color: var(--muted);
    padding-bottom: 20px;
}

/* CTA finale */
.final {
    position: relative;
    overflow: hidden;
    margin: 110px 0 40px;
    padding: 56px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 60%, #0b3d2f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 40px 80px -30px rgba(14, 79, 60, 0.65);
}

.final::before,
.final::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.14);
}

.final::before {
    width: 520px;
    height: 520px;
    right: -140px;
    top: -240px;
    animation: spin 60s linear infinite;
}

.final::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -180px;
    animation: spin 40s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.final-copy {
    position: relative;
    z-index: 1;
}

.final h2 {
    margin-top: 0;
}

.final p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 520px;
}

.qr {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 28px;
    padding: 18px 18px 12px;
    text-align: center;
    color: var(--muted);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
    transform: rotate(3deg);
    transition: transform 0.4s var(--ease);
}

.qr:hover {
    transform: rotate(0) scale(1.04);
}

.qr img {
    width: 170px;
    height: 170px;
}

.qr small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    font-size: 13px;
}

/* Footer */
.footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px 20px 50px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin: 0 auto 14px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.footer p {
    max-width: 640px;
    margin: 0 auto 8px;
}

.copy {
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
}

.footer-links .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3cbc7;
}

/* ---------- PAGINE LEGALI ---------- */
.legal {
    max-width: 860px;
    padding-top: 56px;
}

.legal-head {
    text-align: center;
    margin-bottom: 30px;
}

.legal-head h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 16px 0 12px;
}

.legal-head p {
    color: var(--muted);
}

.legal-head .updated {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.legal-summary {
    padding: 26px 28px;
    margin-bottom: 18px;
    background: var(--info-bg);
    border: 1.5px solid var(--info-border);
}

.legal-summary h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-summary ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.legal-summary li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 500;
}

.tick {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.legal-body {
    padding: 10px 32px;
}

.legal-body section {
    padding: 24px 0;
}

.legal-body section+section {
    border-top: 1.5px dashed var(--line-dash);
}

.legal-body h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.legal-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 6px;
}

.legal-body p,
.legal-body li {
    color: #3c4a54;
}

.legal-body p+p {
    margin-top: 10px;
}

.legal-body ul {
    margin: 10px 0 0 20px;
    display: grid;
    gap: 6px;
}

.legal-body code {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f5f4;
}

mark.todo {
    background: var(--amber-tint);
    color: var(--amber);
    border: 1.5px dashed var(--amber-border);
    border-radius: 8px;
    padding: 1px 6px;
    font-weight: 700;
}

.legal-table {
    margin: 12px 0;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.lt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lt-row span {
    padding: 12px 14px;
    font-size: 15px;
    color: #3c4a54;
}

.lt-row+.lt-row {
    border-top: 1.5px solid var(--line);
}

.lt-row span+span {
    border-left: 1.5px solid var(--line);
}

.lt-head span {
    background: #f3f5f4;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 760px) {
    .legal {
        padding-top: 36px;
    }

    .legal-body,
    .legal-summary {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .lt-row span+span {
        border-left: 0;
        border-top: 1px dashed var(--line);
        padding-top: 8px;
    }

    .lt-head span+span {
        display: none;
    }
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        min-height: 0;
    }

    .lead {
        margin: 0 auto;
    }

    .cta-row,
    .trust {
        justify-content: center;
    }

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

    .card-xl {
        grid-column: 1 / -1;
    }

    .demo,
    .chat-section {
        grid-template-columns: 1fr;
    }

    .chat-copy {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav {
        margin: 10px 12px 0;
        justify-content: space-between;
    }

    main {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: clamp(40px, 11vw, 56px);
    }

    .lead {
        font-size: 17px;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-visual {
        min-height: 560px;
        transform: scale(0.9);
        margin: -20px 0;
    }

    .phone {
        transform: none;
    }

    .fc-1 {
        top: 4%;
        left: 0;
    }

    .fc-3 {
        bottom: 4%;
        left: auto;
        right: 0;
    }

    .fc-2,
    .fc-4 {
        display: none;
    }

    .float-card {
        font-size: 12.5px;
        padding: 9px 12px 9px 9px;
    }

    .fc-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .bento,
    .steps {
        grid-template-columns: 1fr;
    }

    .steps::before {
        display: none;
    }

    .card-top,
    .card-wide {
        flex-direction: column;
    }

    .section {
        padding-top: 80px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 80px;
        padding: 18px;
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n+3) {
        border-top: 1.5px dashed var(--line-dash);
    }

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

    .final {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        margin-top: 80px;
    }

    .final .cta-row {
        justify-content: center;
    }

    .faq {
        padding: 4px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
