@php($seo = \App\Support\Seo::forComponent($page['component'] ?? '')) {{-- L'applicazione è monolingua italiana: `lang` non segue APP_LOCALE, che resta `en` per i messaggi di validazione del framework. Un `lang` sbagliato è un difetto SEO e di accessibilità, non una preferenza. --}} ($appearance ?? 'system') == 'dark'])>
{{-- Rendered server-side on purpose: crawlers read this response, not the Inertia client. --}} @if ($seo->robots()) @endif @if ($seo->canonical()) @endif {{-- Inline script to detect system dark mode preference and apply it immediately --}} {{-- Inline style to set the HTML background color based on our theme in app.css --}} @isset($structuredData) @endisset @fonts @viteReactRefresh @vite(['resources/css/app.css', 'resources/js/app.tsx', "resources/js/pages/{$page['component']}.tsx"])