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

a {
  text-decoration: none;
  color: var(--dark);
}


li {
  list-style-type: none;
}

li a:hover {
  text-decoration: underline;
}


/* Utilità */
.res {
  width: 100%;
  max-width: 500px;
}

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

html {
  scroll-behavior: smooth;
}


/* Tavolozza colore */
:root {
  --primary: #262626;
  --secondary: #eeeeee;
  --accent: #520414;
  --light: #ffffff;
  --dark: #000000;
}

/* Tipografia */
body {
  font-family: 'Poppins', sans-serif;
}


.title,
.subtitle,
.headline {
  font-family: 'Poppins', sans-serif;
}


p {
  font-size: 1.4em;
  line-height: 1.5em;
  color: var(--dark);
}


.paragrafo {
  font-size: 17.5px;
  font-weight: 500;
  line-height: 19px;
}


.paolabarocchi a {
  color: var(--light);
}

.fondazione a {
  color: var(--light);
}

.rivista a {
  color: var(--light);
}

.spes a {
  color: var(--light);
}

/* Macro */
.wrapper {
  width: 100%;
  margin: 0 auto;
}

section {
  scroll-margin-top: 60px;
  padding-top: 50px;
}

hr {
  border: 0;
  height: 1px;
  background: #333;
  background-image: linear-gradient(to right, rgb(135, 135, 135), rgb(58, 58, 58), rgb(135, 135, 135));
  margin-top: 45px;
}

/* Header */
.fixed {
  position: fixed;
  background: var(--secondary);
  width: 100%;
  z-index: 4;
}

.header {
  position: relative;
  max-width: 1350px;
  margin-left: 65px;
  height: 60px;
  display: flex;
  margin-top: 40px;
  justify-content: space-between;
}

.header__icon {
  display: none;
}

.scorre {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 600;
  padding-top: 40px;
}


