/* PackForge3D — sito vetrina (v17).
   Tema chiaro unico, come l'app: fondi bianco-lavanda, schede bianche, accenti viola → magenta → rosa
   (#8B6CFF → #B05CFF → #FF5FA2) e oro per il «3D» del marchio. Nessuna risorsa esterna.
   Impaginazione a tutta larghezza: le sezioni occupano l'intera finestra con margini laterali fluidi
   (--gutter); i testi restano entro una misura leggibile (--measure). */

:root {
    /* Fondi e testo */
    --bg: #faf9fd;
    --bg-alt: #f2f0f9;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f3f0fd;
    --border: #e1deed;
    --border-soft: #ebe8f4;
    --border-strong: #c9c4dd;
    --text: #1d1b2c;
    --text-muted: #565370;
    --text-faint: #686580;

    /* Accenti (stessi dell'app) */
    --accent: #7c5cff;
    --accent-strong: #6a49f2;
    --accent-stronger: #5a3be0;
    --accent-text: #5a3be0;              /* 6,7:1 sul bianco */
    --accent-soft: rgba(124, 92, 255, 0.10);
    --accent-softer: rgba(124, 92, 255, 0.06);
    --accent-glow: rgba(124, 92, 255, 0.26);
    --pink: #ff5fa2;
    --pink-text: #b72f72;
    --grad: linear-gradient(135deg, #8b6cff 0%, #b05cff 55%, #ff5fa2 100%);
    --grad-btn: linear-gradient(120deg, #6b4ef0 0%, #8a3fe0 50%, #c2357a 100%);   /* testo bianco ≥ 5:1 su tutto il gradiente */
    --grad-soft: linear-gradient(135deg, rgba(139, 108, 255, 0.14), rgba(176, 92, 255, 0.10) 55%, rgba(255, 95, 162, 0.12));
    --gold: #d9b25c;
    --gold-ink: #b4862a;                 /* «3D» del marchio */
    --gold-text: #87620f;                /* oro leggibile come testo */
    --gold-soft: rgba(217, 178, 92, 0.16);

    --ok: #1d8a4c;
    --ok-soft: rgba(47, 191, 113, 0.10);
    --warn: #a85a00;
    --warn-soft: rgba(255, 159, 69, 0.12);
    --danger: #c62f3b;
    --danger-soft: rgba(255, 92, 104, 0.10);

    --glass-bg: rgba(255, 255, 255, 0.84);
    --ph-1: #e9e4fb;
    --ph-2: #f7f4ef;
    --ph-line: rgba(40, 30, 90, 0.045);

    /* Forme e ombre */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-card: 0 1px 2px rgba(40, 30, 90, 0.05), 0 8px 28px rgba(40, 30, 90, 0.06);
    --shadow-lift: 0 2px 6px rgba(40, 30, 90, 0.06), 0 26px 60px rgba(40, 30, 90, 0.14);
    --shadow-media: 0 2px 8px rgba(40, 30, 90, 0.06), 0 30px 70px -20px rgba(60, 40, 140, 0.28);

    /* Impaginazione */
    --gutter: clamp(20px, 5vw, 112px);
    --measure: 64ch;
    --section-y: clamp(72px, 7.5vw, 152px);
    --section-y-tight: clamp(44px, 4.5vw, 88px);
    --gap: clamp(16px, 1.6vw, 32px);
    --header-h: 72px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    /* il testo cresce appena sugli schermi grandi: 16 px fino a ~1300 px, ~17,5 px a 2560 */
    font-size: clamp(16px, 14.4px + 0.12vw, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.025em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.3rem, 1.3rem + 3vw, 4.6rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 1.15rem + 1.75vw, 3.1rem); font-weight: 730; }
h3 { font-size: clamp(1.15rem, 1rem + 0.3vw, 1.4rem); font-weight: 680; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 660; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.3em; }
strong { font-weight: 650; }
small { font-size: 0.85em; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-hover); padding: 0.1em 0.35em; border-radius: 5px; }
::selection { background: rgba(124, 92, 255, 0.22); }

a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { text-decoration-thickness: 2px; color: var(--accent-stronger); }

:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 3px;
    border-radius: 6px;
}

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

