:root{
  --paper:#f4f1eb;
  --white:#ffffff;
  --ink:#222220;
  --muted:#6d6962;
  --line:#d8d1c7;
  --soft:#e9e4dc;
  --dark:#242422;
  --focus:#8f887e;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,input,select,textarea{font:inherit}

.site-header{
  min-height:88px;
  padding:15px clamp(20px,5vw,70px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  background:var(--white);
  border-bottom:1px solid var(--line);
}

.brand img{
  width:185px;
  max-height:58px;
  display:block;
  object-fit:contain;
}

.header-link{
  color:var(--ink);
  text-decoration:none;
  font-size:14px;
}

.page-shell{
  width:min(100% - 40px,1080px);
  margin:0 auto;
  padding:64px 0 90px;
}

.hidden{display:none!important}

.eyebrow{
  margin:0 0 14px;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:11px;
  font-weight:800;
  color:var(--muted);
}

h1,h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  letter-spacing:-.025em;
}

h1{
  max-width:970px;
  font-size:clamp(44px,7vw,82px);
  line-height:.99;
}

h2{
  font-size:clamp(38px,5vw,60px);
  line-height:1.04;
}

.welcome-screen{
  padding:10px 0;
}

.manifesto{
  margin:48px 0 38px;
  padding:4px 0 4px 28px;
  border-left:6px solid #d9d9d7;
}

.manifesto p{
  margin:8px 0;
  font-size:clamp(23px,3vw,34px);
  line-height:1.25;
  font-weight:750;
}

.lead{
  max-width:900px;
  margin:0 0 20px;
  font-size:clamp(18px,2.2vw,24px);
  line-height:1.65;
}

.time-note{
  margin:22px 0 30px;
  font-weight:700;
}

.existing-account{
  margin-top:20px;
  color:var(--muted);
  font-size:13px;
}

.existing-account a{color:inherit}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,opacity .18s ease,background .18s ease;
}

.button:hover{transform:translateY(-1px)}
.button:disabled{opacity:.45;cursor:not-allowed;transform:none}

.button.primary{
  background:var(--dark);
  color:var(--white);
}

.button.secondary{
  background:transparent;
  color:var(--ink);
  border-color:#aaa39a;
}

.journey-screen{
  max-width:920px;
  margin:0 auto;
}

.progress-area{
  margin-bottom:34px;
  padding:26px 28px;
  background:rgba(255,255,255,.55);
  border:1px solid var(--line);
  border-radius:22px;
}

.progress-dots{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  margin-bottom:22px;
}

.progress-item{
  position:relative;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.progress-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:16px;
  right:-2px;
  top:50%;
  height:2px;
  background:#bdb7ae;
  transform:translateY(-50%);
  z-index:0;
}

.progress-dot{
  position:relative;
  z-index:1;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid var(--dark);
  background:var(--paper);
}

.progress-item.complete .progress-dot,
.progress-item.current .progress-dot{
  background:var(--dark);
}

.progress-item.complete::after{
  background:var(--dark);
}

.progress-copy{
  display:grid;
  gap:5px;
}

.progress-copy span{
  font-family:monospace;
  font-size:14px;
  letter-spacing:.08em;
}

.progress-copy strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  font-weight:400;
}

.progress-copy small{
  color:var(--muted);
  font-size:14px;
}

#partnerJourney{
  padding:38px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:4px;
}

.step{display:none}
.step.active{display:block}

.section-intro{
  max-width:720px;
  margin:18px 0 30px;
  color:#55514c;
  font-size:17px;
  line-height:1.6;
}

fieldset{
  margin:30px 0;
  padding:0;
  border:0;
}

legend,
.field label{
  display:block;
  margin-bottom:9px;
  font-size:13px;
  font-weight:750;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:28px;
}

.field.full{grid-column:1/-1}

.field input,
.field select,
.field textarea{
  width:100%;
  padding:14px 15px;
  border:1px solid #c9c2b8;
  border-radius:2px;
  background:#fff;
  color:var(--ink);
  outline:none;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--focus);
  box-shadow:0 0 0 3px rgba(143,136,126,.12);
}

