/* Tavolozza colore */
:root {
  --accent: #3d3a3a;
  --dark: #000000;
  --secondary: #31929b;
  --light: #fbfbfb;
  --primary: #953763;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

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

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

.container {
  max-width: 1450px;
  margin: 0 auto;
}

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

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
}

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

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

/* Header */
header.cover {
  background: var(--dark);
  padding: 10px;
  height: 100px;
  overflow: hidden;
  transition: height 0.5s ease-in-out;
}

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

.cover.active {
  height: 300px;
}

.cover__logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cover__menu {
  order: 3;
  width: 100%;
  opacity: 0;
  /* Inizia invisibile */
  transform: translateY(-20px);
  /* Sposta leggermente verso l'alto */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  visibility: hidden;
}

.cover.active .cover__menu {
  opacity: 1;
  /* Diventa visibile */
  transform: translateY(0);
  visibility: visible;
}

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

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

.cover__menu li {
  text-align: right;
  padding: 15px;
  position: relative;
}

.cover__menu li::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  right: 0;
}

.cover__menu li:hover::after {
  width: 100%;
}

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

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background: url(img/Pina-Bausch-ph.-Maarten-Vanden-Abeele.jpg) center center/cover no-repeat;
  height: 90vh;
  padding: 0;
}

.hero__text {
  color: var(--light);
  font-size: 1.3em;
  padding: 20px;
  text-align: left;
  /* Assicurati che il testo sia centrato */
  position: absolute;
  bottom: 20px;
  /* Sposta il contenuto verso il basso */
  width: 100%;
  box-sizing: border-box;
}


/* CTA */
.cta-group {
  padding-top: 10px;
}

.cta-group a {
  background-color: var(--dark);
  color: var(--light);
  border: none;
  padding: 10px 10px;
  font-size: 0.8em;
  font-family: 'Roboto';
  font-weight: 100;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-group a:hover {
  background-color: var(--primary);
}


/* Bottone della newsletter */
.content__newsletter {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  text-align: center;
}

.cta-group__cta__primary {
  background-color: var(--primary);
  /* Colore di sfondo blu */
  color: var(--light);
  /* Testo bianco */
  border: none;
  /* Rimuove il bordo predefinito */
  border-radius: 25px;
  /* Bordo arrotondato */
  padding: 10px 20px;
  /* Spaziatura interna */
  font-size: 16px;
  /* Dimensione del testo */
  font-weight: bold;
  /* Testo in grassetto */
  text-transform: uppercase;
  /* Testo tutto maiuscolo */
  cursor: pointer;
  /* Cursore a mano */
  transition: background-color 0.3s ease, transform 0.3s ease;
  /* Transizione per l'effetto hover */
}

.cta-group__cta__primary:hover {
  background-color: var(--dark);
  /* Colore di sfondo al passaggio del mouse */
  transform: scale(1.05);
  /* Leggero ingrandimento al passaggio del mouse */
}

/* Popup */
.popup-wrapper {
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.popup {
  background: var(--dark);
  border-radius: 15px;
  color: var(--light);
  width: 100%;
  max-width: 410px;
  margin: 5% auto;
  padding: 12px;
  z-index: 2;
  position: relative;
  font-family: 'Roboto';
}

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

.popup__content {
  padding: 5px;
}

/* Mailchimp */
#mc_embed_signup {
  background: var(--dark);
  padding: 10px;
  border-radius: 15px;
  max-width: 500px;
  margin: 5px auto;
}

#mc_embed_signup h2 {
  font-weight: 700;
  font-size: 1.8em;
  color: var(--light);
  margin-bottom: 10px;
}

#mc_embed_signup p {
  color: #000000;
  font-size: 13px;
}

#mc_embed_signup .indicates-required {
  font-size: 0.9em;
  color: var(--light);
}

#mc_embed_signup .mc-field-group {
  margin-bottom: 10px;
}

#mc_embed_signup label {
  display: block;
  margin-bottom: 5px;
  color: var(--light);
}

.mc-field-group input.text,
.mc-field-group input.REQ_CSS {
  border-radius: 15px;
  border: 2px solid var(--dark);
  padding: 10px;
  font-size: 16px;
  width: calc(100% - 22px);
}

.mc-field-group select {
  border-radius: 5px;
  border: 2px solid var(--dark);
  padding: 10px;
  font-size: 16px;
  width: 100%;
}

