/* Tavolozza colore */
:root {
  --accent: #ee581d;
  --dark: #050400;
  --secondary: #9ad6f0;
  --light: #fafafa;
  --primary: #dfa237;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

/* Utility */
html {
  scroll-behavior: smooth;
}

.res {
  width: 100%;
  max-width: 560px;
}

.container {
  margin: 0 auto;
  padding: 20px;
}

/* Layout */
section {
  /* padding: 15px; */
  margin: 20px 0;
}

/* Tipografia */
body {
  font-family: "neue-haas-grotesk-display", sans-serif;
}

/* body.dark {
  background: var(--dark);
  color: var(--light);
} */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "neue-haas-grotesk-display", sans-serif;
}

h2 {
  display: flex;
  flex: wrap;
  justify-content: center;
}

p.leading {
  font-size: 1.6em;
  line-height: 1.6em;
}

p {

  font-size: 1.4em;
  line-height: 1.4em;
}

ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;

}

/* header */

header.cover {
  background: url(../img/dune\ poster.jpg) no-repeat center center;
  background-size: cover;
  color: var(--dark);
  margin: aut;
  display: block;
  justify-content: space-between;
  height: 300px;
  font-family: 'Rubik Mono One', monospace;
  padding: 15px;
  transition: 0.8s cubic-bezier(.51, .15, .2, .95);
}

.cover .container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
}


.cover.active {
  height: 300px
}

.container .cover__logo {
  max-width: 600px;
}

.cover__logo img {
  height: 80px;
  filter: invert(1);
}

.cover__menu {
  order: 3;
  width: 100%;
  visibility: hidden;
}

.cover.active .cover__menu {
  visibility: visible;
}

header h2 {
  color: var(--light);
  font-size: 4.5em;
}

.cover__menu a {
  color: var(--light);
  font-size: 1.8em;

}

.cover__menu li {
  text-align: right;
}

.cover__hb {
  color: var(--light);
  font-size: 1.6em;
}

/* div.cover__logo h2 {
  margin-left: 20px;
} */

/* Hero */
.hero {
  margin: auto;
  display: block;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 20px;
  padding: 20px;
  text-align: center;
}

.hero__text,
.hero__cover {
  padding: 20px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.hero__cover img {
  height: 400px;
}


.hero h1 {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 2em;
}

.hero h2 {
  font-family: 'Rubik Mono One', monospace;
  font-size: 1.2em;

}

.hero p {
  padding-top: 20px;
  font-size: 1.3em;
}

/* Autore */
.content__autore {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.content p {
  padding-top: 20px;
  font-size: 1.3em;
}

.content__autore {
  text-align: center;
  margin: 0;
  padding: 20px;
  gap: 20px;
}

.content__autore {
  color: var(--light);
}

.content__autore h2 {
  font-size: 2em;
  font-family: 'Rubik Mono One', monospace;
}

.autore__cover {
  padding: 50px auto;
}

.autore__cover img {
  height: 350px;
}

.content__sinossi {
  text-align: center;
  color: var(--light);
}

.content__sinossi h2 {
  font-size: 2em;
  font-family: 'Rubik Mono One', monospace;
}

/* More Works */

.content__altro {
  margin-top: 40px;
}

.content__altro h2 {
  font-size: 2em;
  font-family: 'Rubik Mono One', monospace;
}

/*  ! Carte scorrevoli */

.slider {
  display: flex;
  position: relative;
  aspect-ratio: 3/5;
  max-width: 300px;
  margin: 50px auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

input[type=radio] {
  display: none;
}

.slider label,
.slider label img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 400ms ease;
}

/* Slider Functionality */

/* Active Slide */
#s1:checked~#slide1,
#s2:checked~#slide2,
#s3:checked~#slide3,
#s4:checked~#slide4,
#s5:checked~#slide5 {
  transform: translate3d(0%, 0, 0px);
  opacity: 100%;
  transition: all 0.5s ease-in-out;
}

/* Next Slide */
#s1:checked~#slide2,
#s2:checked~#slide3,
#s3:checked~#slide4,
#s4:checked~#slide5,
#s5:checked~#slide1 {
  transform: translate3d(27%, 0, -100px);
  opacity: 90%;
  transition: all 0.5s ease-in-out;
}


/* Next to Next Slide */
#s1:checked~#slide3,
#s2:checked~#slide4,
#s3:checked~#slide5,
#s4:checked~#slide1,
#s5:checked~#slide2 {
  transform: translate3d(54%, 0, -250px);
  opacity: 90%;
  transition: all 0.5s ease-in-out;
}

/* Previous to Previous Slide */
#s1:checked~#slide4,
#s2:checked~#slide5,
#s3:checked~#slide1,
#s4:checked~#slide2,
#s5:checked~#slide3 {
  transform: translate3d(-54%, 0, -250px);
  opacity: 90%;
  transition: all 0.5s ease-in-out;
}

/* Previous Slide */
#s1:checked~#slide5,
#s2:checked~#slide1,
#s3:checked~#slide2,
#s4:checked~#slide3,
#s5:checked~#slide4 {
  transform: translate3d(-27%, 0, -100px);
  opacity: 90%;
  transition: all 0.5s ease-in-out;
}

