/* ==========================================================================
   Animingo — Global Theme & Design System
   Design: Warm cream, vibrant brand rainbow, pill navbar, modern typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Lilita+One&display=swap');

: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);
    --line-light: rgba(27, 18, 48, .05);
    --cream: #fff9ee;
    --peach: #ffe9da;
    --paper: #ffffff;
    --card-bg: #ffffff;

    /* Gradienti */
    --rainbow: linear-gradient(90deg, #ff4d4d, #ff9a00, #ffe600, #22b355, #4a90e2, #9b59b6, #e91e8c);
    --warm: linear-gradient(135deg, #fea019 0%, #ff6b35 100%);
    --warm-subtle: linear-gradient(135deg, rgba(254, 160, 25, .08) 0%, rgba(255, 107, 53, .08) 100%);
    --mesh-hero: radial-gradient(at 0% 0%, rgba(255, 233, 218, 0.8) 0px, transparent 50%),
                 radial-gradient(at 100% 0%, rgba(255, 249, 238, 0.9) 0px, transparent 50%),
                 radial-gradient(at 50% 100%, rgba(255, 243, 176, 0.4) 0px, transparent 50%);

    /* 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 4px 16px rgba(27, 18, 48, .05);
    --shadow-md: 0 14px 40px -12px rgba(27, 18, 48, .12);
    --shadow-lg: 0 32px 70px -20px rgba(27, 18, 48, .2);

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

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

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

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

.container--narrow {
    max-width: var(--container-narrow);
}

.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 ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}

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

/* ---------- Componenti & Tipografia ---------- */
.sticker {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--sticker-cream);
    background: var(--red);
    padding: .04em .35em .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);
}

.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: var(--font);
    font-weight: 700;
    font-size: .95rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
    user-select: none;
    line-height: 1.2;
}

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

.btn:active {
    transform: translateY(0) scale(.98);
}

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

.btn--dark:hover {
    background: #000;
    box-shadow: 0 14px 28px -6px rgba(27, 18, 48, .55);
    color: #fff;
}

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

.btn--warm:hover {
    box-shadow: 0 16px 36px -6px rgba(254, 160, 25, .7);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--line);
}

.btn--outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.btn--sm {
    padding: .55rem 1.1rem;
    font-size: .84rem;
}

/* ==========================================================================
   NAVBAR CONDIVISA
   ========================================================================== */
.nav {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    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, .75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 8px 30px -10px rgba(27, 18, 48, .12);
    transition: background .4s, box-shadow .4s, padding .4s var(--ease);
}

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

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

.nav__logo:hover img {
    transform: rotate(-4deg) scale(1.06);
}

.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,
.nav__links a.active {
    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, .96);
    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;
    font-size: 1rem;
    color: var(--ink);
    transition: background .2s;
}

.nav__sheet a:hover {
    background: var(--cream);
}

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

@media (max-width: 860px) {
    .nav__links {
        display: none;
    }
    .nav__burger {
        display: block;
    }
    .nav.open .nav__sheet {
        display: block;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   SUBPAGE HERO
   ========================================================================== */
.subpage-hero {
    position: relative;
    padding: clamp(120px, 16vw, 170px) 0 clamp(48px, 7vw, 80px);
    background: var(--cream);
    background-image: var(--mesh-hero);
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.subpage-hero::before,
.subpage-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.subpage-hero::before {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(254, 160, 25, .25), transparent 70%);
    top: -60px;
    left: -40px;
}

.subpage-hero::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(233, 30, 140, .2), transparent 70%);
    bottom: -60px;
    right: -40px;
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 14px 0 16px;
}

.subpage-hero p.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.card-panel {
    background: #fff;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--line);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.card-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(254, 160, 25, .3);
}

.card-panel--flat {
    box-shadow: none;
}

.card-panel--flat:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: #fff;
    font-family: var(--font);
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(254, 160, 25, .15);
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

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

.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: 52px;
    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, transform .2s;
    display: inline-block;
}

.footer a:hover {
    color: #fff;
    transform: translateX(3px);
}

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

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

.footer__bottom a:hover {
    color: #fff;
}

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

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

/* ==========================================================================
   LEGAL & ARTICLE PAGES
   ========================================================================== */
.legal-wrap {
    padding: clamp(40px, 6vw, 64px) 0 clamp(60px, 8vw, 96px);
}

.article-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 36px);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.article-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1.5px solid var(--line-light);
}

.article-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 1.4rem 0 .5rem;
}

.article-card p {
    font-size: .95rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-card ul, .article-card ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.article-card li {
    font-size: .95rem;
    color: var(--ink-soft);
    margin-bottom: .45rem;
    line-height: 1.6;
}

.box-gdpr {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: var(--r-sm);
    padding: 1.3rem 1.5rem;
    margin-bottom: 2.2rem;
}
.box-gdpr strong { color: #065f46; font-size: .95rem; }
.box-gdpr p { font-size: .9rem; color: #047857; margin: .3rem 0 0; line-height: 1.6; }

.highlight-b2b {
    background: #fffaf0;
    border-left: 4px solid var(--orange);
    padding: 1.1rem 1.3rem;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin: 1.2rem 0;
}
.highlight-b2b h4 { font-size: .95rem; color: #9a3412; margin-bottom: .4rem; font-weight: 800; }
.highlight-b2b p, .highlight-b2b li { font-size: .9rem; color: #7c2d12; margin-bottom: .3rem; }

.table-responsive { overflow-x: auto; margin: 1.2rem 0; }
.legal-table, table.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; text-align: left; }
.legal-table th { background: var(--cream); padding: .75rem 1rem; border: 1px solid var(--line); font-weight: 800; color: var(--ink); }
.legal-table td { padding: .75rem 1rem; border: 1px solid var(--line); color: var(--ink-soft); }

