/* NO.EM STORE — banner cookie e preferenze */
.noem-ck-root [hidden] { display: none !important; }
html.noem-ck-lock { overflow: hidden; }
.noem-ck-root button { margin: 0; min-height: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
.noem-ck-dim { position: fixed; inset: 0; z-index: 99990; background: rgba(13, 40, 80, .5); backdrop-filter: blur(2px); }

.noem-ck { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99991; width: min(1120px, calc(100vw - 32px));
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 24px 22px 22px;
    background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(13, 40, 80, .28); overflow: hidden; font: 400 14px/1.55 var(--noem-sans); color: var(--noem-text); text-align: left; }
.noem-ck::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #f3dfbf, #D7AE78, #b8844a); }
.noem-ck-ic { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--noem-sky)); box-shadow: inset 0 0 0 2px rgba(215, 174, 120, .65); }
.noem-ck-ic svg { width: 32px; height: 32px; }
.noem-ck-copy { padding-right: 120px; }
.noem-ck small, .noem-ck-pn small { display: block; font: 400 21px/1 var(--noem-script); color: var(--noem-blue); }
.noem-ck h2 { margin: 2px 0 6px; font: 700 21px/1.2 var(--noem-serif); color: var(--noem-blue-dark); }
.noem-ck p { margin: 0; color: var(--noem-text-2); }
.noem-ck p a { color: var(--noem-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.noem-ck-btns { display: flex; align-items: center; gap: 10px; }
.noem-ck-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 150px; padding: 0 22px; border-radius: 999px; font: 700 12.5px var(--noem-sans) !important; letter-spacing: .8px !important; text-transform: uppercase !important; cursor: pointer; }
.noem-ck-btn.is-line { border: 1.5px solid var(--noem-blue-dark); background: #fff; color: var(--noem-blue-dark); }
.noem-ck-btn.is-line:hover { background: var(--noem-sky); }
.noem-ck-btn.is-fill { border: 0; background: linear-gradient(135deg, #2b8be0, #2369A7 45%, #12528C); color: #fff; box-shadow: 0 8px 20px rgba(18, 82, 140, .25) !important; }
.noem-ck-btn:focus-visible, .noem-ck-pers:focus-visible, .noem-ck-x:focus-visible, .noem-ck-fab:focus-visible { outline: 3px solid rgba(215, 174, 120, .9); outline-offset: 2px; }
.noem-ck-pers { display: flex; align-items: center; gap: 7px; padding: 0 6px; border: 0; background: none; font: 700 13px var(--noem-sans); color: var(--noem-blue); white-space: nowrap; cursor: pointer; }
.noem-ck-pers svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.noem-ck-x { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; background: none; font: 400 12px var(--noem-sans); color: var(--noem-text-2); cursor: pointer; }
.noem-ck-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.noem-ck-pn { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 99992; width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(13, 40, 80, .4); overflow: hidden; font: 400 14px/1.5 var(--noem-sans); color: var(--noem-text); text-align: left; }
.noem-ck-pn-hd { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff;
    background: radial-gradient(circle at 90% 0%, rgba(215, 174, 120, .35), transparent 55%), linear-gradient(135deg, #12528C, #0d3f8f); }
.noem-ck-pn-hd .noem-ck-ic { width: 52px; height: 52px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(215, 174, 120, .7); }
.noem-ck-pn-hd .noem-ck-ic svg { width: 27px; height: 27px; }
.noem-ck-pn-hd small { font-size: 19px; color: #f3dfbf; }
.noem-ck-pn-hd h2 { margin: 2px 0 0; font: 700 22px var(--noem-serif); color: #fff; }
.noem-ck-pn-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); cursor: pointer; }
.noem-ck-pn-x svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; }
.noem-ck-pn-bd { padding: 16px 22px; overflow: auto; }
.noem-ck-pn-bd > p { margin: 0 0 14px; color: var(--noem-text-2); }
.noem-ck-cat { margin-bottom: 10px; border: 1px solid #E3E8EE; border-radius: 16px; overflow: hidden; }
.noem-ck-cat.is-open { border-color: rgba(215, 174, 120, .8); }
.noem-ck-cat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.noem-ck-cat-h > div { flex: 1; }
.noem-ck-cat-h b { display: block; font: 700 15px var(--noem-sans); color: var(--noem-blue-dark); }
.noem-ck-cat-h span { font-size: 13px; color: var(--noem-text-2); }
.noem-ck-det { padding: 0; border: 0; background: none; font: 700 12.5px var(--noem-sans); color: var(--noem-blue); white-space: nowrap; cursor: pointer; }
.noem-ck-always { font: 700 11px var(--noem-sans) !important; letter-spacing: .6px; text-transform: uppercase; color: #B8844A !important; white-space: nowrap; }
.noem-ck-sw { position: relative; display: block; margin: 0; cursor: pointer; }
.noem-ck-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.noem-ck-tg { position: relative; display: block; width: 46px; height: 26px; flex: none; border-radius: 99px; background: #cfd6de; transition: background .2s; }
.noem-ck-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.noem-ck-sw input:checked + .noem-ck-tg { background: var(--noem-blue-dark); }
.noem-ck-sw input:checked + .noem-ck-tg::after, .noem-ck-tg.is-lock::after { left: 23px; }
.noem-ck-sw input:focus-visible + .noem-ck-tg { outline: 3px solid rgba(215, 174, 120, .9); outline-offset: 2px; }
.noem-ck-tg.is-lock { background: var(--noem-champagne); }
.noem-ck-cat table { width: 100%; margin: 0; border-collapse: collapse; font-size: 12.5px; background: var(--noem-pearl); }
.noem-ck-cat th, .noem-ck-cat td { padding: 8px 16px !important; border: 0; border-top: 1px solid #E3E8EE; font-size: 13px; line-height: 1.4; text-align: left; vertical-align: top; }
.noem-ck-cat th { font: 700 11px var(--noem-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--noem-text-2); }
.noem-ck-cat td:first-child { font-weight: 700; color: var(--noem-blue-dark); white-space: nowrap; }
.noem-ck-pn-ft { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid #E3E8EE; background: #fbfcfe; }
.noem-ck-pn-ft .noem-ck-btn { flex: 1; min-width: 0; padding: 0 12px; font-size: 12px !important; }
.noem-ck-pn-links { display: flex; justify-content: center; gap: 18px; padding: 0 22px 14px; background: #fbfcfe; font-size: 12.5px; }
.noem-ck-pn-links a { color: var(--noem-blue); }

/* pulsante tondo per riaprire le preferenze: in basso a destra (il "torna su" di Flatsome sale sopra) */
.noem-ck-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--noem-sky)); box-shadow: inset 0 0 0 2px rgba(215, 174, 120, .75), 0 10px 26px rgba(13, 40, 80, .22) !important; cursor: pointer; transition: transform .2s; }
.noem-ck-fab:hover { transform: translateY(-2px) rotate(-8deg); }
.noem-ck-fab svg { width: 26px; height: 26px; }
body:has(.noem-ck-fab:not([hidden])) #top-link { bottom: 78px !important; }

/* anteprima nel builder: niente posizione fissa */
.noem-ck-root.is-preview { display: grid; gap: 24px; padding: 20px; background: #eef3f8; }
.noem-ck-root.is-preview .noem-ck, .noem-ck-root.is-preview .noem-ck-pn { position: relative; left: auto; top: auto; bottom: auto; transform: none; margin: 0 auto; max-height: none; }

/* Cookie Policy: tabella completa */
.noem-ck-policy-t { overflow-x: auto; margin-bottom: 18px; }
.noem-ck-policy table { min-width: 640px; font-size: 13.5px; }
.noem-ck-policy code { font-size: 12px; color: var(--noem-blue-dark); background: var(--noem-pearl); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 767px) {
    .noem-ck { left: 0; right: 0; bottom: 0; transform: none; width: auto; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
    .noem-ck-copy { display: contents; padding: 0; }
    .noem-ck-head { align-self: center; }
    .noem-ck-ic { width: 48px; height: 48px; } .noem-ck-ic svg { width: 26px; height: 26px; }
    .noem-ck h2 { font-size: 18px; margin-bottom: 0; }
    .noem-ck p { grid-column: 1 / -1; font-size: 13.5px; }
    .noem-ck-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .noem-ck-btn { min-width: 0; width: 100%; padding: 0 10px; }
    .noem-ck-pers { grid-column: 1 / -1; order: 3; justify-content: center; padding: 6px 0 0; }
    .noem-ck-x { top: 12px; right: 12px; } .noem-ck-x span { display: none; }
    .noem-ck-pn { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; }
    .noem-ck-pn-ft { flex-wrap: wrap; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .noem-ck-pn-ft .noem-ck-btn { flex: 1 1 45%; } .noem-ck-pn-ft .noem-ck-btn.is-fill { flex-basis: 100%; order: -1; }
    .noem-ck-det { display: none; }
    .noem-ck-cat table, .noem-ck-cat tbody, .noem-ck-cat tr, .noem-ck-cat td { display: block; }
    .noem-ck-cat thead { display: none; }
    .noem-ck-cat tr { padding: 8px 16px; border-top: 1px solid #E3E8EE; }
    .noem-ck-cat td { padding: 0 !important; border: 0; font-size: 13px; }
    .noem-ck-cat td:last-child { color: var(--noem-text-2); font-size: 11.5px; }
    .noem-ck-cat .noem-ck-rows[hidden] { display: block !important; }
    .noem-ck-fab { right: 12px; bottom: 12px; width: 44px; height: 44px; }
    body:has(.noem-ck-fab:not([hidden])) #top-link { bottom: 66px !important; }
    body:has(.noem-mobile-total) .noem-ck-fab { bottom: 92px; }
}