.skip-link {
    position: absolute;
    left: 12px; top: -100px;
    z-index: 100;
    background: var(--accent-strong);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 650;
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Contenitore a tutta larghezza: solo i margini laterali fluidi */
.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
/* Pagine di lettura (FAQ, legali): colonna di testo centrata */
.container-narrow { max-width: calc(50rem + 2 * var(--gutter)); }

/* ---------- Bottoni ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 46px;
    padding: 0.7em 1.35em;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, background-position .35s var(--ease), border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
    color: #fff;
    background-image: var(--grad-btn);
    background-size: 170% 100%;
    background-position: 0% 0;
    background-color: var(--accent-strong);
    box-shadow: 0 1px 2px rgba(60, 30, 140, 0.18), 0 8px 24px -6px rgba(138, 63, 224, 0.5);
}
.btn-primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(60, 30, 140, 0.18), 0 14px 32px -8px rgba(194, 53, 122, 0.5); }
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--accent-stronger); border-color: var(--accent); background: var(--bg-hover); }
.btn-lg { min-height: 54px; padding: 0.85em 1.75em; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    backdrop-filter: saturate(170%) blur(16px);
    border-bottom: 1px solid var(--border-soft);
}
.site-header::after {
    /* filo sfumato come la barra dell'app */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b6cff 30%, #ff5fa2 70%, transparent);
    opacity: .35;
    pointer-events: none;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 760;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    border-radius: 10px;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(139, 108, 255, 0.35)); }
