﻿@charset "UTF-8";
/* Base tokens */

:root {
  --bcol: white;
  --col: #121212;
  --gray: #6e6e6e;
  --desk-max-w: 1220px;
  --font-zoom: 1;
  --font-base: calc(1rem * var(--font-zoom));
  --font-fam:
    -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  --font-l: calc(var(--font-base) * var(--font-scale) * var(--font-scale));
  --font-m: calc(var(--font-base) * var(--font-scale));
  --font-n: var(--font-base);
  --font-scale: 1.25;
  --font-xxs: calc(var(--font-base) / var(--font-scale));
  --font-xs: calc(var(--font-base) / var(--font-scale));
  --font-xl: calc(
    var(--font-base) * var(--font-scale) * var(--font-scale) * var(--font-scale)
  );
  --font-xxl: calc(
    var(--font-base) * var(--font-scale) * var(--font-scale) *
      var(--font-scale) * var(--font-scale)
  );
  --hfont-fam: "Titillium Web", sans-serif;
  --line-h: 1.3;
  --maca-dark: rgb(29, 29, 27);
  --maca-red: rgb(157, 26, 39);
  --focus-ring: #005fcc;
}

/* Dark theme */

.dark-view {
  --bcol: #333333;
  --col: #e8e8e8;
  --maca-dark: var(--col);
  --maca-red: #c95a63;
  --focus-ring: #9ecbff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bcol: #333333;
    --col: #e8e8e8;
    --maca-dark: var(--col);
    --maca-red: #c95a63;
    --focus-ring: #9ecbff;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  audio,
  video,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 0.18rem;
}

/* App shell */

#app {
  display: grid;
  grid-template-rows: auto 1fr 8em;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "header" "main" "footer";
  box-sizing: border-box;
  min-height: 100vh;
  width: calc(100vw - 2em);
  padding: 0 1em;
  margin: 0 auto;
  max-width: var(--desk-max-w);
}
@media only screen and (max-width: 980px) {
  #app {
    width: 100%;
    padding: 0 0.4em;
  }
}
#app > header {
  align-items: center;
  display: grid;
  gap: 1.4em;
  grid-template-columns: 4rem 4rem auto 1fr;
  max-width: 100%;
  height: 54px;
  width: 100%;
  min-width: 0;
  grid-area: header;
}
#app > header > * {
  min-width: 0;
}
@media only screen and (max-width: 980px) {
  #app > header {
    grid-template-columns: 4rem 4rem minmax(0, 1fr);
    grid-template-areas: "maca abafr nav" "toolbar toolbar toolbar";
    height: auto;
    row-gap: 0.5em;
    column-gap: 0.75em;
    padding: 0.5em 0;
  }
}
@media only screen and (max-width: 980px) {
  #app > header > a:first-of-type {
    grid-area: maca;
  }
}
@media only screen and (max-width: 980px) {
  #app > header > a:nth-of-type(2) {
    grid-area: abafr;
  }
}
#app > header a,
#app > header a:visited {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  text-transform: lowercase;
  user-select: none;
}
#app > header nav {
  display: flex;
  justify-content: flex-start;
}
@media only screen and (max-width: 980px) {
  #app > header nav {
    grid-area: nav;
    justify-content: flex-end;
  }
}
#app > header ul {
  display: flex;
  flex-direction: row;
  gap: 1.2em;
  list-style-type: none;
}
@media only screen and (max-width: 980px) {
  #app > header ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6em;
  }
}
#app > header svg {
  width: 100%;
  fill: var(--col);
  fill-rule: nonzero;
  clip-rule: evenodd;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
}
#app > header svg#maca-logo {
  fill: var(--maca-dark);
}
#app > header svg#maca-logo .a {
  fill: var(--maca-red);
}
#app > header svg.abafr {
  height: min(2em, 3rem);
}
#app > header .toolbar {
  display: flex;
  gap: 0.6em;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