/* cta */
.cta-group {
  font-size: 1.5em;
  font-family: 'Rubik Mono One', monospace;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content: center;
}

.cta__primary,
.cta__secondary {
  border: 2px solid var(--primary);
  padding: 10px 20px;
  font-weight: 900;
}

.cta__primary {
  background: var(--primary);
  color: var(--light);
}

.cta__primary:hover {
  background: var(--accent);
  border: 2px solid var(--accent);
}

.cta__secondary {
  background: var(--light);
  color: var(--primary);
}

.cta__secondary:hover {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--light);
}

.content__sinossi {
  background-color: var(--primary);
  padding: 25px;
}

.content__autore {
  background-color: var(--accent);
  padding: 25px;
}

footer {
  background: url(../img/dune\ footer.jpg) no-repeat center center;
  background-size: cover;
  height: 260px;
  padding: 15px;
}

footer .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

footer .container h3 {
  font-size: 1.5em;
  color: var(--light);
}


.footer a {
  padding-right: 20px;
  gap: 30px;
  color: var(--light);

}

footer .container img {
  filter: invert(1);
  height: 70px;
}

summary::marker {
  font-size: 1.6em;
  content: "📬";
}

[open] summary::marker {
  content: "📭";
}

/* Popup */
.content__newsletter {
  display: flex;
  justify-content: center;
}

button {
  display: block;
  /* background: var(--primary);
  color: var(--light);
  padding: 15px; */
  /* width: fit-content; */
  border: 0;
  cursor: pointer;
}

.popup-wrapper {
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

.popup {
  background: var(--dark);
  color: var(--light);
  width: 100%;
  max-width: 600px;
  margin: 5% auto;
  padding: 15px;
  z-index: 2;
  position: relative;
}

.popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
}

.cover .container {
  overflow: hidden;
  margin: 0 auto;
}

.cover .container .cover__logo,
.cover .container .cover__menu,
.cover .container .cover__hb {
  max-width: 100%;
  margin: 5px;
  /* Evita margini troppo grandi */
  box-sizing: border-box;
}


