:root {
  --night: #02090d;
  --deep: #003247;
  --petrol: #07526c;
  --mist: #8fb3c5;
  --gold: #e6c779;
  --gold-light: #f3dfa8;
  --white: #f9fbfc;
  --muted: rgba(249, 251, 252, .68);
  --glass: rgba(255, 255, 255, .055);
  --line: rgba(230, 199, 121, .26);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  background:
    radial-gradient(70% 70% at 12% 100%, rgba(122, 164, 186, .64) 0%, rgba(58, 93, 115, .28) 35%, transparent 72%),
    radial-gradient(70% 65% at 100% 35%, rgba(0, 82, 110, .55), transparent 68%),
    linear-gradient(135deg, #020506 0%, #001a25 47%, #00364b 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  opacity: .4;
}
.ambient-one { width: 420px; height: 420px; background: #267897; left: -220px; bottom: -140px; }
.ambient-two { width: 320px; height: 320px; background: #0a5970; right: -170px; top: 8%; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 116px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.brand img { width: 255px; height: auto; display: block; }
.header-note { text-transform: uppercase; letter-spacing: .32em; font-size: 10px; color: rgba(255,255,255,.52); }

.sample-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(52px, 7vw, 105px);
  align-items: center;
  padding: 72px 0 80px;
  position: relative;
  z-index: 1;
}

.story-panel { padding: 28px 0; animation: reveal .9s ease both; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .22em; font-size: 10px; font-weight: 600; }
.eyebrow span { width: 42px; height: 1px; background: var(--gold); box-shadow: 0 0 12px rgba(230,199,121,.5); }

h1, h2 { font-family: 'Playfair Display', serif; margin: 0; font-weight: 400; }
h1 { margin-top: 24px; font-size: clamp(46px, 5.4vw, 78px); line-height: .98; letter-spacing: -.035em; }
h1 em { color: var(--gold-light); font-weight: 400; }
.lead { max-width: 560px; margin: 30px 0 36px; font-family: 'Playfair Display', serif; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.75); }

.experience-list { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.experience-item { display: grid; grid-template-columns: 54px 1fr; align-items: center; min-height: 54px; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .04em; }
.experience-item:last-child { border-bottom: 0; }
.experience-item strong { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 400; }
.availability { margin: 22px 0 0; font-size: 11px; color: rgba(255,255,255,.43); letter-spacing: .05em; }

.form-card {
  position: relative;
  padding: clamp(30px, 4.4vw, 58px);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 35px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: reveal .9s .14s ease both;
}
.form-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(230,199,121,.09); pointer-events: none; }
.gold-line { position: absolute; top: -1px; left: 11%; right: 11%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 18px rgba(230,199,121,.45); }
.form-heading { position: relative; z-index: 1; margin-bottom: 33px; }
.form-heading > span { color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 10px; }
.form-heading h2 { margin-top: 11px; font-size: clamp(30px, 3vw, 43px); }
.form-heading p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

form { position: relative; z-index: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field-address { grid-column: span 1; }
.field-number { grid-column: span 1; }
.field span { color: rgba(255,255,255,.74); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field small { color: rgba(255,255,255,.38); font-size: 9px; text-transform: lowercase; letter-spacing: .03em; }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 51px; border: 0; border-bottom: 1px solid rgba(255,255,255,.24); border-radius: 0;
  outline: none; padding: 0 2px; color: white; font: 400 15px 'Barlow', sans-serif;
  background: transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
input::placeholder { color: rgba(255,255,255,.28); }
input:focus { border-color: var(--gold); box-shadow: 0 8px 12px -12px rgba(230,199,121,.8); }
input:user-invalid:not(:placeholder-shown) { border-color: rgba(255,120,120,.8); }

.privacy-check { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; margin: 28px 0 24px; color: rgba(255,255,255,.59); font-size: 11px; line-height: 1.55; }
.privacy-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); }
a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.submit-button {
  width: 100%; height: 57px; border: 1px solid var(--gold); border-radius: 0; background: transparent; color: white;
  display: flex; justify-content: center; align-items: center; gap: 15px; cursor: pointer; overflow: hidden; position: relative;
  text-transform: uppercase; letter-spacing: .16em; font: 600 11px 'Barlow', sans-serif; transition: color .4s ease, box-shadow .4s ease;
}
.submit-button::before { content: ""; position: absolute; inset: 0; width: 0; background: var(--gold); transition: width .45s cubic-bezier(.7,0,.2,1); }
.submit-button span, .submit-button svg { position: relative; z-index: 1; }
.submit-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.submit-button:hover { color: #052333; box-shadow: 0 9px 30px rgba(230,199,121,.18); }
.submit-button:hover::before { width: 100%; }
.submit-button:disabled { opacity: .55; cursor: wait; }
.secure-note { margin: 13px 0 0; text-align: center; color: rgba(255,255,255,.34); font-size: 10px; }
.form-status { min-height: 20px; margin-top: 12px; text-align: center; font-size: 12px; }
.form-status.success { color: var(--gold-light); }
.form-status.error { color: #ffb3b3; }

footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 74px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.36); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.footer-separator { width: 22px; height: 1px; background: rgba(255,255,255,.2); }
footer a { color: rgba(255,255,255,.48); }

@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .site-header { height: 96px; }
  .sample-page { grid-template-columns: 1fr; gap: 35px; padding-top: 45px; }
  .story-panel { text-align: center; }
  .eyebrow { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .experience-list { max-width: 620px; margin: 0 auto; text-align: left; }
  .form-card { max-width: 680px; width: 100%; margin: 0 auto; }
}

@media (max-width: 600px) {
  .site-header, .sample-page, footer { width: min(100% - 32px, 1180px); }
  .site-header { height: 84px; }
  .brand img { width: 205px; }
  .header-note { display: none; }
  .sample-page { padding: 38px 0 55px; }
  h1 { font-size: clamp(41px, 13vw, 56px); }
  .lead { font-size: 15px; line-height: 1.65; }
  .form-card { padding: 31px 23px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field, .field-wide, .field-address, .field-number { grid-column: 1; }
  footer { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Campo antispam invisibile agli utenti reali */
.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
