/* Thumb – stile condiviso del sito */
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --pearl: #ebe4e3;
  --pearl-soft: #f4efee;
  --pearl-line: #d6ccca;
  --navy: #152c50;
  --navy-hi: #25446d;
  --navy-deep: #0d1d3a;
  --steel: #6b7f99;
  --steel-ink: #4c5d76;
  --gold: #d6bf9c;
  --gold-hi: #f3e3c6;
  --ink: #26324a;
  --error: #b3261e;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-hi); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Testata */
.site-head { padding: 18px 0 10px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand span { font-weight: 700; font-size: 1.15rem; letter-spacing: .22em; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--steel-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--navy); }
@media (max-width: 720px) { .site-nav { display: none; } }

/* Apertura */
.hero { padding: 0 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
.hero h1 {
  margin: 0 auto 14px;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 18ch;
}
.hero .lead { margin: 0 auto 14px; max-width: 48ch; font-size: 1.05rem; color: var(--ink); }
.where { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-weight: 600; color: var(--navy); }
.where svg { flex: none; }
.hero .sign { width: 100%; max-width: 560px; text-align: left; }
@media (max-width: 900px) {
  .hero { padding: 6px 0 56px; }
  .hero .wrap { gap: 28px; }
}

/* Il cartello con il modulo */
.sign {
  position: relative;
  padding: 40px 34px 34px;
  border-radius: 44px;
  background: linear-gradient(165deg, var(--navy-hi) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  border: 8px solid var(--steel);
  color: var(--gold-hi);
  box-shadow: 0 24px 48px -28px rgba(13, 29, 58, .55);
}
.sign::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--gold);
  border-radius: 33px;
  pointer-events: none;
}
.sign-title { margin: 0; text-align: center; font-weight: 600; line-height: 1.05; }
.sign-title b { display: block; font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.1rem); letter-spacing: .01em; }
.sign-title span { display: block; font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #ead7b7; margin-top: 4px; }
.hand { width: 54px; height: 70px; margin: 16px auto 10px; }
.sign-cta { position: relative; z-index: 1; margin: 0 0 22px; text-align: center; font-weight: 700; font-size: 1.3rem; color: var(--gold-hi); }
.hand path, .hand rect { stroke: url(#gold); }
@media (prefers-reduced-motion: no-preference) {
  .hand { animation: nudge 1.1s ease-in-out .8s 2; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(9px); } }

.form { position: relative; z-index: 1; display: grid; gap: 18px; }
.field label, .field legend { display: block; margin: 0 0 7px; padding: 0; font-weight: 600; font-size: .95rem; color: var(--gold-hi); }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type="email"], .field input[type="text"], .field input[type="tel"] {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--pearl-soft);
  color: var(--navy-deep);
  font: inherit;
  font-weight: 600;
}
.field input::placeholder { color: #8b93a3; font-weight: 500; }
.field input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 191, 156, .35); }
.field label small { margin-left: 6px; font-size: .8rem; font-weight: 500; color: #cdbfa8; }
.tel-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.tel-row select {
  padding: 13px 10px; border: 2px solid transparent; border-radius: 14px;
  background: var(--pearl-soft); color: var(--navy-deep); font: inherit; font-weight: 600;
}
.tel-row select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 191, 156, .35); }
.field .hint { margin: 6px 0 0; font-size: .85rem; color: #cdbfa8; font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; position: relative; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-block;
  padding: 9px 16px;
  border: 2px solid rgba(214, 191, 156, .6);
  border-radius: 999px;
  color: var(--gold-hi);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
}
.pills input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.pills input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.45; color: #e6d9c3; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.check a { color: var(--gold-hi); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--navy-deep);
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.04); }
.btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.captcha { min-height: 78px; display: flex; justify-content: center; }
.note-small { position: relative; z-index: 1; margin: -4px 0 0; font-size: .85rem; color: #cdbfa8; font-weight: 500; }
.msg { margin: 0; min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--gold-hi); }
.msg.err { color: #ffb4ab; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { position: relative; z-index: 1; text-align: center; padding: 10px 6px 4px; }
.done p { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: var(--gold-hi); }
.done small { display: block; font-size: .95rem; color: #e6d9c3; font-weight: 500; }

@media (max-width: 420px) {
  .sign { padding: 34px 22px 26px; border-width: 7px; border-radius: 36px; }
  .sign::after { inset: 9px; border-radius: 27px; }
}

/* Sezioni */
.section { padding: 72px 0; }
.section h2 { margin: 0 0 12px; color: var(--navy); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }
.section .intro { margin: 0 0 40px; max-width: 56ch; }
.band { background: var(--pearl-soft); border-top: 1px solid var(--pearl-line); border-bottom: 1px solid var(--pearl-line); }

/* Come funziona: le tappe di un percorso */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.route::before {
  content: "";
  position: absolute;
  top: 21px; left: 23px; right: calc((100% - 84px) / 4 - 23px);
  border-top: 3px dashed var(--gold);
}
.route li { position: relative; }
.stop {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  color: var(--gold-hi);
  font-weight: 700;
}
.route h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.route p { margin: 0; font-size: .98rem; }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .route::before { top: 22px; bottom: 22px; left: 21px; right: auto; border-top: 0; border-left: 3px dashed var(--gold); }
  .route li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; }
  .stop { margin: 0; grid-row: span 2; }
}

