/* Proposta E's look for the other pages of the site (pagina vera, fase 4, part A): privacy, grazie, the 404s and the
   Worker's pages. Loaded after e.css; the home never loads it. Only E's tokens, type sizes and shapes: the closing band
   as the one card of a short page, the white card with a 28 px radius as the reading column of a long text, the dashed
   box of «Non c'è la tua meta?», the tint of «Avvisami», the error bubble, the suggestion rows of «su misura». */

/* ---------------------------------------------------------------- short pages: one card under the bar */
.pagine { position: relative; z-index: 1; padding: 5.25rem 0 0; }
.carta-pagina { margin: 0 10px; }
.carta-pagina h1 { font-size: 2rem; max-width: 30rem; margin: 0 auto; overflow-wrap: break-word; hyphens: auto; }
.carta-pagina > .occhiello { margin-bottom: .6rem; }
.carta-pagina > .piccolo-emoji { margin-bottom: .4rem; line-height: 1.2; }
.carta-pagina > .doi-off > p { margin: .7rem auto 0; max-width: 30rem; color: var(--inchiostro-2); }
.carta-pagina > .doi-off > .carta-pagina-domanda { margin-top: 1.4rem; color: var(--inchiostro); font-weight: 650; }
.carta-pagina > .doi-off > .pill { margin-top: .9rem; }
.carta-pagina > .righe-link { margin: 1.4rem auto 0; }
.carta-pagina > .doi-on-block { margin: .7rem auto 0; max-width: 30rem; color: var(--inchiostro-2); }
@media (min-width: 600px) { .carta-pagina { margin: 0 auto; max-width: 40rem; padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 960px) {
  .pagine { padding-top: 8.25rem; }
  .carta-pagina h1 { font-size: 3rem; }
}

/* the Worker's page: the messages as E's error bubble, the airport choices as quiet rows, the button back to the form */
.carta-pagina .error-list { list-style: none; margin: 1.1rem auto 0; padding: 0; max-width: 26rem; display: grid; gap: .5rem; text-align: left; }
.carta-pagina .error-list li { padding: .8rem 1rem; border-radius: 16px; background: #FFF1E6; color: var(--inchiostro); font-size: .9375rem; overflow-wrap: anywhere; }
.carta-pagina .error-list[data-options] { gap: 0; }
.carta-pagina .error-list[data-options] li { padding: .6rem .25rem; border-radius: 0; background: none; border-bottom: 1px solid var(--bordo-forte); font-weight: 650; }
.carta-pagina > .error-list + p, .carta-pagina > .error-list ~ p { margin: 1rem auto 0; max-width: 26rem; color: var(--inchiostro-2); }
.carta-pagina > .pill:last-child { margin-top: 1.4rem; }

/* the page for clients that do not follow the language redirect: the six links as pills */
.carta-pagina > p + .lingue, .carta-pagina > h1 + .lingue { margin-top: 1.4rem; }
.carta-pagina > .lingue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.carta-pagina > .lingue a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.15rem; border-radius: 999px; border: 1.5px solid var(--bordo);
  background: var(--carta); color: var(--inchiostro); box-shadow: var(--ombra-p); font-size: 1rem; font-weight: 650; text-decoration: none;
}
.carta-pagina > .lingue a:hover { border-color: var(--bordo-forte); }

/* the root 404: the six languages as rows like «su misura»'s suggestions, each a link */
.radice-lingue { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 30rem; display: grid; gap: 8px; text-align: left; }
.radice-lingue a {
  display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: .55rem 1rem; border-radius: 20px;
  background: var(--carta); box-shadow: var(--ombra-p); color: var(--inchiostro); text-decoration: none; transition: transform .18s var(--molla);
}
.radice-lingue a:active { transform: scale(.98); }
.radice-lingue b { font-weight: 750; }
.radice-lingue span { font-size: .8125rem; color: var(--inchiostro-2); }

/* ---------------------------------------------------------------- the privacy notice: E's arrival, then one white card */
.arrivo--pagina { padding-bottom: 1.5rem; }
.arrivo--pagina h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); overflow-wrap: break-word; hyphens: auto; }
.arrivo--pagina .occhiello { margin-top: .25rem; }
.arrivo--pagina .sotto { max-width: 34rem; }
.arrivo--pagina .doc__version { margin-top: .8rem; font-size: .875rem; color: var(--inchiostro-2); }
.lettura {
  position: relative; max-width: 42rem; margin: 0 10px; padding: 1.5rem 20px 2rem; border-radius: 28px;
  background: var(--carta); box-shadow: var(--ombra-g); text-align: left; line-height: 1.55; overflow-wrap: break-word;
}
.lettura > section + section, .lettura > section + .pill { margin-top: 2.25rem; }
.lettura h2 { font-size: 1.6rem; line-height: 1.15; margin-bottom: .8rem; scroll-margin-top: 4.75rem; }
.lettura h3 { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; margin: 1.4rem 0 .4rem; }
.lettura p + p, .lettura p + ul, .lettura ul + p { margin-top: .8rem; }
.lettura ul { margin: .8rem 0 0; padding-left: 1.2em; display: grid; gap: .5rem; list-style: disc; }
.lettura li::marker { color: var(--inchiostro-2); }
.lettura strong { font-weight: 700; }
.lettura a { color: var(--azione); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lettura section { scroll-margin-top: 4.75rem; }
.lettura-breve { padding: 1.25rem 1.1rem 1.35rem; border: 2px dashed var(--bordo-forte); border-radius: 24px; background: rgba(255, 255, 255, .55); }
.lettura-avviso { padding: 1rem 1.1rem; border-radius: 24px; background: var(--azione-tenue); }
.lettura-dafare { padding: .55rem .9rem; border-radius: 16px; background: var(--risalto); color: var(--risalto-testo); font-weight: 600; }
.lettura .lettura-indietro { text-decoration: none; color: var(--inchiostro); }
/* 200% text on a phone: the way back wraps (as E's R12 does for its big pill) and a list item may be narrower than its
   longest word, so neither makes the page wider than the screen */
.lettura .lettura-indietro { max-width: 100%; white-space: normal; text-align: center; padding-block: .45rem; }
.lettura ul { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 359px) { .lettura .lettura-indietro { padding-inline: .9rem; } }
@media (min-width: 600px) {
  .lettura { margin: 0 auto; padding: 2.25rem 2.75rem 2.5rem; }
  .lettura-breve { padding: 1.5rem 1.5rem 1.6rem; }
}
@media (min-width: 960px) {
  .arrivo--pagina { padding-bottom: 2.25rem; }
  .lettura h2, .lettura section { scroll-margin-top: 6rem; }
}