@media only screen and (max-width: 980px) {
  #app > header .toolbar {
    grid-area: toolbar;
    gap: 0.4em;
  }
}
#app > header .toolbar > section {
  display: flex;
  gap: 0;
}
#app > header .toolbar > section > * {
  border-radius: 0;
}
#app > header .toolbar > section > *:first-child {
  border-radius: 0.18rem 0 0 0.18rem;
  border-right: none;
}
#app > header .toolbar > section > *:last-child {
  border-radius: 0 0.18rem 0.18rem 0;
  border-left: none;
}
#app > main {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  grid-area: main;
}
#app > footer {
  min-height: 8em;
  background-color: black;
  grid-area: footer;
}

/* Breadcrumb */

.breadcrumb > ul {
  list-style-type: none;
  list-style-position: inside;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  color: var(--gray);
}
.breadcrumb > ul li {
  display: flex;
}
.breadcrumb > ul li:not(:last-child)::after {
  content: "";
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2ZTZlNmUiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLXJpZ2h0LWljb24gbHVjaWRlLWNoZXZyb24tcmlnaHQiPjxwYXRoIGQ9Im05IDE4IDYtNi02LTYiLz48L3N2Zz4=);
  background-size: cover;
  display: block;
  width: 1em;
  aspect-ratio: 1/1;
}
.breadcrumb > ul li .home {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2ZTZlNmUiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1ob3VzZS1pY29uIGx1Y2lkZS1ob3VzZSI+PHBhdGggZD0iTTE1IDIxdi04YTEgMSAwIDAgMC0xLTFoLTRhMSAxIDAgMCAwLTEgMXY4Ii8+PHBhdGggZD0iTTMgMTBhMiAyIDAgMCAxIC43MDktMS41MjhsNy02YTIgMiAwIDAgMSAyLjU4MiAwbDcgNkEyIDIgMCAwIDEgMjEgMTB2OWEyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMnoiLz48L3N2Zz4=);
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  width: 1em;
  aspect-ratio: 1/1;
}
.breadcrumb > ul a {
  text-transform: lowercase;
  padding: 0 0.4em 0.2em 0;
}

.logo {
  width: 4em;
}

/* Accessibility helpers */

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  background: #fff;
  color: #000;
  left: 0;
  padding: 8px 12px;
  position: absolute;
  text-decoration: none;
  top: 0;
  transform: translateY(-100%);
  z-index: 9999;
}
.skip-link:focus-within {
  transform: translateY(0);
}

.small {
  font-size: var(--font-xs);
}

.dark-only {
  display: none;
}
.dark-view .dark-only {
  display: initial;
}

.light-only {
  display: initial;
}
.dark-view .light-only {
  display: none;
}

/* Document typography */

a,
a:visited {
  color: inherit;
  text-decoration: underline;
  transition: font-weight 0.05s ease-in-out;
  font-weight: bold;
  color: var(--maca-red);
}
a:hover,
a:visited:hover {
  text-decoration-style: double;
  position: relative;
}

body {
  background-color: var(--bcol);
  color: var(--col);
  font-family: var(--font-fam);
  font-size: var(--font-base);
  margin: 0;
  padding: 0;
}

/* Opera page */

