﻿/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
  abbr[title]::after {
    content: " (" attr(title) ")";
  }
  /*
    * Don't show links that are fragment identifiers,
    * or use the `javascript:` pseudo protocol
    */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
:root {
  --font-fam: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-fam);
  font-size: medium;
}

h1, h2 {
  font-family: var(--font-fam);
  font-weight: normal;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 3em;
  font-weight: 300;
}

.col-center, #viewport > article, #viewport .intro {
  width: 80%;
  max-width: 1480px;
}
@media (max-width: 418px) {
  .col-center, #viewport > article, #viewport .intro {
    width: 96%;
  }
}

a.button, a.button:visited {
  text-decoration: none;
  color: inherit;
  border: 1px solid #c7c6c6;
  padding: 0em 0.4em 0.2em 0.4em;
  border-radius: 0.2em;
  text-align: center;
  line-height: 1.4em;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  transition: all 0.4s;
  display: inline-block;
}
a.button:hover, a.button:visited:hover {
  background-color: #999;
  color: white;
}

#viewport {
  width: 100%;
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
}
#viewport > header {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}
#viewport > header > div {
  display: flex;
  grid-template-columns: 1fr auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-end;
  justify-content: space-between;
  align-items: baseline;
}
@media (max-width: 418px) {
  #viewport > header > div h1 {
    font-size: 2em;
  }
}
#viewport > header a, #viewport > header a:visited {
  color: inherit;
  text-decoration: none;
}
#viewport > .intro {
  column-count: 3;
  column-fill: balance;
}
#viewport > .intro.c2 {
  column-count: 2;
}
#viewport > .intro h1 {
  line-height: 1.1em;
  font-size: 1.2em;
  break-after: column;
  break-before: avoid;
  break-inside: avoid;
}
#viewport > .intro h1 + p {
  margin-top: 0;
}
@media (max-width: 418px) {
  #viewport > .intro h1 + p {
    margin-top: 2em;
  }
}
@media (max-width: 418px) {
  #viewport > .intro {
    column-count: 1;
  }
  #viewport > .intro h1 {
    font-size: 2em;
  }
}
#viewport > article, #viewport .intro {
  padding: 2rem 0;
}
@media (max-width: 418px) {
  #viewport > article, #viewport .intro {
    padding: 0;
  }
}
#viewport > article .gall, #viewport .intro .gall {
  width: 100%;
}
#viewport > article .gall > header, #viewport .intro .gall > header {
  font-size: 1.8em;
  font-weight: lighter;
  padding: 2rem 0;
  margin-top: 2rem;
  text-transform: lowercase;
}
@media (max-width: 418px) {
  #viewport > article .gall > header, #viewport .intro .gall > header {
    margin-top: 0;
    padding-left: 1em;
  }
}
#viewport > article .gall .grid, #viewport .intro .gall .grid {
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style-type: none;
  list-style-position: inside;
  display: grid;
  grid-gap: 0.2rem;
}
#viewport > article .gall .grid:has(.audiobox), #viewport .intro .gall .grid:has(.audiobox) {
  grid-column-gap: 2rem;
}
#viewport > article .gall .grid.lavori-sonori header, #viewport .intro .gall .grid.lavori-sonori header {
  color: white;
  text-shadow: 2px 0px 4px black;
  font-weight: normal;
  color: white;
  padding: 1em;
  letter-spacing: 0.02em;
  font-size: 1em !important;
}
@media (max-width: 418px) {
  #viewport > article .gall .grid.lavori-sonori, #viewport .intro .gall .grid.lavori-sonori {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 418px) {
  #viewport > article .gall .grid, #viewport .intro .gall .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #viewport > article .gall .grid:has(.audiobox), #viewport .intro .gall .grid:has(.audiobox) {
    grid-template-columns: 1fr;
    grid-row-gap: 2rem;
    width: calc(100% - 2em);
    padding: 1em;
  }
}
#viewport > article .gall .grid .item, #viewport .intro .gall .grid .item {
  width: 100%;
  display: flex;
  min-height: 300px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: row;
  align-items: flex-end;
  align-content: flex-start;
  justify-content: flex-start;
  text-decoration: none;
}
@media (max-width: 418px) {
  #viewport > article .gall .grid .item, #viewport .intro .gall .grid .item {
    min-height: 150px;
  }
}
#viewport > article .gall .grid .item.audiobox, #viewport .intro .gall .grid .item.audiobox {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-row-gap: 1rem;
  grid-column-gap: 1rem;
  align-items: flex-end;
}
#viewport > article .gall .grid .item.audiobox audio, #viewport .intro .gall .grid .item.audiobox audio {
  width: 100%;
  border-radius: 0;
}
#viewport > article .gall .grid .item.audiobox img, #viewport .intro .gall .grid .item.audiobox img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
@media (max-width: 418px) {
  #viewport > article .gall .grid .item.audiobox > audio, #viewport .intro .gall .grid .item.audiobox > audio {
    width: 100%;
    margin-bottom: 2rem;
  }
}
#viewport > article .gall .grid .item.audiobox > audio, #viewport .intro .gall .grid .item.audiobox > audio {
  border-radius: 0;
}
#viewport > article .gall .grid .item > header, #viewport .intro .gall .grid .item > header {
  font-size: 1.4em;
  line-height: 1.1em;
}
@media (max-width: 418px) {
  #viewport {
    width: 100vw;
  }
  #viewport > article {
    width: 100%;
  }
}

.index > header {
  height: 100vh;
  background-image: url(/media/banner_d.jpg);
  background-position: center center;
  background-size: cover;
  width: 100%;
  color: white;
}
@media (max-width: 418px) {
  .index > header {
    background-image: url(/media/banner_m.jpg);
    color: black;
    align-items: flex-end;
    color: white;
  }
  .index > header > div {
    height: 40vh;
    flex-direction: column !important;
    justify-content: start !important;
    row-gap: 2rem;
    padding-left: 2rem;
  }
  .index > header > div h1 {
    font-size: 3em;
    line-height: 1em;
    text-transform: lowercase;
    max-width: 5em;
  }
}
@media (max-width: 418px) and (max-width: 418px) {
  .index > header > div h1 {
    font-size: 2.6em !important;
    line-height: 1em;
    opacity: 0.8;
  }
}

.event > header {
  margin-bottom: 2rem;
}
.event h2 {
  font-weight: 600;
  font-size: 2em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 0.1em;
}
@media (max-width: 418px) {
  .event h2 {
    font-weight: lighter;
    font-size: 1.6em;
    line-height: 1em;
    margin-bottom: 2rem;
  }
}
.event h2 a {
  text-decoration: inherit;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.event h2 svg {
  fill: rgba(0, 0, 0, 0.4);
  height: 0.8em;
  transition: all 1s;
  transform: translateY(0.05em);
}
@media (max-width: 418px) {
  .event h2 svg {
    transform: translateY(0.15em);
  }
}
.event h2 svg:hover {
  fill: black;
}

.bio > article p {
  max-width: 36em;
  line-height: 1.4em;
  font-size: 1.1em;
}

.lightbox .lb-image {
  border-width: 0px;
}
.lightbox .lb-data .lb-close {
  width: 15px;
  height: 15px;
  background-size: contain;
}
.lightbox .lb-nav a.lb-next {
  background-size: 2em;
}
.lightbox .lb-nav a.lb-prev {
  background-size: 2em;
}