.brand-name { font-weight: 720; }
.brand-name span { color: var(--gold-ink); font-weight: 900; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
    display: block;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 580;
    transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a[aria-current="page"] { color: var(--accent-stronger); background: var(--accent-soft); }
.nav-cta { display: flex; gap: 8px; margin-left: 6px; }
.nav-cta .btn { min-height: 42px; padding: 0.55em 1.15em; font-size: 0.93rem; }

/* Cambio lingua IT | EN */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
}
.lang-switch .lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}
.lang-switch a.lang-opt:hover { color: var(--text); background: var(--bg-hover); }
.lang-switch .lang-opt.is-current { color: #fff; background: var(--accent-strong); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
    /* Con JavaScript: menu a scomparsa. Senza JavaScript il menu resta visibile e va a capo. */
    .js .nav-toggle { display: inline-flex; }
    .js .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px var(--gutter) 22px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lift);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .js .nav-open .site-nav { display: flex; }
    .js .nav-links { flex-direction: column; }
    .js .nav-links a { padding: 13px 14px; font-size: 1.04rem; border-radius: 12px; }
    .js .nav-cta { margin-left: 0; }
    .js .nav-cta .btn { flex: 1; min-height: 48px; }
    .js .lang-switch { align-self: flex-start; margin-left: 0; }
    .js .lang-switch .lang-opt { min-width: 52px; height: 40px; font-size: 0.92rem; }
    .header-inner { flex-wrap: wrap; }
    html:not(.js) .site-nav { flex-wrap: wrap; width: 100%; padding-bottom: 10px; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: var(--section-y-tight); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 54rem; margin-bottom: clamp(36px, 3.6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { max-width: var(--measure); }
.section-head.center .lead { margin-inline: auto; }
.section-head > :last-child { margin-bottom: 0; }

/* Titolo a sinistra e testo a destra sugli schermi larghi */
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 6vw; align-items: end; }
@media (min-width: 1100px) {
    .section-head.split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .section-head.split .lead { margin-bottom: 0.35em; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.eyebrow::before {
    content: "";
    width: 22px; height: 3px;
    border-radius: 3px;
    background: var(--grad);
    flex-shrink: 0;
}
.center > .eyebrow, .section-head.center .eyebrow, .cta-band .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1rem + 0.3vw, 1.32rem); line-height: 1.55; color: var(--text-muted); max-width: var(--measure); }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-text);
    border: 1px solid transparent;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.3;
}
.badge-gold { background: var(--gold-soft); color: var(--gold-text); }
.badge-new { background: var(--grad-btn); color: #fff; }
.badge-outline { background: transparent; border-color: var(--border); color: var(--text-muted); }

/* ---------- Intro della home ---------- */
.intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: clamp(56px, 8vh, 120px) 0 clamp(48px, 7vh, 96px);
}
.intro::before {
    /* luce colorata sul fondo, come la Home dell'app */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(38% 60% at 18% 20%, rgba(139, 108, 255, 0.20), transparent 70%),
        radial-gradient(34% 55% at 84% 26%, rgba(255, 95, 162, 0.16), transparent 70%),
        radial-gradient(40% 50% at 55% 105%, rgba(217, 178, 92, 0.16), transparent 70%);
    pointer-events: none;
}
.intro::after {
    /* griglia leggera, sfumata ai bordi */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, var(--ph-line) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(90deg, var(--ph-line) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}
.intro-inner { width: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.intro-head { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 3.2vh, 36px); }
.intro-logo { width: clamp(58px, 5vw, 84px); height: auto; filter: drop-shadow(0 16px 30px rgba(139, 108, 255, .38)); }
.intro-brand { font-size: clamp(1.35rem, 1rem + 0.8vw, 1.9rem); font-weight: 760; letter-spacing: -0.02em; margin: 0; }
.intro-brand span { color: var(--gold-ink); font-weight: 900; }
.intro h1 {
    font-size: clamp(2.4rem, 1.2rem + 4vw, 6rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 clamp(26px, 3vh, 40px);
    max-width: 15em;
    color: var(--text);
    background: linear-gradient(115deg, #1d1b2c 22%, #5a3be0 58%, #b72f72 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.06em;   /* le discendenti non vengono tagliate dal ritaglio */
}
.intro-for { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--text-muted); margin: 0 0 26px; }
.rot { display: inline-grid; vertical-align: bottom; color: var(--text); font-weight: 700; text-align: left; }
.rot-w { grid-area: 1 / 1; white-space: nowrap; }
.js .rot-w { opacity: 0; transform: translateY(.45em); transition: opacity .45s ease, transform .45s ease; }
.js .rot-w.is-on { opacity: 1; transform: none; }
.js .rot-w.is-out { opacity: 0; transform: translateY(-.45em); }
html:not(.js) .rot-w:not(:first-child) { display: none; }
/* Apertura (v23): tre passi a pillola, sotto le tre voci «in breve» che li staccano dal pulsante, poi UN solo pulsante,
   più grande: così non sembra il quarto passo. */
.intro-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding: 0; margin: 0; }
.intro-steps li { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); font-weight: 620; color: var(--text-muted); box-shadow: 0 1px 2px rgba(40, 30, 90, 0.04); transition: border-color .4s ease, color .4s ease, box-shadow .4s ease; }
.st-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-hover); color: var(--text); font-size: .86rem; font-weight: 750; transition: background .4s ease, color .4s ease; }
.intro-steps li.is-on { border-color: rgba(124, 92, 255, 0.55); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 20px -8px rgba(124, 92, 255, 0.45); }
.intro-steps li.is-on .st-n { background: var(--grad-btn); color: #fff; }
.intro .hero-points { justify-content: center; margin: clamp(26px, 3.6vh, 40px) 0 clamp(26px, 3.6vh, 40px); }
.intro .btn-row { justify-content: center; }
.intro .btn-xl { min-height: 66px; padding: 0.95em 2.4em; font-size: 1.22rem; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
    .il-tile { transform-origin: 16px 16px; animation: ilTile .7s cubic-bezier(.2, .9, .3, 1.3) both; }
    .il-f { transform-box: fill-box; transform-origin: center; animation: ilFace .6s cubic-bezier(.2, .8, .3, 1) both; }
    .il-f1 { animation-delay: .45s; --dx: 0; --dy: -8px; }
    .il-f2 { animation-delay: .62s; --dx: -7px; --dy: 4px; }
    .il-f3 { animation-delay: .79s; --dx: 7px; --dy: 4px; }
    .il-f4 { animation-delay: .96s; --dx: -6px; --dy: -6px; }
    .il-spark { transform-box: fill-box; transform-origin: center; animation: ilSpark .7s ease 1.25s both, ilTwinkle 3.2s ease-in-out 2.2s infinite; }
}
@keyframes ilTile { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ilFace { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ilSpark { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ilTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(45deg); } }

/* ---------- Hero (testo + immagine che arriva al bordo destro della finestra) ---------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 6vw, 120px);
    isolation: isolate;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 120px);
    align-items: center;
}
.hero-grid > :first-child { max-width: 40rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em, .hero-title em { font-style: normal; color: var(--accent-text); background: linear-gradient(115deg, #5a3be0 20%, #b72f72 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin-bottom: 30px; }
.hero-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.9rem); font-weight: 750; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--text-faint); }
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    font-size: 0.94rem;
    font-weight: 560;
    color: var(--text-muted);
}
.hero-points li { margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.hero-points li::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}
.hero .media.bleed {
    margin-right: calc(-1 * var(--gutter));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: 0;
}

.page-hero {
    position: relative;
    padding-block: clamp(56px, 6vw, 120px) clamp(36px, 4vw, 72px);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(32% 70% at 88% 10%, rgba(255, 95, 162, 0.12), transparent 70%),
        radial-gradient(36% 80% at 70% 0%, rgba(139, 108, 255, 0.16), transparent 70%);
    pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.5vw, 4.2rem); max-width: 18em; }
.page-hero.center h1, .page-hero .center h1 { margin-inline: auto; }
.page-hero .lead { max-width: 46rem; }

/* ---------- Immagini con segnaposto (sempre a ritaglio, proporzioni fisse) ---------- */
.media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    color: var(--accent);
    background:
        repeating-linear-gradient(0deg, var(--ph-line) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, var(--ph-line) 0 1px, transparent 1px 32px),
        radial-gradient(70% 70% at 70% 25%, rgba(139, 108, 255, 0.22), transparent 70%),
        radial-gradient(60% 60% at 15% 90%, rgba(255, 95, 162, 0.14), transparent 70%),
        linear-gradient(150deg, var(--ph-1), var(--ph-2));
    box-shadow: var(--shadow-media);
}
.media-square { aspect-ratio: 1 / 1; }
.media-wide { aspect-ratio: 16 / 9; }
.media-tall { aspect-ratio: 4 / 5; }
.media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform .8s var(--ease);
}
/* animazione della fustella (v24): un video senza audio, in giro continuo, al posto della foto */
.media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #efecf7;
}
.media-ph {
    position: absolute;
    left: 14px; bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.media-ph::before {
    content: "";
    width: 12px; height: 12px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--grad);
}
.media-cube {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26%;
    max-width: 120px;
    aspect-ratio: 1;
    opacity: 0.45;
}
figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
/* 6 schede: 1 → 2 → 3 colonne (mai 4 + 2 o 5 + 1) */
.grid-6 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .grid-6.wide-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(22px, 1.8vw, 34px);
    box-shadow: var(--shadow-card);
    min-width: 0;
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-text);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.gold { background: var(--gold-soft); color: var(--gold-text); }
.card-icon.grad { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 18px -6px rgba(138, 63, 224, 0.55); }
.card-icon.emoji { font-size: 1.35rem; background: var(--grad-soft); }

