/* Tavolozza colore */
:root {
  --accent: gold;
  --dark: black;
  --secondary: #d6be6c;
  --light: #ffffff;
  --primary: #84754e;
}

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

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

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

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

.container {
  max-width: 1920px;
  margin: 0 auto;
  display: inline-block;
}

/* Layout */
section {
  padding: 15px;
}

/* Tipografia */
body {
  font-family: 'DM Serif Display', serif;
  background: var(--dark);


}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Caslon Display', serif;
  color: var(--light);
  font-size: 25px;
}

.cover__logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.cover__logo img {
  width: 200px;
}

div .autore {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  /* flex-direction: column;
  align-items: center; */
}

h2.autore {
  margin-right: 70px;
  margin-left: 70px;
  font-family: 'DM Serif Display', serif;
  font-size: 2em;
  color: var(--primary);
  line-height: 1.2em;
  /* flex-wrap: wrap; */
}

.icons {
  margin-left: 70px;

}

.icons a {
  /* display: block; */
  flex-wrap: wrap;
  justify-content: left;
  color: var(--secondary);
  font-size: 2em;
  padding: 10px;
}

/* header */
header.cover {
  padding: 20px;
  height: 90px;
  position: absolute;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

}


/* Hero */
.hero__text,
.hero__cover {
  width: 55%;
  display: flex;
  justify-content: center;
  padding: 15px;

}

.hero {
  display: flex;
  align-items: center;
  max-width: 100%;
  justify-content: center;
}

h1.primary {
  font-size: 4em;
  color: var(--secondary);
  font-family: 'DM Serif Display', serif;
  text-align: center;
  /* align-items: center;
  justify-content: center;
  flex-direction: column; */
}

p.leading {
  font-size: 40px;
  line-height: 1.2em;
  color: var(--light);
  margin-right: 50px;
  margin-left: 50px;
  /* flex-wrap: wrap; */
  font-family: 'DM Serif Display', serif;
}

p.video {
  font-size: 40px;
  line-height: 1.2em;
  color: var(--secondary);
  margin-right: 25%;
  margin-left: 25%;
  /* flex-wrap: wrap; */
  font-family: 'DM Serif Display', serif;
}


p {
  font-size: 1.2em;
  line-height: 1em;
  color: var(--light);
  max-width: 800px;
  padding: 20px;
  font-family: 'Libre Caslon Display', serif;
}

.arrow {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.arrow span {

  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 5px solid var(--accent);
  border-right: 5px solid var(--accent);
  transform: rotate(45deg);
  margin: -10px;
  animation: scroll 2s infinite
}

.arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }

  50% {
    opacity: 1;

  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
}

#wrap {
  position: relative;
  overflow: hidden;
}

section {
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 1em;
  /* color: hsla(0, 0%, 100%, .8); */

}

section:first-child {
  justify-content: center;
}

section .video {
  display: flex;
  justify-content: center;
  margin-top: 5%;

}

.video {
  text-align: center;
}

section:nth-child(2) {
  text-align: left;
  font-size: 2em;
}

section:nth-child(3) {
  text-align: left;
  font-size: 2em;
}

section:nth-child(4) {
  text-align: left;
  font-size: 2em;
}

section:nth-child(5) {
  text-align: left;
  font-size: 2em;
}

section:nth-child(6) {
  text-align: left;
  font-size: 2em;
}

/* cta */
.cta-group {
  font-size: 5em;
  display: flex;
  /* gap: 10px; */
  flex-wrap: wrap;
  margin-top: 100px;
  margin-bottom: 40px;
  flex-direction: column;
  align-content: center;
  flex-wrap: wrap;
  text-align: center;

}

section .cta-group {
  align-items: center;
}

.cta__primary,
.cta__secondary {
  padding: 10px 15px;
  font-weight: 900;
}

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

.cta__primary:hover {
  color: var(--light);
  transition: 0.3s cubic-bezier(.54, .54, .54, .54)
}

.cta__secondary {
  color: var(--secondary);
}

.cta__secondary:hover {
  color: var(--light);
  transition: 0.3s cubic-bezier(.54, .54, .54, .54)
}

/* swiper */

.swiper {
  width: 60%;
  height: 80%;
  align-items: center;
  box-sizing: border-box;
}

.swiper-slide {
  margin-top: 10em;
  background-position: center;
  background-size: cover;
  width: 250px;
  flex-direction: column;

}

.swiper-slide img {
  display: block;
  width: 100%;
}

#indicator {
  position: absolute;
  top: 0px;
  left: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#indicator>div {
  background-color: var(--primary);
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin: 10px;
  cursor: pointer;
}

#indicator>div.active {
  transform: scale(1.8);

}

/* -------------------------------------------------------------------------------- */
/* ! mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width: 992px) {

  .cover__logo img {
    margin-left: 0px;
    width: 300px;
  }

  h1.primary {
    font-size: 6em;
    flex-direction: column;
    align-items: center;
    margin-left: 70px;
  }


  .hero {
    flex-direction: column;
  }

  h2.autore {
    font-size: 40px;
    margin-right: 100px;
    margin-left: 100px;
  }

  p.leading {
    font-size: 40px;
    line-height: 1.2em;
    color: var(--light);
    margin-right: 90px;
    margin-left: 90px;
    font-family: 'DM Serif Display', serif;
  }

  section .video {
    display: flex;
    justify-content: center;
    margin-top: 30%;
  }

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

  .icons a {
    font-size: 5em;

  }

  .icons {
    margin-right: 90px;
    margin-left: 90px;
  }

  #indicator>div {
    width: 20px;
    height: 20px;
    border-radius: 10px;

  }

  .arrow span {
    width: 50px;
    height: 50px;

  }


  p.video {
    font-size: 60px;
    font-family: 'DM Serif Display', serif;
  }

}