/* ══ PAGE-SPECIFIC OVERRIDES ══ */
body { background: var(--dark); }

.cta-final{
    display: none;
}

.cand-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0;
    background: rgba(11,13,18,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .3s;
}
.cand-nav .container { display: flex; justify-content: space-between; align-items: center; }
.cand-nav .nav-logo { font-family: var(--fd); font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #fff; text-decoration: none; }
.cand-nav .nav-logo span { color: var(--gold); }
.cand-nav .nav-back { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color var(--t); }
.cand-nav .nav-back:hover { color: var(--gold); }

/* HERO INTRO */
.cand-hero {
    padding-top: 30px; padding-bottom: 64px;
    text-align: center;
    position: relative; overflow: hidden;
}
.cand-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,164,0,.08) 0%, transparent 70%);
    pointer-events: none;
}
.cand-hero .ch-over {
    font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); opacity: .8;
    margin-bottom: 20px; display: block;
}
.cand-hero h1 {
    font-family: var(--fd); font-size: clamp(44px, 6vw, 80px); font-weight: 900;
    text-transform: uppercase; line-height: .92; color: #fff;
    margin-bottom: 24px;
}
.cand-hero h1 span { color: var(--gold); }
.cand-hero h5 {
    font-size: 18px; color: rgba(255,255,255,.5); max-width: 580px;
    line-height: 1.7; margin-inline: auto; margin-bottom: 18px;
    font-weight: 400;
}
.cand-hero .ch-sub {
    font-size: 15px; color: rgba(255,255,255,.35); max-width: 540px;
    line-height: 1.7; margin-inline: auto; margin-bottom: 36px;
}
.cand-hero .ch-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--fd); font-size: 12px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
    opacity: .6; animation: bounce 2s infinite; text-decoration: none;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* INTRO BLOCK */
.cand-intro { padding-bottom: 64px; }
.cand-intro .container { max-width: 760px; }
.ci-box {
    background: var(--dark-2); border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--rm); padding: 44px 48px;
}
.ci-welcome {
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 20px;
}
.ci-title {
    font-family: var(--fd); font-size: clamp(22px, 2.5vw, 30px); font-weight: 900;
    text-transform: uppercase; color: #fff; line-height: 1.1; margin-bottom: 28px;
}
.ci-title span { color: var(--gold); }
.ci-lead { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 32px; }
.ci-points { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.ci-point {
    display: grid; grid-template-columns: 28px 1fr; gap: 0 16px;
    padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.ci-point:last-child { border-bottom: none; }
.ci-n { font-family: var(--fd); font-size: 11px; font-weight: 900; color: var(--gold); opacity: .5; padding-top: 2px; letter-spacing: .06em; }
.ci-text { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.65; }
.ci-text strong { color: #fff; font-weight: 600; }
.ci-select { background: rgba(232,164,0,.07); border: 1px solid rgba(232,164,0,.18); border-radius: 10px; padding: 22px 26px; margin-top: 8px; }
.ci-select p { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; margin: 0; }
.ci-select p strong { color: rgba(255,255,255,.85); }
.ci-cta-txt { font-size: 15px; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); }
.ci-cta-txt a { color: var(--gold); text-decoration: none; }
.ci-cta-txt strong { color: rgba(255,255,255,.75); }

/* FORM SECTION */
.cand-form-sec { padding-bottom: 100px; scroll-margin-top: 80px; }
.cand-form-sec .container { max-width: 760px; }

.cf-header { text-align: center; margin-bottom: 44px; }
.cf-header .label { justify-content: center; margin-bottom: 12px; }
.cf-header h2 { font-family: var(--fd); font-size: clamp(30px,3.5vw,48px); font-weight: 900; text-transform: uppercase; color: #fff; line-height: .95; }
.cf-header h2 span { color: var(--gold); }
.cf-header p { font-size: 15px; color: var(--muted); margin-top: 14px; }

.cform {
    background: var(--dark-2); border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--rm); padding: 44px 48px;
}

.cform-section { margin-bottom: 36px; }
.cform-section-title {
    font-family: var(--fd); font-size: 10px; font-weight: 800;
    letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
    opacity: .6; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(232,164,0,.12);
}

.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.cform-field:last-child { margin-bottom: 0; }
.cform-field label {
    font-family: var(--fd); font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4);
}
.cform-field .req { color: var(--gold); opacity: .7; }

.cform-field input,
.cform-field textarea,
.cform-field select {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: 13px 16px;
    font-family: var(--fb); font-size: 15px; color: #fff;
    transition: border-color var(--t), background var(--t);
    outline: none; width: 100%; box-sizing: border-box;
    appearance: none;
}
.cform-field select { cursor: pointer; }
.cform-field input:focus,
.cform-field textarea:focus,
.cform-field select:focus { border-color: rgba(232,164,0,.5); background: rgba(232,164,0,.04); }
.cform-field input::placeholder,
.cform-field textarea::placeholder { color: rgba(255,255,255,.2); }
.cform-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }

/* ── Errori campo ── */
.field-error {
    font-size: 12px; color: #ff5f5f;
    font-family: var(--fd); letter-spacing: .06em;
    min-height: 16px; display: block;
}
.cform-field.has-error input,
.cform-field.has-error textarea,
.cform-field.has-error select {
    border-color: rgba(255, 95, 95, .5);
    background: rgba(255, 95, 95, .04);
}
.privacy-error { display: block; margin-top: 6px; font-size: 12px; color: #ff5f5f; }

/* Radio */
.cform-radio-group { display: flex; flex-direction: column; gap: 8px; }
.cform-radio {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08); cursor: pointer;
    transition: border-color var(--t), background var(--t);
}
.cform-radio:hover { border-color: rgba(232,164,0,.25); background: rgba(232,164,0,.03); }
.cform-radio input[type="radio"] { display: none; }
.cform-radio input[type="radio"]:checked + .cr-dot { background: var(--gold); border-color: var(--gold); }
.cform-radio input[type="radio"]:checked ~ .cr-label { color: #fff; }
.cr-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); flex-shrink: 0; transition: all var(--t); }
.cr-label { font-size: 14px; color: rgba(255,255,255,.5); transition: color var(--t); }

/* Scale 1–10 */
.cform-scale { display: flex; gap: 6px; }
.scale-btn {
    flex: 1; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid rgba(255,255,255,.1);
    font-family: var(--fd); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.3);
    cursor: pointer; transition: all var(--t); background: none;
}
.scale-btn:hover,
.scale-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* Privacy */
.cform-privacy {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 8px;
}
.cform-privacy input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); margin-top: 2px; cursor: pointer; }
.cform-privacy label { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.6; cursor: pointer; }
.cform-privacy a { color: var(--gold); text-decoration: none; }

/* Submit */
.cform-submit { margin-top: 28px; text-align: center; }

/* ── Bottone stati: loading ── */
.btn .btn-loading { display: none; align-items: center; gap: 8px; }
.btn .btn-text    { display: flex; align-items: center; }
.btn.is-loading .btn-text    { display: none; }
.btn.is-loading .btn-loading { display: flex; }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(11,13,18,.3);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cform-note { font-size: 13px; color: rgba(255,255,255,.25); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ── Feedback box (success / error) ── */
.form-feedback {
    display: none;
    margin-top: 24px;
    border-radius: 10px;
    padding: 20px 22px;
    display: none;
    align-items: flex-start;
    gap: 16px;
}
.form-feedback.feedback-success {
    display: flex;
    background: rgba(39,174,96,.08);
    border: 1px solid rgba(39,174,96,.25);
}
.form-feedback.feedback-error {
    display: flex;
    background: rgba(255,95,95,.07);
    border: 1px solid rgba(255,95,95,.2);
}
.fb-icon {
    font-family: var(--fd); font-size: 20px; font-weight: 900;
    flex-shrink: 0; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.feedback-success .fb-icon { background: rgba(39,174,96,.15); color: #27ae60; }
.feedback-error   .fb-icon { background: rgba(255,95,95,.15);  color: #ff5f5f; }
.fb-msg { font-size: 15px; line-height: 1.6; }
.feedback-success .fb-msg { color: rgba(255,255,255,.75); }
.feedback-error   .fb-msg { color: rgba(255,255,255,.65); }
.fb-msg strong { color: #fff; }
.fb-msg small  { font-size: 13px; color: rgba(255,255,255,.35); }

/* RASSICURAZIONE */
.cand-footer-note { padding-bottom: 80px; }
.cand-footer-note .container { max-width: 760px; }
.cfn-inner {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--rm); overflow: hidden;
}
.cfn-item { background: var(--dark-2); padding: 24px 22px; text-align: center; }
.cfn-ico { font-size: 24px; margin-bottom: 10px; }
.cfn-title { font-family: var(--fd); font-size: 13px; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 6px; letter-spacing: .04em; }
.cfn-text { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.55; }

/* FOOTER MINIMAL */
.cand-foot { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; text-align: center; }
.cand-foot p { font-size: 12px; color: rgba(255,255,255,.2); }
.cand-foot a { color: rgba(255,255,255,.3); text-decoration: none; margin: 0 8px; transition: color var(--t); }
.cand-foot a:hover { color: var(--gold); }

@media (max-width: 640px) {
    .ci-box, .cform { padding: 28px 22px; }
    .cform-row { grid-template-columns: 1fr; }
    .cfn-inner { grid-template-columns: 1fr; }
    .cform-scale { flex-wrap: wrap; }
    .scale-btn { flex: 0 0 calc(20% - 5px); }
}
