/* ==========================================================================
   BlancOne — Segnalazioni / Reporting landing page
   Fonts, colours, spacing and breakpoints mirror
   https://news.blancone.eu/segnalazioni/ and /reporting/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Web fonts (self-hosted, latin + latin-ext subsets)
   -------------------------------------------------------------------------- */
/* Barlow 600 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e30-8s6vospt4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 600 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e30-8s51os.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 700 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e3t-4s6vospt4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 700 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e3t-4s51os.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 800 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e3q-0s6vospt4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 800 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-7chqv4kjgogqm7e3q-0s51os.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Jost 400 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jost-92zatbhpnqw73ord4iyl.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost 400 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jost-92zatbhpnqw73otd4g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --c-blue:        #152B7F;  /* page / footer background            */
  --c-white:       #FFFFFF;
  --c-cyan:        #009FE3;  /* primary action                      */
  --c-cyan-hover:  #009FE399;
  --c-orange:      #DD8030;  /* required mark, "previous" action    */
  --c-orange-hover:#DD803099;
  --c-link:        #008CDC;
  --c-link-hover:  #008CDC99;
  --c-glass-bg:    #FFFFFF1F;
  --c-glass-border:#FFFFFF1A;

  /* Typography */
  --font-display: "Barlow", Sans-serif;
  --font-body:    "Jost", Sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, "Noto Sans", sans-serif,
             "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
             "Noto Color Emoji";

  /* Layout */
  --content-max: 1140px;   /* default boxed width                   */
  --widget-gap:  20px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-white);
  color: #333;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  border-style: none;
  display: inline-block;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

a { background-color: transparent; color: var(--c-link); text-decoration: none; }
a:hover,
a:focus { color: var(--c-link-hover); }

p { margin-block-start: 0; margin-block-end: .9rem; }

h1, h2 { font-family: inherit; color: inherit; line-height: 1; margin: 0; padding: 0; }

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

/* Form controls inherit the surrounding typography and carry no UA margins,
   so radio buttons line up on the text grid. */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

button,
input { overflow: visible; }

[type="checkbox"],
[type="radio"] { box-sizing: border-box; padding: 0; }

[type="button"],
[type="submit"],
button {
  -webkit-appearance: button;
  width: auto;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

button:not(:disabled) { cursor: pointer; }

textarea { overflow: auto; resize: vertical; }

fieldset { min-width: 0; }

/* Screen-reader only helper (step legends) */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Site header — logo + language switcher, overlaid on the hero
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  min-height: 80px;
  margin: 0 0 -80px;
  padding: 40px 40px 0;
}

.site-header__col {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.site-header__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--widget-gap);
  width: 100%;
  max-width: min(100%, var(--content-max));
  height: 100%;
  margin: 0 auto;
}

.site-header__col--brand .site-header__inner { justify-content: flex-start; }
.site-header__col--lang  .site-header__inner { justify-content: flex-end; }

.site-header__brand { text-align: start; }
.site-header__brand img { width: 160px; }

/* Language switcher --------------------------------------------------------
   Both locales show the two flags; the active locale is listed first,
   which on the English page means reversing the visual order. */
.lang-switcher__item { text-align: center; }
.lang-switcher__item a { display: inline-block; }
.lang-switcher__item img { width: 30px; }
.lang-switcher__item a[aria-current="true"] { cursor: default; }

.page--en .site-header__col--lang .site-header__inner {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   5. Hero — intro copy (left) + form panel (right)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--c-blue);
}

/* Desaturated photographic overlay, multiplied over the blue ground */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/world-smile-day-emojis-arrangement-2-scaled.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(100%) contrast(100%) saturate(0%) blur(0) hue-rotate(0deg);
  mix-blend-mode: multiply;
  opacity: 1;
}

.hero > * { position: relative; }

.hero__intro,
.hero__panel {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0 80px;
}

.hero__intro-inner,
.hero__panel-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  max-width: min(100%, var(--content-max));
  height: 100%;
  margin: 0 auto;
  padding: 80px 0;
}

/* Above the mobile breakpoint both hero columns use a narrower measure. */
@media (min-width: 768px) {
  .hero__intro-inner,
  .hero__panel-inner { max-width: 600px; }
  .site-footer__inner { max-width: 1200px; }
}

.hero__intro-inner {
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--c-white);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  color: var(--c-white);
  text-align: start;
}

.hero__divider {
  width: 100%;
  height: 0;
  margin: 10px 0;
  border: 0;
  border-block-start: 1px solid var(--c-white);
}

.hero__text {
  width: 100%;
  max-width: 100%;
  margin: 0 0 -10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--c-white);
}

.hero__text p { margin-block-end: 10px; }

