/* ==========================================================================
   Animingo — Home (premium redesign)
   Design system: palette dal logo, sticker rossi dagli screenshot store,
   gradienti caldi crema → pesca, vetro, micro-animazioni.
   ========================================================================== */

:root {
    /* Brand */
    --red: #ed1f32;
    --coral: #ff6b35;
    --orange: #fea019;
    --yellow: #ffd23f;
    --green: #22b355;
    --blue: #1a9fe0;
    --purple: #7b2d8e;
    --pink: #e91e8c;
    --sticker-cream: #fff3b0;

    /* Neutri */
    --ink: #1b1230;
    --ink-soft: #3b3250;
    --muted: #6b6478;
    --line: rgba(27, 18, 48, .09);
    --cream: #fff9ee;
    --peach: #ffe9da;
    --paper: #ffffff;

    /* Gradienti */
    --rainbow: linear-gradient(90deg, #ff4d4d, #ff9a00, #ffe600, #22b355, #4a90e2, #9b59b6, #e91e8c);
    --warm: linear-gradient(135deg, #fea019 0%, #ff6b35 100%);

    /* Tipografia */
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Lilita One', 'DM Sans', sans-serif;

    /* Raggi / ombre */
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 32px;
    --r-xl: 44px;
    --shadow-sm: 0 2px 10px rgba(27, 18, 48, .06);
    --shadow-md: 0 14px 40px -12px rgba(27, 18, 48, .18);
    --shadow-lg: 0 40px 80px -24px rgba(27, 18, 48, .28);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- Reveal on scroll (solo con JS) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}

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

/* ---------- Sticker (firma visiva del brand) ---------- */
.sticker {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--sticker-cream);
    background: var(--red);
    padding: .02em .32em .08em;
    border-radius: .28em;
    transform: rotate(-3deg);
    box-shadow: 0 10px 24px -8px rgba(237, 31, 50, .55);
    line-height: 1.05;
    white-space: nowrap;
}

.sticker--sm {
    font-size: .95rem;
    padding: .25em .75em;
    border-radius: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--coral);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 4px;
    border-radius: 4px;
    background: var(--rainbow);
}

.section {
    padding: clamp(72px, 10vw, 128px) 0;
    position: relative;
}

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 14px 0 16px;
}

.section-head p {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.grad-text {
    background: linear-gradient(100deg, var(--red) 0%, var(--orange) 45%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: .95rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    white-space: nowrap;
}

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

.btn--dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(27, 18, 48, .55);
}

.btn--dark:hover {
    box-shadow: 0 16px 32px -10px rgba(27, 18, 48, .6);
}

.btn--warm {
    background: var(--warm);
    color: #fff;
    box-shadow: 0 10px 28px -8px rgba(254, 160, 25, .65);
}

.btn--warm:hover {
    box-shadow: 0 16px 36px -8px rgba(254, 160, 25, .75);
}

.btn--ghost {
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
    border: 1.5px solid var(--line);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: #fff;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn .arrow {
    transition: transform .3s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Store buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: #fff;
    padding: 12px 22px 12px 18px;
    border-radius: 18px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 12px 28px -12px rgba(27, 18, 48, .6);
    position: relative;
    overflow: hidden;
}

.store-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -12px rgba(27, 18, 48, .65);
}

.store-btn:hover::after {
    transform: translateX(120%);
}

.store-btn svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    flex-shrink: 0;
}

.store-btn small {
    display: block;
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .65;
    line-height: 1;
    font-weight: 600;
}

.store-btn strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 16px;
    pointer-events: none;
}

.nav__inner {
    pointer-events: auto;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 8px 30px -10px rgba(27, 18, 48, .15);
    transition: background .4s, box-shadow .4s, padding .4s var(--ease);
}

.nav.scrolled .nav__inner {
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 40px -12px rgba(27, 18, 48, .22);
    padding-top: 6px;
    padding-bottom: 6px;
}

.nav__logo img {
    height: 46px;
    width: auto;
    transition: transform .5s var(--ease);
}