/* Punto di interruzione per dispositivi small */
@media (max-width: 768px) {
  header.cover {
    height: 180px;
  }

  .cover .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
  }

  .cover__logo img {
    margin: 0 auto;
    height: 40px;

  }

  .slider {
    max-width: 180px;
  }



  /* ! Punto di interruzione per dispositivi medium */
  @media(min-width: 768px) {

    .cover {
      height: 180px;
    }

    .cover .container {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .cover__menu {
      all: unset;
    }

    .cover__menu li {
      display: inline-block;
      margin-left: 15px;
    }

    .cover__hb {
      display: none;
    }

    .hero {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero__text {
      width: 50%;
    }

    .hero__cover {
      width: 50%;
      display: flex;
      flex-direction: row;
      justify-content: center;
    }

    .content {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      margin-top: 20px;
    }

    .content__sinossi {
      width: 65%;
    }

    .content__autore {
      width: 65%;
    }

    .autore__cover {
      display: flex;
      padding: 20px;
    }

    .content__eventi {
      width: 100%;
      margin-top: 20px;
    }

    .hero__cover {
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: center;
    }
  }

  /* ! Punto di interruzione per dispositivi larghi */
  @media(min-width: 992px) {
    /* 
    .container {
      display: flex;
      flex-direction: column;
      flex: wrap;
      justify-content: center;
    }

    .content {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      margin-top: 20px;

    } */

    .content__sinossi {
      width: 100%;
    }

    .content__autore {
      width: 100%;

    }

    .content__altro {
      width: 100%;
      margin-top: 20px;

    }

    .hero {
      flex-direction: row;
      padding: 40px;
      gap: 60px;
    }

    .hero__text {
      max-width: 700px;
    }

    .hero__cover {
      max-width: 700px;
    }

    .cta-group {
      display: flex;
    }

    ul {
      all: unset;
    }

  }


  /* ! Mailchimp */
  /* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */
  #mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    margin: 20px
  }

  #mc_embed_signup h2 {
    font-weight: bold;
    padding: 0;
    margin: 15px 0;
    font-size: 1.4em;
  }

  #mc_embed_signup input {
    border: 1px solid #ABB0B2;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  #mc_embed_signup input[type=checkbox] {
    -webkit-appearance: checkbox;
  }

  #mc_embed_signup input[type=radio] {
    -webkit-appearance: radio;
  }

  #mc_embed_signup input:focus {
    border-color: #333;
  }

  #mc_embed_signup .button {
    clear: both;
    background-color: var(--primary);
    border: 0 none;
    border-radius: 4px;
    transition: all 2s ease-in-out 0s;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: normal;
    height: 32px;
    line-height: 32px;
    margin: 0 5px 10px 0;
    padding: 0 22px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    width: fit-content;
    width: -moz-fit-content;
  }

  #mc_embed_signup .button:hover {
    background-color: var(--accent);
  }

  #mc_embed_signup .small-meta {
    font-size: 11px;
  }

  #mc_embed_signup .nowrap {
    white-space: nowrap;
  }

  #mc_embed_signup .mc-field-group {
    clear: left;
    position: relative;
    width: 96%;
    padding-bottom: 3%;
    min-height: 50px;
    display: grid;
  }

  #mc_embed_signup .size1of2 {
    clear: none;
    float: left;
    display: inline-block;
    width: 46%;
    margin-right: 4%;
  }

  * html #mc_embed_signup .size1of2 {
    margin-right: 2%;
    /* Fix for IE6 double margins. */
  }

  #mc_embed_signup .mc-field-group label {
    display: block;
    margin-bottom: 3px;
  }

  #mc_embed_signup .mc-field-group input {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-indent: 2%;
  }

  #mc_embed_signup .mc-field-group select {
    display: inline-block;
    width: 99%;
    padding: 5px 0;
    margin-bottom: 2px;
  }

  #mc_embed_signup .mc-address-fields-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
  }

  #mc_embed_signup .mc-sms-phone-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
    padding-top: 5px;
  }

  #mc_embed_signup .datefield,
  #mc_embed_signup .phonefield-us {
    padding: 5px 0;
  }

  #mc_embed_signup .datefield input,
  #mc_embed_signup .phonefield-us input {
    display: inline;
    width: 60px;
    margin: 0 2px;
    letter-spacing: 1px;
    text-align: center;
    padding: 5px 0 2px 0;
  }

  #mc_embed_signup .phonefield-us .phonearea input,
  #mc_embed_signup .phonefield-us .phonedetail1 input {
    width: 40px;
  }

  #mc_embed_signup .datefield .monthfield input,
  #mc_embed_signup .datefield .dayfield input {
    width: 30px;
  }

  #mc_embed_signup .datefield label,
  #mc_embed_signup .phonefield-us label {
    display: none;
  }

  #mc_embed_signup .indicates-required {
    text-align: right;
    font-size: 11px;
    margin-right: 4%;
  }

  #mc_embed_signup .asterisk {
    color: #e85c41;
    font-size: 150%;
    font-weight: normal;
    position: relative;
    top: 5px;
  }

  #mc_embed_signup .clear {
    clear: both;
  }

  #mc_embed_signup .foot {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 96%;
    align-items: center;
  }

  @media screen and (max-width:400px) {
    #mc_embed_signup .foot {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      align-items: center;
    }
  }

  @media screen and (max-width:400px) {
    #mc_embed_signup .referralBadge {
      width: 50%;
    }
  }

  #mc_embed_signup .brandingLogo {
    justify-self: right;
  }

  @media screen and (max-width:400px) {
    #mc_embed_signup .brandingLogo {
      justify-self: left;
    }
  }

  #mc_embed_signup .mc-field-group.input-group ul {
    margin: 0;
    padding: 5px 0;
    list-style: none;
  }

  #mc_embed_signup .mc-field-group.input-group ul li {
    display: block;
    padding: 3px 0;
    margin: 0;
  }

  #mc_embed_signup .mc-field-group.input-group label {
    display: inline;
  }

  #mc_embed_signup .mc-field-group.input-group input {
    display: inline;
    width: auto;
    border: none;
  }

  #mc_embed_signup div#mce-responses {
    float: left;
    top: -1.4em;
    padding: 0em .5em 0em .5em;
    overflow: hidden;
    width: 90%;
    margin: 0 5%;
    clear: both;
  }

  #mc_embed_signup div.response {
    margin: 1em 0;
    padding: 1em .5em .5em 0;
    font-weight: bold;
    float: left;
    top: -1.5em;
    z-index: 1;
    width: 80%;
  }

  #mc_embed_signup #mce-error-response {
    display: none;
  }

  #mc_embed_signup #mce-success-response {
    color: #529214;
    display: none;
  }

  #mc_embed_signup label.error {
    display: block;
    float: none;
    width: auto;
    margin-left: 1.05em;
    text-align: left;
    padding: .5em 0;
  }

  #mc_embed_signup .helper_text {
    color: #8d8985;
    margin-top: 2px;
    display: inline-block;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
  }

  #mc-embedded-subscribe {
    clear: both;
    width: auto;
    display: block;
    margin: 1em 0 1em 5%;
  }

  #mc_embed_signup #num-subscribers {
    font-size: 1.1em;
  }

  #mc_embed_signup #num-subscribers span {
    padding: .5em;
    border: 1px solid #ccc;
    margin-right: .5em;
    font-weight: bold;
  }

  #mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    display: inline-block;
    margin: 2px 0 1em 0;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
    color: #e85c41;
  }

  #mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
    border: 2px solid #e85c41;
  }

  #mc-embedded-subscribe-form input[type=checkbox] {
    display: inline;
    width: auto;
    margin-right: 10px;
  }

  #mergeRow-gdpr {
    margin-top: 20px;
  }

  #mergeRow-gdpr fieldset label {
    font-weight: normal;
  }

  #mc-embedded-subscribe-form .mc_fieldset {
    border: none;
    min-height: 0px;
    padding-bottom: 0px;
  }
}