/* Font locali (subset latin) estratti dal sito in produzione news.blancone.eu */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/barlow_300.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow_500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow_600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow_700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow_800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/barlow_900.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost_variable.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/opensans_variable.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ptsans_400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto_variable.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/robotoslab_variable.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
}

/* Cookie banner (assets/cookie-consent.js) */
.cc-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  background: #152B7F;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  border-top: 3px solid #009FE3;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.cc-banner[hidden], .cc-banner [hidden], .cc-fab[hidden] { display: none; }
.cc-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.cc-title {
  margin: 0 2rem 0.375rem 0;
  font-family: "Barlow", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cc-text { margin: 0; }
.cc-text a { color: #fff; text-decoration: underline; }
.cc-text a:hover { color: #009FE3; }
.cc-prefs {
  display: grid;
  gap: 0.625rem;
  margin-top: 1rem;
}
.cc-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
  cursor: pointer;
}
.cc-opt input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: #009FE3;
}
.cc-opt strong { display: block; font-weight: 600; }
.cc-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.625rem;
}
.cc-btn {
  padding: 0.875rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #fff;
  color: #008CDC;
  font-family: "Barlow", sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.cc-btn:hover { border-color: #009FE3; background: #009FE3; color: #fff; }
.cc-link {
  padding: 0.5rem;
  border: 0;
  background: none;
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.cc-link:hover { color: #009FE3; }
.cc-banner :focus-visible, .cc-fab:focus-visible {
  outline: 3px solid #EE7D00;
  outline-offset: 2px;
}
.cc-fab {
  position: fixed;
  z-index: 9998;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #152B7F;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.cc-fab:hover { background: #009FE3; }

@media (min-width: 768px) {
  .cc-banner {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 64rem;
    max-height: calc(100dvh - 3rem);
    margin: 0 auto;
    padding: 1.75rem 2rem;
    border-top: 0;
    border-left: 4px solid #009FE3;
    border-radius: 0.75rem;
  }
  .cc-prefs { grid-template-columns: repeat(3, 1fr); }
  .cc-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .cc-actions .cc-link { margin-right: auto; }
  .cc-btn { min-width: 11rem; }
}