/* Frosted-glass form panel */
.hero__panel {
  background-color: var(--c-glass-bg);
  -webkit-backdrop-filter: blur(12px) brightness(1.2);
  backdrop-filter: blur(12px) brightness(1.2);
  border-style: solid;
  border-width: 0 0 0 1px;
  border-color: var(--c-glass-border);
  box-shadow: 0 0 80px 0 rgba(0, 0, 0, .5);
}

.hero__panel-inner {
  align-items: center;
  justify-content: center;
  gap: var(--widget-gap);
}

.hero__form-widget { position: relative; z-index: 99; width: 100%; }

/* --------------------------------------------------------------------------
   6. Multi-step form
   -------------------------------------------------------------------------- */
.report-form { margin: 0; }

.form-fields {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px -20px;
}

.form-step {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden] { display: none !important; }

/* Field group ------------------------------------------------------------- */
.field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 5px;
}

.field__label {
  display: block;
  flex-basis: auto;
  max-width: 100%;
  padding-block-end: 5px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-white);
  cursor: pointer;
}

.field--required > .field__label::after {
  content: "*";
  padding-inline-start: .2em;
  color: var(--c-orange);
}

.field__control {
  flex-basis: 100%;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  min-height: 47px;
  padding: 6px 16px;
  border: 0;
  border-radius: 10px;
  background-color: var(--c-white);
  color: var(--c-blue);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  vertical-align: middle;
}

.field__control::placeholder { color: inherit; font-family: inherit; opacity: .6; }
.field__control:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: 0; }

textarea.field__control { display: block; }

/* Radio groups ------------------------------------------------------------ */
.field__subgroup {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  max-width: 100%;
}

.field__option {
  flex-basis: 100%;
  font-size: 16px;
  line-height: 24px;
}

.field__option input,
.field__option label { display: inline; }

.field__option label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--c-white);
  cursor: pointer;
}

/* Step buttons ------------------------------------------------------------ */
.form-step__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.form-step__button-wrap {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 0 5px;
}

.button {
  display: inline-block;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  background-color: var(--c-cyan);
  color: var(--c-white);
  fill: var(--c-white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  min-height: 47px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all .3s;
}

.button:hover,
.button:focus { background-color: var(--c-cyan-hover); color: var(--c-white); }

.button--previous { background-color: var(--c-orange); }
.button--previous:hover,
.button--previous:focus { background-color: var(--c-orange-hover); }

/* Inline validation / status messages ------------------------------------- */
.form-message {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.form-message--success { color: var(--c-cyan); }
.form-message--danger  { color: var(--c-orange); }

/* --------------------------------------------------------------------------
   7. "Back to home" bar (desktop only)
   -------------------------------------------------------------------------- */
.back-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--widget-gap);
  min-height: 80px;
  margin: -80px 0 0;
  padding: 0 40px 40px;
}

.button--ghost {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--c-cyan);
  border-radius: 0;
  background-color: var(--c-white);
  color: var(--c-cyan);
  fill: var(--c-cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: all .3s;
}

.button--ghost:hover,
.button--ghost:focus {
  background-color: var(--c-cyan);
  border-color: var(--c-white);
  color: var(--c-white);
  fill: var(--c-white);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-direction: column;
  min-height: 80px;
  padding: 0 120px;
  border-block-start: 1px solid var(--c-cyan);
  background-color: var(--c-blue);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: flex-end;
  gap: 40px;
  width: 100%;
  max-width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 120px 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  background-color: var(--c-blue);
}

.site-footer__legal {
  align-self: center;
  width: 100%;
  max-width: 100%;
  margin: 0 0 -12px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: var(--c-white);
  text-align: center;
}

.site-footer__logo { text-align: center; }
.site-footer__logo img { width: 240px; }

/* --------------------------------------------------------------------------
   9. Tablet — up to 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --content-max: 1024px; }

  .site-header {
    min-height: 120px;
    margin: 0 0 -120px;
    padding: 80px 80px 0;
  }

  .hero {
    flex-direction: column;
    padding: 80px 0 0;
  }

  .hero__panel {
    border-width: 1px 0 0 0;
  }

  .back-bar { display: none; }

  .site-footer__col { padding: 0; }
}

/* --------------------------------------------------------------------------
   10. Mobile — up to 767px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --content-max: 767px; }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    min-height: 80px;
    padding: 40px 40px 0;
  }

  .page--en .site-header__col--lang .site-header__inner { flex-wrap: wrap-reverse; }

  .hero { padding: 120px 0 0; }

  .hero__intro { padding: 0 40px; }
  .hero__intro-inner { padding: 40px 0; }

  .hero__panel { padding: 0 40px; }
  .hero__panel-inner { padding: 60px 0 80px; }

  .site-footer { padding: 0; }
  .site-footer__inner { padding: 0; }
  .site-footer__col { padding: 120px 60px; }
}