.nav__logo:hover img {
    transform: rotate(-6deg) scale(1.08);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__links a {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: .5rem .95rem;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.nav__links a:hover {
    background: rgba(27, 18, 48, .06);
    color: var(--ink);
}

.nav__links a.nav__business {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--warm);
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    margin-left: 6px;
    box-shadow: 0 6px 16px -6px rgba(254, 160, 25, .7);
    transition: transform .3s var(--ease), box-shadow .3s;
}

.nav__business svg {
    width: 15px;
    height: 15px;
}

.nav__links a.nav__business:hover {
    transform: translateY(-1px);
    color: #fff;
    background: var(--warm);
    box-shadow: 0 10px 22px -6px rgba(254, 160, 25, .8);
}

.nav__cta {
    padding: .62rem 1.15rem;
    font-size: .85rem;
}

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

.nav__burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(27, 18, 48, .06);
    cursor: pointer;
    position: relative;
}

.nav__burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}

.nav__burger span:nth-child(1) {
    top: 15px;
}

.nav__burger span:nth-child(2) {
    top: 20px;
}

.nav__burger span:nth-child(3) {
    top: 25px;
}

.nav.open .nav__burger span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.nav.open .nav__burger span:nth-child(2) {
    opacity: 0;
}

.nav.open .nav__burger span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.nav__sheet {
    pointer-events: auto;
    display: none;
    max-width: 1080px;
    margin: 10px auto 0;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, .9);
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    transition: opacity .3s, transform .4s var(--ease);
}