.doc.opera article {
  display: grid;
  gap: var(--font-m);
  grid-template-areas: "header header" "desc story" "desc audd" "desc vlis" "desc imgs";
  grid-template-columns: min(62ch, 50vw) 1fr;
  grid-template-rows: repeat(5, auto) 1fr;
  width: 100%;
}
@media only screen and (max-width: 980px) {
  .doc.opera article {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: var(--font-xl);
    grid-template-areas: "header" "story" "audd" "vlis" "desc" "imgs";
  }
}
.doc.opera.qr article {
  grid-template-areas: "header header" "desc audd" "desc story" "desc vlis" "desc imgs";
}
@media only screen and (max-width: 980px) {
  .doc.opera.qr article {
    grid-template-areas: "header" "audd" "story" "vlis" "desc" "imgs";
  }
}
.doc.opera #o-audd {
  grid-area: audd;
}
.doc.opera #o-story {
  grid-area: story;
}
.doc.opera #o-desc {
  grid-area: desc;
}
.doc.opera #o-header {
  grid-area: header;
  padding: var(--font-xl) 0;
  display: flex;
  flex-direction: column;
}
.doc.opera #o-header h1 {
  font-size: var(--font-xxl);
}
.doc.opera #o-header h2 {
  font-size: var(--font-m);
}
.doc.opera #o-header h3 {
  font-size: var(--font-xs);
}
.doc.opera #o-header section > h3:first-of-type {
  font-size: var(--font-m);
}
.doc.opera #o-header h3 > *:not(first-child) {
  display: inline-block;
  padding-left: 0.1em;
}
.doc.opera #o-header h3 > *:not(first-child)::before {
  content: " - ";
}
.doc.opera #o-header h3 > *:first-child {
  padding-left: 0;
}
.doc.opera #o-header h3 > *:first-child::before {
  content: "";
}
.doc.opera #o-header .breadcrumb {
  order: -1;
}
.doc.opera #o-imgs {
  grid-area: imgs;
}
.doc.opera #o-imgs ul.grid {
  gap: 1em;
}
@media only screen and (max-width: 980px) {
  .doc.opera #o-imgs ul.grid {
    gap: 1.2em;
  }
}
@media only screen and (max-width: 480px) {
  .doc.opera #o-imgs ul.grid {
    grid-template-columns: 1fr;
  }
}
.doc.opera #o-vlis {
  grid-area: vlis;
}

figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--hfont-fam);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: var(--font-xxl);
}

h2 {
  font-size: var(--font-l);
}

h3 {
  font-size: var(--font-m);
}

