/* ===== Font =====
   Titoli: --font-display. Testo: --font-body.
   Quando arrivano RL Folklor e Gilroy: metti i file in /fonts e cambia solo questi @font-face. */
@font-face {
  font-family: "RF Display";
  src: url("/fonts/alfa-slab-one.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RF Body";
  src: url("/fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RF Body";
  src: url("/fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "RF Body";
  src: url("/fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* ===== Colori: menù cartaceo + banda a scacchi ===== */
:root {
  --verde: #155634; /* verde della scacchiera */
  --verde-menu: #0c5636;
  --verdino: #00a54f;
  --rosso: #a01915;
  --rosso-logo: #e10814;
  --blu: #1262a8;
  --arancio: #da8910;
  --giallo: #f2a23a;
  --inchiostro: #231f20;
  --nero: #000;
  --carta: #fff;
  --crema: #f7f4ef;
  --grigio: #6b6566;
  --linea: #e7e2dc;

  --font-display: "RF Display", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --font-body: "RF Body", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spaziature: multipli di 8 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --gutter: 20px;
  --wrap: 1180px;
  --cell: 14px; /* lato di un quadretto della scacchiera */
  --head-h: 64px;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --cell: 18px;
    --head-h: 76px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
    --cell: 22px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + var(--cell) + 72px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--inchiostro);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--arancio);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===== Scacchiera ===== */
.checker {
  --a: var(--verde);
  --b: var(--carta);
  background-color: var(--b);
  background-image: conic-gradient(var(--a) 25%, var(--b) 0 50%, var(--a) 0 75%, var(--b) 0);
  background-size: calc(var(--cell) * 2) calc(var(--cell) * 2);
}
.checker-strip {
  height: calc(var(--cell) * 2);
  border-top: 4px solid var(--arancio);
}

/* ===== Testata ===== */
.sitehead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--verde);
  color: #fff;
}
.sitehead__bar {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.sitehead__logo img {
  height: calc(var(--head-h) - 24px);
  width: auto;
}
.sitehead__nav {
  display: flex;
  gap: var(--s1);
  margin-left: auto;
}
.sitehead__nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--s3);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.sitehead__nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sitehead__nav a[aria-current="page"] {
  background: #fff;
  color: var(--verde);
}
.sitehead__nav .is-wide {
  display: none;
}
@media (min-width: 768px) {
  .sitehead__nav {
    gap: var(--s2);
  }
  .sitehead__nav a {
    height: 44px;
    padding: 0 var(--s4);
    font-size: 16px;
  }
  .sitehead__nav .is-wide {
    display: inline-flex;
  }
}
/* sotto la barra: due file di scacchi con il filo arancio */
.sitehead .checker-strip {
  height: var(--cell);
  border-top-width: 3px;
}

/* ===== Piè di pagina: la banda del brand ===== */
.sitefoot {
  margin-top: var(--s8);
}
.sitefoot .checker-strip {
  height: calc(var(--cell) * 2);
}
.sitefoot__band {
  background: var(--carta);
}
.sitefoot__inner {
  display: grid;
  gap: var(--s4);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  align-items: center;
}
.sitefoot__qr {
  display: none;
}
.sitefoot__qr svg {
  width: 96px;
  height: 96px;
}
.sitefoot__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 700;
  font-size: 18px;
  color: var(--verde);
  text-decoration: none;
}
.sitefoot__item .icon {
  color: var(--rosso);
}
.sitefoot__item small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--grigio);
}
.sitefoot__logo {
  display: none;
  background: var(--verde);
  padding: var(--s5);
  place-items: center;
}
.sitefoot__logo img {
  width: 140px;
  height: auto;
}
.sitefoot__legal {
  background: var(--verde);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: var(--s3) 0 max(var(--s3), env(safe-area-inset-bottom));
}
.sitefoot__legal .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
}
.sitefoot__legal a {
  color: #fff;
}
@media (min-width: 768px) {
  .sitefoot__inner {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .sitefoot__inner {
    grid-template-columns: auto repeat(3, auto) 1fr;
    gap: var(--s6);
  }
  .sitefoot__qr {
    display: block;
    border: 6px solid #fff;
    outline: 2px solid var(--linea);
  }
  .sitefoot__logo {
    display: grid;
    justify-self: end;
    align-self: stretch;
    margin: calc(var(--s6) * -1) 0;
    padding: var(--s5) var(--s6);
  }
}

/* ===== Pezzi comuni ===== */
.price {
  color: var(--rosso);
  font-weight: 700;
  white-space: nowrap;
}
.hl {
  color: var(--arancio);
}
.loading,
.load-error {
  padding: var(--s7) var(--gutter);
  text-align: center;
  color: var(--grigio);
}
.load-error button {
  margin-top: var(--s3);
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--inchiostro);
  color: #fff;
  cursor: pointer;
}
.btn-big {
  --c: var(--rosso);
  --ink: #fff;
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 68px;
  padding: var(--s3) var(--s5);
  border-radius: 12px;
  background: var(--c);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
}
.btn-big:hover {
  filter: brightness(1.06);
}
.btn-big:active {
  transform: translateY(3px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.btn-big__label {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  flex: 1;
}
.btn-big__icon {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