.nav__sheet a {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.nav__sheet a:hover {
    background: rgba(27, 18, 48, .05);
}

.nav__sheet a.nav__business {
    background: var(--warm);
    color: #fff;
    margin-top: 6px;
    text-align: center;
}

@media (max-width: 820px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: block;
    }

    .nav__sheet {
        display: block;
        visibility: hidden;
    }

    .nav.open .nav__sheet {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 420px) {
    .nav__cta {
        display: none;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: 150px 0 90px;
    background:
        radial-gradient(1000px 520px at 85% 10%, rgba(255, 210, 63, .38), transparent 60%),
        radial-gradient(800px 520px at 5% 30%, rgba(233, 30, 140, .13), transparent 60%),
        radial-gradient(900px 600px at 60% 100%, rgba(26, 159, 224, .14), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%);
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    /* grana sottile */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image: radial-gradient(rgba(27, 18, 48, .08) 1px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    z-index: -1;
    animation: drift 18s ease-in-out infinite alternate;
}

.blob--1 {
    width: 340px;
    height: 340px;
    background: #ff9a00;
    top: -80px;
    left: -60px;
}

.blob--2 {
    width: 300px;
    height: 300px;
    background: #9b59b6;
    opacity: .28;
    bottom: -60px;
    left: 38%;
    animation-delay: -6s;
}

.blob--3 {
    width: 380px;
    height: 380px;
    background: #4a90e2;
    opacity: .25;
    top: 20%;
    right: -120px;
    animation-delay: -12s;
}

@keyframes drift {
    to {
        transform: translate3d(40px, 30px, 0) scale(1.12);
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(34, 179, 85, .25);
    backdrop-filter: blur(8px);
    font-size: .85rem;
    font-weight: 700;
    color: #12713a;
    box-shadow: var(--shadow-sm);
}

.pulse {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ping {
    75%,
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 22px 0 20px;
}

.hero h1 .sticker {
    font-size: 1.02em;
    margin: 0 .04em;
}

.hero__tag {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.hero__lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 30px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.hero__proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__proof i {
    font-style: normal;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

/* ---- composizione screenshot ---- */
.hero-visual {
    --w: clamp(168px, 19vw, 244px);
    position: relative;
    height: calc(var(--w) * 2.164 + 60px);
    perspective: 1400px;
}

.layer {
    position: absolute;
    transition: transform .25s ease-out;
    will-change: transform;
}

.shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--w) * .12);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .6);
    rotate: var(--r, 0deg);
    animation: float 7s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
    background: var(--peach);
}

@keyframes float {

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

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

.layer--c {
    width: var(--w);
    left: 50%;
    margin-left: calc(var(--w) / -2);
    top: 30px;
    z-index: 3;
}

.layer--l {
    width: calc(var(--w) * .82);
    left: 50%;
    margin-left: calc(var(--w) * -1);
    top: 90px;
    z-index: 1;
}

.layer--l .shot {
    --r: -9deg;
    --fd: -2s;
    filter: saturate(.95);
}

.layer--r {
    width: calc(var(--w) * .82);
    left: 50%;
    margin-left: calc(var(--w) * .18);
    top: 110px;
    z-index: 2;
}

.layer--r .shot {
    --r: 8deg;
    --fd: -4s;
}

.chip {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, .9);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    animation: float 6s ease-in-out infinite;
    transition: transform .25s ease-out;
}

.chip b {
    display: block;
    font-weight: 800;
    font-size: .86rem;
}

.chip small {
    color: var(--muted);
    font-weight: 600;
    font-size: .72rem;
}

.chip__ic {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chip--match {
    left: -2%;
    bottom: 16%;
    --fd: -1s;
}

.chip--match .chip__ic {
    background: #ffe0e0;
}

.chip--like {
    right: -2%;
    top: 56%;
    --fd: -3s;
}

.chip--like .chip__ic {
    background: #ffe8cc;
}

@media (max-width: 960px) {
    .hero {
        padding-top: 128px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .store-row,
    .hero__proof {
        justify-content: center;
    }

    .hero-visual {
        --w: clamp(160px, 44vw, 270px);
        margin-top: 24px;
    }

    .chip--match {
        left: 0;
    }
}

@media (max-width: 520px) {
    .chip {
        transform: scale(.85);
    }

    .chip--like {
        right: -6px;
    }

    .chip--match {
        left: -6px;
    }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
    background: var(--ink);
    color: #fff;
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-1.2deg) scale(1.03);
    margin: -26px 0 0;
    z-index: 5;
    box-shadow: 0 20px 50px -20px rgba(27, 18, 48, .5);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: scroll 38s linear infinite;
}

.marquee:hover .marquee__track {
    /* animation-play-state: paused; */
}

.marquee__group {
    display: flex;
    gap: 40px;
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.marquee__item::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, var(--orange));
    box-shadow: 0 0 14px var(--c, var(--orange));
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 20px));
    }
}

/* ==========================================================================
   FEATURES — BENTO
   ========================================================================== */
.features {
    background: #fff;
    padding-top: clamp(96px, 12vw, 150px);
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.card {
    --tint-a: #fff5f5;
    --tint-b: #ffe7e7;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: clamp(24px, 3vw, 36px);
    background: linear-gradient(160deg, var(--tint-a), var(--tint-b));
    border: 1px solid rgba(27, 18, 48, .06);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    isolation: isolate;
}

.card::before {
    /* spotlight che segue il cursore */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .85), transparent 60%);
}

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

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

.card h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 18px 0 10px;
}

.card p {
    color: var(--ink-soft);
    opacity: .78;
    font-size: .98rem;
    max-width: 38ch;
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 20px -8px rgba(27, 18, 48, .25);
    transition: transform .5s var(--ease);
}

.card:hover .card__icon {
    transform: rotate(-8deg) scale(1.1);
}

.c-match {
    grid-column: span 7;
    --tint-a: #fff4e0;
    --tint-b: #ffd9a8;
    min-height: 420px;
}

.c-profile {
    grid-column: span 5;
    --tint-a: #fff0f0;
    --tint-b: #ffd3d3;
}

.c-feed {
    grid-column: span 4;
    --tint-a: #fffbe3;
    --tint-b: #ffee9e;
    min-height: 400px;
}

.c-play {
    grid-column: span 4;
    --tint-a: #effff4;
    --tint-b: #bff0cf;
}

