:root {
    --navy: #032b45;
    --navy-2: #042336;
    --navy-3: #1d4158;
    --orange: #fd8e00;
    --muted: #4f6b7d;
    --muted-2: #8fa6b5;
    --white: #ffffff;
    --mint: #93f3e1;
    --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Open Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
    background: #000 no-repeat center top;
}
a { color: var(--orange); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: var(--navy);
    box-shadow: 0 0 40px rgba(0,0,0,.6);
}
#header { text-align: center; padding: 10px 20px 24px; }
#logo { display: block; width: 300px; height: auto; margin: 0 auto; }
#header h1 {
    margin: 0 0 8px;
    font-weight: 800;
    font-size: clamp(22px, 4.5vw, 34px);
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--orange);
}
#header .sub { margin: 0 auto; max-width: 560px; color: var(--muted-2); }

#content { padding: 0 20px 20px; }
.step { margin-bottom: 36px; }
.step-title {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 0 0 16px;
    font-weight: 700; font-size: 18px; text-transform: uppercase;
    color: var(--white);
}
.step-title .num {
    display: inline-block; padding: 3px 10px;
    background: var(--orange); color: var(--navy);
    font-size: 12px; font-weight: 800; border-radius: 3px;
}
.bowling-title { margin-top: 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.card {
    display: flex; flex-direction: column;
    background: var(--navy-2);
    border: 2px solid var(--navy-3);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--muted); }
