/* =========================================================================
   Euclid Circular B (Swiss Typefaces): the portal's font, served by the site itself
   (assets/fonts/euclid-circular-b), so every visitor sees it whether it's installed or not.
   Weights: Regular (up to 400), Medium (500), SemiBold for everything bolder (600-900, also <strong>):
   the portal doesn't use the Bold cut.
   Symbols the font doesn't have (Δ, ✓, ✕, ↺) come from the system font in the stack.
   Loaded before sivit-app.css (functions.php), also on the login page.
   ========================================================================= */
@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/euclid-circular-b/EuclidCircularB-Regular.woff2") format("woff2"),
       url("../fonts/euclid-circular-b/EuclidCircularB-Regular.ttf") format("truetype");
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/euclid-circular-b/EuclidCircularB-Medium.woff2") format("woff2"),
       url("../fonts/euclid-circular-b/EuclidCircularB-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/euclid-circular-b/EuclidCircularB-SemiBold.woff2") format("woff2"),
       url("../fonts/euclid-circular-b/EuclidCircularB-SemiBold.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: "Euclid Circular B", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Whole site: replaces Astra's system font (body, buttons, fields). Icons keep their own font
   (Font Awesome / dashicons set it on their classes). */
html body,
html body button,
html body input,
html body select,
html body textarea,
html body .ast-button,
html body .ast-custom-button {
  font-family: var(--font-main);
}

/* Titles in Medium, not bold (user preference): page and section titles, window and card titles,
   the dashboard greeting and the names that head each row of a list. Buttons, labels, column
   headings and amounts stay SemiBold. One token to tune them all. */
:root {
  --title-weight: 500;
}

html body h1,
html body h2,
html body h3,
html body .entry-content h1,
html body .entry-content h2,
html body .entry-content h3,
html body header.entry-header .entry-title,
html body .entry-title.sivit-auth-title-rendered.sivit-auth-title-rendered,
html body .dashboard-hero-title,
html body .dashboard-card-title,
html body .sivit-modal .sivit-modal-title,
html body .sivit-modal .sivit-confirm-title,
html body .sivit-modal .sivit-edit-title,
html body .sivit-lsq .sivit-lsq-title,
html body .sivit-lsq .sivit-lsq-card h3,
html body .sivit-download-table .file-title a,
html body .sivit-agenti-agent-name strong,
html body .sivit-lsq-table td.cell-client strong,
html body .dashboard-widget-card .sivit-news-list a,
html body .dashboard-widget-card .dashboard-people strong,
html body .dashboard-widget-card .dashboard-contact-list a,
html body .dashboard-widget-card .dashboard-contact-list span,
html body .dashboard-widget-card .dashboard-people-links a {
  font-weight: var(--title-weight);
}