.c-community {
    grid-column: span 4;
    --tint-a: #eef6ff;
    --tint-b: #bddcff;
}

.c-safe {
    grid-column: span 12;
    --tint-a: #f6edff;
    --tint-b: #e2c8ff;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px 48px;
    align-items: center;
}

.c-safe h3 {
    margin-top: 18px;
}

/* Anteprima app ritagliata sul telefono (nasconde il titolo dello screenshot) */
.peek {
    position: absolute;
    bottom: 0;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 50px -10px rgba(27, 18, 48, .35), 0 0 0 6px rgba(255, 255, 255, .55);
    transition: transform .7s var(--ease);
    aspect-ratio: 1 / 1.2;
}

.peek img {
    width: 100%;
    margin-top: -50%;
}

.card:hover .peek {
    transform: translateY(-10px);
}

.c-match .peek {
    width: clamp(190px, 25vw, 280px);
    right: clamp(20px, 5vw, 64px);
}

.c-feed {
    padding-bottom: 0;
}

.c-feed .card__body {
    padding-bottom: 36px;
}

.c-feed .peek {
    position: relative;
    width: min(100%, 230px);
    margin: 0 auto;
}

.c-match .card__body {
    max-width: 52%;
}

.species {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 26px;
}

.species span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 6px 16px -8px rgba(27, 18, 48, .3);
    transition: transform .5s var(--ease);
}

.card:hover .species span {
    transform: translateY(-4px) rotate(var(--tr, 0deg));
}

.species span:nth-child(odd) {
    --tr: -6deg;
}

.species span:nth-child(even) {
    --tr: 6deg;
    transition-delay: .05s;
}

.species-note {
    margin-top: 16px;
    font-size: .85rem;
    font-weight: 800;
    color: #b0182a;
}

.mini-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.mini-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px -6px rgba(27, 18, 48, .3);
}

.bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
}

.bubble {
    max-width: 88%;
    padding: 10px 16px;
    border-radius: 20px 20px 20px 6px;
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    box-shadow: 0 6px 16px -8px rgba(27, 18, 48, .3);
}

.bubble--me {
    align-self: flex-end;
    border-radius: 20px 20px 6px 20px;
    background: var(--orange);
    color: #fff;
}

.js .card .bubble {
    opacity: 0;
    transform: translateY(10px) scale(.96);
    transition: opacity .5s, transform .6s var(--ease);
}

.js .card.in .bubble {
    opacity: 1;
    transform: none;
}

.js .card.in .bubble:nth-child(1) {
    transition-delay: .4s;
}

.js .card.in .bubble:nth-child(2) {
    transition-delay: 1s;
}

.js .card.in .bubble:nth-child(3) {
    transition-delay: 1.6s;
}

.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .75);
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 6px 16px -10px rgba(27, 18, 48, .3);
}

.checks li::before {
    content: '✓';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--purple);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}

@media (max-width: 960px) {

    .c-match,
    .c-profile,
    .c-feed,
    .c-play,
    .c-community {
        grid-column: span 6;
    }

    .c-match {
        grid-column: span 12;
    }

    .c-profile {
        grid-column: span 12;
    }

    .c-community {
        grid-column: span 12;
    }

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

@media (max-width: 620px) {

    .bento {
        gap: 14px;
    }

    .c-match,
    .c-profile,
    .c-feed,
    .c-play,
    .c-community,
    .c-safe {
        grid-column: span 12;
    }

    .c-match {
        min-height: 0;
        padding-bottom: 290px;
    }

    .c-match .card__body {
        max-width: none;
    }

    .c-match .peek {
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 210px;
    }

    .c-feed {
        min-height: 0;
    }
}

/* ==========================================================================
   COME FUNZIONA
   ========================================================================== */
.how {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 16%;
    right: 16%;
    height: 3px;
    background-image: linear-gradient(90deg, var(--ink) 45%, transparent 0);
    background-size: 14px 3px;
    opacity: .14;
}

.step {
    position: relative;
    text-align: center;
    padding: 34px 28px 36px;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.step__num {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #fff;
    background: var(--bg);
    box-shadow: 0 14px 28px -10px var(--bg);
    rotate: var(--r);
    transition: rotate .5s var(--ease);
}

.step:hover .step__num {
    rotate: 0deg;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: .98rem;
}

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

    .steps::before {
        display: none;
    }
}

/* ==========================================================================
   GALLERIA APP
   ========================================================================== */
.gallery {
    background: var(--cream);
    padding-top: 0;
    overflow: hidden;
}

.gallery__bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.gallery__bar h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin-top: 12px;
}

.arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
    color: var(--ink);
}

.arrow-btn:hover {
    background: var(--ink);
    color: #fff;
    transform: scale(1.08);
}

.arrow-btn:disabled {
    opacity: .35;
    pointer-events: none;
}

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

.rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 30px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 60px;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rail.dragging * {
    pointer-events: none;
}

.rail__item {
    flex: 0 0 auto;
    width: clamp(240px, 26vw, 300px);
    scroll-snap-align: center;
    border-radius: 38px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
    background: var(--peach);
}

.rail__item:hover {
    transform: translateY(-12px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
}

.rail__item:nth-child(even):hover {
    transform: translateY(-12px) rotate(1deg);
}

.rail__item img {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================================
   BUSINESS
   ========================================================================== */
.business {
    background: #140d26;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.business::before,
.business::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
}

.business::before {
    width: 520px;
    height: 520px;
    background: var(--orange);
    opacity: .28;
    top: -160px;
    right: -100px;
}

.business::after {
    width: 460px;
    height: 460px;
    background: var(--purple);
    opacity: .45;
    bottom: -180px;
    left: -120px;
}

.business__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.business .eyebrow {
    color: var(--orange);
}

.business h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.07;
    margin: 16px 0 18px;
}

.business__lead {
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 28px;
}

.business ul {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    gap: 14px;
}

.business li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.business li i {
    font-style: normal;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    flex-shrink: 0;
}

/* Screen app Business */
.rail--biz {
    justify-content: safe center;
    margin-top: clamp(48px, 7vw, 80px);
    padding-bottom: 20px;
}

.rail--biz .rail__item {
    width: clamp(250px, 28vw, 320px);
    align-self: flex-start;
    aspect-ratio: 473 / 1024;
    background: #1f1538;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.rail--biz .rail__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mock dashboard */
.dash {
    position: relative;
    padding: 22px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    transform: rotate(2deg);
    transition: transform .8s var(--ease);
}

.dash:hover {
    transform: rotate(0deg) scale(1.02);
}

.dash__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-weight: 800;
}

.dash__dots {
    display: flex;
    gap: 6px;
}

.dash__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c);
}

.dash__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.dash__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, .12);
}

.dash__row b {
    display: block;
    font-size: .95rem;
}

.dash__row small {
    color: rgba(255, 255, 255, .55);
    font-size: .78rem;
}

.dash__badge {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(34, 179, 85, .18);
    color: #6ee79a;
}

.dash__badge--wait {
    background: rgba(254, 160, 25, .18);
    color: #ffc266;
}

.dash__push {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--warm);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 16px 30px -12px rgba(254, 160, 25, .7);
}

.dash__push span {
    font-size: 1.3rem;
}

.dash__push small {
    display: block;
    opacity: .85;
    font-weight: 600;
}

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

    .dash {
        transform: none;
    }
}

/* ==========================================================================
   EVENTI
   ========================================================================== */
.events {
    background: #fff;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.event {
    display: flex;
    gap: 22px;
    padding: 26px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.event::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--ac, var(--orange));
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event__date {
    flex-shrink: 0;
    width: 74px;
    height: 84px;
    border-radius: 22px;
    background: var(--bg, #fff3e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.event__date b {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.event__date span {
    margin-top: 5px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    background: #fff3e0;
    color: #b34400;
}

.tag--done {
    background: #f1eff4;
    color: #7b7388;
}

.event h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin-bottom: 6px;
}

