/* Schibsted Grotesk Variable, self-hosted (latin and latin-ext). Licence: ../fonts/LICENSE-schibsted-grotesk.txt */
@font-face {
  font-family: 'Schibsted Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  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;
}

@font-face {
  font-family: 'Schibsted Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  --ground: #0f0f0e;
  --ink: #f2f1ec;
  --muted: #a6a59c;
  --rule: #2e2e2b;
  --accent: #ff6a13;
  --on-accent: #0f0f0e;
  --on-accent-muted: #3d1a08;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wrap: 80rem;
  --header: 5rem;
  color-scheme: dark;
}

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

html {
  background: var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  scrollbar-width: thin;
  scrollbar-color: #3a3a36 var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Schibsted Grotesk Variable', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--accent);
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* Skip link */
.skp {
  position: absolute;
  left: var(--gutter);
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-120%);
}

.skp:focus-visible {
  transform: none;
  outline-color: var(--ink);
}

/* Page frame */
.pag {
  padding: 0 var(--gutter);
}

.pag__wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.hdr {
  padding-inline: var(--gutter);
}

.hdr__inner {
  min-height: var(--header);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}

.brd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1rem;
  text-decoration: none;
}

.brd__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brd__web {
  color: var(--accent);
}

.brd__payoff {
  color: var(--muted);
  font-size: 0.9375rem;
}

.nav__list {
  display: flex;
  gap: 0.25rem 1.75rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 2px;
}

.nav__link:hover {
  text-decoration-line: underline;
  text-decoration-color: var(--muted);
}

