/* --- Design tokens (allineati al brand Crew+) --- */
:root {
    --brand: #c4000f;
    --brand-dark: #9a000c;
    --brand-soft: rgba(196, 0, 15, 0.08);
    --ink: #141414;
    --ink-muted: #4a4a4a;
    --ink-subtle: #6b7280;
    --surface: #ffffff;
    --surface-muted: #f7f7f8;
    --surface-elevated: #ffffff;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --hero-bg: #111111;
    --hero-text: #f5f5f5;
    --hero-muted: #a3a3a3;
    --notice-bg: #fafafa;
    --notice-border: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --max-width: 1080px;
    --content-width: 720px;
    --header-height: 64px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface-muted);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

a:hover {
    color: var(--brand-dark);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .site-header {
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--ink);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--surface-muted);
}

.site-nav a.active {
    color: var(--brand);
    background: var(--brand-soft);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-bar {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* --- Layout --- */
.site-main {
    min-height: calc(100vh - var(--header-height) - 220px);
}

.content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero --- */
.hero {
    background: linear-gradient(160deg, #0d0d0d 0%, #1a1a1a 45%, #252525 100%);
    color: var(--hero-text);
    padding: 72px 24px 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 34rem;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fca5a5;
    background: rgba(196, 0, 15, 0.18);
    border: 1px solid rgba(196, 0, 15, 0.35);
    border-radius: 999px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-lead {
    margin: 0 0 28px;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--hero-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--surface-muted);
    color: var(--ink);
    border-color: var(--border-strong);
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-banner {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 1280 / 619;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Section typography --- */
.section-block {
    padding-top: 72px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading.centered {
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-lead {
    margin: 12px 0 0;
    color: var(--ink-subtle);
    font-size: 1.05rem;
    line-height: 1.65;
}

.intro-block {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.intro-block h3 {
    margin: 32px 0 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.intro-block p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--surface-elevated);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.feature-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    padding-top: 12px;
    border-top: 3px solid var(--brand);
}

.feature-item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink-subtle);
}

.feature-item a {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Highlight / notice --- */
.highlight-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

.highlight-panel p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.notice-box {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-muted);
}

.notice-box strong {
    color: var(--ink);
}

.notice-box a {
    font-weight: 500;
}

/* --- Contact --- */
.contact-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
}

.contact-section p {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

.contact-email {
    color: var(--ink);
    font-weight: 600;
}

.contact-email:hover {
    color: var(--brand);
}

/* --- Legal pages --- */
.legal-page {
    padding: 48px 0 80px;
}

.legal-page-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--ink-subtle);
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--brand);
}

.legal-doc h2 {
    margin-bottom: 8px;
}

.update-date {
    margin: 0 0 32px;
    font-size: 0.875rem;
    color: var(--ink-subtle);
}

.legal-doc h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
    color: var(--ink-muted);
    font-size: 0.975rem;
    line-height: 1.7;
}

.legal-doc ul,
.legal-doc ol {
    padding-left: 1.35rem;
    margin: 0.5rem 0 1rem;
}

.legal-doc li {
    margin-bottom: 0.5rem;
}

.legal-doc code {
    font-size: 0.875em;
    background: var(--surface-muted);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

/* --- Footer --- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.footer-brand-text strong {
    display: block;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.footer-brand-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-subtle);
    line-height: 1.55;
    max-width: 28rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.footer-links h4 {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

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

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

.footer-links a {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ink-subtle);
}

/* --- Language switch --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-switch:hover {
    color: var(--ink);
    border-color: var(--border-strong);
    background: var(--surface-muted);
}

.site-header-inner:has(.site-nav) .header-actions {
    margin-left: 0;
}

@media (min-width: 769px) {
    .site-header-inner {
        gap: 16px;
    }

    .header-actions {
        order: 3;
        margin-left: 0;
    }

    .site-nav {
        order: 2;
        margin-left: auto;
    }
}

/* --- Store badges --- */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.store-badges.centered {
    justify-content: center;
}

.store-badge {
    display: inline-block;
    line-height: 0;
    border-radius: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

.store-badge:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.store-badge img,
.store-badge svg {
    display: block;
    height: 48px;
    width: auto;
}

.hero .store-badge img,
.hero .store-badge svg {
    height: 44px;
}

/* --- How it works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-sm);
}

.step-item h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.step-item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-subtle);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 700;
}

/* --- FAQ --- */
.faq-list {
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--brand);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-item p {
    margin: 0;
    padding: 16px 20px 18px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-muted);
}

.faq-item a {
    font-weight: 500;
}

.legal-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--ink-subtle);
    text-align: center;
}

.legal-hub {
    max-width: 36rem;
    margin: 48px auto;
}

.legal-index {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-index a {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-weight: 600;
    color: var(--ink);
}

.legal-index a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.site-footer-legal {
    padding: 24px 16px 32px;
}

.site-footer-legal .footer-bottom {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ink-subtle);
}

.site-footer-legal a {
    font-weight: 500;
}

/* --- Animazioni sobrie (reveal.js) --- */
.hero-copy,
.hero-visual {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-loaded .hero-copy {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}

.hero-loaded .hero-visual {
    opacity: 1;
    transform: none;
    transition-delay: 0.14s;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.5s ease var(--reveal-delay, 0ms),
        transform 0.5s ease var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.site-header {
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-copy,
    .hero-visual,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-header {
        transition: none;
    }
}

@media (scripting: none) {
    .hero-copy,
    .hero-visual,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-copy {
        max-width: none;
        margin: 0 auto;
    }

    .hero-actions,
    .store-badges {
        justify-content: center;
    }

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

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

    .site-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-copy {
        max-width: none;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .site-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .hero {
        padding: 56px 16px 48px;
    }

    .hero-eyebrow {
        margin-top: 4px;
    }

    .content-wrap {
        padding: 0 16px 64px;
    }

    .section-block {
        padding-top: 48px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .legal-page-inner {
        padding: 0 16px;
    }
}
