main {
  /* curvatura */
  & > * {
    margin-bottom: -80px;
    clip-path: ellipse(180vmax 100% at 40% 100%);
  }
}

.logo-wrapper {
  padding-bottom: 50px;
}

/* Hero (prima fascia) */
.hero {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 60px;
  min-height: 100svh;
  justify-content: center;
  padding: 0 4vw;
  position: relative;
  width: 100%;
}

.hero-title {
  font-size: clamp(36px, 4vw, 64px);
  position: relative;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

.hero-intro {
  font-size: 1.2em;
  font-weight: 400;
  max-width: 740px;
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 999px;
  background-color: black;
  padding: 15px 30px;
  color: white;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;

  &:hover {
    transform: scale(1.06);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 20px -10px;
  }
}

.button-red {
  background: #ce656a;
}

.button-green {
  background: #77be9c;
}

.hero-bkg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;

  & img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
  }

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
  }
}

/* text (seconda fascia) */

.description {
  background-color: #fff;
  padding: 130px 4vw 200px 4vw;
}

.description-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
  .description-grid {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 80px;
  }
}

.description-title {
  font-size: clamp(24px, 3vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

@media screen and (min-width: 768px) {
  .description-title {
    grid-column: span 3;
  }
}

article {
  & h2,
  h3 {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 1em;
  }
}

.icon {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;

  & span {
    color: #ce656a;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
  }
}

/* forms (terza e quinta fascia) */
.form-sign-wrapper,
.form-ebook-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  color: #fff;

  & form {
    min-width: 0;
  }
}

@media screen and (min-width: 768px) {
  .form-sign-wrapper,
  .form-ebook-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.form-sign-wrapper {
  background-color: #ce656a;
  padding: 130px 4vw 200px 4vw;
  position: relative;

  & form {
    color: #ce656a;
  }
}

.form-ebook-wrapper {
  background-color: #77be9c;
  padding: 130px 4vw 200px 4vw;
  position: relative;

  & form {
    color: #77be9c;
  }
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;

  /* only screen reader */
  & .label,
  & .label-attachments {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  & .input {
    border-radius: 100px;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 12px 20px;
  }

  /* Volevo nascondere l'input di default e usare solo la label, ma non si vederebbe la lista di file caricati */
  /* .label-attachments {
    border: 1px solid #fff;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
  } */

  #attachments {
    color: #fff;
    appearance: none;
  }
}

.privacy-wrapper {
  display: flex;
  gap: 10px;

  & .input-privacy {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    height: 20px;
    position: relative;
    transition: background-color 0.3s;
    width: 20px;
  }

  & .input-privacy:checked {
    background-color: #fff;
  }

  & .input-privacy::after {
    color: inherit;
    content: "✓";
    font-size: 1em;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  & .input-privacy:checked::after {
    opacity: 1;
  }

  & .label-privacy {
    color: #fff;
    font-size: small;
  }

  & a {
    color: inherit;
  }
}

.errors {
  color: #fff;
  padding: 20px 0 0 1em;
  font-size: small;
}

button[type="submit"] {
  background-color: #fff;
  border-radius: 100px;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2em;
  margin-top: 30px;
  padding: 15px 30px;
  transition: transform 0.3s, box-shadow 0.3s;

  &:hover {
    transform: scale(1.06);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 20px -10px;
  }
}

.form-success {
  border: 1px solid #fff;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 12px;
}

/* intro */
.form-sign-wrapper .intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  text-align: center;

  & p {
    font-size: 1.5em;
    font-weight: 400;
  }
}

.form-ebook-wrapper .intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;

  & > * {
    max-width: 500px;
    width: 100%;
  }

  h1,
  h2,
  h3 {
    font-size: 1.5em;
    font-weight: 400;
  }

  ul,
  ol {
    padding-left: 1em;
    margin: 30px 0;
  }
}

/* countdown */
#countdown {
  display: flex;
  gap: 4px;
  justify-content: center;
  max-width: 520px;
  width: 100%;
}

.simply-section {
  width: 100%;
}

.simply-section div {
  align-items: center;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 15px;
  justify-content: center;
  padding: 25px 15px;
}

.simply-amount {
  font-size: clamp(24px, 3vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.simply-word {
  text-transform: uppercase;
  font-size: small;
}

/* Tell Us (quarta fascia) */
.tell-us {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  min-height: 100svh;
  padding: 0 4vw;
  position: relative;
  width: 100%;
}

.tell-us-text {
  font-size: 1.2em;
  font-weight: 400;
  max-width: 740px;
  text-align: center;

  & h2,
  h3 {
    font-size: clamp(24px, 3vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    text-align: center;
  }
}

.tell-us-bkg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;

  & img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
  }

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
  }
}

/* Social (sesta facia) */
.social {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  min-height: 100svh;
  padding: 0 4vw;
  position: relative;
  width: 100%;
}

.social-text {
  font-size: 1.2em;
  font-weight: 400;
  max-width: 740px;
  text-align: center;

  & h2,
  h3 {
    font-size: clamp(24px, 3vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    text-align: center;
  }
}

.social-links {
  display: flex;
  align-items: center;
  fill: #fff;
  gap: 50px;

  & svg {
    height: 60px;
    width: 60px;
    transition: transform 0.3s;

    &:hover {
      transform: scale(1.06);
    }
  }
}

.social-bkg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;

  & img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
  }

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
  }
}