/* Le due aree Crea / Scena */
.area-card {
    padding: clamp(28px, 2.6vw, 52px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.area-card::after {
    content: "";
    position: absolute;
    right: -90px; top: -90px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 108, 255, 0.20), transparent 70%);
    pointer-events: none;
}
.area-card.gold::after { background: radial-gradient(circle, rgba(217, 178, 92, 0.26), transparent 70%); }
.area-card h3 { font-size: clamp(1.55rem, 1.1rem + 1vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.area-card > p { max-width: var(--measure); }
.area-card .card-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-weight: 680; text-decoration: none; }
.area-card .card-link:hover { text-decoration: underline; }

.stage-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.stage-chips li {
    margin: 0;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Righe funzionalità (testo + immagine più grande, alternate) */
.feature-rows { display: grid; gap: clamp(64px, 7vw, 150px); }
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 120px);
    align-items: center;
}
.feature-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-text { max-width: 40rem; }
.feature-text h3, .feature-text h2 { font-size: clamp(1.55rem, 1.05rem + 1.25vw, 2.5rem); letter-spacing: -0.025em; }
.feature-text .muted { font-size: 1.08rem; }
@media (min-width: 2100px) {
    .feature-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
    .feature-row:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.feature-num {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.feature-num b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--grad-btn);
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 6px 14px -6px rgba(138, 63, 224, 0.6);
}
.feature-num b svg { width: 16px; height: 16px; }
.fine-print { font-size: 0.92rem; color: var(--text-faint); }
.note-chip {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: var(--gold-text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}
.note-chip svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* Liste con spunta */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; }
.checks li + li { margin-top: 0.6em; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.3em;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%235a3be0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checks.two-col { columns: 2 280px; column-gap: 36px; }
.checks.two-col li { break-inside: avoid; }

/* Mock della libreria (pannello disegnato in CSS) */
.mock {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(170deg, #ffffff, #f7f5fd);
    padding: clamp(20px, 2vw, 34px);
    box-shadow: var(--shadow-media);
}
.mock-title { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.mock-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-faint);
    font-size: 0.93rem;
}
.mock-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.mock-search b { color: var(--text); font-weight: 600; }
.mock-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.mock-list:last-child { margin-bottom: 0; }
.mock-list li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 0.93rem;
    min-width: 0;
}
.mock-list li.on { border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 0 0 3px var(--accent-soft); }
.mock-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-list li small { margin-left: auto; color: var(--text-faint); flex-shrink: 0; }
.mock-dot { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; background: var(--grad); }
.mock-dot.gold { background: linear-gradient(135deg, #e7c77a, #b4862a); }
.mock-dot.alt { background: linear-gradient(135deg, #6fd3c9, #4b8cff); }
.mock-dot.warm { background: linear-gradient(135deg, #ffb36b, #ff5fa2); }

/* Confronto con shooting e prototipi */
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); font-weight: 750; }
.compare tbody th { font-weight: 650; width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td:nth-child(2) { color: var(--text-muted); }
.compare .pf { color: var(--accent-text); font-weight: 650; background: var(--accent-softer); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-card); }

/* Galleria a mosaico: tutte quadrate, due grandi sfalsate (4 colonne × 3 righe sugli schermi larghi) */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 24px); }
.gallery .media { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.gallery .media.wide { grid-column: span 2; grid-row: span 2; }
.gallery .media:hover img { transform: scale(1.035); }
.gallery .media .media-ph { font-size: 0.74rem; }
@media (min-width: 1000px) {
    .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* CTA finale: fascia a tutta larghezza */
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(72px, 8vw, 160px);
    text-align: center;
    background:
        radial-gradient(40% 90% at 15% 100%, rgba(255, 95, 162, 0.20), transparent 70%),
        radial-gradient(45% 100% at 85% 0%, rgba(139, 108, 255, 0.26), transparent 70%),
        linear-gradient(180deg, #f4f1fd, #fbf3f8);
    border-top: 1px solid var(--border-soft);
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, var(--ph-line) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(90deg, var(--ph-line) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(60% 80% at 50% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}
.cta-band h2 { max-width: 18em; margin-inline: auto; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.9rem); }
.cta-band p { max-width: 40rem; margin-inline: auto; color: var(--text-muted); font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* Navigazione interna (pagina funzionalità, tutorial) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.toc li { margin: 0; }
.toc a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s;
}
.toc a:hover { border-color: var(--accent); color: var(--accent-stronger); background: var(--bg-hover); }

.detail-block { padding-block: clamp(56px, 6vw, 120px); border-top: 1px solid var(--border-soft); }
.detail-block:first-of-type { border-top: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4.5vw, 110px); align-items: start; }
.detail-grid > div:first-child { max-width: 52rem; }
.detail-grid > .media, .detail-grid > .mock { position: sticky; top: calc(var(--header-h) + 28px); }
@media (min-width: 1700px) { .detail-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.detail-grid h3 { margin-top: 1.4em; }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 26px; }
.subgrid .card { padding: 18px 20px; box-shadow: none; background: var(--bg-card); }
.subgrid .card h4 { margin-bottom: 0.35em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subgrid .card p { font-size: 0.95rem; color: var(--text-muted); }
.subgrid .card.hi { border-color: rgba(124, 92, 255, 0.45); background: linear-gradient(170deg, #fff, #f8f5ff); }

/* Passi numerati */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.steps > li {
    counter-increment: step;
    position: relative;
    margin: 0;
    padding: 16px 18px 16px 64px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 16px; top: 14px;
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 750;
    font-size: 0.95rem;
}
.steps > li strong { display: block; }

/* Video dei tutorial (e segnaposto) */
.video-ph {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-muted);
    font-weight: 650;
    background:
        radial-gradient(60% 70% at 50% 40%, rgba(139, 108, 255, 0.20), transparent 70%),
        linear-gradient(150deg, var(--ph-1), var(--ph-2));
}
.video-ph .play {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent-text);
    box-shadow: var(--shadow-card);
}
.video-ph .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-ph video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }

/* Guide dei tutorial (v21): titolo, video largo quanto la pagina (ma mai più alto dello schermo), passi scritti in colonne sotto */
.guide { padding-block: clamp(48px, 5vw, 96px); border-top: 1px solid var(--border-soft); scroll-margin-top: calc(var(--header-h) + 8px); }
.guide:first-of-type { border-top: 0; }
.guide-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.6rem); }
.guide > .video-ph { width: 100%; max-width: calc((100vh - var(--header-h) - 40px) * 16 / 9); margin: 26px auto 0; box-shadow: var(--shadow-card); }
.guide .steps { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Card modelli gratuiti */
.model-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.model-card .media { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; aspect-ratio: 4 / 3; }
.model-card .badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--glass-bg); border-color: var(--border); color: var(--gold-text); }
.model-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model-body h3 { font-size: 1.08rem; margin: 0; }
.model-body p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.model-meta { font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-mono); }
.model-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.model-actions .btn { flex: 1 1 auto; min-height: 40px; padding: 0.5em 0.9em; font-size: 0.88rem; }
.model-group { font-size: 1.05rem; margin: 34px 0 14px; color: var(--text-muted); letter-spacing: .01em; }
.model-group:first-of-type { margin-top: 8px; }
.pano-card .media { aspect-ratio: 2 / 1; }

