/* =========================================================================
   Stile del sito pubblico. Colori principali qui sotto.
   ========================================================================= */
:root {
  --bg: #0c0b0e;
  --bg-2: #131116;
  --card: #18151c;
  --card-2: #1f1b24;
  --line: rgba(255, 255, 255, .09);
  --text: #f3efe8;
  --muted: #a8a197;
  --gold: #d6b264;
  --gold-2: #b38d3e;
  --gold-soft: rgba(214, 178, 100, .14);
  --rose: #e7a9bb;
  --ok: #4fae7a;
  --warn: #d9a441;
  --bad: #d06464;
  --cream: #f7f4ec;
  --ink: #1d1b20;
  --radius: 16px;
  --serif: "Playfair Display", "Didot", "Bodoni 72", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1.2 var(--sans); cursor: pointer; text-decoration: none !important;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, #e6c67d, var(--gold) 45%, var(--gold-2)); color: #18120a; box-shadow: 0 8px 26px rgba(214, 178, 100, .25); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(214, 178, 100, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.linklike { background: none; border: 0; color: var(--muted); padding: 0; font: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--gold); }
.link-gold { color: var(--gold); font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 11, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-size: 1.25rem; text-decoration: none !important; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--muted); font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(214, 178, 100, .45), transparent 70%); top: -160px; right: -120px; }
.g2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(231, 169, 187, .28), transparent 70%); bottom: -220px; left: -160px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: #d7d1c7; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks .ico { color: var(--gold); width: 18px; height: 18px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; background: linear-gradient(160deg, #1f1b24, #141117); border: 1px solid var(--line); border-radius: 34px; padding: 22px 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.phone-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.phone-top b { display: block; font-size: .95rem; }
.phone-top small { color: var(--muted); font-size: .78rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--rose)); }
.bubble { font-size: .86rem; padding: 10px 14px; border-radius: 16px; margin-bottom: 10px; max-width: 86%; line-height: 1.4; }
.bubble.in { background: var(--card-2); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--gold-soft); color: #f1dfb7; margin-left: auto; border-bottom-right-radius: 4px; }
.phone-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.phone-cards div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.phone-cards .ico { color: var(--gold); }
.float-card { position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(24, 21, 28, .92); border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px; font-size: .85rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.float-card .ico { color: var(--gold); width: 18px; }
.fc1 { top: -18px; left: 10px; }
.fc2 { bottom: -16px; right: 10px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero { padding: 44px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .fc1 { left: 0; } .fc2 { right: 0; }
}

/* ---------- sezioni ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; color: var(--text); }
.card > .ico { color: var(--gold); width: 30px; height: 30px; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .4em; }
a.card:hover { border-color: rgba(214, 178, 100, .5); transform: translateY(-3px); text-decoration: none; }
.guide-card small { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.guide-card h3, .guide-card h2 { margin: 10px 0; }
.guide-card p { margin-bottom: 16px; }
.quote p { color: var(--text); font-style: italic; }
.quote footer { margin-top: 14px; color: var(--gold); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; color: var(--muted); }
.list-check b { color: var(--text); font-weight: 600; }
.list-check .ico { color: var(--gold); margin-top: 2px; }
.who { display: grid; gap: 14px; }
.who-card { background: linear-gradient(135deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 20px 24px; }
.who-card h3 { font-size: 1.1rem; }
.who-card p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { color: var(--muted); padding: 0 0 18px; }
.faq.light details { border-color: #e2dccd; }
.faq.light details > div { color: #4a463f; }

.cta-band { padding: 90px 0; text-align: center; background: radial-gradient(ellipse at center, rgba(214, 178, 100, .18), transparent 65%), var(--bg); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.callout { margin: 48px 0 24px; padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, #1f1a14, #16131a); border: 1px solid rgba(214, 178, 100, .35); text-align: center; color: var(--text); }
.callout h3 { color: var(--text); margin-bottom: .3em; }
.callout p { color: var(--muted); }

/* ---------- pagine interne ---------- */
.page-hero { padding: 72px 0 36px; background: radial-gradient(ellipse at top right, rgba(214, 178, 100, .14), transparent 60%); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose p, .prose li { color: #d9d3c9; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-weight: 600; }
.legal h2 { font-size: 1.45rem; }

/* articolo (sfondo chiaro per una lettura comoda) */
.article-head { padding: 56px 0 40px; background: radial-gradient(ellipse at top right, rgba(214, 178, 100, .16), transparent 60%); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-meta { color: var(--muted); font-size: .88rem; margin: 0; }
.article-body { background: var(--cream); color: var(--ink); border-radius: 22px 22px 0 0; padding-top: 48px; padding-bottom: 56px; margin-bottom: 0; }
.article { background: linear-gradient(var(--bg) 0, var(--bg) 100%); }
.article-body.prose p, .article-body.prose li { color: #37332d; font-size: 1.06rem; line-height: 1.75; }
.article-body.prose strong { color: #17140f; }
.article-body.prose h2, .article-body.prose h3 { color: #17140f; }
.article-body.prose a { color: #8a6420; text-decoration: underline; }
.article-body.prose th { color: #8a6420; }
.article-body.prose td, .article-body.prose th { border-color: #e2dccd; }
.article-body .callout { color: var(--text); }
.article-body .callout a.btn { color: #18120a; text-decoration: none; }
.toc { background: #fff; border: 1px solid #e2dccd; border-radius: 12px; padding: 18px 22px; margin-bottom: 32px; }
.toc strong { font-family: var(--serif); font-size: 1.1rem; }
.toc ol { margin: 10px 0 0; }
.toc a { color: #5a4318 !important; text-decoration: none !important; }
.box-tip { background: #fff; border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 20px; margin: 1.4em 0; }
.box-tip p:last-child { margin: 0; }
.disclaimer { font-size: .85rem !important; color: #7a756c !important; }
@media (max-width: 620px) { .article-body { border-radius: 16px 16px 0 0; } }

.thanks-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; background: var(--gold-soft); border: 1px solid var(--gold); }
.thanks-icon .ico { width: 38px; height: 38px; color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 24px; background: #09080b; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; }
.footer-grid h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 14px; }
.footer-grid a:not(.brand), .footer-grid .linklike { display: block; color: var(--muted); padding: 4px 0; font-size: .93rem; }
.footer-grid a:not(.brand):hover { color: var(--text); text-decoration: none; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: #7d776e; font-size: .8rem; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 760px; background: #17141b; border: 1px solid rgba(214, 178, 100, .35); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); font-size: .9rem; color: #d6d0c6; }
.cookie-inner p { margin-bottom: 14px; }
.cookie-prefs { display: grid; gap: 10px; margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .cookie-actions .btn { flex: 1; } }

/* ---------- consenso / checkbox ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; color: #d6d0c6; line-height: 1.5; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { flex: none; width: 22px; height: 22px; border: 1.5px solid #6a6359; border-radius: 6px; margin-top: 1px; display: grid; place-items: center; transition: all .15s; }
.consent input:checked + .box { background: var(--gold); border-color: var(--gold); }
.consent input:checked + .box::after { content: ""; width: 6px; height: 11px; border: solid #18120a; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consent input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent input:disabled + .box { opacity: .6; }

/* ---------- modulo di candidatura ---------- */
.apply { padding: 48px 0 90px; }
.apply-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.apply-side { position: sticky; top: 96px; }
.apply-side h1 { font-size: 2.2rem; }
.step-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 4px; }
.step-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 10px; border-radius: 10px; font-size: .95rem; }
.step-list li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: .8rem; flex: none; }
.step-list li.done { color: var(--text); cursor: pointer; }
.step-list li.done span { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.step-list li.current { background: var(--card); color: var(--text); }
.step-list li.current span { background: var(--gold); color: #18120a; border-color: var(--gold); }
.reassure p { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.reassure .ico { color: var(--gold); width: 18px; }
.apply-main { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; min-width: 0; }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .35s; }
.progress-label { font-size: .82rem; color: var(--muted); margin: 10px 0 26px; }
.step-head { margin-bottom: 26px; }
.step-head h2 { margin-bottom: .25em; }
.form-section + .form-section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section h3 { color: var(--gold); font-size: 1.3rem; }
.note { color: var(--muted); font-size: .9rem; }
.fields { display: flex; flex-wrap: wrap; gap: 22px 20px; }
.field { flex: 1 1 100%; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.half { flex: 1 1 calc(50% - 10px); }
.field[hidden] { display: none; }
.field > label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field > label.consent { display: flex; font-weight: 400; margin: 0; }
.req { color: var(--gold); }
.help { display: block; color: var(--muted); font-size: .83rem; margin: -4px 0 10px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid #34303a; border-radius: 12px;
  padding: 13px 14px; font: 16px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[type=date] { color-scheme: dark; min-height: 50px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.err { color: #ef8c8c; font-size: .85rem; margin-top: 6px; }
.err:empty { display: none; }
.suffix { position: relative; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suffix input { padding-right: 46px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid #3a3540; border-radius: 999px; cursor: pointer; font-size: .92rem; color: #d6d0c6; transition: all .15s; user-select: none; }
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: #f3dfb0; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips.maxed .chip input:not(:checked) + span { opacity: .4; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.matrix-legend { display: none; }
.matrix-group { margin-bottom: 24px; }
.matrix-group h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 8px; }
.matrix-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.matrix-label strong { display: block; font-weight: 600; font-size: .95rem; }
.matrix-label small { color: var(--muted); font-size: .82rem; }
.seg { display: flex; flex: none; background: var(--bg); border: 1px solid #34303a; border-radius: 999px; padding: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 13px; border-radius: 999px; font-size: .84rem; cursor: pointer; color: var(--muted); white-space: nowrap; transition: all .15s; }
.seg-si input:checked + span { background: var(--ok); color: #fff; }
.seg-valutare input:checked + span { background: var(--warn); color: #1d1404; }
.seg-no input:checked + span { background: var(--bad); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.matrix-row.missing .seg { border-color: var(--bad); }
@media (max-width: 640px) { .matrix-row { flex-direction: column; align-items: stretch; gap: 10px; } .seg { justify-content: space-between; } .seg label { flex: 1; text-align: center; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.photo-grid .ph { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.photo-grid .ph.loading::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23d6b264' stroke-width='4' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/38px no-repeat; }
.photo-add { aspect-ratio: 3/4; border: 1.5px dashed #4a4450; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: .85rem; text-align: center; transition: border-color .15s, color .15s; }
.photo-add:hover { border-color: var(--gold); color: var(--gold); }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-add .ico { width: 28px; height: 28px; }
.field-photos { margin-bottom: 30px; }
.field-captcha { margin-top: 28px; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--line); }
.captcha-row input { max-width: 160px; text-transform: uppercase; letter-spacing: .2em; }
.alert { background: rgba(208, 100, 100, .12); border: 1px solid rgba(208, 100, 100, .45); color: #f2b5b5; padding: 14px 16px; border-radius: 12px; margin: 22px 0 0; font-size: .92rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.saved-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px); background: #1f1b24; border: 1px solid var(--gold); color: var(--text); padding: 10px 18px; border-radius: 99px; font-size: .88rem; transition: transform .3s; z-index: 80; }
.saved-toast.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 960px) {
  .apply { padding: 24px 0 60px; }
  .apply-grid { grid-template-columns: 1fr; gap: 20px; }
  .apply-side { position: static; }
  .apply-side h1 { font-size: 1.8rem; }
  .step-list, .reassure { display: none; }
  .apply-main { padding: 24px 18px; border-radius: 18px; }
}
@media (max-width: 560px) {
  .field.half { flex-basis: 100%; }
  .step-nav .btn { flex: 1; }
  .wrap { padding: 0 16px; }
}
