@charset "UTF-8";

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}


/* === Tipografia === */

/* Variabili globali */
:root {
    /* Default font (Latin languages, fallback included) */
    --font-base: 'Inter', 'Noto Sans', sans-serif;

    /* Default title font */
    --font-title: 'Audiowide', sans-serif;

    /* Monospace font */
    --font-mono: 'Fira Mono', monospace;
}

html {
    font-family: var(--font-base);
}

/* Arabic */
html[lang^="ar"] {
    --font-base: 'Noto Sans Arabic', sans-serif;
}

/* Hebrew */
html[lang^="he"] {
    --font-base: 'Noto Sans Hebrew', sans-serif;
}

/* Simplified Chinese */
html[lang="zh"] {
    --font-base: 'Noto Sans SC', sans-serif;
}

/* Traditional Chinese (Taiwan, Hong Kong, Macau) */
html[lang="zh-TW"],
html[lang="zh_HK"],
html[lang="zh-MO"] {
    --font-base: 'Noto Sans TC', sans-serif;
}

/* Japanese */
html[lang^="ja"] {
    --font-base: 'Noto Sans JP', sans-serif;
}

/* Korean */
html[lang^="ko"] {
    --font-base: 'Noto Sans KR', sans-serif;
}

/* Thai */
html[lang^="th"] {
    --font-base: 'Noto Sans Thai', sans-serif;
}

/* Optional: fallback for complex scripts, disable custom title font */
html[lang^="ar"],
html[lang^="he"],
html[lang^="zh"],
html[lang^="ja"],
html[lang^="ko"],
html[lang^="th"] {
    --font-title: var(--font-base);
}