/* ---------- Abbonamenti ---------- */
.plans-area { max-width: 1680px; margin-inline: auto; }
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.plan-wrap-wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.plan {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: clamp(26px, 2.4vw, 44px);
    box-shadow: var(--shadow-card);
}
.plan-hi {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--grad) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 0 6px var(--accent-softer), var(--shadow-lift);
}
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.plan-name h2 { font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.8rem); margin: 0; }
.plan-price { font-size: clamp(2.1rem, 1.6rem + 1.2vw, 3rem); font-weight: 780; letter-spacing: -0.03em; margin: 0; white-space: nowrap; line-height: 1.1; }
.plan-price small { font-size: 1rem; font-weight: 550; color: var(--text-muted); letter-spacing: 0; }
.plan-price-team { white-space: normal; }
.plan-price-team small { font-size: .9rem; white-space: nowrap; display: inline-block; }
.plan-trial {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: var(--gold-text);
    font-weight: 650;
}
.plan-trial svg { width: 22px; height: 22px; flex-shrink: 0; }
.plan-trial-wide {
    margin-top: 24px;
    justify-content: center;
    text-align: center;
    background: var(--grad-soft);
    border: 1px solid rgba(124, 92, 255, 0.28);
    color: var(--text);
    font-weight: 600;
    padding: 18px 22px;
}
.plan-trial-wide > span { text-align: center; }
.plan hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 14px; }
.plan-cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--gap); align-items: stretch; margin-top: 0; }
.plan-cards-3 .plan { display: flex; flex-direction: column; gap: 10px; }
.plan-cards-3 .plan .checks { flex: 1; margin-top: 10px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); }
.plan-card-hi { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-softer); }
.plan-card h3 { margin: 0; }
.plan-card .plan-price { font-size: 1.8rem; }
.plan-card .checks { flex: 1; margin: 0; }
.plans-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.plans-col { display: flex; flex-direction: column; gap: 18px; }
.plans-col .plan-cards { margin: 0; }
.plans-col .plan { display: flex; flex-direction: column; gap: 10px; }
.plans-col .plan .checks { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 3px; background: var(--bg-card); }
.seg button { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 650; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--text); background: var(--bg-hover); }
.seg button[aria-selected="true"] { background: var(--accent-strong); color: #fff; }
.team-offer { padding: 20px 22px; }
.team-buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; align-items: end; margin-bottom: 4px; }
.team-buy p { grid-column: 1 / -1; margin: 0; }
.team-list { list-style: none; padding: 0; margin: 8px 0 16px; border-top: 1px solid var(--border); }
.team-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.team-invite, .team-seats { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
.team-invite .field, .team-seats .field { flex: 1; min-width: 200px; }
.team-seats .field { max-width: 220px; }

/* Tabella dei piani */
.compare-wrap { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-wrap .compare { min-width: 640px; table-layout: fixed; }
.compare-wrap .compare th, .compare-wrap .compare td { padding: 14px 20px; text-align: center; font-size: .96rem; vertical-align: middle; }
.compare-wrap .compare th[scope="row"] { text-align: left; font-weight: 560; color: var(--text); }
/* sul telefono la tabella scorre di lato: la colonna delle voci resta ferma */
.compare-wrap .compare th[scope="row"], .compare-wrap .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-card); }
.compare-wrap .compare thead th { font-size: 1.05rem; font-weight: 730; padding-top: 20px; letter-spacing: -0.01em; text-transform: none; color: var(--text); }
.compare-wrap .compare .hi, .compare-wrap .compare td:nth-child(3) { background: var(--accent-softer); }
.compare-wrap .compare td:nth-child(2) { color: var(--text); }
.compare .ck { display: inline-block; width: 20px; height: 20px; color: var(--ok); vertical-align: middle; }
.compare .no { color: var(--text-faint); }
.compare col.c-feat { width: 34%; }
.compare col.c-plan { width: 22%; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(24px, 4vw, 80px); align-items: start; }

