/* ========================================
   CUSTOM FONTS - ALLIANZ NEO
   ======================================== */

/* Allianz Neo Regular */
@font-face {
    font-family: 'Allianz Neo';
    src: url('/Fonts/allianz-neo/allianz-neo-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Allianz Neo Bold */
@font-face {
    font-family: 'Allianz Neo';
    src: url('/Fonts/allianz-neo/allianz-neo-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Allianz Neo Italic */
@font-face {
    font-family: 'Allianz Neo';
    src: url('/Fonts/allianz-neo/allianz-neo-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Allianz Neo Bold Italic */
@font-face {
    font-family: 'Allianz Neo';
    src: url('/Fonts/allianz-neo/allianz-neo-bold-italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* ========================================
   UTILITY CLASSES - FONT FAMILIES
   ======================================== */

/* Applica Allianz Neo a un elemento */
.font-allianz-neo {
    font-family: 'Allianz Neo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Varianti di peso */
.font-allianz-neo-regular {
    font-family: 'Allianz Neo', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.font-allianz-neo-bold {
    font-family: 'Allianz Neo', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

.font-allianz-neo-italic {
    font-family: 'Allianz Neo', sans-serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

.font-allianz-neo-bold-italic {
    font-family: 'Allianz Neo', sans-serif !important;
    font-weight: 700 !important;
    font-style: italic !important;
}


/* ========================================
   BRAND SPECIFIC TYPOGRAPHY
   ======================================== */

/* Applica Allianz Neo a tutto il contenuto di un brand Allianz */
.brand-allianz,
.theme-allianz {
    font-family: 'Allianz Neo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Titoli con Allianz Neo */
.brand-allianz h1,
.brand-allianz h2,
.brand-allianz h3,
.brand-allianz h4,
.brand-allianz h5,
.brand-allianz h6,
.theme-allianz h1,
.theme-allianz h2,
.theme-allianz h3,
.theme-allianz h4,
.theme-allianz h5,
.theme-allianz h6 {
    font-family: 'Allianz Neo', sans-serif;
    font-weight: 700;
}

/* Navbar con Allianz Neo */
.navbar-allianz-blue,
.navbar-allianz-gray,
.navbar-allianz-white,
.navbar-allianz-yellow,
.navbar-allianz-orange,
.navbar-allianz-blue2,
.navbar-allianz-dark-green,
.navbar-allianz-bright-green,
.navbar-allianz-blue3 {
    font-family: 'Allianz Neo', sans-serif;
}

/* Sidebar con Allianz Neo */
.sidebar-dark-allianz-blue,
.sidebar-light-allianz-blue,
.sidebar-dark-allianz-gray,
.sidebar-light-allianz-gray,
.sidebar-dark-allianz-yellow,
.sidebar-light-allianz-yellow,
.sidebar-dark-allianz-orange,
.sidebar-light-allianz-orange,
.sidebar-dark-allianz-blue2,
.sidebar-light-allianz-blue2,
.sidebar-dark-allianz-dark-green,
.sidebar-light-allianz-dark-green,
.sidebar-dark-allianz-bright-green,
.sidebar-light-allianz-bright-green,
.sidebar-dark-allianz-blue3,
.sidebar-light-allianz-blue3 {
    font-family: 'Allianz Neo', sans-serif;
}

/* Card con brand Allianz */
.card.bg-allianz-blue,
.card.bg-allianz-gray,
.card.bg-allianz-white,
.card.bg-allianz-yellow,
.card.bg-allianz-orange,
.card.bg-allianz-blue2,
.card.bg-allianz-dark-green,
.card.bg-allianz-bright-green,
.card.bg-allianz-blue3 {
    font-family: 'Allianz Neo', sans-serif;
}

/* Bottoni Allianz */
.btn.bg-allianz-blue,
.btn.bg-allianz-gray,
.btn.bg-allianz-white,
.btn.bg-allianz-yellow,
.btn.bg-allianz-orange,
.btn.bg-allianz-blue2,
.btn.bg-allianz-dark-green,
.btn.bg-allianz-bright-green,
.btn.bg-allianz-blue3 {
    font-family: 'Allianz Neo', sans-serif;
    font-weight: 700;
}


/* ========================================
   NOTO SANS FONTS (Already Available)
   ======================================== */

/* Se volete usare anche i Noto Sans già presenti, 
   decommentate e configurate secondo necessità */

/*
@font-face {
    font-family: 'Noto Sans';
    src: url('/Fonts/NotoSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('/Fonts/NotoSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('/Fonts/NotoSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('/Fonts/NotoSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

.font-noto-sans {
    font-family: 'Noto Sans', sans-serif !important;
}
*/


/* ========================================
   PERFORMANCE NOTES
   ======================================== */

/*
 * NOTA: I file .ttf sono più grandi dei .woff2 (fino a 3-4x)
 * 
 * Per ottimizzare le performance, considera di convertire i font in WOFF2:
 * 
 * Strumenti online:
 * - https://cloudconvert.com/ttf-to-woff2
 * - https://transfonter.org/
 * 
 * Strumenti locali:
 * - sfnt2woff-zopfli (tool da linea di comando)
 * - FontForge (applicazione GUI)
 * 
 * Dopo la conversione, aggiorna gli @font-face così:
 * 
 * @font-face {
 *     font-family: 'Allianz Neo';
 *     src: url('/Fonts/allianz-neo/allianz-neo-regular.woff2') format('woff2'),
 *          url('/Fonts/allianz-neo/allianz-neo-regular.woff') format('woff'),
 *          url('/Fonts/allianz-neo/allianz-neo-regular.ttf') format('truetype');
 *     font-weight: 400;
 *     font-style: normal;
 *     font-display: swap;
 * }
 */
