*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: #82152E;
  color: #FFF1B4;
}

::-moz-selection {
  background: #82152E;
  color: #FFF1B4;
}


html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-body);
  font-size: var(--fs-text-d);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1279px) {
  body { font-size: var(--fs-text-t); }
}
@media (max-width: 799px) {
  body { font-size: var(--fs-text-m); }
  .br-desktop { display: none; }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--color-principale);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.title-xl {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-title-xl-d);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-principale);
}

.title-lg {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-title-d);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-principale);
}

.title-sm {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-title-sm-d);
  line-height: var(--lh-snug);
  color: var(--color-principale);
}

.text {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: var(--fs-text-d);
  line-height: var(--lh-normal);
  text-wrap: pretty;
  hyphens: auto;
}

.text-small {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: var(--fs-small-d);
  line-height: var(--lh-normal);
  text-wrap: pretty;
  hyphens: auto;
}

.label {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-small-d);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.muted {
  color: var(--color-muted);
}

@media (max-width: 1279px) {
  .title-xl { font-size: var(--fs-title-xl-t); }
  .title-lg { font-size: var(--fs-title-t); }
  .title-sm { font-size: var(--fs-title-sm-t); }
  .text { font-size: var(--fs-text-t); }
  .text-small,
  .label { font-size: var(--fs-small-t); }
}

@media (max-width: 799px) {
  .title-xl { font-size: var(--fs-title-xl-m); }
  .title-lg { font-size: var(--fs-title-m); }
  .title-sm { font-size: var(--fs-title-sm-m); }
  .text { font-size: var(--fs-text-m); }
  .text-small,
  .label { font-size: var(--fs-small-m); }
}

.br-d { display: none; }
@media (min-width: 1280px) {
  .br-d { display: block; }
}