/* ---------- Avvisi ---------- */
.notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 24px;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 0.4em; }
.notice-warn { border-color: rgba(200, 110, 0, 0.35); background: #fff7ee; }
.notice-warn svg { color: var(--warn); }
.notice-ok { border-color: rgba(29, 138, 76, 0.3); background: #f1faf4; }
.notice-ok svg { color: var(--ok); }
.notice-error { border-color: rgba(198, 47, 59, 0.3); background: #fdf1f2; }
.notice-error svg { color: var(--danger); }
.notice-info { border-color: rgba(124, 92, 255, 0.35); background: #f6f3ff; }
.notice-info svg { color: var(--accent-text); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 96px); align-items: start; }
.faq-nav { display: none; }
@media (min-width: 1100px) {
    .faq-layout { grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); }
    .faq-nav { display: block; position: sticky; top: calc(var(--header-h) + 28px); }
}
.faq-main { min-width: 0; }
.faq-nav h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.faq-nav ul { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--border); }
.faq-nav li { margin: 0; }
.faq-nav li a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.faq-nav li a:hover { color: var(--accent-stronger); border-left-color: var(--accent); }
.faq-nav .card { padding: 20px; }
.faq-nav .card p { font-size: 0.95rem; }
.faq-group + .faq-group { margin-top: clamp(40px, 4vw, 72px); }
.faq-group > h2 { font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.8rem); margin-bottom: 18px; }
.faq { display: grid; gap: 10px; }
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: border-color .15s, box-shadow .15s;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 0 0 3px var(--accent-softer), var(--shadow-card); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    font-weight: 650;
    border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    width: 9px; height: 9px;
    flex-shrink: 0;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent-text); }
