/* The tear between two sections: the page of a made-up comedy tour, in two dark colours. Between two sections there
   is a band as tall as a third of the screen with a canvas in it; the canvas paints the sheet above, the torn paper
   and the sheet below, so the band has no colour of its own. */
:root {
  --carbone: #2b2927;      /* the charcoal sheet */
  --notte: #1c2550;        /* the night-blue sheet */
  --carta: #e4e0d8;        /* the white of the paper, inside the tear and on the back of the strip */
  --testo: #faf6ee;        /* the text */
  --accento: #ff9e7a;      /* the words in colour */
  --tenue: #b7b3c4;        /* the small text */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--carbone);
  color: var(--testo);
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- the sections */
.sezione {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(16px, 3vh, 28px);
  min-height: 92vh;
  padding: clamp(64px, 12vh, 140px) clamp(16px, 6vw, 110px);
  text-align: center;
}

.sezione--carbone {
  background: var(--carbone);
}

.sezione--notte {
  background: var(--notte);
}

.sezione--fine {
  min-height: 80vh;
}

.occhiello,
.sotto {
  margin: 0;
  color: var(--tenue);
  font-size: clamp(14px, 1.2vw, 18px);
}

.occhiello {
  color: var(--accento);
  font-weight: 600;
}

.titolo {
  margin: 0;
  font-size: clamp(54px, 10vw, 168px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.titolo--medio {
  font-size: clamp(40px, 6.4vw, 104px);
}

.titolo em {
  color: var(--accento);
  font-style: normal;
}

.date {
  width: min(100%, 900px);
  margin: clamp(12px, 3vh, 32px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.date li {
  display: grid;
  grid-template-columns: 7em 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: clamp(14px, 2.4vh, 24px) 0;
  border-top: 1px solid rgb(250 246 238 / 0.16);
  font-size: clamp(15px, 1.5vw, 22px);
}

.date li:last-child {
  border-bottom: 1px solid rgb(250 246 238 / 0.16);
}

.date__giorno {
  color: var(--accento);
}

.date__luogo {
  font-weight: 600;
}

.date__nota {
  color: var(--tenue);
}

@media (max-width: 560px) {
  .date li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------------------------------------------------------------- the tear */
.strappo {
  position: relative;
  height: clamp(220px, 36vw, 560px);
  /* the band is painted by the canvas; until then it shows the sheet above */
  background: var(--carbone);
}

.strappo[data-sopra='--notte'] {
  background: var(--notte);
}

.strappo__tela {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
