:root {
  --green: #005239;
  --orange: #f04e39;
  --ink: #333333;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-image: url("https://fai-website.imgix.net/images/Bozzolo_Villa%20Della%20Porta%20Bozzolo_110_Foto%20Lorenzo%20Cicconi%20Massi_2024_%28C%29%20FAI.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
  background: transparent;
  position: relative;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.04) 28%, rgba(0, 0, 0, 0.04) 72%, rgba(0, 0, 0, 0.26)),
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.02) 160px, rgba(0, 0, 0, 0.22));
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  z-index: 1002;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.site-header img {
  display: block;
  height: 58px;
  width: auto;
}

.page-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 102px 20px 64px;
}

.form-container {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto 40px;
  padding: 40px 42px 36px;
  text-align: center;
  background: rgba(246, 244, 238, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--orange);
}

.form-container::after {
  content: "";
  position: absolute;
  inset: 6px 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.form-container > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 82, 57, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  color: var(--green);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.intro-copy {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.page-content-thanks {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: calc(100vh - 122px);
}

.thanks-container {
  padding-bottom: 44px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(231, 79, 48, 0.28);
}

.return-link:hover,
.return-link:focus {
  background: #c93f24;
}

.jotform-wrap {
  position: relative;
  min-height: 539px;
  margin: 0 -20px -18px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.jotform-wrap iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.form-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  color: var(--green);
  background: rgba(246, 244, 238, 0.62);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.form-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.form-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(0, 82, 57, 0.18);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: formLoaderSpin 0.8s linear infinite;
}

.form-loader p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

@keyframes formLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.footer-istituzionale {
  position: relative;
  z-index: 2;
  padding: 15px;
  color: #cccccc;
  background-color: #333333;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
}

.footer-istituzionale a {
  color: #cccccc;
  text-decoration: underline;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 45%;
  min-width: 250px;
}

@media (max-width: 767px) {
  html {
    background-attachment: scroll;
  }

  .page-shell {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  .site-header .inner {
    padding: 18px 16px 14px;
  }

  .site-header img {
    height: 48px;
    max-width: calc(100vw - 28px);
    object-fit: contain;
  }

  .page-content {
    padding: 88px 8px 56px;
  }

  .form-container {
    margin-bottom: 28px;
    padding: 28px 8px 20px;
    border-radius: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .intro-copy {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.34;
  }

  .jotform-wrap {
    margin: 0 -8px -10px;
  }
}

@media (max-width: 430px) {
  .page-content {
    padding-left: 4px;
    padding-right: 4px;
  }

  .form-container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .jotform-wrap {
    margin-left: -6px;
    margin-right: -6px;
  }
}
