/*! HTML5 Boilerplate v9.0.1 | 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.
 */


 @font-face {
  font-family: 'base_neue_trialsuper_cond';
  src: url('../webfont/baseneuetrial-supercond-webfont.woff2') format('woff2'),
       url('../webfont/baseneuetrial-supercond-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'base_neue_trialsupercondMd';
  src: url('../webfont/baseneuetrial-supercondmedium-webfont.woff2') format('woff2'),
       url('../webfont/baseneuetrial-supercondmedium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}


/**/

:root {

  --black: #000000;
  --black-rgb: 0, 0, 0;

  --dark: #000000;
  --dark-rgb: 0, 0, 0;

  /*
  --dark: #1E171E;
  --dark-rgb: 30, 23, 30;
*/
  --light: #E1E3EF;
  --light-rgb: 255,227,239;

  --white: #FFFFFF;
  --white-rgb: 255, 255, 255;

  --primary: #EC2A2A;
  --primary-rgb: 236, 42, 42;

  --text-default: #43423F;
  --text-default-rgb: 67, 66, 63;

}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== 
*/

html {
  background: var(--dark);
  color: var(--light);
  font-family: "Space Grotesk", serif;
  line-height: 1.3;
}

/*
 * 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
   ========================================================================== 
*/

/*
/* GRID
*/

body { position: relative; margin: 0; }
main { position: relative; }
section { position: relative; }

.container {
  position: relative;
  overflow: hidden;
  padding-left: 5vw;
  padding-right: 5vw;
}
.container.no-padding {
  padding-left: 0;
  padding-right: 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.row-reverse {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

@media only screen and (min-width: 992px) {
  .container {
    padding-left: 4vw;
    padding-right: 4vw;  
  }
  .row-md-reverse {
    flex-direction: row-reverse;
  }
}
@media only screen and (min-width: 1440px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;  
  }
}


/*
/* TYPOGRAPHY
*/
html { font-size: 3vw; }

h1:last-child, .h1:last-child, h2:last-child, .h2:last-child, h3:last-child, .h3:last-child { margin-bottom: 0; }
h1, .h1 { font-family: 'base_neue_trialsupercondMd'; font-weight: normal; letter-spacing: 0.02em; line-height: 1em; text-transform: uppercase; font-size: 6rem; margin-top: 0; }
h2, .h2 { font-family: 'base_neue_trialsupercondMd'; font-weight: normal; letter-spacing: 0.02em; line-height: 1em; text-transform: uppercase; font-size: 4rem; margin-top: 0; }
h3, .h3 { font-weight: normal; letter-spacing: 0.02em; font-size: 2rem; letter-spacing: 0.02em; line-height: 1em; margin-top: 0; }

p { margin: 0; }
p:not(:last-of-type) { margin-bottom: .65em; }

.titoletto { font-family: "Space Mono"; font-size: .6rem; letter-spacing: .03em; text-transform: uppercase; }

@media only screen and (min-width: 768px) {
  h3, .h3 { font-size: 1.5rem } 
}
@media only screen and (min-width: 992px) {
  html { font-size: 2.4vw;}
}

@media only screen and (min-width: 1440px) {
  html { font-size: 1.4vw;}
}
@media only screen and (min-width: 1720px) {
  html { font-size: 1.2vw;}
}


/*
/* COLOURS
*/
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }
.bg-black{ background-color: var(--black); }

.text-white { color: var(--white); }
.text-light { color: var(--light); }
.text-dark { color: var(--dark); }
.text-black { color: var(--black); }
.text-primary { color: var(--primary); }


/* ==========================================================================
   Helper classes
   ========================================================================== 
*/

img { max-width: 100%; }

.background-image { position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; }
.background-image .image { position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-repeat: no-repeat; background-position: center center; background-size: cover;  }
.home .background-image .image { background-size: contain; }

.img-holder {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.img-holder .img {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 400ms ease-out;
}

.prop2by3 { padding-bottom: 150%; }
.prop1by1 { padding-bottom: 100%; }
.prop4by3 { padding-bottom: 75%; }
.prop16by9{ padding-bottom: 56.25%; }
.prop2by1 { padding-bottom: 50%; }


.text-center { text-align: center; }
.uppercase { text-align: center; }


/* ==========================================================================
   Layouts
   ========================================================================== 
*/

/* HEADER & NAV */
header { position: absolute; top:0; left: 0; width: 100%; z-index: 900; padding: 5vw 0 2.5vw; 
  background: rgb(var(--dark-rgb));
  background: linear-gradient(0deg, rgba(var(--dark-rgb),0) 0%, rgba(var(--dark-rgb),1) 100%);
}
header nav { position: relative; display: flex; flex-wrap: wrap; }
header nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; /*margin-left: 1rem;*/ margin-top: auto; }
header nav ul li + li { margin-left: 1rem; }
header nav ul li a { position: relative; font-size: 1rem; color:var(--white); text-transform: uppercase; text-decoration: none; }
header nav ul li a:after { content: ""; position: absolute; left: 0; bottom: -.1em; height: .1em; background: var(--white); width: 0; transition: width .2s ease;  }
header nav ul li a:hover:after { width: 100%;  }

.service-menu { margin-left: auto ;}
@media only screen and  (min-width: 992px) {
  header { padding-top: 4vw;}
  header nav ul li a { font-size: .8rem; }
}
@media only screen and (min-width: 1440px) {
  header { padding-top: 3vw;}
  header nav ul li a { font-size: .6rem; }
}

/* HOMEPAGE */
#home-hero { height: 100vh; }
#home-hero .container { display: flex; height: 100%; flex-direction:column; justify-content: flex-end; z-index: 2; }
#home-hero .container .row { justify-content: center; padding-top: 10rem;
  background: rgb(var(--dark-rgb));
  background: linear-gradient(180deg, rgba(var(--dark-rgb),0) 0%, rgba(var(--dark-rgb),1) 40%);
}
#home-hero h1 { font-size: 14rem; margin: 0; line-height: .9em; text-align: center; letter-spacing: -0.015em; }

#home-hero .background-image { height: calc(100vh - 8rem); }

#home-quote { padding: 3rem 0; }
#home-quote p { font-size: 2em; margin: 0 auto; }

#home-mostre { padding: 3vw 0; background-image: url('../img/sketch.png'); background-repeat: no-repeat; background-position: center center; background-size: cover; }
#home-mostre .row { flex-direction: column; background: var(--primary); color: var(--black); }
#home-mostre .titling { padding: 1rem 1rem .25rem;}

.card-mostra { display: flex; position: relative; flex-direction: column; padding: 1rem; }
.card-mostra:before { content: ""; display: block; position: absolute; top:0; left: 1rem; right: 1rem; height: 1px; background-color: var(--black);}
.card-mostra .titoletto { margin-bottom:1em; } 
.card-mostra .date { font-weight: 300; } 
.card-mostra .luogo { font-weight: 300; } 


#home-opere .titling { padding:3vw 0; }
#home-opere .titling h2 { font-family: "Space Mono"; color:var(--primary); text-transform: none; }

.tile {
  display: block;
  position: sticky; /* responsible for */ 
  top: 0;           /*stacking effect*/
  background-color: var(--dark);
  width: 100%;
  height: 40vw;
  font-size: 5rem;
  border-top: 1px solid #474C49;
  padding: 2rem 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  text-decoration: none;
}
.tile::before {content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 1; transition: all 600ms ease;
  background: rgb(var(--dark-rgb));
  background: linear-gradient(0deg, rgba(var(--dark-rgb),.3) 0%, rgba(var(--dark-rgb),1) 100%);
}
.tile:hover::before { opacity: .5; }

.tile h3 { color: rgba(var(--white-rgb),.5); }
.tile:hover h3 { color: rgba(var(--primary-rgb),1); }
/*
.tile::after {content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 50%;
  background: rgb(var(--dark-rgb));
  background: linear-gradient(180deg, rgba(var(--dark-rgb),0) 0%, rgba(var(--dark-rgb),1) 100%);
}
*/

#home-shop { padding: 3vw 0;}


@media only screen and  (min-width: 768px) {
  #home-hero h1 { font-size: 8rem; line-height: .8em; }
}
@media only screen and  (min-width: 992px) {
  #home-hero h1 { font-size: 10rem; }
  #home-mostre { padding: 4vw 0;}
  #home-mostre .row { flex-direction: row; flex-wrap: nowrap; }
  .card-mostra { width: 50%; }
  .card-mostra:before { top:1rem; bottom:1rem; left:0; right: auto; height: auto; width: 1px; }
  #home-opere { padding: 4vw 0;}
  #home-shop { padding: 4vw 0;}


}
@media only screen and (min-width: 1440px) {
  #home-hero h1 { font-size: 16rem; }
  #home-mostre { padding: 5vw 0;}
  .card-mostra { padding: 1rem 1.5rem; }
  #home-opere { padding: 5vw 0;}
  #home-shop { padding: 5vw 0;}
}



/* Single opera */
#opera-hero { height: calc(100vh - 10rem); }
#opera-hero .container { display: flex; height: 100%; flex-direction:column; justify-content: flex-end; z-index: 2;
  background: rgb(var(--dark-rgb));
  background: linear-gradient(180deg, rgba(var(--dark-rgb),0) 0%, rgba(var(--dark-rgb),1) 100%);
}


.modulo { position: relative; padding: 5vw 0; }
.modulo + .modulo { padding-top: 2.5vw; } 
/* .modulo:has( + .modulo) { padding-bottom: 2.5vw; }  */

.modulo > * { width: 100%; }
.modulo > * + * { margin: 2.5vw 0; }

.frase-in-evidenza p { font-size: 1.5em; }

.modulo a { display: block; width: 100%; }
.modulo a img { width: 100%; height: auto; }

@media only screen and  (min-width: 992px) {
  .modulo { padding: 4vw 0; }
  .modulo + .modulo { padding-top: 2vw; } 
  .modulo:has( + .modulo) { padding-bottom: 2vw; } 
  .testo-immagine { justify-content: space-between; }
  .testo-immagine .testo { display: flex; flex-direction: column; justify-content: center; width:calc(50% - 2.5vw); }
  .testo-immagine .immagine { display: flex; flex-direction: column; justify-content: center; width:calc(50% - .5vw); }
}
@media only screen and  (min-width: 1440px) {
  .modulo { padding: 5vw 0; }
  .modulo + .modulo { padding-top: 2.5vw; } 
  .modulo:has( + .modulo) { padding-bottom: 2.5vw; }
  .frase-in-evidenza p { max-width: 24em; }
  .titolo-testo .titolo { position: relative; width: 40%; padding-right: 5vw; box-sizing: border-box; }
  .titolo-testo .titolo:after { content: "—"; position: absolute; bottom: -.5rem; left: 0; color: var(--primary);}
  .titolo-testo .testo { width: 60%; }

}


footer { padding: 6vw 0 3vw;}
footer .row { justify-content: space-between; }
footer .row * { width:33.3333%; }
footer .row .firma { }
footer .row .email { text-align: center; }
footer .row .powered { text-align: right; }


/*
 * 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;
  }
}