.faq .answer { padding: 0 20px 20px; color: var(--text-muted); max-width: 72ch; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .tbd { color: var(--gold-text); font-weight: 650; }

/* ---------- Moduli ---------- */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 40px); box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field .label { font-size: 0.92rem; font-weight: 650; }
.field .opt { font-weight: 500; color: var(--text-faint); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    min-height: 48px;
    transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #b3add0; }
textarea { min-height: 160px; resize: vertical; }
select {
    appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent-strong); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.form-foot p { margin: 0; font-size: 0.88rem; color: var(--text-faint); }

.auth-wrap { max-width: calc(480px + 2 * var(--gutter)); margin-inline: auto; }
.auth-wrap .form-card { padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-lift); }
.auth-wrap fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: 0.95rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 96px); align-items: start; }
@media (min-width: 1800px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .contact-grid aside .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Account (accesso, registrazione, area clienti) */
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form .notice { margin: 0; }
.account-wrap { max-width: calc(1040px + 2 * var(--gutter)); margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.account-wrap > [data-pf-page] { display: flex; flex-direction: column; gap: 22px; }
.account-wrap .notice { margin: 0; }
.account-grid { align-items: start; }
.h-card { font-size: 1.15rem; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.danger-zone { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; background: var(--bg-card); }
.danger-zone summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
.danger-zone form { margin-top: 14px; }

/* Pagine legali / testo lungo */
.prose { max-width: 50rem; }
.container-narrow.prose, .prose.container-narrow { max-width: calc(50rem + 2 * var(--gutter)); }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.7rem); margin-top: 2em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose .todo {
    padding: 12px 16px;
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}
.prose mark.ph { background: var(--gold-soft); color: var(--gold-text); padding: 0 4px; border-radius: 4px; font-weight: 650; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--text-muted); font-weight: 650; }

/* Crediti */
.credit { display: grid; gap: 4px; }
.credit h3 { margin: 0; }
.credit .lic { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold-text); }