/* Due ruoli */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.role { padding: 6px 40px 6px 0; }
.role + .role { padding: 6px 0 6px 40px; border-left: 3px dashed var(--pearl-line); }
.role h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.4rem; font-weight: 700; }
.role p { margin: 0 0 10px; max-width: 46ch; }
.role .note { color: var(--steel-ink); font-size: .95rem; }
@media (max-width: 760px) {
  .roles { grid-template-columns: 1fr; }
  .role { padding: 0 0 26px; }
  .role + .role { padding: 26px 0 0; border-left: 0; border-top: 3px dashed var(--pearl-line); }
}

/* Sicurezza */
.safety { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; margin: 0; padding: 0; list-style: none; }
.safety li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.safety svg { width: 44px; height: 44px; }
.safety h3 { margin: 2px 0 4px; color: var(--navy); font-size: 1.1rem; font-weight: 700; }
.safety p { margin: 0; max-width: 44ch; }
@media (max-width: 760px) { .safety { grid-template-columns: 1fr; } }

/* Invito finale */
.closing { padding: 64px 0 80px; text-align: center; }
.closing p { margin: 0 auto 22px; max-width: 34ch; color: var(--navy); font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.25; }
.btn-navy {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold-hi);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.btn-navy:hover { background: var(--navy-deep); color: var(--gold-hi); }

/* Piede */
.site-foot { padding: 40px 0 48px; border-top: 1px solid var(--pearl-line); font-size: .92rem; color: var(--steel-ink); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.site-foot p { margin: 0; max-width: 52ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--navy); font-weight: 600; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Pagine di testo (privacy, note legali) */
.doc { padding: 24px 0 72px; }
.doc article { max-width: 72ch; }
.doc h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.doc .updated { margin: 0 0 34px; color: var(--steel-ink); font-size: .95rem; }
.doc h2 { margin: 38px 0 10px; color: var(--navy); font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.doc p, .doc li { max-width: 72ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--pearl-line); }
.doc th { color: var(--navy); font-weight: 700; width: 34%; }
.doc table.purposes th { width: 55%; font-weight: 600; }
.doc table.purposes tr:first-child th { font-weight: 700; border-bottom: 2px solid var(--navy); }
mark.todo { background: #ffe9a8; color: var(--navy-deep); padding: 0 4px; border-radius: 4px; }

/* Selettore lingua */
.head-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  padding: 6px 7px; border-radius: 8px;
  color: var(--steel-ink); text-decoration: none;
  font-weight: 700; font-size: .8rem; letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--navy); background: var(--pearl-soft); }
.lang-switch a[aria-current="page"] { background: var(--navy); color: var(--gold-hi); }
@media (max-width: 420px) { .lang-switch a { padding: 5px 5px; font-size: .75rem; } .brand span { letter-spacing: .14em; } }
