@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* base.css: stili generici, variabili, font, reset */
:root {
  color: black;
  font-family: "Poppins", sans-serif;
  --primary-color: #1c475a;
  --accent-color: hwb(76 32% 4%);
  --accent-light-color: hwb(76 32% 20%);
  --primary-font-size: clamp(10pt, 1.5vw, 32pt);
  --heading-font-size: clamp(12pt, 3vw, 64pt);
}

html,
body {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-size: var(--heading-font-size);
  margin: 0;
  font-weight: 700;
}

h4, h5, h6 {
  font-size: var(--primary-font-size);
  margin: 0;
  font-weight: 700;
}

p,
button,
.button {
  font-size: var(--primary-font-size);
}

button,
.button {
  background-color: var(--accent-color);
  border: none;
  border-radius: 15px;
  color: black;
  font-weight: 600;
  padding: 0.5rem;
  transition: background 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  background-color: var(--accent-light-color);
  cursor: pointer;
}