/* Content GDPR */
#mergeRow-gdpr {
  margin-top: 10px;
  padding: 5px;
  border: 2px solid var(--dark);
  border-radius: 15px;
  background: var(--light);
}

/* Input con classe REQ_CSS */
.mc-field-group input.REQ_CSS {
  border-radius: 5px;
  border: 2px solid var(--dark);
  padding: 5px;
  font-size: 14px;
  width: calc(100% - 22px);
  margin-top: 5px;
  /* Distanza tra l'etichetta e il campo di input */
}

/* Elementi all'interno del div con classe mc-field-group */
.mc-field-group {
  margin-bottom: 10px;
  /* Spazio tra i gruppi di campi */
  display: flex;
  flex-direction: column;
}

.mc-field-group label {
  margin-bottom: 5px;
  /* Spazio tra l'etichetta e il campo di input */
  color: var(--dark);
  font-weight: bold;
  /* Rende le etichette più visibili */
}

.mc-field-group input,
.mc-field-group select {
  border-radius: 5px;
  border: 2px solid var(--dark);
  padding: 5px;
  font-size: 14px;
  width: 100%;
  /* Fa sì che i campi occupino tutta la larghezza disponibile */
}

#mergeRow-gdpr {
  margin-top: 8px;
  padding: 8px;
  border: 2px solid var(--dark);
  border-radius: 10px;
  background: var(--light);
}

#mergeRow-gdpr .content__gdpr {
  display: flex;
  flex-direction: column;
  gap: 5px;
}


#mergeRow-gdpr label {
  margin-bottom: 5px;
  color: var(--dark);
}

#mergeRow-gdpr p {
  margin: 5px 0;
}

.gdpr-checkbox-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  border: none;
}

.gdpr-checkbox-container input[type="checkbox"] {
  margin: 0;
  width: auto;
  height: auto;
}

.gdpr-checkbox-container span {
  font-size: 12px;
  color: var(--dark);
}



#mc_embed_signup input.email,
#mc_embed_signup input.button {
  padding: 5px;
  font-size: 13px;
  width: calc(100% - 22px);
}

#mc_embed_signup input.email {
  border: 2px solid var(--dark);
}

#mc_embed_signup input.button {
  background: var(--primary);
  color: var(--light);
  cursor: pointer;
  text-align: center;
}

#mc_embed_signup input.button:hover {
  background: var(--dark);
  color: var(--light);
}

#mc_embed_signup select {
  border-radius: 15px;
  padding: 10px;
  border: 2px solid var(--dark);
  font-size: 16px;
  width: 100%;
}

#mc_embed_signup .optionalParent {
  margin-top: 20px;
}

#mc_embed_signup .refferal_badge {
  width: 220px;
  height: 40px;
  display: flex;
  padding: 2px 0;
  justify-content: center;
  align-items: center;
}



.content__sinossi,
.content__pina,
.content__autore {
  border: 4px solid var(--dark);
  padding: 30px;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
}

.content__sinossi h2,
.content__pina h2,
.content__autore h2 {
  color: var(--dark);
  position: relative;
  padding-bottom: 5px;
}

.content__sinossi h2::after,
.content__pina h2::after,
.content__autore h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.content__sinossi h2:hover::after,
.content__pina h2:hover::after,
.content__autore h2:hover::after {
  width: 100%;
}


/* Slider */
.slider {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  margin-bottom: 50px;
  text-align: center;
}

/* Sottolineatura al passaggio del cursore */
.slider h1 {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  /* Necessario per la posizione dell'elemento pseudo */
  display: inline-block;
  /* Per applicare l'underline correttamente */
  margin-top: 20px;
  text-align: center;
}

.slider h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  /* Altezza dell'underline */
  background-color: var(--primary);
  /* Colore dell'underline */
  transition: width 0.3s ease;
  /* Transizione per l'animazione */

}

.slider h1:hover::after {
  width: 100%;
  /* L'underline si espande a tutta la larghezza dell'elemento */
}



.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}


.slide img {
  width: 80%;
  /* Riduci la larghezza dell'immagine */
  max-width: 600px;
  /* Imposta una larghezza massima per immagini grandi */
  height: 70vh;
  object-fit: cover;
  margin: auto;
  /* Centra le immagini */
  display: block;
  border-radius: 20px;
}


