@charset 'UTF-8';

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/schibsted-grotesk-latin.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;
}

:root {
  /* palette ldp (da @ldp/components/styles/globals.css) */
  --ldp-primary-50: #f2feff;
  --ldp-primary-100: #b0e1e8;
  --ldp-primary-200: #77c4d1;
  --ldp-primary-500: #006e89;
  --ldp-primary-900: #005270;

  --ink: #0d2f3a;
  --text: #24414b;
  --muted: #557079;
  --rule: #d5e9ed;
  --paper: #ffffff;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: var(--ldp-primary-500);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover {
  color: var(--ldp-primary-900);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ldp-primary-200);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}

/* TOP BAR */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: block;
  width: 150px;
  height: auto;
}

.lang {
  display: flex;
  gap: 1rem;
  font-size: .9375rem;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover {
  color: var(--ldp-primary-500);
}

.lang a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--ldp-primary-500);
}

/* HERO: la pagina è una carta topografica */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ldp-primary-50);
  border-bottom: 1px solid var(--rule);
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* curve di livello: si disegnano dalla vetta verso valle, una sola volta */
.hero-map path {
  fill: none;
  stroke: var(--ldp-primary-500);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: .3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: contour-draw 2.6s cubic-bezier(.4, 0, .2, 1) forwards;
}

.hero-map path.i {
  stroke-width: 1.8;
  opacity: .5;
}

.hero-map circle {
  fill: var(--ldp-primary-500);
}

.hero-map text {
  font: 500 13px var(--font);
  fill: var(--ldp-primary-500);
  opacity: 0;
  animation: contour-label .8s 2.2s forwards;
}

@keyframes contour-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes contour-label {
  to { opacity: .75; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map path,
  .hero-map text {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero-map text {
    opacity: .75;
  }
}

@media (max-width: 767px) {
  .hero-map {
    opacity: .55;
  }
}

.hero .wrap {
  position: relative;
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  max-width: 13ch;
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.hero .lead {
  max-width: 34rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1875rem, 2vw, 1.375rem);
  line-height: 1.5;
}

/* CONTENUTO */

.content {
  flex: 1;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: 3rem 0 .75rem;
  color: var(--ink);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.help {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ldp-primary-500);
  color: #fff;
}

.prose .help h2 {
  margin-top: 0;
  color: #fff;
}

.help p {
  color: var(--ldp-primary-50);
}

.help .mail {
  display: inline-block;
  margin-top: .5rem;
  color: #fff;
  font-size: clamp(1.375rem, 4.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -.01em;
  word-break: break-word;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ldp-primary-200);
}

.help .mail:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.help .mail:focus-visible {
  outline-color: #fff;
}

/* FOOTER */

.site-footer {
  background: var(--ldp-primary-900);
  color: var(--ldp-primary-100);
  padding: 2.5rem 0;
  font-size: .875rem;
  line-height: 1.7;
}

.site-footer strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}
