/* Seasonal home feature. Shared summer, catalogue and shop elements keep their own styles. */
.ny-banner, .ny-dialog, .ny-summer-link {
    box-sizing: border-box; text-align: left; color: #faf8ff;
    font: 400 1rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    --ny-text: #faf8ff; --ny-soft: #d2c7dc; --ny-border: #64556e;
    --ny-surface: #1c1724; --ny-focus: #b5e6ff;
}
.ny-banner *, .ny-dialog *, .ny-banner *::before, .ny-dialog *::before { box-sizing: border-box; }
.ny-banner, .ny-summer-link { width: min(1060px, calc(100% - 32px)); margin: 26px auto 0; }
.ny-summer-link { margin: 0 auto 12px; }
.ny-summer-link a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 44px; color: #cfbfdc; font-size: .87rem; }
.ny-summer-link a span { color: #f2e3ff; }
.ny-banner, .ny-summer-anchor { scroll-margin-top: 96px; }
.ny-summer-anchor { display: block; height: 0; }
.ny-banner [hidden], .ny-dialog:not([open]), .ny-dialog [hidden] { display: none !important; }
.ny-banner button, .ny-dialog button, .ny-dialog input, .ny-dialog textarea { font-family: inherit; }
.ny-banner button, .ny-dialog :is(a,button,label) { touch-action: manipulation; }
.ny-banner button, .ny-dialog button { cursor: pointer; text-transform: none; letter-spacing: normal; }
.ny-banner button:disabled, .ny-dialog button:disabled { cursor: default; }
.ny-banner :focus-visible, .ny-dialog :focus-visible, .ny-summer-link a:focus-visible { outline: 2px solid #b5e6ff; outline-offset: 3px; }

#capodanno { overflow: hidden; border: 1px solid #655074; border-radius: 20px; background: #1b1423; }
.ny-hero { position: relative; isolation: isolate; overflow: hidden; background: #180f25; }
.ny-scene {
    position: absolute; z-index: -1; inset: 0;
    background-image: linear-gradient(90deg,#180f25 12%,#201329f7 31%,#22142bba 46%,#150f1908 74%),
        linear-gradient(0deg,#21132573,transparent 46%), url("/img/capodanno-imperiale/baia-notte.webp");
    background-size: 100% 100%,100% 100%,73% auto; background-position: center,center,right 56%; background-repeat: no-repeat;
}
.ny-banner-copy { width: min(58%, 35rem); padding: clamp(1.5rem,3.3vw,2.7rem); }
.ny-eyebrow { color: #e9d8f5; font-size: .73rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; margin: 0; }
#ny-title, #ny-dialog-title { font-family: Orbitron, "Segoe UI", sans-serif; letter-spacing: -.055em; text-transform: none; color: var(--ny-text); }
#ny-title { font-size: clamp(2.4rem,4.7vw,3.85rem); line-height: 1.02; margin: .75rem 0 .55rem; font-weight: 830; }
#ny-title em { font-style: normal; color: #ddc4ff; }
.ny-intro { margin: 0 0 1.1rem; max-width: 38ch; font-size: .99rem; color: #f2eaf5; }
.ny-primary { display: inline-flex; gap: .9rem; justify-content: center; align-items: center; min-height: 44px; max-width: 100%; padding: .65rem 1.05rem; border: 0; border-radius: .65rem; background: linear-gradient(110deg,#e0bcff,#c9d5ff 75%,#bbebff); color: #21152f; font-size: .93rem; line-height: 1.3; font-weight: 740; }
.ny-primary:hover { filter: brightness(1.07); }
.ny-primary:disabled { opacity: .65; }
.ny-arrow { font-size: 1.2rem; font-weight: 500; line-height: 1; }
.ny-hero noscript a { display: inline-flex; color: #fff; padding: .6rem; }
.ny-quick { display: flex; gap: 1rem 2rem; align-items: center; padding: .8rem clamp(1rem,3.3vw,2.7rem); border-top: 1px solid #695077; background: #261d30; }
.ny-quick p { margin: 0; color: var(--ny-text); font-size: .95rem; font-weight: 675; }
.ny-quick-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.ny-quick button { min-height: 44px; padding: .45rem 1rem; border: 1px solid #8e7b9b; border-radius: .6rem; background: #34273e; color: #fcf8ff; font-size: .9rem; font-weight: 640; }
.ny-quick button:enabled:hover { background: #483455; border-color: #c7a9db; }
.ny-quick button:is(:disabled,[aria-disabled=true]) { color: #b7a9bf; background: #28212e; border-color: #605367; }

html:has(#ny-inquiry-dialog[open]) { overflow: hidden; }
#ny-inquiry-dialog {
    width: min(600px, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
    overflow: hidden; overscroll-behavior: contain; margin: auto; padding: 0;
    border: 1px solid #73627d; border-radius: 18px; background: #19141f; color-scheme: dark;
    scrollbar-width: thin; scrollbar-color: #7d6d89 #211a29; box-shadow: 0 18px 64px #09060e90;
}
#ny-inquiry-dialog[open] { display: flex; flex-direction: column; }
#ny-inquiry-dialog::backdrop { background: #0a0713d6; }
.ny-modal-head { flex: none; position: relative; padding: 1rem 3.4rem .9rem 1.25rem; border-bottom: 1px solid #493b53; background: linear-gradient(105deg,#32223d,#252033); }
.ny-modal-line { display: flex; align-items: center; }
.ny-line { width: 1.1rem; height: 2px; background: #c4a2df; }
.ny-modal-head .ny-eyebrow { font-size: .67rem; }
.ny-close { position: absolute; right: .55rem; top: .45rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: .6rem; background: transparent; color: #f4e9ff; font: 350 1.75rem/1 system-ui; }
.ny-close:hover { border-color: #75627e; }
#ny-dialog-title { font-size: clamp(1.3rem,3.2vw,1.75rem); line-height: 1.2; font-weight: 760; margin: .35rem 0 .45rem; }
.ny-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; color: #cbbfd2; font-size: .8rem; }
.ny-steps i { width: 1.5rem; height: 1px; background: #8c789b; }
.ny-steps span[aria-current=step] { color: #f7e0ff; font-weight: 750; }
#ny-form { display: flex; flex-direction: column; margin: 0; min-width: 0; min-height: 0; }
.ny-step-scroll { position: relative; isolation: isolate; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
.ny-dialog fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.ny-dialog fieldset[data-ny-step] { padding: 1rem 1.15rem .85rem; }
.ny-dialog label { margin: 0; }
.ny-plans { display: grid; gap: .5rem; }
.ny-plan, .ny-custom { position: relative; min-width: 0; border: 1px solid #594a64; border-radius: .7rem; background: #27202e; }
.ny-plan { display: grid; grid-template-columns: 4rem minmax(0,1fr) auto 1rem; grid-template-areas: "art copy price tick"; align-items: center; gap: .75rem; padding: .65rem .75rem; }
.ny-plan > img { grid-area: art; width: 4rem; height: 4rem; border-radius: .42rem; object-fit: cover; object-view-box: inset(0% 14% 37%); background: #191321; }
.ny-plan .ny-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; border-radius: inherit; }
.ny-plan .ny-check { grid-area: tick; }
.ny-sr-only, .ny-plan input, .ny-custom-label input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; padding: 0; margin: -1px; border: 0; }
.ny-plan:has(input:not(:disabled)):hover, .ny-custom:hover { border-color: #9b80aa; }
.ny-plan:has(input:checked), .ny-custom:has(input:checked) { background: #38283f; border-color: #d8abf1; box-shadow: inset 3px 0 #d8abf1; }
.ny-plan:has(input:focus-visible), .ny-custom:has(input:focus-visible) { outline: 2px solid var(--ny-focus); outline-offset: 2px; }
.ny-plan:has(input:disabled):not(:has(input:checked)) { background: #201b26; border-style: dashed; }
.ny-plan:has(input:disabled) .ny-hit { cursor: default; }
.ny-unavailable { display: block; margin-top: .2rem; color: #e7c8af; font-size: .82rem; font-weight: 650; }
.ny-copy { grid-area: copy; min-width: 0; overflow-wrap: anywhere; }
.ny-plan strong { display: block; margin: 0; color: var(--ny-text); font: 740 1rem/1.25 Orbitron,system-ui,sans-serif; letter-spacing: -.035em; }
.ny-date { display: block; color: #ece0f5; font-size: .82rem; line-height: 1.3; font-weight: 650; margin-top: .15rem; }
.ny-benefit { display: block; color: #d1c6db; font-size: .82rem; line-height: 1.35; margin-top: .12rem; }
.ny-article { display: inline-flex; align-items: center; gap: .25rem; position: relative; z-index: 2; min-height: 24px; padding-right: .5rem; color: #eacfff; font-size: .78rem; font-weight: 620; text-decoration: underline; text-underline-offset: .18em; }
.ny-article:hover { color: #fff; }
.ny-cost { grid-area: price; max-width: 8rem; color: var(--ny-soft); font-size: .73rem; overflow-wrap: anywhere; text-align: right; line-height: 1.3; }
.ny-cost b { display: block; margin: .12rem 0; color: var(--ny-text); font-size: 1.1rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ny-check { width: 1rem; height: 1rem; border: 1px solid #ab98b5; border-radius: 50%; }
.ny-custom-label input:checked ~ .ny-check, .ny-plan:has(input:checked) .ny-check { background: #e6bffd; border-color: #e6bffd; box-shadow: inset 0 0 0 3px #38283f; }
.ny-custom { margin-top: .6rem; }
.ny-custom-label { display: grid; grid-template-columns: 1.9rem minmax(0,1fr) 1rem; align-items: center; gap: .65rem; padding: .7rem .75rem; cursor: pointer; }
.ny-custom-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: #3b2c45; color: #e6c2ff; border-radius: .5rem; }
.ny-custom-label strong, .ny-selection strong { display: block; font-size: .94rem; color: var(--ny-text); font-weight: 700; }
.ny-custom-label small, .ny-selection small { display: block; font-size: .82rem; color: var(--ny-soft); }
.ny-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem .9rem; }
.ny-party { grid-column: 1/-1; }
.ny-party input { max-width: 15rem; }
.ny-stays legend { font-size: .9rem; font-weight: 650; }
.ny-stay-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin: .35rem 0 .85rem; }
.ny-stay-options label { display: flex; gap: .5rem; align-items: center; min-height: 44px; padding: .5rem .65rem; border: 1px solid #877391; border-radius: .5rem; color: #f3e9fb; cursor: pointer; }
.ny-stay-options label:has(:checked) { background: #38283f; border-color: #d8abf1; }
.ny-stay-options label:focus-within { outline: 2px solid var(--ny-focus); outline-offset: 2px; }
.ny-stay-options input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: #dab9f2; }
.ny-stay-options strong, .ny-stay-options small { display: block; }
.ny-stay-options strong { font-size: .89rem; }
.ny-stay-options small { font-size: .78rem; color: var(--ny-soft); }
.ny-fields label, .ny-note { display: grid; min-width: 0; gap: .3rem; color: #f3e9fb; font-size: .9rem; font-weight: 620; }
.ny-dialog .ny-note { margin: .1rem .75rem .8rem; }
.ny-fields input, .ny-note textarea { font: inherit; font-size: 1rem; color-scheme: dark; width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; color: #fff; background: #15111b; border: 1px solid #877391; border-radius: .45rem; }
.ny-note textarea { resize: vertical; font-weight: 450; }
.ny-note textarea::placeholder { color: #c2b4ca; }
.ny-selection { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding: .65rem .8rem; background: #302336; border-left: 3px solid #c79cde; border-radius: .5rem; overflow-wrap: anywhere; }
.ny-selection img { flex: none; width: 2.75rem; height: 2.75rem; border-radius: .3rem; object-fit: cover; object-view-box: inset(0% 14% 37%); }
.ny-selection .ny-summary-price { font-weight: 700; color: #eee1fc; }
.ny-selection .ny-summary-program { min-height: 32px; }
.ny-privacy { margin: .9rem 0 .15rem; font-size: .84rem; color: #d3c6dd; }
.ny-privacy a { color: #e5cdff; text-decoration: underline; }
.ny-modal-foot { position: relative; z-index: 1; display: flex; flex: none; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem 1.15rem max(.75rem,env(safe-area-inset-bottom)); border-top: 1px solid #504158; background: #211a28; }
#ny-free { color: var(--ny-soft); font-size: .8rem; }
.ny-modal-foot .ny-primary { min-width: 7.2rem; }
.ny-back { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem; border: 0; background: transparent; color: #f3e1fc; font-size: .88rem; font-weight: 620; }
.ny-status { margin: 0; padding: .75rem 1.15rem; background: #30243a; color: #f4e6ff; font-size: .94rem; overflow-wrap: anywhere; }
.ny-status:empty { display: none; }
.ny-status:focus-visible { outline-offset: -3px; }
@media (max-width: 700px) {
    .ny-banner, .ny-summer-link { width: calc(100% - 20px); }
    .ny-banner-copy { width: min(80%, 25rem); padding: 1.3rem; }
    .ny-scene { background-size: 100% 100%,100% 100%,auto 100%; background-position: center,center,67% center;
        background-image: linear-gradient(90deg,#180f25f7 0%,#1c1228dc 29%,#201427a6 58%,#180d2925 95%),
            linear-gradient(0deg,#140d24b3,transparent 68%),url("/img/capodanno-imperiale/baia-notte.webp"); }
    .ny-quick { display: block; padding: .7rem 1rem .85rem; }
    .ny-quick p { margin-bottom: .45rem; }
    .ny-quick-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
    .ny-quick button { min-width: 0; padding-inline: .25rem; overflow-wrap: anywhere; }
}
@media (max-width: 460px) {
    #capodanno { border-radius: 15px; }
    .ny-banner-copy { width: 91%; padding: 1.1rem; }
    .ny-banner-copy .ny-eyebrow { font-size: .65rem; }
    #ny-title { font-size: clamp(2.2rem,10vw,2.8rem); }
    .ny-intro { max-width: 28ch; font-size: .91rem; }
    .ny-quick-options { gap: .3rem; }
    .ny-quick button { font-size: .84rem; }
    #ny-inquiry-dialog { width: calc(100% - 14px); border-radius: 14px; }
    .ny-modal-head { padding: .8rem 3.25rem .65rem .85rem; }
    .ny-dialog fieldset[data-ny-step] { padding: .6rem; }
    .ny-plan { grid-template-columns: 2.55rem minmax(0,1fr) 1rem; grid-template-areas: "art copy tick" "art price tick"; gap: 0 .55rem; padding: .5rem .55rem; }
    .ny-plan > img { width: 2.55rem; height: 2.55rem; align-self: start; }
    .ny-cost { justify-self: start; max-width: 100%; text-align: left; }
    .ny-cost b { display: inline; padding-inline: .2rem; font-size: .98rem; }
    .ny-plan strong { font-size: .95rem; }
    .ny-custom-label { padding: .55rem; }
    .ny-fields { gap: .65rem; }
    .ny-fields label:nth-child(n+4) { grid-column: 1/-1; }
    .ny-modal-foot { padding: .5rem .75rem max(.6rem,env(safe-area-inset-bottom)); }
    .ny-modal-foot > * { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
    .ny-modal-foot .ny-primary { min-width: 0; }
}
@media (max-width: 340px) {
    .ny-quick-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ny-fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-height: 420px) {
    #ny-inquiry-dialog[open], #ny-form { display: block; }
    #ny-inquiry-dialog[open] { overflow: auto; }
    .ny-step-scroll { overflow: visible; }
}
@media (forced-colors: active) {
    .ny-plan:has(input:checked), .ny-custom:has(input:checked), .ny-primary { border: 2px solid Highlight; }
    .ny-check { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
    .ny-plan:has(input:checked) .ny-check, .ny-custom-label input:checked ~ .ny-check { background: Highlight; border-color: Highlight; }
}