/* NEWSLETTER */
.nl {
  background-color: var(--light);
  padding: 90px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.footer_newsletter_title {
  color: var(--dark);
  text-align: center;
  font-size: 2.1em;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.cover__content2 {
  display: flex;
  position: relative;
  z-index: 2;
  color: var(--dark);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.signup-btn {
  width: 300px;
  padding: 15px 0;
  text-align: center;
  margin: 10px 10px;
  margin-top: 30px;
  border-radius: 2px;
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.login-btn {
  width: 300px;
  padding: 15px 0;
  text-align: center;
  margin: 10px 10px;
  margin-top: 30px;
  border-radius: 2px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#footer__newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gs-small {
  color: var(--dark);
  text-align: center;
  font-size: 1em;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--secondary);
}

.contatti__elenco,
.policy__elenco {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 18px;
  padding-top: 5px;
}

.contatti,
.policy,
.social {
  padding-left: 50px;
}

.social__elenco {
  font-size: 30px;
  padding-top: 5px;
  padding-right: 200px;
}

h3 {
  font-size: 15px;
}

/* BTT */
.btt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary);
  font-size: 20px;
  z-index: 3;
  padding: 10px;
  border-radius: 10px;

}

.btt__icon {
  color: var(--dark);
}

/* BTT */


/* navigazione primaria */
.site-nav li {
  display: inline;
  z-index: 999;
}

.site-nav a {
  padding: 10px;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  z-index: 999;
}

.fa-solid {
  color: var(--dark);
  font-size: 24px;
}

.fa-solid:hover {
  font-size: 27px;
}

/* Cover */
.cover {
  background: var(--light);
  background-size: cover;
  display: flex;
  height: 40vh;
  position: relative;
}

.cover__content {
  z-index: 3;
  padding-top: 180px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 600;
}

.row {
  border-top: 1px solid #a5a5a5;
  border-bottom: 1px solid #a5a5a5;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* -------------------------------------------------------------------------------- */
/* ! Grid System */
/* -------------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid h2 {
  grid-column: 1/9;
}

.grid menu {
  grid-column: 1/9;
}

.cover__content {
  grid-column: 1/5;
}

figure figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
}

.paolabarocchi {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 50px;
}

.paolabarocchi img {
  width: 100%;
  -moz-transition: 800ms;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
}

.paolabarocchi figcaption {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  position: absolute;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
  width: 100%;
  cursor: pointer;
}

.paolabarocchi[data-effect="fade-in"] figcaption {
  top: 0;
  left: 0;
  height: 99%;
  opacity: 0;
}

.paolabarocchi[data-effect="fade-in"]:hover figcaption {
  opacity: 1;
}

.fondazione {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 50px;
}

.fondazione img {
  width: 100%;
  -moz-transition: 800ms;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
}

.fondazione figcaption {
  background: rgba(224, 73, 31, 0.8);
  color: #fff;
  position: absolute;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
  width: 100%;
  cursor: pointer;
}

.fondazione[data-effect="fade-in"] figcaption {
  top: 0;
  left: 0;
  height: 99%;
  opacity: 0;
}

.fondazione[data-effect="fade-in"]:hover figcaption {
  opacity: 1;
}

.rivista {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 50px;
}

.rivista img {
  width: 100%;
  -moz-transition: 800ms;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
}

.rivista figcaption {
  background: rgba(228, 42, 86, 0.8);
  color: #fff;
  position: absolute;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
  width: 100%;
  cursor: pointer;
}

.rivista[data-effect="fade-in"] figcaption {
  top: 0;
  left: 0;
  height: 99%;
  opacity: 0;
}

.rivista[data-effect="fade-in"]:hover figcaption {
  opacity: 1;
}

.spes {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 50px;
}

.spes img {
  width: 100%;
  -moz-transition: 800ms;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
}

.spes figcaption {
  background: rgba(66, 121, 10, 0.8);
  color: #fff;
  position: absolute;
  -webkit-transition: 800ms;
  -o-transition: 800ms;
  transition: 800ms;
  width: 100%;
  cursor: pointer;
}

.spes[data-effect="fade-in"] figcaption {
  top: 0;
  left: 0;
  height: 99%;
  opacity: 0;
}

.spes[data-effect="fade-in"]:hover figcaption {
  opacity: 1;
}

.paolabarocchi {
  grid-column: 1/3;
}

.fondazione {
  grid-column: 3/5;
}

.rivista {
  grid-column: 5/7;
}

.spes {
  grid-column: 7/9;
}

.paolabarocchi__text,
.rivistaonline__text {
  grid-column: 1/6;
}

.paolabarocchi__img,
.rivistaonline__img {
  grid-column: 6/9;
}

.fondazione__img {
  grid-column: 1/4;
}

.fondazione__text {
  grid-column: 4/9;
}

.spes__img {
  grid-column: 1/4;
}

.spes__text {
  grid-column: 4/9;
}

.autori__img {
  grid-column: 1/3;
}

.ricerche__text {
  grid-column: 3/7;
}

/* -------------------------------------------------------------------------------- */
/* ! Media query mobile */
/* -------------------------------------------------------------------------------- */

@media (max-width:768px) {
  .header__icon {
    display: block;
  }

  .header {
    position: relative;
    height: 60px;
    display: flex;
    margin-top: 40px;
    justify-content: space-between;
  }

  .fixed {
    position: fixed;
    background: var(--secondary);
    width: 100%;
    z-index: 4;
  }

  .header__menu {
    background: var(--secondary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: 0.5s;
  }

  .header__logo {
    display: none;
  }

  body.open .header__menu {
    transform: translateX(0);
  }

  /* Hamburger */
  .icon-hamburger {
    cursor: pointer;
    width: 2em;
    height: 1.5em;
    position: relative;
    transition: 0.5s linear;
  }

  .icon-hamburger span {
    display: block;
    position: absolute;
    left: 0;
    height: 1.5px;
    width: 100%;
    background: var(--dark);
  }

  .icon-hamburger span:nth-child(1) {
    top: 0;
  }

  .icon-hamburger span:nth-child(2),
  .icon-hamburger span:nth-child(3) {
    top: 10px;
    width: 60%;
  }

  .icon-hamburger span:nth-child(4) {
    top: 20px;
  }

  /* Hamburger in apertura */

  .open .icon-hamburger {
    transform: rotate(180deg);
  }

  .open .icon-hamburger span:nth-child(1),
  .open .icon-hamburger span:nth-child(4) {
    width: 0%;
  }

  .open .icon-hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 100%;
  }

  .open .icon-hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 100%;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .site-nav li {
    margin-bottom: 2em;
  }

  .site-nav a {
    border: none;
    font-size: 2em;
    text-transform: uppercase;
  }

  li a:hover {
    font-weight: 900;
    text-decoration: none;
  }

  /* grid system mobile */

  .paolabarocchi__text {
    grid-column: 2/8;
  }

  .paolabarocchi__img {
    grid-column: 2/8;
  }

  .fondazione__text {
    grid-column: 2/8;
  }

  .fondazione__img {
    grid-column: 2/8;
  }

  .spes__text {
    grid-column: 2/8;
  }

  .spes__img {
    grid-column: 2/8;
  }

  .rivistaonline__text {
    grid-column: 2/8;
  }

  .rivistaonline__img {
    grid-column: 2/8;
  }

  .grid h2 {
    grid-column: 2/8;
  }

  .paolabarocchi {
    grid-column: 2/5;
  }

  .fondazione {
    grid-column: 5/8;
  }

  .rivista {
    grid-column: 2/5;
  }

  .spes {
    grid-column: 5/8;
  }

  figure figcaption {
    display: flex;
    justify-content: center;
    font-size: 12px;
  }

  .autori__img {
    grid-column: 2/8;
  }

  .ricerche__text {
    grid-column: 2/8;
  }

  .cover__content {
    grid-column: 2/8;
  }

  .cover__content2 {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}