/* =========================================================================
   Zuzai — design system vetrina
   Tipografia: Fraunces (display, serif variabile) + Public Sans (body)
   Palette:    blu Zuzai + ambra/miele (richiamo "api")
   ========================================================================= */

:root {
    --c-bg:        #FAF7F2;   /* avorio caldo */
    --c-bg-soft:   #F2EDE3;
    --c-ink:       #0F1B2D;   /* deep navy quasi nero */
    --c-ink-soft:  #4A576B;
    --c-muted:     #8B95A7;
    --c-line:      #E0D9CB;   /* divisori caldi */
    --c-brand:     #2D7DD2;   /* blu Zuzai */
    --c-brand-deep:#1F5A99;
    --c-green:     #71BD05;   /* verde Zuzai (logo/api) */
    --c-green-deep:#5A9E00;
    --c-honey:     #F5C307;   /* giallo miele Zuzai */
    --c-honey-deep:#B58800;   /* giallo per testo leggibile su crema */
    --c-honey-soft:#F8DC5C;
    --c-card:      #FFFFFF;

    --f-display:   "Fraunces", "Cardo", Georgia, serif;
    --f-body:      "Public Sans", -apple-system, system-ui, sans-serif;

    --shadow-sm:   0 1px 2px rgba(15,27,45,0.04), 0 4px 16px rgba(15,27,45,0.05);
    --shadow-md:   0 4px 12px rgba(15,27,45,0.06), 0 14px 40px rgba(15,27,45,0.08);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--f-body);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-deep); }

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

/* ── Container ───────────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.container--narrow { max-width: 760px; }
.container--prose  { max-width: 680px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
    background: var(--c-green);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid var(--c-green-deep);
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 18px;
}

.site-header__logo {
    color: var(--c-bg);
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.site-header__logo svg,
.site-header__logo img { height: 44px; width: auto; max-width: none; display: block; flex-shrink: 0; }

@media (max-width: 600px) {
    .site-header__logo svg,
    .site-header__logo img { height: 34px; }
}

.site-nav {
    display: flex;
    gap: clamp(8px, 2vw, 22px);
    align-items: center;
    margin-left: auto;
    list-style: none;
    padding: 0;
}

.site-nav a {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a.is-active {
    color: var(--c-bg);
    border-bottom-color: var(--c-honey);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .15s, color .15s, border-color .15s;
    text-decoration: none;
    font-family: var(--f-body);
}

.btn--primary {
    background: transparent;
    color: var(--c-brand);
    border: 4px solid var(--c-brand);
    border-radius: 17px;
}
.btn--primary:hover { background: var(--c-brand); color: #fff; transform: translateY(-1px); }

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.45);
}
.btn--ghost:hover { color: #fff; border-color: #fff; }

.btn--honey {
    background: var(--c-honey);
    color: var(--c-ink);
    border-color: var(--c-honey);
}
.btn--honey:hover { filter: brightness(0.95); color: var(--c-ink); transform: translateY(-1px); }

.btn--green {
    background: var(--c-green);
    color: #fff;
    border-color: var(--c-green);
}
.btn--green:hover { background: var(--c-green-deep); border-color: var(--c-green-deep); color: #fff; transform: translateY(-1px); }

.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--xl { padding: 20px 34px; font-size: 17px; }

.site-header__cta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--c-bg);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 820px) {
    .site-header__menu-toggle { display: inline-flex; margin-left: auto; }
    .site-nav, .site-header__cta { display: none; }
    .site-header.is-open .site-nav,
    .site-header.is-open .site-header__cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 12px 0 24px;
        gap: 10px;
    }
    .site-header.is-open .site-header__row { flex-wrap: wrap; }
    .site-header.is-open .site-nav a { padding: 12px 4px; }
    .site-header.is-open .btn { width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-block: clamp(60px, 11vw, 120px);
    background:
        radial-gradient(55% 55% at 88% 8%, rgba(245,195,7,0.16) 0%, transparent 60%),
        radial-gradient(45% 55% at 6% 92%, rgba(113,189,5,0.14) 0%, transparent 65%),
        radial-gradient(50% 70% at 95% 85%, rgba(45,125,210,0.10) 0%, transparent 70%),
        var(--c-bg);
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-green-deep);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero__title {
    font-family: var(--f-display);
    font-weight: 500;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    max-width: 16ch;
    color: var(--c-ink);
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--c-brand);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero__sub {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--c-ink-soft);
    max-width: 56ch;
    margin: 0 0 32px;
    line-height: 1.55;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Light-sharing form ──────────────────────────────────────────────── */
