:root {
    --ink: #040d10;
    --deep: #091e24;
    --gold: #ffd28d;
    --gold-dark: #a97931;
    --cream: #f7f0e4;
    --paper: #fffaf2;
    --text: #243238;
    --muted: #6a7478;
    --line: #d9cbb5;
    --error: #a93b34;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: "Prompt", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.event-page {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
}

.event-intro {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    min-height: 100dvh;
    padding: clamp(28px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 13, 16, .18), rgba(4, 13, 16, .88)),
        url("../da_remo_food/Salone/IMG%204.png") center / cover;
}

.event-intro::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 210, 141, .38);
    pointer-events: none;
}

.brand, .intro-copy, .intro-note { position: relative; z-index: 1; }
.brand { width: 132px; height: 132px; display: inline-flex; }
.brand img { width: 100%; filter: invert(91%) sepia(31%) saturate(706%) hue-rotate(331deg) brightness(105%); }

.eyebrow, .step-label {
    margin: 0 0 12px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.intro-copy { max-width: 560px; }
.intro-copy .eyebrow { color: var(--gold); }
.intro-copy h1, .form-header h2, .success-card h2 {
    font-family: "Baskervville", Georgia, serif;
    font-weight: 400;
}
.intro-copy h1 { margin: 0 0 22px; font-size: clamp(46px, 5vw, 76px); line-height: .98; }
.intro-copy > p:last-child { max-width: 48ch; margin: 0; color: rgba(255,255,255,.78); }

.intro-note { display: flex; gap: 14px; max-width: 48ch; color: rgba(255,255,255,.72); font-size: 13px; }
.intro-note span { color: var(--gold); }
.intro-note p { margin: 0; }

.form-panel { background: var(--cream); padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 104px); }
.form-header, form, .success-card { width: 100%; max-width: 760px; margin-inline: auto; }
.form-header { margin-bottom: 42px; }
.form-header h2, .success-card h2 { margin: 0 0 8px; color: var(--deep); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.form-header > p:last-child, .success-card > p { color: var(--muted); margin: 0; }

fieldset { border: 0; padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--line); }
legend { width: 100%; margin-bottom: 24px; color: var(--deep); font-family: "Baskervville", Georgia, serif; font-size: 25px; }
legend span { margin-right: 12px; color: var(--gold-dark); font-family: "Prompt", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .15em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { display: block; margin-bottom: 7px; color: var(--deep); font-size: 13px; font-weight: 600; }

input:not([type="checkbox"]), select, textarea {
    width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 2px;
    background: rgba(255,255,255,.64); padding: 12px 14px; color: var(--text);
    font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 108px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a9294; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold-dark); background: #fff; box-shadow: 0 0 0 3px rgba(169,121,49,.16); }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: 13px; }
.errorlist { list-style: none; padding: 0; margin: 0; }
.error-summary { max-width: 760px; margin: 0 auto 28px; padding: 14px 18px; border-left: 3px solid var(--error); background: #f8e6e3; color: #782822; }

.checkbox-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.checkbox-group li label { min-height: 48px; display: flex; align-items: center; gap: 11px; margin: 0; padding: 10px 13px; border: 1px solid var(--line); background: rgba(255,255,255,.55); cursor: pointer; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--gold-dark); flex: 0 0 auto; }

.privacy-field { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-items: start; margin-bottom: 28px; }
.privacy-field input { margin: 4px 0 0; }
.privacy-field label { color: var(--muted); font-size: 13px; cursor: pointer; }
.privacy-field .field-error { grid-column: 2; }

.primary-button {
    min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 34px;
    border: 1px solid var(--deep); border-radius: 0; padding: 13px 22px; background: var(--deep);
    color: #fff; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.primary-button:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.primary-button:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: .58; transform: none; }
.submit-button { width: 244px; }
.button-arrow { font-size: 20px; line-height: 1; }
.form-footnote {
    width: 244px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.success-card { min-height: calc(100dvh - 192px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--gold-dark); border-radius: 50%; color: var(--gold-dark); font-size: 28px; }
.success-card > p:not(.eyebrow) { max-width: 52ch; margin-bottom: 28px; }

@media (max-width: 900px) {
    .event-page { display: block; }
    .event-intro { position: relative; height: auto; min-height: 560px; }
    .intro-copy h1 { font-size: clamp(48px, 12vw, 70px); }
    .form-panel { padding-top: 56px; }
    .success-card { min-height: 55dvh; }
}

@media (max-width: 560px) {
    .event-intro { min-height: 520px; padding: 38px 32px; }
    .event-intro::after { inset: 12px; }
    .brand { width: 100px; height: 100px; }
    .form-panel { padding: 48px 20px 64px; }
    .form-grid, .checkbox-group ul { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .form-footnote { width: 100%; margin-top: 12px; }
    .submit-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