/* 404 */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 200px); }
.notfound .code { font-size: clamp(4.5rem, 16vw, 11rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Home: sezioni nuove ---------- */
/* Scatta: i formati di download */
.dl-card { display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.dl-card h3 { font-size: 1.15rem; }
.dl-card p { font-size: 0.97rem; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: auto 0 0; padding-top: 16px; }
.dl-tags li { margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border-soft); font-size: 0.8rem; font-weight: 650; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.unlimited {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: clamp(28px, 3vw, 48px) auto 0;
    padding: 16px 22px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    width: fit-content;
    max-width: 100%;
    text-align: center;
    font-weight: 600;
}
.unlimited strong { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-text); font-weight: 780; }

/* Lavori al sicuro: libreria (mock) + schede */
.work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 96px); align-items: center; }
.work-grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 2000px) { .work-grid .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-grid .card { padding: clamp(20px, 1.6vw, 28px); }
.work-grid .card h3 { font-size: 1.08rem; }
.work-grid .card p { font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    padding-top: clamp(56px, 5vw, 96px);
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 32px clamp(32px, 4vw, 96px);
}
.footer-brand p { color: var(--text-muted); max-width: 26em; margin-top: 16px; }
.site-footer h2 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-stronger); text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); text-decoration: none; }
.site-footer a[aria-current="page"] { color: var(--text); font-weight: 600; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: clamp(48px, 4vw, 80px);
    padding-block: 24px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-faint);
    font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .work-grid { grid-template-columns: minmax(0, 1fr); }
    .work-grid .mock { max-width: 40rem; }
}

@media (max-width: 960px) {
    .hero-grid, .feature-row, .feature-row:nth-child(even), .detail-grid, .plan-wrap, .plan-wrap-wide, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .feature-row:nth-child(even) .feature-text { order: 0; }
    .detail-grid > .media, .detail-grid > .mock { position: relative; top: 0; }
    .hero .media.bleed { margin-right: 0; border-radius: var(--radius-lg); border-right: 1px solid var(--border-soft); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    body { font-size: 1rem; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: minmax(0, 1fr); }
    .gallery .media.wide { grid-column: auto; grid-row: auto; }
    .work-grid .grid { grid-template-columns: minmax(0, 1fr); }
    .btn-row .btn { flex: 1 1 auto; }
    .intro-steps li { padding-right: 14px; font-size: 0.95rem; }
    .intro .btn-xl { width: 100%; min-height: 60px; font-size: 1.12rem; }
    .unlimited { border-radius: var(--radius); }
    .table-wrap:not(.compare-wrap) .compare thead { display: none; }
    .table-wrap:not(.compare-wrap) .compare tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
    .table-wrap:not(.compare-wrap) .compare tbody tr:last-child { border-bottom: 0; }
    .table-wrap:not(.compare-wrap) .compare tbody th,
    .table-wrap:not(.compare-wrap) .compare td { display: block; width: auto; border: 0; padding: 4px 16px; background: none; }
    .table-wrap:not(.compare-wrap) .compare tbody th { padding-top: 10px; }
    .table-wrap:not(.compare-wrap) .compare td::before { content: attr(data-label) " — "; color: var(--text-faint); font-size: 0.85rem; font-weight: 500; }
    .steps > li { padding-left: 58px; }
    .faq summary { padding: 15px 16px; }
    .faq .answer { padding: 0 16px 16px; }
}

@media (max-width: 400px) {
    .brand { font-size: 1.1rem; }
    .brand-mark { width: 30px; height: 30px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- Mensile / annuale e rinnovo automatico (v398) ---------- */
.period-switch { display: flex; width: fit-content; margin: 0 auto clamp(20px, 3vw, 32px); padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); box-shadow: var(--shadow-card); }
.period-switch[hidden] { display: none; }
.period-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 680; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.period-switch button:hover { color: var(--text); background: var(--bg-hover); }
.period-switch button[aria-pressed="true"] { background-image: var(--grad-btn); color: #fff; }
.period-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.period-gift { font-size: .74rem; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); }
.period-switch button[aria-pressed="true"] .period-gift { background: rgba(255, 255, 255, .22); color: #fff; }
[data-period="month"] .p-year, [data-period="year"] .p-month { display: none; }
[data-pf-plans] .period-switch { margin: 0 0 16px; }
.renew-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border-soft); }
.renew-row p { margin: 0; flex: 1 1 260px; }
/* Aziendale (v398): il prezzo del Completo ben leggibile, un gradino sotto quello del Base */
.plan-price-2 { margin: 6px 0 0; font-size: clamp(1.35rem, 1.1rem + .6vw, 1.75rem); font-weight: 740; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.plan-price-2 small { font-size: .9rem; font-weight: 550; letter-spacing: 0; color: var(--text-muted); display: inline-block; }

/* Banner «versione di prova» in cima alla home (v25, 20/11/2026): l'app è in fase di test */
.test-banner {
    background: #fff4d6;
    color: #4a3500;
    border-bottom: 1px solid #f0d98c;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    padding: 10px 16px;
}
.test-banner strong { color: #3a2900; }
.test-banner .test-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; margin-right: 8px; vertical-align: 1px; }
