/* Tavolozza colori */
:root {
  --accent: #F2D2BB;
  --dark: #275334;
  --secondary: #8FAE6F;
  --light: #CCDABE;
  --primary: #678349;
}

/* 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: 1550px;
  margin: 0 auto;
  /* border: 1px solid rgb(255, 0, 0); Bordini rossi: ricorda di disattivarli x consegna!*/
}

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

/* Font */
body {
  font-family: 'Inria Serif', serif;
}

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

p.leading {
  font-weight: 500;
  margin-top: 20px;
  line-height: 1.4em;
}

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

.leadingsinossi{
  font-weight: 700;
  padding-bottom: 15px;
  font-size: 25px;
}

h2{
  font-size: 40px;
  font-style: italic;
  color: var(--primary);
}

h2.iperborea{
  font-size: 32px;
  font-style: initial;
  font-weight: 500;
}

h2.newsletter{
  color: black;
  font-style: initial;
  font-weight: 400;
}

h3{
  font-size: 25px;
}

/* Header */

/* Barra del menù */
header.cover {
  background: var(--dark);
  height: 60px;
  overflow: hidden;
  transition: 0.5s cubic-bezier(.08, .9, 1, .26);
}

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

header h2 {
  color: var(--light);
  font-size: 35px;
}


/* Per fare aprire le opzioni del burger a tendina */ 
.cover.active {
  height: 150px;
  background: var(--dark);
}


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

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

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

.cover__menu a {
  color: var(--light);
  font-size: 25px;

}

.cover__menu li {
  text-align: right;
}

.cover__hb {
  color: var(--light);
  font-size: 30px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.hero {
  position: relative;
  background: url(img/banner.jpg) 100% 100%;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
}

/* Per mettere overlay su img */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(black, black);
  opacity: 0.4;
  z-index: 1;
}

.hero__text {
  position: relative;
  z-index: 2; /* Per mettere testo sopra al layer nero */
  color: var(--light); /* Testo */
}

.hero__text {
  margin-top: 20px;
}

.hero__text,
.hero__cover,
.bottom__footer,
section.content__sinossi,
section.content__autore,
section.content__pubblicazioni,
section.content__newsletter,
header.cover {
  padding: 20px;
}

/* Gestione di testi ed elenco x Pubblicazioni */

li.title{
  font-size: 1.6em;
  font-style: italic;
  padding-bottom: 10px;
}

.summary {
  font-size: 1.4em;
  padding-bottom: 10px;
}

/* Marker emoji e testo di summary */

summary::marker {
  font-size: 30px;
  content: "📗";
}

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

summary::after {
  font-size: 25px; /* Font size di sinossi */
  content: "Sinossi";
  margin-left: 5px;
}

/* Padding tra h2 e p */
main.content h2 {
  margin-bottom: 10px;
}

/* Testi del banner */
.hero h1 {
  font-size: 52px;
  margin-top: 20px;
  font-weight: 900;
  color: #F5F8F2;
}

.hero h2 {
  padding-top: 5px;
  color: #F5F8F2;
}

.hero body{
  font-size: 30px;
}

.leading{
  color: #F5F8F2;
}

/* CTA */
.cta-group {
  font-size: 25px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 45px;
}

/* Colori e forme dei button */
.cta__primary,
.cta__secondary {
  /*border: 2px solid var(--dark);*/
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 900;
}

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

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

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

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

/* Inscatolamenti vari */
section.content__sinossi,
section.content__autore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

section.content__sinossi,
section.content__autore,
section.content__pubblicazioni {
  margin-top: 30px;
}

/* Footer */
footer {
  color: var(--light);
  background: var(--dark);
  text-align: left; /* Per testi singoli */
  padding: 10px; /* Spazio interno */
}

/* Footer versione mobile */
footer .container,
.bottom__footer {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 0 auto; /* Per centrare tutto */
  width: 80%;
}

.bottom__footer h3 {
  margin-bottom: 20px;
}

img.isia__logo {
  margin-bottom: 20px;
}

.link a, .legal a {
  color: var(--light);
  font-size: 23px;
  line-height: 25px;
}

.footer__sociallinks .fab {
  background: var(--light);
  font-size: 20px;
  color: var(--dark);
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 20px;
  margin-bottom: 20px;
  margin-right: 10px;
}

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


  /* Regole per media */
  .cover__menu {
    all: unset
  }

  .cover__hb {
    display: none;
  }

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

  }

  .hero__text {
    width: 60%;
  }

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

  .hero {
    flex-direction: row;
    background: url(img/banner.jpg) 100% 100%;
    height: 80vh;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  section.content__sinossi,
  section.content__autore {
    flex-direction: row;
  }

  div.content__sinossi__text,
  div.text__autore {
    width: 75%;
  }

  div.content__sinossi__copertina,
  div.cover__autore {
    width: 55%;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  /* Container footer per riallineamento */
  footer .container,
  .bottom__footer {
    flex-direction: row;
  }

  .iscriviti .footer__sociallinks {
    display: flex;
    flex-direction: row;
  }
}

/* ! Punto di interruzione per dispositivi larghi */
@media(min-width: 992px) {
  body {
    background: #ffff;
  }

}

#mc_embed_signup form {
  display: block;
  position: relative;
  text-align: left;
  margin: 20px;
  max-width: 700px;
}

/* titolo iscriviti della newsletter */
#mc_embed_signup h2 {
  font-weight: bold;
  padding: 0;
  margin: 15px 0;
  font-size: 24px;
}

/* Bordi */
#mc_embed_signup input {
  border: 1px solid var(--dark);
  border-radius: 5px;
}

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

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


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


/* Hover del button */
#mc_embed_signup .button:hover {
  background-color: var(--accent);
  color: var(--dark);
}

/* #mc_embed_signup .small-meta {
  font-size: 33px;
} */

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

/* Riquadro Newsletter */
#mc_embed_signup .mc-field-group {
  clear: left;
  position: relative;
  width: 96%;
  padding-bottom: 3%;
  min-height: 50px;
  display: grid;
  max-width: 700%;

}

/* interlinea dei paragrafi acc.privacy, newsletter ecc.. */
/* #mc_embed_signup p {
  line-height: 40px;
} */

#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%;
}

/* Sezione Conosciuto */
#mc_embed_signup .mc-field-group select {
  display: inline-block;
  width: 99%;
  padding: 5px 0;
  margin-bottom: 2px;
  border-radius: 8px;
}

#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: var(--dark);
  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;
}


/* Testo di Policy e Newsletter */
.content__gdpr p {
  font-size: 20px;
}

label.policy {
  font-size: 15px
}

p.qualimodalità {
  font-size: 17px;
  margin-top: 20px;

}

span {
  font-size: 15px;
}

/* Testo annulla iscrizione */
p.annullaiscrizione {
  font-size: 20px;
  margin-top: 30px;
  line-height: 20px;
}

@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: #7d1492;
  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: #ff0000;
  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;
}

/* Errore */
#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
  display: inline-block;
  margin: 2px 0 1em 0;
  padding: 3px;
  background-color: var(--light);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: normal;
  z-index: 1;
  color: var(--dark);
}

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

/* Spunta E-mail  */
#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;
}