.event p {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.event p strong {
    color: var(--ink-soft);
}

.event__place {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-soft);
    opacity: .7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--ink);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 2px;
    transition: gap .3s var(--ease), color .3s;
}

.link-arrow:hover {
    gap: 14px;
    color: var(--coral);
}

.center {
    text-align: center;
    margin-top: 40px;
}

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

@media (max-width: 440px) {
    .event {
        flex-direction: column;
    }
}

/* ==========================================================================
   STAMPA
   ========================================================================== */
.press {
    background: var(--cream);
}

.press__card {
    display: grid;
    grid-template-columns: .8fr 1.4fr;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

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

.press__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px;
    background: linear-gradient(150deg, #fea019, #ff6b35 60%, #ed1f32);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.press__brand::before {
    content: '“';
    position: absolute;
    font-family: Georgia, serif;
    font-size: 16rem;
    line-height: 1;
    top: -40px;
    left: 6px;
    opacity: .16;
}

.press__brand span {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(6px);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.press__brand i {
    font-style: normal;
    font-size: 3.4rem;
}

.press__body {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.press__kicker {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.press__body h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
}

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

.press__date {
    font-size: .82rem;
    color: var(--muted);
    opacity: .8;
}

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

    .press__brand {
        padding: 28px;
    }
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact {
    background: #fff;
    padding-bottom: clamp(40px, 6vw, 70px);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.contact__card {
    display: block;
    padding: 28px 22px;
    border-radius: var(--r-md);
    background: var(--bg);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

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

.contact__card i {
    font-style: normal;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px -8px rgba(27, 18, 48, .3);
}

.contact__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.contact__card p {
    font-size: .85rem;
    color: var(--ink-soft);
    opacity: .75;
    word-break: break-word;
}

@media (max-width: 960px) {
    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   CTA FINALE
   ========================================================================== */
.final {
    padding: 0 0 clamp(70px, 9vw, 110px);
    background: #fff;
}

.final__panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--r-xl);
    padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 72px);
    text-align: center;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(255, 210, 63, .7), transparent 60%),
        radial-gradient(600px 400px at 100% 100%, rgba(233, 30, 140, .35), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(26, 159, 224, .35), transparent 60%),
        linear-gradient(135deg, #ffb347, #ff6b35 55%, #ed1f32);
    color: #fff;
    box-shadow: 0 50px 90px -40px rgba(237, 31, 50, .55);
}

.final__logo {
    width: clamp(120px, 16vw, 180px);
    margin: 0 auto 20px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(27, 18, 48, .35));
}

.final h2 {
    font-size: clamp(2.2rem, 5.6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin-bottom: 16px;
}

.final p {
    max-width: 560px;
    margin: 0 auto 34px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    opacity: .92;
}

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

.final .store-btn {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 34px -14px rgba(27, 18, 48, .6);
}

.final .store-btn svg {
    fill: var(--ink);
}

.final .store-btn small {
    opacity: .55;
}

.paw {
    position: absolute;
    z-index: -1;
    font-size: var(--s, 3rem);
    opacity: .16;
    rotate: var(--r, 0deg);
    animation: float 8s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
    user-select: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    padding: 72px 0 36px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--rainbow);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 56px;
}

.footer__brand img {
    height: 54px;
    width: auto;
    background: #fff;
    border-radius: 18px;
    padding: 8px 18px;
    margin-bottom: 18px;
}

.footer__brand p {
    max-width: 300px;
    font-size: .93rem;
    line-height: 1.6;
}

.footer h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer a {
    font-size: .93rem;
    font-weight: 500;
    transition: color .2s, padding .3s var(--ease);
}

.footer ul a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer a.biz {
    color: var(--orange);
    font-weight: 800;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .83rem;
}

.footer__bottom a {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: inherit;
}

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Accessibilità: riduzione animazioni
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal,
    .js .card .bubble {
        opacity: 1;
        transform: none;
    }
}
