/* ==========================================================================
   typography.css
   Fondamenta tipografiche del sito - font, pesi, scale titoli/testo.
   Caricato su tutte le pagine da inc/componenti/head.php, dopo StyleSito.css:
   qui dentro si puo sovrascrivere in sicurezza lo stile legacy.
   ========================================================================== */

:root {
  --font: 'Outfit', sans-serif;
}

/* Unico font del sito: vince anche sulle regole per-classe legacy di StyleSito.css/css.php */
* {
  font-family: var(--font) !important;
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  color: var(--white);
}

strong,
b,
.fw--bold {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin-bottom: 0;
}

ol,
ul,
dl {
  padding: 0;
}

li {
  margin-bottom: 0;
}

.text--xs {
  font-size: 14px;
  line-height: 1.25;
}

p,
a,
.text--s {
  font-size: 16px;
  line-height: 1.25;
}

h3,
h4,
.text--m {
  font-size: 20px;
  line-height: 1.25;
}

h2,
.text--l {
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  font-weight: 600;
}

h1,
.text--xl {
  font-size: 40px;
  line-height: 1.25;
}

@media (min-width: 992px) {
  body,
  p,
  ul,
  ol,
  li,
  .text--s {
    font-size: clamp(20px, calc(1.4vw + 4px), 26px);
  }

  h3,
  h4,
  .text--m {
    font-size: 30px;
  }

  h2,
  .text--l {
    font-size: 40px;
  }

  h1,
  .text--xl {
    font-size: 50px;
  }
}
