/* ========================================
   RESET
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background-color: #ebe4dc;
  overflow-x: hidden;
}


/* ========================================
   HERO
======================================== */

.hero {
  position: relative;

  display: grid;
  grid-template-rows: 1fr auto;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  padding:
    clamp(24px, 4vh, 48px)
    clamp(20px, 4vw, 60px)
    clamp(16px, 2.5vh, 28px);

  background-color: #ebe4dc;

  background-image:
    linear-gradient(
      rgba(235, 228, 220, 0.60),
      rgba(235, 228, 220, 0.60)
    ),
    url("images/background.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}


/* ========================================
   CONTENUTO CENTRALE
======================================== */

.hero__content {
  align-self: center;
  justify-self: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(94%, 1400px);

  text-align: center;
}


/* ========================================
   LOGO
======================================== */

.hero__logo {
  display: block;

  width: clamp(190px, 24vw, 360px);
  max-width: 100%;
  height: auto;

  margin: 0 0 clamp(20px, 3vh, 34px);
}


/* ========================================
   H1
======================================== */

.hero__title {
  max-width: none;

  margin: 0;

  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;

  text-align: center;
}


/* ========================================
   DESCRIZIONE
======================================== */

.hero__description {
  max-width: none;

  margin:
    clamp(14px, 2vh, 22px)
    0
    0;

  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.55;

  color: rgba(26, 26, 26, 0.82);

  text-align: center;
}


/* ========================================
   PULSANTI
======================================== */

.buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;

  gap: 14px;

  margin-top: clamp(24px, 3.5vh, 36px);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 13px 24px;

  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;

  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;

  background-color: transparent;

  border: 1.5px solid #1a1a1a;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  color: #ebe4dc;
  background-color: #1a1a1a;
}

.button:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  width: 100%;

  padding-top: clamp(18px, 3vh, 32px);

  text-align: center;
}

.site-footer p {
  max-width: 1200px;

  margin: 0 auto;

  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 400;
  line-height: 1.5;

  text-align: center;

  color: rgba(26, 26, 26, 0.70);
}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 1024px) {

  .hero__title,
  .hero__description {
    white-space: nowrap;
  }

}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

  .hero {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero__logo {
    width: clamp(190px, 30vw, 300px);
  }

  .hero__title {
    max-width: 700px;
  }

  .hero__description {
    max-width: 650px;
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .hero {
    padding:
      clamp(18px, 3vh, 28px)
      18px
      14px;
  }

  .hero__content {
    width: 100%;
    max-width: 520px;
  }

  .hero__logo {
    width: clamp(170px, 55vw, 230px);

    margin-bottom: clamp(16px, 2.5vh, 24px);
  }

  .hero__title {
    max-width: 100%;

    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
  }

  .hero__description {
    max-width: 100%;

    margin-top: 14px;

    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.5;
  }

  .buttons {
    flex-direction: column;

    width: 100%;
    max-width: 320px;

    gap: 10px;

    margin-top: clamp(20px, 3vh, 28px);
  }

  .button {
    width: 100%;
    min-height: 46px;

    padding: 12px 18px;

    font-size: 12px;
  }

  .site-footer {
    padding-top: 18px;
  }

  .site-footer p {
    max-width: 520px;

    font-size: 9px;
    line-height: 1.45;
  }
}


/* ========================================
   SMARTPHONE STRETTI
======================================== */

@media (max-width: 380px) {

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__logo {
    width: 170px;
  }

  .hero__title {
    font-size: 23px;
  }

  .hero__description {
    font-size: 13px;
  }

  .buttons {
    max-width: 290px;
  }

  .button {
    min-height: 44px;

    padding: 11px 14px;

    font-size: 11px;
  }

  .site-footer p {
    font-size: 8.5px;
  }
}


/* ========================================
   VIEWPORT BASSE
======================================== */

@media (max-height: 700px) {

  .hero {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .hero__logo {
    width: clamp(150px, 20vw, 240px);

    margin-bottom: 12px;
  }

  .hero__title {
    font-size: clamp(22px, 2.6vw, 34px);
  }

  .hero__description {
    margin-top: 10px;

    font-size: clamp(13px, 1.1vw, 16px);
  }

  .buttons {
    margin-top: 16px;
  }

  .button {
    min-height: 42px;

    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-footer {
    padding-top: 12px;
  }
}


/* ========================================
   VIEWPORT MOLTO BASSE
======================================== */

@media (max-height: 560px) {

  .hero__logo {
    width: clamp(130px, 18vw, 190px);

    margin-bottom: 8px;
  }

  .hero__title {
    font-size: clamp(19px, 2.2vw, 27px);
  }

  .hero__description {
    margin-top: 7px;

    font-size: 12px;
    line-height: 1.35;
  }

  .buttons {
    gap: 8px;

    margin-top: 10px;
  }

  .button {
    min-height: 38px;

    padding: 8px 16px;

    font-size: 10px;
  }

  .site-footer {
    padding-top: 8px;
  }

  .site-footer p {
    font-size: 8px;
    line-height: 1.3;
  }
}