/* Font Inter (open source, simile a Cerebri Sans - file in wwwroot/fonts/) */
/*@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}*/

/* Font Cerebri Sans - file in wwwroot/fonts/) */
@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cerebri Sans';
    src: url('../fonts/cerebrisans-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Figtree (open source, woff2 - file in wwwroot/fonts/) */
/*@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}*/

/* Scrollbar stile Blueprint */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6a69f5; }
html, body * { scrollbar-color: #c4c4c4 transparent; scrollbar-width: thin; }

/* AppBar: bottom border stile Blueprint (nessuna shadow, solo bordo sottile) */
.mud-appbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: none !important;
}

/* Divisori sezione sidebar stile Blueprint — "── Menu ──" */
.sidebar-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94989a;
}

.sidebar-section-label::before,
.sidebar-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPj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1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Si e' verificato un errore'."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Caricamento");
    }

/* ==========================================================================
   Google Antigravity Design System Styles (Obsidian Dark Theme)
   ========================================================================== */

.antigravity-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0d14;
    color: #f8fafc;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 4rem 2rem;
    box-shadow: none !important;
    border: none !important;
    overflow-x: hidden;
    font-family: 'Cerebri Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Glowing background ambient orbits */
.antigravity-glow {
    display: block;
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.25;
}
.antigravity-glow-blue { width: 500px; height: 500px; background: #3186FF; top: -80px; left: -80px; }
.antigravity-glow-yellow { width: 420px; height: 420px; background: #FBBC04; bottom: 5%; right: -80px; }
.antigravity-glow-red { width: 350px; height: 350px; background: #FC413D; top: 40%; left: 35%; }

/* Hero Pill Badge */
.antigravity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    backdrop-filter: blur(16px);
    letter-spacing: 0.04em;
}
.antigravity-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #c084fc;
    box-shadow: 0 0 10px #c084fc;
}

/* Typography & Metallic Gradient Text */
.antigravity-hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.025em;
}
.antigravity-gradient-text {
    background: linear-gradient(135deg, #d946ef 0%, #c084fc 35%, #818cf8 70%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.antigravity-gradient-shimmer {
    background: linear-gradient(120deg, #d946ef 0%, #c084fc 25%, #818cf8 50%, #38bdf8 75%, #00f5d4 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    will-change: background-position, transform;
}
.tau-svg-title-text {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 0.16em;
    fill: url(#appleAurora);
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1px;
    paint-order: stroke fill;
}
.tau-ai-hero-brand {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.1;
    background: linear-gradient(120deg, #d946ef 0%, #c084fc 25%, #818cf8 50%, #38bdf8 75%, #00f5d4 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto 0.5rem auto;
    display: inline-block;
    cursor: pointer;
    filter: drop-shadow(0 0 24px rgba(192, 132, 252, 0.45));
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, filter, background-position;
}
.tau-ai-hero-brand:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 38px rgba(192, 132, 252, 0.8));
}
@media (max-width: 768px) {
    .tau-ai-hero-brand {
        font-size: 3.5rem;
        letter-spacing: 0.14em;
    }
}
.antigravity-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Antigravity Buttons */
.antigravity-btn-primary {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(192, 132, 252, 0.45);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.antigravity-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(192, 132, 252, 0.7);
}

.antigravity-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(12px);
}
.antigravity-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Agent Interactive Studio Showcase */
.antigravity-showcase {
    background: rgba(18, 20, 29, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
.antigravity-showcase-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.antigravity-showcase-dots { display: flex; gap: 8px; }
.antigravity-showcase-dots .dot { width: 11px; height: 11px; border-radius: 50%; }
.antigravity-showcase-dots .dot.red { background: #fc5c65; }
.antigravity-showcase-dots .dot.yellow { background: #fed330; }
.antigravity-showcase-dots .dot.green { background: #26de81; }

/* Dark Glass Cards */
.antigravity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    height: 100%;
}
.antigravity-card:hover {
    border-color: rgba(49, 134, 255, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.antigravity-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 16px;
    margin-bottom: 10px;
}
.antigravity-card-desc {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.6;
}
.antigravity-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.antigravity-card-icon.blue { background: rgba(49, 134, 255, 0.15); color: #3186FF; }
.antigravity-card-icon.green { background: rgba(0, 185, 92, 0.15); color: #00B95C; }
.antigravity-card-icon.red { background: rgba(252, 65, 61, 0.15); color: #FC413D; }
.antigravity-card-icon.yellow { background: rgba(251, 188, 4, 0.15); color: #FBBC04; }

.antigravity-chip {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.antigravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}



