/* ============================================================
   RESET & BASE (stesso tema della home)
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #090B12;
    --bg-secondary: #0F1422;
    --purple-dark: #5A1D96;
    --purple: #8A2EFF;
    --blue: #2CA8FF;
    --cyan: #66E9FF;
    --white: #FFFFFF;
    --glass-bg: rgba(21, 27, 47, 0.55);
    --glass-border: rgba(138, 46, 255, 0.25);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Space Grotesk', sans-serif;
    --transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 20% 30%, rgba(90, 29, 150, 0.05), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(44, 168, 255, 0.04), transparent 50%);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(138, 46, 255, 0.4);
}

a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   GLASS
   ============================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   BUTTONS (identici alla home)
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 40px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(138, 46, 255, 0.25);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 60px;
    padding: 2px;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(138, 46, 255, 0.45), 0 0 120px rgba(44, 168, 255, 0.15);
}

.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(138, 46, 255, 0.4), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}
.btn-glow:hover::after {
    opacity: 1;
}

/* ============================================================
   HEADER (identico)
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(9, 11, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(138, 46, 255, 0.10);
    transition: var(--transition);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
}
.logo__icon {
    color: var(--cyan);
    font-size: 1.6rem;
}
.logo__text {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__list {
    display: flex;
    gap: 22px;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav__link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: var(--transition);
    box-shadow: 0 0 20px var(--purple);
}
.nav__link:hover,
.nav__link.active {
    color: #fff;
}
.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

/* ============================================================
   HERO (ridotta per il form)
   ============================================================ */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 120px 0 40px;
    overflow: hidden;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-transform: uppercase;
}
.hero__title--glow {
    color: var(--white);
    text-shadow: 0 0 60px rgba(138, 46, 255, 0.4), 0 0 120px rgba(44, 168, 255, 0.15);
}
.hero__subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--purple);
    letter-spacing: 0.15em;
    text-shadow: 0 0 40px rgba(138, 46, 255, 0.3);
    margin-top: 8px;
}
.hero__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 12px auto 0;
}
.particles-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
    padding: 40px 0 80px;
    position: relative;
    z-index: 2;
}

.form-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 50px;
    transition: var(--transition);
}

.form-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Gruppi di input */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.form-group label .required {
    color: #ff6b6b;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 46, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(138, 46, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.form-group select option {
    background: var(--bg-primary);
    color: #fff;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Pulsante submit */
.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1rem;
}

/* ============================================================
   FOOTER (identico)
   ============================================================ */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid rgba(138, 46, 255, 0.06);
    margin-top: 20px;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__brand .logo__text {
    font-size: 1.2rem;
}
.footer__copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}
.footer__social {
    display: flex;
    gap: 24px;
}
.footer__social a {
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    font-weight: 500;
}
.footer__social a:hover {
    color: var(--cyan);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        padding: 80px 30px 30px;
        transition: var(--transition);
        border-left: 1px solid rgba(138, 46, 255, 0.10);
        z-index: 999;
    }
    .nav.open {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 18px;
        font-size: 1.1rem;
    }
    .hamburger {
        display: flex;
    }
    .header__actions .btn-primary {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .form-card {
        padding: 30px 20px;
    }
    .form-title {
        font-size: 1.4rem;
    }
    .hero {
        min-height: 30vh;
        padding: 100px 0 20px;
    }
    .hero__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 24px 16px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .submit-btn {
        font-size: 0.95rem;
        padding: 16px;
    }
}