.field small{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.choice-grid{
  display:grid;
  gap:12px;
}

.role-grid{grid-template-columns:repeat(3,1fr)}
.services-grid,
.objective-grid{grid-template-columns:repeat(3,1fr)}
.timing-grid{grid-template-columns:repeat(2,1fr)}

.choice-card{
  position:relative;
  min-height:72px;
  padding:17px 17px 17px 48px;
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}

.choice-card:hover{
  border-color:#969087;
  transform:translateY(-1px);
}

.choice-card input{
  position:absolute;
  left:17px;
  top:50%;
  width:18px;
  height:18px;
  margin:0;
  transform:translateY(-50%);
  accent-color:var(--dark);
}

.choice-card:has(input:checked){
  border-color:var(--dark);
  background:#f2efe9;
}

.choice-card span{
  font-size:15px;
  line-height:1.4;
}

.information-note{
  margin:26px 0 0;
  padding:16px 18px;
  border-left:4px solid #d1cbc2;
  background:#f7f5f1;
  color:#514d48;
  line-height:1.55;
}

.message-field{margin-top:28px}

.consent-row{
  display:flex;
  gap:13px;
  align-items:flex-start;
  margin:18px 0;
  padding:16px 17px;
  border:1px solid var(--line);
  background:#faf9f7;
  cursor:pointer;
}

.consent-row input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--dark);
}

.consent-row span{
  line-height:1.5;
}

.consent-row em{
  color:var(--muted);
  font-size:13px;
}

.credentials-preview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:28px 0;
}

.credentials-preview div{
  min-height:120px;
  padding:20px;
  background:#f5f2ed;
  border:1px solid var(--line);
}

.credentials-preview span{
  display:block;
  margin-bottom:14px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  color:var(--muted);
}

.credentials-preview strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  font-weight:400;
  line-height:1.35;
}

.privacy-note{
  margin-top:24px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

.form-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:36px;
  padding-top:26px;
  border-top:1px solid var(--soft);
}

.form-message{
  margin-bottom:18px;
  padding:14px 16px;
  border:1px solid #a66e6e;
  background:#fff;
  color:#6e3434;
  line-height:1.45;
}

.success-screen{
  max-width:820px;
  margin:0 auto;
  padding:44px;
  background:#fff;
  border:1px solid var(--line);
}

.success-screen h1{
  font-size:clamp(42px,6vw,68px);
}

.success-screen>p:not(.eyebrow){
  font-size:17px;
  line-height:1.7;
}

.success-mark{
  width:68px;
  height:68px;
  margin:34px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--dark);
  color:#fff;
  font-size:34px;
}

.success-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}


.address-wide{grid-column:span 1}
.civic-field{max-width:220px}
.field select:disabled{background:#f3f1ed;color:#817b73;cursor:not-allowed}
.location-note{
  margin-top:28px;
  padding:16px 18px;
  border:1px solid var(--line);
  background:#f7f5f1;
  color:#514d48;
  font-size:13px;
  line-height:1.55;
}

@media(max-width:760px){
  .site-header{
    min-height:76px;
    padding:12px 20px;
  }

  .brand img{width:145px}
  .header-link{font-size:12px}

  .page-shell{
    width:min(100% - 28px,1080px);
    padding:38px 0 65px;
  }

  h1{font-size:clamp(40px,12vw,62px)}

  .manifesto{
    margin:34px 0 30px;
    padding-left:18px;
  }

  .manifesto p{
    font-size:22px;
  }

  .progress-area{
    padding:21px 18px;
    border-radius:16px;
  }

  #partnerJourney{
    padding:25px 20px;
  }

  .form-grid,
  .role-grid,
  .services-grid,
  .objective-grid,
  .timing-grid,
  .credentials-preview{
    grid-template-columns:1fr;
  }

  .field.full,
  .address-wide{grid-column:auto}
  .civic-field{max-width:none}

  .form-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }

  .form-actions .button{
    width:100%;
  }

  .success-screen{
    padding:28px 22px;
  }
}


/* Collegamento all'informativa privacy */
.privacy-link{
  color:inherit;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.privacy-link:hover,
.privacy-link:focus-visible{
  opacity:.72;
}

.privacy-link:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
  border-radius:2px;
}


/* BTE Partner 2.1 */
.field input[aria-invalid="true"]{border-color:#9a4b4b;box-shadow:0 0 0 3px rgba(154,75,75,.10)}
.privacy-link{color:inherit;font-weight:700;text-underline-offset:3px}