.zuz-form-card {
    margin-top: clamp(48px, 7vw, 70px);
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-md);
    position: relative;
}

.zuz-form-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-green) 50%, var(--c-honey) 100%);
    z-index: -1;
    opacity: 0.18;
    filter: blur(20px);
}

.zuz-form-card h2 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 8px;
    line-height: 1.1;
}

.zuz-form-card p {
    color: var(--c-ink-soft);
    margin: 0 0 22px;
}

.zuz-form-card label {
    display: block;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 8px;
    font-size: 14px;
}

.zuz-form-card textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-md);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14.5px;
    resize: vertical;
    min-height: 140px;
    background: var(--c-bg);
    color: var(--c-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.zuz-form-card textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,125,210,0.12);
}

.zuz-form-card__actions {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.zuz-form-card__hint {
    color: var(--c-muted);
    font-size: 13px;
}

.zuz-form-response { margin-top: 20px; }

.zuz-form-response__loading {
    padding: 14px 18px;
    background: rgba(45,125,210,0.06);
    border: 1.5px solid var(--c-brand);
    border-radius: var(--r-md);
    color: var(--c-brand-deep);
    font-weight: 500;
}

.zuz-form-response__success {
    padding: 18px;
    background: rgba(45,125,210,0.04);
    border: 1.5px solid var(--c-brand);
    border-radius: var(--r-md);
}

.zuz-form-response__success h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 18px;
    color: var(--c-brand);
    margin: 0 0 12px;
}

.zuz-form-response__url-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.zuz-form-response__url {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    background: var(--c-bg);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14.5px;
    color: var(--c-ink);
}

.zuz-form-response__error {
    padding: 14px 18px;
    background: #FEF2F2;
    border: 1.5px solid #DC2626;
    border-radius: var(--r-md);
    color: #991B1B;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section {
    padding-block: clamp(60px, 9vw, 110px);
}

.section--alt   { background: var(--c-bg-soft); }
.section--dark  { background: var(--c-ink); color: var(--c-bg); }
.section--brand { background: var(--c-brand); color: #fff; }

.section__eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-green-deep);
    font-weight: 700;
    margin-bottom: 18px;
}

.section--dark .section__eyebrow { color: var(--c-honey-soft); }

.section__title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(32px, 4.5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    max-width: 22ch;
}

.section__lead {
    font-size: clamp(17px, 1.3vw, 20px);
    color: var(--c-ink-soft);
    max-width: 60ch;
    margin: 0 0 48px;
}

.section--dark .section__lead { color: rgba(250,247,242,0.7); }

/* ── Steps grid (3 steps su home) ────────────────────────────────────── */
.steps {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    counter-reset: step;
}

.step {
    counter-increment: step;
    position: relative;
    padding-top: 8px;
}

.step__num {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: 64px;
    color: var(--c-green-deep);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.step__num::before { content: "0" counter(step); }

.step h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 28px;
    margin: 0 0 10px;
}

.step p {
    color: var(--c-ink-soft);
    margin: 0;
}

/* ── Feature cards ───────────────────────────────────────────────────── */
.features {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    padding: 28px;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-brand);
}

.feature-card h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 8px;
}

.feature-card p {
    color: var(--c-ink-soft);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-green) 50%, var(--c-honey) 100%);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-toggle {
    display: inline-flex;
    padding: 6px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
    background: var(--c-card);
    margin-bottom: 40px;
}

.pricing-toggle button {
    padding: 8px 18px;
    border-radius: var(--r-pill);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-ink-soft);
}

.pricing-toggle button.is-active {
    background: var(--c-ink);
    color: var(--c-bg);
}

.pricing-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.price-card {
    padding: 32px 28px;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
}

.price-card--featured {
    border: 2px solid var(--c-brand);
    box-shadow: var(--shadow-md);
    position: relative;
}

.price-card--featured::before {
    content: "Più scelto";
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--c-brand);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.price-card h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 26px;
    margin: 0 0 4px;
}