.card.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253,142,0,.25); }
.card-head { padding: 16px 16px 12px; background: var(--navy-3); }
.card.bowling .card-head { background: #2a4a2f; }
.badge {
    display: inline-block; margin-bottom: 6px; padding: 2px 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    background: var(--orange); color: var(--navy); border-radius: 3px;
}
.card-head h3 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.card-body { flex: 1; padding: 14px 16px; }
.card-body .valido { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 12px; color: var(--orange); }
.card-body .composto { margin: 0 0 6px; color: var(--muted-2); font-size: 13px; }
.card-body ul { margin: 0 0 12px; padding-left: 18px; }
.card-body li { margin-bottom: 3px; }
.prezzi { margin: 0 0 10px; padding: 10px; background: rgba(255,255,255,.05); border-radius: 4px; }
.prezzi div { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.prezzi dt { text-transform: uppercase; font-size: 12px; }
.prezzi dd { margin: 0; color: var(--orange); text-align: right; }
.plus { margin: 0 0 8px; font-size: 12px; color: var(--mint); font-weight: 600; }
.link-clausole {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--orange); font: inherit; font-weight: 700; font-size: 12px; text-transform: uppercase;
    text-decoration: underline;
}
.link-clausole:hover { color: var(--white); }

.btn {
    display: block; width: 100%; padding: 12px 16px;
    background: var(--orange); color: var(--navy);
    font-weight: 800; font-size: 14px; text-transform: uppercase; text-align: center;
    border: 0; border-radius: 0; text-decoration: none; cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.btn:hover { background: #ffa63a; color: var(--navy); }
.btn.invia { margin-top: 16px; border-radius: var(--radius); font-size: 16px; padding: 14px; }

/* multisala */
.multisala-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.multisala-btn {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px 14px; text-align: left; cursor: pointer;
    font-family: inherit; color: var(--white);
    background: var(--navy-2); border: 2px solid var(--navy-3); border-radius: var(--radius);
    transition: border-color .2s, background .2s;
}
.multisala-btn:hover { border-color: var(--muted); }
.multisala-btn.active { border-color: var(--orange); background: #0a3a5c; box-shadow: 0 0 0 3px rgba(253,142,0,.25); }
.multisala-btn .mp { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.multisala-btn .nm { font-size: 15px; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.multisala-btn .extra { margin-top: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--navy); background: var(--mint); padding: 1px 6px; border-radius: 3px; }
.multisala-btn.active::after { content: '\2713'; position: absolute; top: 8px; right: 10px; font-weight: 800; color: var(--orange); }
.scelta-multisala { font-size: 14px; font-weight: 600; text-transform: none; color: var(--orange); }
.bowling-note { margin: -8px 0 12px; font-size: 12px; color: var(--muted-2); }
#bowling-block[hidden] { display: none; }

/* step consequenziali */
.lock-hint { display: none; margin: 0; padding: 14px; text-align: center; color: var(--muted-2); border: 1px dashed var(--muted); border-radius: var(--radius); }
.step.locked .lock-hint { display: block; }
.step.locked .step-body { display: none; }
.step.locked .step-title { color: var(--muted-2); }
.step.locked .step-title .num { background: var(--navy-3); color: var(--muted-2); }

/* film / orari da programmazione */
.altro-input { display: none; margin-top: 8px; }
.altro-input.show { display: block; }
.field small.avviso { color: var(--mint); font-weight: 600; }

/* form */
#form-richiesta {
    background: var(--navy-2);
    border: 2px solid var(--navy-3);
    border-radius: var(--radius);
    padding: 20px;
}
fieldset { border: 0; margin: 0; padding: 0; }
.form-body { display: none; }
#form-richiesta.has-pack .form-body { display: block; }
.only-cinema, .only-bowling, .field small.only-cinema, .field small.only-bowling { display: none; }
.tipo-cinema .only-cinema, .tipo-cinema .field small.only-cinema { display: block; }
.tipo-bowling .only-bowling, .tipo-bowling .field small.only-bowling { display: block; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 13px; color: var(--orange); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
    width: 100%; padding: 10px 12px; min-height: 44px;
    font: inherit; font-size: 15px; line-height: 1.4; color: var(--navy);
    background: var(--white); border: 1px solid var(--muted); border-radius: 4px;
    color-scheme: light;
    -webkit-appearance: none; appearance: none;
}
.field select {
    padding-right: 40px; cursor: pointer; font-weight: 600;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23fd8e00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field select:invalid, .field select option[value=""] { color: var(--muted); }
.field select option { color: var(--navy); font-weight: 400; }
.field select optgroup { font-weight: 700; color: var(--orange); }
#pacchetto { border-color: var(--orange); font-size: 16px; }
.field input[type="date"], .field input[type="time"] {
    font-weight: 600; letter-spacing: .02em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fd8e00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 40px;
}
.field input[type="time"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fd8e00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 6v6l4 2'/></svg>");
}
.field input::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; color: var(--navy); }
.field input::-webkit-datetime-edit { color: var(--navy); padding: 0; }
.field input::-webkit-datetime-edit-fields-wrapper { color: var(--navy); }
.field input::-webkit-datetime-edit-text, .field input::-webkit-datetime-edit-month-field,
.field input::-webkit-datetime-edit-day-field, .field input::-webkit-datetime-edit-year-field,
.field input::-webkit-datetime-edit-hour-field, .field input::-webkit-datetime-edit-minute-field { color: var(--navy); }
.field input::-webkit-calendar-picker-indicator { opacity: 0; width: 40px; height: 40px; margin: -10px -14px -10px 0; cursor: pointer; }
.field input::placeholder { color: #8a97a3; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.field small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.field .check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--white); cursor: pointer; }
.field .check a { color: var(--orange); }
.field input[type="checkbox"], .field input[type="radio"] {
    -webkit-appearance: none; appearance: none;
    flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0;
    background: var(--white); border: 2px solid var(--muted); border-radius: 5px;
    display: inline-grid; place-content: center; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.field input[type="radio"] { border-radius: 50%; }
.field input[type="checkbox"]:hover, .field input[type="radio"]:hover { border-color: var(--orange); }
.field input[type="checkbox"]:focus-visible, .field input[type="radio"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.field input[type="checkbox"]::before {
    content: ''; width: 12px; height: 7px; margin-top: -2px;
    border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
    transform: rotate(-45deg) scale(0); transition: transform .15s;
}
.field input[type="radio"]::before {
    content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy);
    transform: scale(0); transition: transform .15s;
}
.field input[type="checkbox"]:checked, .field input[type="radio"]:checked { background: var(--orange); border-color: var(--orange); }
.field input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.field input[type="radio"]:checked::before { transform: scale(1); }
.hp { position: absolute; left: -9999px; }
.small { font-size: 12px; color: var(--muted-2); }
.alert { margin-bottom: 16px; padding: 12px 16px; background: #5a1e1e; border: 1px solid #c0392b; border-radius: 4px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.ok { padding: 24px; background: #1f4d2b; border: 1px solid #2ecc71; border-radius: var(--radius); }
.ok h2 { margin-top: 0; color: var(--white); }

#footer { padding: 20px; text-align: center; border-top: 1px solid var(--navy-3); }
#footer p { margin: 4px 0; }

/* dialog clausole */
dialog.clausole {
    width: min(720px, 92vw); max-height: 85vh; overflow: auto;
    padding: 24px; border: 0; border-radius: var(--radius);
    background: var(--white); color: #222; font-size: 14px;
    position: relative;
}
dialog.clausole::backdrop { background: rgba(0,0,0,.7); }
dialog.clausole h3 { margin: 0 0 12px; color: var(--navy); text-transform: uppercase; font-weight: 800; }
dialog.clausole h4 { margin: 16px 0 6px; color: var(--orange); text-transform: uppercase; font-size: 13px; }
dialog.clausole ul { padding-left: 20px; }
dialog.clausole li { margin-bottom: 8px; }
dialog.clausole .close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
}
dialog.clausole .btn { border-radius: 4px; margin-top: 12px; }

@media (max-width: 820px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .multisala-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    #content { padding: 0 14px 14px; }
    .cards, .cards-2 { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    #form-richiesta { padding: 14px; }
    #logo { width: 240px; }
}
