/* ─── PREVENTIVO PAGE inline styles ────────────────────────── */

/* Fix mobile generale */
        @media (max-width: 768px) {

            /* Navbar */
            nav,
            .nav,
            .navbar,
            header nav {
                flex-wrap: wrap;
                padding: 12px 16px;
                gap: 8px;
            }

            /* Immagini */
            img {
                max-width: 100%;
                height: auto;
            }

            /* Sezioni con flex/grid */
            .flex,
            [class*="flex"],
            .grid,
            [class*="grid"] {
                flex-direction: column !important;
                grid-template-columns: 1fr !important;
            }

            /* Testi */
            h1,
            h2,
            h3 {
                font-size: clamp(24px, 6vw, 48px) !important;
                line-height: 1.2 !important;
            }

            /* Padding sezioni */
            section,
            .section {
                padding: 48px 20px !important;
            }

            /* Container */
            .container,
            [class*="container"] {
                padding-left: 16px !important;
                padding-right: 16px !important;
                max-width: 100% !important;
            }

            /* Bottoni */
            .btn,
            button,
            [class*="btn"] {
                width: 100%;
                text-align: center;
            }
        }

        body,
        html {
            background-color: #010101;
            color: #ffffff;
            margin: 0;
            padding: 0;
            font-family: 'DM Sans', sans-serif;
            overflow-x: hidden;
            min-height: 100svh;
        }

        /* Container */
        .typeform-container {
            min-height: 100svh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 120px 24px 60px;
            position: relative;
            z-index: 2;
        }

        /* Progress Bar */
        .progress-bar-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            z-index: 9999;
        }

        .progress-bar-fill {
            height: 100%;
            background: #C2D10F;
            width: 0%;
            transition: width 0.4s ease;
        }

        /* Steps */
        .step-container {
            display: none;
            width: 100%;
            max-width: 800px;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .step-container.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        /* Typography */
        h2.question-title {
            font-family: 'Syne', sans-serif;
            font-size: clamp(32px, 5vw, 48px);
            font-weight: 700;
            margin-bottom: 40px;
            line-height: 1.1;
            color: #ffffff;
        }

        .ai-transition-message {
            font-style: italic;
            color: rgba(194, 209, 15, 0.8);
            margin-bottom: 24px;
            font-size: 18px;
            min-height: 27px;
        }

        /* Form elements */
        .input-group {
            margin-bottom: 24px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.6);
        }

        input[type="text"],
        select {
            width: 100%;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-family: 'DM Sans', sans-serif;
            font-size: 16px;
            transition: border-color 0.3s, background 0.3s;
        }

        input[type="text"]:focus,
        select:focus {
            outline: none;
            border-color: #C2D10F;
            background: rgba(194, 209, 15, 0.05);
        }

        option {
            background: #010101;
            color: white;
        }

        /* Cards and Checkboxes */
        .options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
            margin-bottom: 40px;
        }

        .option-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .option-card:hover {
            border-color: #C2D10F;
        }

        .option-card.selected {
            border-color: #C2D10F;
            background: rgba(194, 209, 15, 0.08);
        }

        .option-title {
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 20px;
            margin-bottom: 8px;
            color: #ffffff;
            pointer-events: none;
        }

        /* Buttons */
        .buttons-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-top: 32px;
        }

        .btn-next {
            background: #C2D10F;
            color: #010101;
            border: none;
            padding: 16px 40px;
            border-radius: 999px;
            font-family: 'DM Sans', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-next.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn-next:hover:not(.disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(194, 209, 15, 0.3);
        }

        .btn-back {
            background: transparent;
            color: rgba(255, 255, 255, 0.5);
            border: none;
            padding: 16px 20px;
            font-family: 'DM Sans', sans-serif;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.3s;
        }

        .btn-back:hover {
            color: white;
        }

        /* Final Screen */
        .final-screen {
            max-width: 1000px;
            width: 100%;
        }

        .final-header {
            margin-bottom: 48px;
        }

        .final-label {
            display: inline-block;
            background: rgba(194, 209, 15, 0.1);
            color: #C2D10F;
            padding: 6px 16px;
            border-radius: 999px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            margin-bottom: 24px;
            font-weight: 700;
        }

        .final-h1 {
            font-family: 'Syne', sans-serif;
            font-size: clamp(32px, 4vw, 48px);
            margin-bottom: 16px;
            color: white;
        }

        .final-h2 {
            font-family: 'Syne', sans-serif;
            font-size: clamp(40px, 6vw, 64px);
            color: #C2D10F;
            margin-bottom: 32px;
            line-height: 1.1;
            text-transform: uppercase;
        }

        .final-divider {
            height: 1px;
            background: linear-gradient(to right, #C2D10F, transparent);
            margin-bottom: 48px;
        }

        .final-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 48px;
        }

        @media(max-width: 768px) {
            .final-grid {
                grid-template-columns: 1fr;
            }
        }

        .final-left {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 32px;
            min-height: 300px;
            position: relative;
        }

        .final-ai-text {
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
        }

        .final-ai-text h3 {
            font-family: 'Syne', sans-serif;
            color: #C2D10F;
            font-size: 16px;
            margin-top: 24px;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .final-ai-text h3:first-child {
            margin-top: 0;
        }

        .final-ai-text p {
            margin-bottom: 16px;
        }

        .final-ai-text ul {
            margin-bottom: 16px;
            list-style: none;
            padding-left: 0;
        }

        .final-ai-text li {
            margin-bottom: 8px;
            position: relative;
            padding-left: 20px;
        }

        .final-ai-text li::before {
            content: '•';
            color: #C2D10F;
            position: absolute;
            left: 0;
        }

        .final-right {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .summary-box {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 24px;
        }

        .summary-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 16px;
            font-weight: 700;
        }

        .summary-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .summary-list li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 14px;
            color: white;
        }

        .check-icon {
            color: #C2D10F;
            font-size: 16px;
            font-weight: bold;
        }

        .investment-box {
            background: rgba(194, 209, 15, 0.05);
            border: 1px solid rgba(194, 209, 15, 0.2);
            border-radius: 16px;
            padding: 32px;
            text-align: center;
        }

        .investment-value {
            font-family: 'Syne', sans-serif;
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 800;
            color: #C2D10F;
            margin: 16px 0;
        }

        .investment-note {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.4);
            line-height: 1.5;
        }

        .budget-warning {
            background: rgba(255, 170, 0, 0.1);
            border: 1px solid rgba(255, 170, 0, 0.3);
            border-radius: 12px;
            padding: 20px;
            color: #ffaa00;
            font-size: 14px;
            line-height: 1.6;
            display: none;
        }

        /* Loading Spinner */
        .spinner-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 200px;
            text-align: center;
            position: absolute;
            inset: 0;
            background: rgba(1, 1, 1, 0.8);
            backdrop-filter: blur(4px);
            border-radius: 16px;
            z-index: 10;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(194, 209, 15, 0.2);
            border-top-color: #C2D10F;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 16px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .spinner-text {
            color: #C2D10F;
            font-size: 14px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-weight: 700;
        }

        /* Calendly */
        .calendly-section {
            margin-top: 80px;
            text-align: center;
            width: 100%;
            display: none;
        }

        .calendly-section h3 {
            font-family: 'Syne', sans-serif;
            font-size: 32px;
            margin-bottom: 8px;
            color: white;
            font-weight: 700;
        }

        .calendly-section p {
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 32px;
        }

        .calendly-inline-widget {
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(194, 209, 15, 0.15);
            max-width: 900px;
            margin: 0 auto;
            background: #ffffff;
        }

        /* Errors */
        .error-message {
            color: #ff5555;
            font-size: 14px;
            margin-bottom: 16px;
            display: none;
        }

        @media print {
            body {
                background: white !important;
                color: black !important;
            }

            .final-h1,
            .final-h2 {
                color: black !important;
            }

            .final-h2 {
                color: #5a6200 !important;
            }

            .investment-value {
                color: #5a6200 !important;
            }

            .final-left,
            .summary-box,
            .investment-box {
                border: 1px solid #ddd !important;
                background: #fafafa !important;
            }

            .final-ai-text {
                color: #333 !important;
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .ai-transition-message:empty::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background: rgba(194, 209, 15, 0.6);
            border-radius: 50%;
            animation: pulse-dot 1.2s ease-in-out infinite;
            margin-right: 4px;
        }

        @keyframes pulse-dot {

            0%,
            100% {
                opacity: 0.2;
                transform: scale(0.8);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