.price-card .price {
    font-family: var(--f-display);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    margin: 16px 0 4px;
    color: var(--c-ink);
}

.price-card .price small {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--c-ink-soft);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex: 1;
}

.price-card li {
    padding: 7px 0;
    color: var(--c-ink-soft);
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.price-card li::before {
    content: "✓";
    color: var(--c-brand);
    font-weight: 700;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--c-ink);
    color: var(--c-bg);
    padding: clamp(48px, 8vw, 80px) 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 24px;
    line-height: 1.1;
}

/* ── Newsletter inline form ──────────────────────────────────────────── */
.newsletter {
    background: var(--c-brand);
    color: #fff;
    padding: clamp(48px, 8vw, 80px) 0;
}

.newsletter h2 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(26px, 3.5vw, 38px);
    margin: 0 0 18px;
    line-height: 1.1;
}

.newsletter p {
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px;
    max-width: 56ch;
}

.newsletter form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.newsletter input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 16px 20px;
    border-radius: var(--r-pill);
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.newsletter input[type="email"]:focus {
    outline: none;
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.6);
}

.newsletter button {
    padding: 16px 28px;
    background: #fff;
    color: var(--c-brand-deep);
    border: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    transition: transform .15s;
}
.newsletter button:hover { transform: translateY(-1px); }

.newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.newsletter__consent input { margin-top: 4px; }

.newsletter__response { margin-top: 16px; min-height: 1em; font-size: 14px; }

/* ── Blog list ───────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 13px;
    color: var(--c-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.blog-card h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.blog-card h3 a { color: var(--c-ink); }
.blog-card h3 a:hover { color: var(--c-brand); }

.blog-card p {
    color: var(--c-ink-soft);
    margin: 0 0 14px;
    font-size: 15px;
}

.blog-card__more {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    color: var(--c-brand);
}

/* ── Prose (articolo, privacy) ───────────────────────────────────────── */
.prose {
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-ink-soft);
}

.prose h1, .prose h2, .prose h3 {
    font-family: var(--f-display);
    font-weight: 500;
    color: var(--c-ink);
    line-height: 1.15;
    margin: 1.4em 0 0.4em;
}

.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); }
.prose h3 { font-size: 22px; }

.prose p { margin: 0 0 1em; }
.prose strong { color: var(--c-ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
    border-left: 3px solid var(--c-honey);
    padding-left: 20px;
    font-family: var(--f-display);
    font-style: italic;
    color: var(--c-ink);
    font-size: 22px;
    margin: 1.5em 0;
}

/* ── Team ────────────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-member {
    text-align: center;
}

.team-member__photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--c-bg-soft);
    overflow: hidden;
}

.team-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 4px;
}

.team-member__role {
    font-size: 14px;
    color: var(--c-muted);
    letter-spacing: 0.04em;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--c-ink);
    color: rgba(250,247,242,0.7);
    padding: 56px 0 28px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

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

.site-footer__brand svg,
.site-footer__brand img { height: 48px; width: auto; max-width: none; display: block; margin-bottom: 18px; color: var(--c-bg); }
.site-footer__tag { font-size: 14px; max-width: 32ch; }

.site-footer h4 {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-bg);
    margin: 0 0 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: rgba(250,247,242,0.7); font-size: 14.5px; }
.site-footer a:hover { color: var(--c-bg); }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(250,247,242,0.5);
}

/* ── Page intro ──────────────────────────────────────────────────────── */
.page-intro {
    padding-block: clamp(60px, 9vw, 100px);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
}

.page-intro__eyebrow {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-green-deep);
    font-weight: 700;
    margin-bottom: 14px;
}

.page-intro__title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    max-width: 18ch;
}

.page-intro__lead {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--c-ink-soft);
    max-width: 58ch;
    margin: 0;
}

/* ── Utilità ─────────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ── Page-load reveal ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        animation: zuz-reveal .6s cubic-bezier(.2,.7,.2,1) forwards;
    }
    .reveal-1 { animation-delay: 0.05s; }
    .reveal-2 { animation-delay: 0.18s; }
    .reveal-3 { animation-delay: 0.30s; }
    .reveal-4 { animation-delay: 0.42s; }
    @keyframes zuz-reveal {
        to { opacity: 1; transform: none; }
    }
}