img,
audio,
video {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

p {
  font-size: var(--font-base);
  line-height: var(--line-h);
  margin: 0 0 1rem;
  max-width: 60ch;
}
@media only screen and (max-width: 980px) {
  p {
    max-width: 100%;
    padding-right: 0.2em;
  }
}

svg.logo.maca path.a {
  fill: var(--maca-red);
}

ul {
  list-style-position: inside;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
ul.grid {
  display: grid;
  gap: 0.6em;
}
ul.grid.grid-1 {
  grid-template-columns: repeat(1, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-1 {
    grid-template-columns: repeat(1, 1fr);
  }
}
ul.grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-2 {
    grid-template-columns: repeat(1, 1fr);
  }
}
ul.grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
ul.grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
ul.grid.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
ul.grid.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
ul.grid.grid-7 {
  grid-template-columns: repeat(7, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-7 {
    grid-template-columns: repeat(4, 1fr);
  }
}
ul.grid.grid-8 {
  grid-template-columns: repeat(8, 1fr);
}
@media only screen and (max-width: 980px) {
  ul.grid.grid-8 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Toolbar buttons */

.action-button {
  background-color: var(--bcol);
  font-size: var(--font-m);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--col);
  border-radius: 0.18rem;
  font-weight: bold;
  color: var(--col);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  height: 1.2em;
}
.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--gray);
}
.action-button > svg {
  height: 88%;
  width: auto !important;
}

/* GLightbox overrides */

.glightbox-clean .gslide-description {
  background-color: var(--bcol);
  color: var(--col);
}
.glightbox-clean .gdesc-inner .gslide-title {
  font-family: var(--hfont-fam);
  font-weight: bold;
  margin-top: 0;
  font-size: var(--font-xl);
  color: var(--col);
}
.glightbox-clean .gdesc-inner .gslide-title:only-child {
  margin-bottom: 0;
}
.glightbox-clean .gdesc-inner .gslide-desc {
  font-size: var(--font-base);
  font-family: var(--font-fam);
  color: var(--col);
  line-height: var(--line-h);
  overflow-wrap: anywhere;
}

.glightbox-mobile .glightbox-clean .gslide-description {
  max-height: 45vh;
  overflow-y: auto;
}

/* Opera list */
.opere-list ul {
  margin: 0;
  padding: 0;
  list-style-image: none;
  display: flex;
  gap: 1em;
  margin-top: 2em;
  flex-direction: column;
  flex-wrap: nowrap;
}
@media only screen and (max-width: 980px) {
  .opere-list ul:not(.card) li {
    grid-template-columns: 1fr;
    gap: 1em;
    padding-right: 0;
  }
  .opere-list ul:not(.card) li > a {
    height: auto;
    min-height: 8em;
  }
  .opere-list ul:not(.card) li audio {
    margin: 0 1em 1em;
    width: calc(100% - 2em);
  }
}
.opere-list ul li {
  display: grid;
  grid-template-columns: 1fr 22%;
  align-items: center;
  gap: 2em;
  border-radius: 0.4em;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow:
    0 1px 0 rgba(17, 24, 39, 0.04),
    0 2px 10px -8px rgba(17, 24, 39, 0.35);
  padding-right: 1em;
}
.opere-list ul li > a {
  display: flex;
  flex-direction: row;
  gap: 1em 0;
  height: 10em;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.opere-list ul li > a figure {
  height: 100%;
  aspect-ratio: 1/1;
  background-position: center;
  background-size: cover;
  min-width: 0;
  max-width: 100%;
}
.opere-list ul li > a dl {
  display: block;
  padding: 1em;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.opere-list ul li > a dl dt,
.opere-list ul li > a dl dd {
  margin: 0;
  padding: 0;
  display: inline-block;
  line-height: 1em;
}
.opere-list ul li > a dl dt.autore,
.opere-list ul li > a dl dd.autore {
  display: block;
  font-family: var(--hfont-fam);
  font-size: var(--font-m);
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
}
.opere-list ul li > a dl dt.titolo,
.opere-list ul li > a dl dd.titolo {
  display: block;
  font-family: var(--hfont-fam);
  font-size: var(--font-l);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 0.4rem;
}
.opere-list ul li > a dl dt.info,
.opere-list ul li > a dl dd.info {
  font-size: var(--font-xxs);
  line-height: var(--line-h);
}
.opere-list ul li > a dl dt.info:not(:last-child)::after,
.opere-list ul li > a dl dd.info:not(:last-child)::after {
  content: " • ";
  color: var(--gray);
}
.opere-list ul.card {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 2em;
}
@media only screen and (max-width: 980px) {
  .opere-list ul.card {
    grid-template-columns: 1fr;
  }
}
.opere-list ul.card li {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 0.4em;
  padding-right: 0;
  box-shadow:
    0 1px 0 rgba(17, 24, 39, 0.04),
    0px 0 10px -6px rgba(17, 24, 39, 0.35);
}
.opere-list ul.card li a {
  flex-direction: column;
  height: auto;
  width: 100%;
}
.opere-list ul.card li a figure {
  height: auto;
  width: 100%;
  aspect-ratio: 1/1;
}
.opere-list ul.card li a dl {
  padding: 0 1em;
}
.opere-list ul.card li audio {
  margin: 1em;
  width: calc(100% - 2em);
}

@media only screen and (max-width: 980px) {
  .gslide-inner-content {
    background-color: var(--bcol);
  }
  .glightbox-container .ginner-container {
    position: relative;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 100%;
    margin: auto;
    height: 100vh;
  }
}

main.pagina {
  > h1 {
    font-weight: 600;
    padding: 1em 0 1.4em 0;
  }

  h3 {
    font-weight: 600;
    padding: 0;
    margin: 0;
    text-transform: lowercase;

    &::before {
      content: "";
      display: block;
      width: 4.2em;
      height: 0.2em;
      background-color: var(--maca-red);
      margin-bottom: 0.2em;
    }
    + dl {
      margin-top: 0.4em;
      margin-bottom: 2em;
    }
  }

  h4 {
    margin-bottom: 0;
    font-weight: 400;

    + dl {
      margin-top: 0.4em;
      margin-bottom: 2em;
      margin-left: 1em;
      text-transform: lowercase;
    }
  }

  p {
    font-size: 1em;
    max-width: 80ch;
    margin: 0;
    line-height: 1.3;
  }
  dt {
    font-weight: normal;
    font-size: 1.2em;

    + dd {
      font-size: var(--font-xs);
      margin: 0;
      opacity: 0.8;
      margin-bottom: 1em;
    }
  }
}