.prev1,
.next1 {
  cursor: pointer;
  position: absolute;
  transform: translateY(-50%);
  /* Mantieni centrato verticalmente */
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: 22px;
  color: var(--light);
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.6s ease;
  border-radius: 40px;
  user-select: none;
  background-color: var(--dark);
  transform: scale(0.8);
  text-align: center;
}

.prev1 {
  left: 10px;
  /* Posiziona il bottone 'prev' a sinistra */
}

.next1 {
  right: 10px;
  /* Posiziona il bottone 'next' a destra */
}

.prev1:hover,
.next1:hover {
  background-color: var(--primary);
  transform: scale(1);
}


.indicators {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--dark);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--primary);
}

/* Footer */
footer {
  color: var(--light);
  background: var(--dark);
  padding: 30px 15px;
  font-family: 'Montserrat', sans-serif;
}

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

footer h3,
footer h4 {
  position: relative;
  overflow: hidden;
  display: block;
  padding-bottom: 5px;
  /* Aggiungi spazio per l'underline */
  margin: 0;
}

footer h3::after,
footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

footer h3:hover::after,
footer h4:hover::after {
  transform: translateX(1);
  transform-origin: bottom left;
}

footer h3 {
  text-transform: uppercase;
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--primary);
}

footer h4 {
  font-size: 17px;
  margin-bottom: 15px;
}

.edizioni__clichy,
.info,
.contatti {
  font-size: 15px;
}

.edizioni__clichy {
  font-size: 13px;
  line-height: 1.6;
}

footer li {
  list-style: none;
  margin-bottom: 8px;
}


/* Media Queries */

/* Dispositivi Medium */
@media(min-width: 768px) {

  .hero {
    height: 70vh;
    /* Modifica se necessario */
    align-items: flex-start;
    /* Allinea a sinistra */
  }

  .hero__text {
    width: 60%;
    /* Adatta la larghezza se necessario */
    text-align: left;

  }

  .cta-group a {
    font-size: 1.2rem;
  }

  .cover__menu {
    all: unset;
  }

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

  .cover__hb {
    display: none;
  }

  .hero__text {
    bottom: 10px;
    /* Riduci il padding inferiore sui dispositivi mobili, se necessario */
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  .hero__text h1 {
    font-size: 1.8rem;
  }

  .hero__text h2 {
    font-size: 1.4rem;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .cta-group {
    margin-top: 20px;
    /* Spazio tra il testo e i bottoni, se necessario */
  }

  .slider {
    max-width: 80%;
    margin: auto;
    margin-bottom: 50px;
  }

  .slide img {
    height: 60vh;
    /* Imposta una altezza fissa per le immagini in dispositivi medi */
    object-fit: cover;
  }

  .prev,
  .next {
    padding: 12px;
    font-size: 16px;
  }

  .dot {
    height: 20px;
    width: 20px;
  }

  footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .info,
  .contatti {
    justify-content: center;
    align-items: center;
    padding-left: 15px;

  }

  .edizioni__clichy {
    flex: 1;
    padding: 0 15px;
  }
}

/* Dispositivi Larghi */
@media(min-width: 992px) {

  .hero {
    height: 100vh;
    /* Modifica se necessario */
    align-items: flex-start;
    /* Allinea a sinistra */
  }

  .hero__text {
    width: calc(100% - 40px);
    /* Riduci la larghezza per compensare il padding */
    padding-bottom: 60px;
    margin-bottom: 60px;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .hero__text h2 {
    font-size: 1.6rem;
  }

  .hero__text p {
    font-size: 1.2rem;
  }

  .cta-group a {
    font-size: 1.4rem;
  }

  .slider {
    max-width: 70%;
    margin: auto;
    margin-bottom: 50px;
  }

  .slide img {
    height: 70vh;
    /* Imposta una altezza fissa per le immagini in dispositivi larghi */
    object-fit: cover;
  }

  .prev,
  .next {
    padding: 14px;
    font-size: 18px;
  }

  .dot {
    height: 25px;
    width: 25px;
  }

  footer {
    padding: 50px 30px;
  }

  footer .container {
    gap: 50px;
    text-align: left;
    flex-direction: row;
    /* Se vuoi allineare orizzontalmente gli elementi */
    justify-content: center;
  }

  footer h3 {
    font-size: 24px;
  }

  footer h4 {
    font-size: 19px;
  }

  .edizioni__clichy,
  .info,
  .contatti {
    font-size: 16px;
  }

  .edizioni__clichy {
    font-size: 14px;
  }
}