/* assets/css/style.css */

:root {
    --bg: #050816;
    --bg-soft: #0b1020;
    --card: #101528;
    --card-soft: #151b30;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --accent-pink: #ff4d8d;
    --accent-violet: #7c5cff;
    --accent-yellow: #ffd166;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --radius-lg: 1.4rem;
    --radius-sm: 0.8rem;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.08) 0, transparent 45%),
                radial-gradient(circle at bottom right, rgba(255, 77, 141, 0.1) 0, transparent 45%),
                var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font-family: inherit;
}

/* LAYOUT */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 720px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-top {
    padding-top: 7rem;
}

/* HEADER / NAV */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 72px;
    z-index: 1000;
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 26px; /* dimensione del logo */
    width: auto;
    border-radius: 999px;
    overflow: hidden;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.92rem;
}

.main-nav a {
    position: relative;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -0.4rem 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-violet));
    opacity: 0.9;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-small {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
}

.hero-inner-alt {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero-text h1 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
    line-height: 1.05;
    margin: 0 0 1.2rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 32rem;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 0.7rem;
}

.accent-text {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 1.1rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-tags span {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.6);
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.placeholder-card {
    width: 100%;
    max-width: 340px;
    background: radial-gradient(circle at top, rgba(255, 209, 102, 0.14), transparent 55%),
                radial-gradient(circle at bottom, rgba(124, 92, 255, 0.18), transparent 55%),
                var(--card);
    border-radius: 1.6rem;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.placeholder-img {
    border-radius: 1.2rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.8);
}

.placeholder-img.tall {
    min-height: 260px;
}

.placeholder-caption {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background-image: linear-gradient(120deg, var(--accent-pink), var(--accent-violet));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.btn-outline {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.8);
}

.btn-outline:hover {
    border-color: var(--accent-pink);
    background: rgba(15, 23, 42, 0.95);
}

.btn-full {
    width: 100%;
}

/* SECTION HEAD */

.section-head {
    text-align: left;
    margin-bottom: 2.2rem;
}

.section-head h2 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
}

.section-head p {
    color: var(--text-muted);
    max-width: 32rem;
}

/* GRID */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.gap-large {
    gap: 2.5rem;
}

/* CARDS */

.features-grid .feature-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.features-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.features-grid p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* HIGHLIGHT SECTION */

.section-highlight {
    background: radial-gradient(circle at top, rgba(255, 77, 141, 0.24), transparent 55%),
                radial-gradient(circle at bottom, rgba(124, 92, 255, 0.28), transparent 55%),
                #050816;
}

.choice-grid {
    align-items: stretch;
}

.choice-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1.6rem;
    padding: 1.8rem 1.6rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.choice-card-secondary {
    background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.1), transparent 50%),
                rgba(15, 23, 42, 0.92);
}

.choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-pink);
}

.choice-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 0.6rem;
}

.choice-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.choice-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.choice-card ul {
    margin: 0 0 1rem 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.choice-card li + li {
    margin-top: 0.2rem;
}

.choice-cta {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-pink);
}

/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.step {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1.4rem;
    padding: 1.4rem 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-violet));
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1rem;
    margin: 0 0 0.3rem;
}

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

/* LOGOS CAROUSEL */

.section-logos {
    padding-top: 2.2rem;
    padding-bottom: 2.8rem;
}

.logos-head {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1.4rem;
}

.logos-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-yellow);
}

.logos-sub {
    font-size: 0.86rem;
    color: var(--text-muted);
    max-width: 32rem;
}

.logos-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at left, rgba(255, 77, 141, 0.18), transparent 55%),
                radial-gradient(circle at right, rgba(124, 92, 255, 0.2), transparent 55%),
                rgba(15, 23, 42, 0.96);
    padding: 0.7rem 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.logos-track {
    display: inline-flex;
    align-items: center;
    gap: 2.2rem;
    padding-left: 2.2rem;
    animation: logos-scroll 26s linear infinite;
    white-space: nowrap;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.86rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: radial-gradient(circle at top left, var(--accent-pink), var(--accent-violet));
}

@keyframes logos-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FORMS */

.form-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.6rem;
    padding: 1.6rem 1.4rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.65rem 0.85rem;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 1px rgba(255, 77, 141, 0.4);
    background: #020617;
}

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

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin: 0.6rem 0 1rem;
    color: var(--text-muted);
}

.checkbox input[type="checkbox"] {
    margin-top: 0.1rem;
}

.checkbox a {
    text-decoration: underline;
}

.form-note {
    margin-top: 0.8rem;
}

/* LISTE */

.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.6rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-pink);
}

/* TESTO */

.small {
    font-size: 0.86rem;
}

.muted {
    color: var(--text-muted);
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(5, 8, 22, 0.96);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

/* PARALLAX (leggero, gestito da JS con data-parallax) */

[data-parallax] {
    will-change: transform;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero-inner,
    .hero-inner-alt {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        justify-content: flex-start;
    }

    .hero {
        padding-bottom: 3.6rem;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-2,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer {
        margin-top: 2rem;
    }

    .logos-marquee {
        border-radius: 1.2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 64px;
    }

    .hero,
    .hero-small {
        padding-top: 6.2rem;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: rgba(5, 8, 22, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 0.7rem 1.5rem 1rem;
        gap: 0.5rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto; 
    }

    .nav-toggle {
        display: block;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-top {
        padding-top: 5.6rem;
    }
}

/* NAV TOGGLE ANIMATION */

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}