.nav__link--current {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

/* Section */
.sec {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-top: 1px solid var(--rule);
}

.sec--top {
  border-top: 0;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.sec__head {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sec__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sec__more {
  margin-top: 1.5rem;
}

/* Intro: the payoff on the left, the cut-out portrait standing on the first rule. */
.int {
  display: grid;
  gap: 2rem;
  padding-top: clamp(1.5rem, 4vh, 3rem);
}

.int__text {
  align-self: center;
  padding-bottom: clamp(1rem, 4vh, 3rem);
}

.int__payoff {
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.int__year {
  color: var(--accent);
}

.int__who {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 34rem;
  text-wrap: balance;
}

.int__lead {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: var(--muted);
  text-wrap: pretty;
}

.int__figure {
  align-self: end;
  justify-self: start;
  width: min(100%, 34rem);
  background: var(--accent);
  animation: int-panel 1.1s var(--ease) backwards;
}

.int__photo {
  display: block;
  width: 100%;
  height: auto;
  animation: int-photo 1.3s var(--ease) 0.15s backwards;
}

@keyframes int-panel {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes int-photo {
  from {
    transform: translateY(3rem);
  }
  to {
    transform: none;
  }
}

@media (min-width: 52rem) {
  .int {
    min-height: calc(100svh - var(--header));
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .int__figure {
    justify-self: end;
    width: 100%;
  }
}

/* Actions */
.act {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: #ff8340;
}

.btn:active {
  background: #e85f0c;
}

.btn--ink {
  background: var(--on-accent);
  color: var(--ink);
}

.btn--ink:hover {
  background: #2a2a27;
}

.btn--ink:active {
  background: #000;
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: #5a5a54;
}

.btn--line:hover {
  background: transparent;
  border-color: var(--ink);
}

.btn--line:active {
  background: #1c1c1a;
}

.btn--line-ink {
  background: transparent;
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.btn--line-ink:hover {
  background: var(--on-accent);
  color: var(--ink);
}

.btn--line-ink:active {
  background: #000;
  color: var(--ink);
}

.lnk {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: #5a5a54;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.25s var(--ease);
}

.lnk:hover {
  text-decoration-color: var(--accent);
}

.lnk--ink {
  text-decoration-color: var(--on-accent-muted);
}

.lnk--ink:hover {
  text-decoration-color: var(--on-accent);
}

/* Jobs */
.job {
  border-top: 1px solid var(--rule);
}

.job__item {
  display: grid;
  gap: 0.75rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}

.job__item:last-child,
.skl__group:last-child,
.pst__item:last-child {
  border-bottom: 0;
}

@media (min-width: 52rem) {
  .job__item {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.job__years {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.job__where {
  color: var(--muted);
  font-size: 0.9375rem;
}

.job__org {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.job__sum {
  margin-top: 1rem;
  max-width: 40rem;
  text-wrap: pretty;
}

.job__points {
  margin-top: 1.25rem;
  max-width: 42rem;
  display: grid;
  gap: 0.7rem;
}

.job__point {
  position: relative;
  padding-left: 1.5rem;
  text-wrap: pretty;
}

.job__point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
}

/* Tags */
.tag {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag__item {
  padding: 0.15rem 0.65rem;
  border: 1px solid #3f3f3a;
  border-radius: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Timeline: one spine per place. Dublin is a thin paper line with hollow round nodes; Italy is a heavy orange bar with solid square nodes. */
.tml__phase {
  --phase: var(--ink);
  --line: 2px;
  --node: 50%;
  --cx: 0.5rem;
  --size: 1rem;
}

.tml__phase--it {
  --phase: var(--accent);
  --line: 8px;
  --node: 0;
  --size: 1.25rem;
}

.tml__phase + .tml__phase {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.tml__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.tml__place {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--phase);
}

.tml__span {
  margin-top: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tml__note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.tml__figure {
  width: min(100%, 22rem);
  background: var(--phase);
}

.tml__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tml__jobs {
  position: relative;
  display: grid;
}

.tml__jobs::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--cx) - var(--line) / 2);
  width: var(--line);
  background: var(--phase);
}

.tml__job {
  position: relative;
  display: grid;
  gap: 0.5rem 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(1.75rem, 4vw, 2.5rem) 2.5rem;
}

.tml__job {
  --shown: 1;
}

.tml__job[data-reveal='wait'] {
  --shown: 0;
}

.tml__job::before {
  content: '';
  position: absolute;
  top: clamp(2.05rem, 4.3vw, 2.8rem);
  left: calc(var(--cx) - var(--size) / 2);
  width: var(--size);
  height: var(--size);
  border-radius: var(--node);
  background: var(--ground);
  border: 3px solid var(--phase);
  transform: scale(var(--shown, 1));
  transition: transform 0.7s var(--ease);
}

.tml__phase--it .tml__job::before {
  background: var(--phase);
}

@media (min-width: 52rem) {
  .tml__phase {
    --cx: 12.5rem;
  }

  .tml__job {
    grid-template-columns: 11rem 3rem minmax(0, 1fr);
    padding-left: 0;
  }

  .tml__when {
    grid-column: 1;
  }

  .tml__body {
    grid-column: 3;
  }
}

.tml__years {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tml__where {
  color: var(--muted);
  font-size: 0.9375rem;
}

.tml__org {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tml__role {
  margin-top: 0.35rem;
  color: var(--muted);
}

.tml__roles {
  margin-top: 1.5rem;
  max-width: 42rem;
  border-top: 1px solid var(--rule);
}

.tml__rolerow {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.tml__roleyears {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.tml__roleorg {
  font-weight: 600;
}

.tml__rolename {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Timeline, scroll version: the photo is a wide band that opens the chapter, and the spine starts right under it. */
.tml__head--band {
  display: block;
  padding-bottom: 0;
}

.tml__figure--band {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rule);
}

@media (min-width: 52rem) {
  .tml__figure--band {
    aspect-ratio: 21 / 9;
  }
}

.tml__photo--parallax {
  height: 130%;
  aspect-ratio: auto;
}

.tml__head--band .tml__title {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

/* Scroll-linked motion. Only browsers that can tie animation to scroll get it; the rest see the finished page. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tml__figure--band {
      animation: tml-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .tml__photo--parallax {
      animation: tml-parallax linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .tml__place--motion {
      animation: tml-slide linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .tml__jobs--motion::before {
      transform-origin: top;
      animation: tml-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .tml__job--motion::before {
      animation: tml-pop linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 50%;
    }

    .tml__when--motion,
    .tml__body--motion {
      animation: tml-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

/* The same effects driven by script (--p, 0 to 1), for browsers without scroll-driven animations. */
[data-scrub='js'] .tml__figure--band {
  clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0);
}

[data-scrub='js'] .tml__photo--parallax {
  transform: translateY(calc(var(--p, 0.5) * 18% - 9%));
}

[data-scrub='js'] .tml__place--motion {
  opacity: var(--p, 1);
  transform: translateX(calc((1 - var(--p, 1)) * -3rem));
}

[data-scrub='js'] .tml__jobs--motion::before {
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}

[data-scrub='js'] .tml__job--motion::before {
  transform: scale(var(--p, 1));
}

[data-scrub='js'] .tml__when--motion,
[data-scrub='js'] .tml__body--motion {
  opacity: var(--p, 1);
  transform: translateY(calc((1 - var(--p, 1)) * 2rem));
}

@keyframes tml-reveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes tml-parallax {
  from {
    transform: translateY(-9%);
  }
  to {
    transform: translateY(9%);
  }
}

@keyframes tml-slide {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tml-draw {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes tml-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes tml-rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Reveal: a mixin for the parts of a job. They read --shown from the job and rise in turn (--i). */
.rvl {
  opacity: var(--shown, 1);
  transform: translateY(calc((1 - var(--shown, 1)) * 1.75rem));
  transition:
    opacity 0.8s var(--ease) calc(var(--i, 0) * 90ms + 0.15s),
    transform 0.9s var(--ease) calc(var(--i, 0) * 90ms + 0.15s);
}

/* Skills */
.skl {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.skl__group {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.35rem 2.5rem;
}

@media (min-width: 52rem) {
  .skl__group {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.skl__name {
  font-weight: 600;
}

.skl__keys {
  color: var(--muted);
  max-width: 44rem;
  text-wrap: pretty;
}

/* News list */
.pst {
  border-top: 1px solid var(--rule);
}

.pst__item {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .pst__item {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.pst__date {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.pst__title {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pst__link {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.pst__link:hover {
  background-size: 100% 2px;
}

.pst__text {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 40rem;
  text-wrap: pretty;
}

/* Apps page */
.app__lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.app__head {
  margin-top: clamp(3rem, 7vw, 5rem);
  margin-bottom: 0;
}

.app__list {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.app__feature {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .app__feature {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.app__title {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.app__text {
  max-width: 40rem;
  text-wrap: pretty;
}

.app__shots {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 52rem) {
  .app__shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app__shot {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.app__shots .app__shot {
  margin-top: 0;
}

.app__img,
.app__video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.app__cap {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Article */
.art__back {
  margin-bottom: 1.5rem;
}

.art__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
  max-width: 20ch;
  text-wrap: balance;
}

.art__date {
  display: block;
  margin-top: 1.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Rendered Markdown: the one place that styles bare tags, because Markdown writes no classes. */
.art__body {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  max-width: 42rem;
  font-size: 1.1875rem;
}

.art__body > * + * {
  margin-top: 1.25em;
}

.art__body a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Tag del Markdown renderizzato (privacy): titoli, tabella, codice. */
.art__body h2 {
  margin-top: 2em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.art__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.art__body th,
.art__body td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.art__body th {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.art__body code {
  font-size: 0.9em;
}

@media (max-width: 40rem) {
  .art__body table {
    display: block;
    overflow-x: auto;
  }
}

/* Banner cookie (vanilla-cookieconsent, css/vendor/): solo i colori e la forma, con le sue variabili. */
#cc-main {
  --cc-font-family: inherit;
  --cc-bg: #1b1b19;
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--muted);
  --cc-link-color: var(--accent);
  --cc-modal-border-radius: 0;
  --cc-btn-border-radius: 0;
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: var(--on-accent);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--ink);
  --cc-btn-primary-hover-color: var(--on-accent);
  --cc-btn-primary-hover-border-color: var(--ink);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: #5a5a54;
  --cc-btn-secondary-hover-bg: transparent;
  --cc-btn-secondary-hover-color: var(--ink);
  --cc-btn-secondary-hover-border-color: var(--ink);
  --cc-separator-border-color: var(--rule);
  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-off-bg: #5a5a54;
  --cc-toggle-on-knob-bg: var(--ground);
  --cc-toggle-off-knob-bg: var(--ink);
  --cc-toggle-readonly-bg: #3a3a36;
  --cc-toggle-readonly-knob-bg: var(--ink);
  --cc-toggle-enabled-icon-color: var(--ground);
  --cc-toggle-disabled-icon-color: var(--ground);
  --cc-toggle-readonly-knob-icon-color: var(--ground);
  --cc-cookie-category-block-bg: #232321;
  --cc-cookie-category-block-border: var(--rule);
  --cc-cookie-category-block-hover-bg: #2a2a27;
  --cc-cookie-category-block-hover-border: var(--rule);
  --cc-cookie-category-expanded-block-bg: #232321;
  --cc-cookie-category-expanded-block-hover-bg: #2a2a27;
  --cc-section-category-border: var(--rule);
  --cc-footer-bg: #232321;
  --cc-footer-color: var(--muted);
  --cc-footer-border-color: var(--rule);
  --cc-overlay-bg: rgba(15, 15, 14, 0.8);
}

/* Footer: the contact block, on every page, drenched in the accent. */
.ftr {
  padding-inline: var(--gutter);
  background: var(--accent);
  color: var(--on-accent);
}

.ftr a:focus-visible {
  outline-color: var(--on-accent);
}

.ftr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* Link e pulsante hanno lo stesso aspetto: il pulsante riapre le impostazioni cookie (data-cc). */
.ftr__link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--on-accent-muted);
  text-decoration-thickness: 2px;
  cursor: pointer;
}

.ftr__link:hover {
  text-decoration-color: var(--on-accent);
}

.ftr__inner {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem);
}

.ftr__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-accent-muted);
  color: var(--on-accent-muted);
  font-size: 0.875rem;
}

.ctc__title {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}

.ctc__meta {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--on-accent-muted);
}

.ctc__data {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--on-accent-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.ctc__group {
  flex: 1 1 12rem;
}

/* The email group is the widest: the PEC address has to stay on one line. */
.ctc__group--wide {
  flex: 2 1 24rem;
}

.ctc__label {
  margin-bottom: 0.5rem;
  color: var(--on-accent-muted);
  font-size: 0.9375rem;
}

.ctc__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6rem;
  font-weight: 500;
}

.ctc__sub {
  min-width: 2.75rem;
  color: var(--on-accent-muted);
  font-weight: 400;
}

.ctc__link {
  white-space: nowrap;
  text-decoration-thickness: 2px;
  font-size: clamp(0.8125rem, 3.9vw, 1.0625rem);
}

.ctc__lines {
  font-weight: 500;
}

.ofc {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--on-accent-muted);
  font-size: 0.9375rem;
}

.ofc__name {
  color: var(--on-accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .int__figure,
  .int__photo {
    animation: none;
  }

  .btn,
  .lnk,
  .pst__link,
  .rvl,
  .tml__job::before {
    transition: none;
  }
}
