/* ==========================================================================
   Città da Scoprire — Landing newsletter
   ========================================================================== */
:root {
  --brand: #F2594B;
  --brand-dark: #D8412F;
  --brand-soft: #FDEBE8;
  --ink: #1D2733;
  --ink-2: #4A5563;
  --ink-3: #7B8593;
  --line: #E4E0DA;
  --paper: #FBF8F4;
  --white: #fff;
  --ok: #1F9D6B;
  --err: #C8321F;
  --radius: 18px;
  --shadow: 0 30px 60px -20px rgba(16, 24, 40, .35), 0 12px 24px -12px rgba(16, 24, 40, .18);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
svg { flex-shrink: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------------ Topbar */
.topbar { position: absolute; inset: 0 0 auto; z-index: 20; padding: 18px 0; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand .logo-mark { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text span { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.brand-text small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.topbar-cta { opacity: 0; pointer-events: none; transition: opacity .25s; }
.is-scrolled .topbar-cta { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; padding: 14px 24px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .005em; text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(242, 89, 75, .65), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(242, 89, 75, .7); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible, .btn-back:focus-visible { outline: 3px solid rgba(242,89,75,.35); outline-offset: 3px; }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-primary.is-loading span { opacity: .0; }
.btn-primary.is-loading { position: relative; }
.btn-primary.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary.is-loading svg { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-inline { width: auto; }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-small { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; border: 0; }
.btn-ghost { padding: 10px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.btn-back { flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: border-color .15s, color .15s; }
.btn-back:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-dark); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linklike[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; min-height: 680px; min-height: clamp(640px, 100svh, 940px); display: flex; align-items: center; padding: 110px 0 80px; color: #fff; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 17, 25, .86) 0%, rgba(12, 17, 25, .62) 42%, rgba(12, 17, 25, .25) 75%, rgba(12, 17, 25, .35) 100%),
    linear-gradient(180deg, rgba(12, 17, 25, .45) 0%, rgba(12, 17, 25, 0) 30%, rgba(12, 17, 25, .35) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(242,89,75,.3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(242,89,75,.0); } }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.025em; margin: 22px 0 18px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 560px; color: rgba(255,255,255,.9); margin: 0 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 500; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255,255,255,.8); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255,255,255,.75); animation: bob 2.2s ease-in-out infinite; }
.scroll-cue svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ------------------------------------------------------------------ Form card */
.form-card { background: #fff; color: var(--ink); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 16px; animation: rise .6s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.form-head { padding: 24px 28px 0; }
.form-head-top { display: flex; align-items: baseline; justify-content: space-between; }
.form-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.015em; }
.step-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.step-count b { color: var(--brand-dark); }
.progress { height: 6px; border-radius: 99px; background: #F1ECE6; margin-top: 14px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #FF8A5B); transition: width .45s cubic-bezier(.2,.8,.2,1); }
#lead-form { padding: 20px 28px 26px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step.is-active { animation: stepIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step.is-back { animation: stepBack .35s cubic-bezier(.2,.8,.2,1); }
@keyframes stepBack { from { opacity: 0; transform: translateX(-14px); } }
.step-title { font-weight: 700; font-size: 17px; margin: 0 0 16px; padding: 0; color: var(--ink); line-height: 1.35; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 16px; position: relative; }
.field > label, .field > .label { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--brand); margin-left: 1px; }
.field .tip { margin-left: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input:not([type]), select {
  width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: 500 16px/1 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #A7AEB8; font-weight: 400; }
input:hover, select:hover { border-color: #CFC8BF; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242,89,75,.14); }
.field.has-error input, .field.has-error select, .field.has-error .seg label span { border-color: var(--err); }
.field.is-valid input { border-color: #BFE3D2; background: #FAFFFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") right 14px center/16px no-repeat; }
.err { margin: 6px 0 0; font-size: 13px; color: var(--err); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.suggest { color: var(--ink-2); }
.suggest button { background: none; border: 0; padding: 0; color: var(--brand-dark); font-weight: 700; text-decoration: underline; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.seg label:hover span { border-color: #CFC8BF; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(242,89,75,.14); border-color: var(--brand); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.phone { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.phone select { padding: 0 30px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2733' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat; }

.tip { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E9F3FB; color: #2A86C9; font-size: 12px; font-weight: 800; cursor: help; }
.tip-box { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.tip:hover .tip-box, .tip:focus .tip-box { opacity: 1; }

.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 80px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(16,24,40,.25); max-height: 260px; overflow: auto; }
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.ac-list li small { color: var(--ink-3); font-weight: 600; }
.ac-list li[aria-selected=true], .ac-list li:hover { background: var(--brand-soft); }
.ac-list li mark { background: none; color: var(--brand-dark); font-weight: 700; }

.consents { margin: 4px 0 16px; padding: 16px; background: #FAF7F3; border-radius: 14px; }
.consents-title { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 11px; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.check:last-of-type { margin-bottom: 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #C9C2B8; background: #fff; transition: all .15s; margin-top: 1px; }
.check input:checked + .box { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat; border-color: var(--brand); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(242,89,75,.18); }
.check em { color: var(--ink-3); font-style: normal; }
.check a { color: #2A86C9; }
.consents .err { margin: -4px 0 10px 32px; }

.nav-row { display: flex; gap: 10px; }
.nav-row .btn-primary { flex: 1; }
.micro { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.micro svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.oppose { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; font-style: italic; font-weight: 600; color: var(--ink-2); }
.form-alert { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #FDECEA; color: var(--err); font-size: 14px; font-weight: 500; }
.hp { position: absolute; left: -9999px; }

.otp-text { margin: -4px 0 16px; color: var(--ink-2); font-size: 15px; }
.otp-input { text-align: center; font-size: 28px !important; font-weight: 700 !important; letter-spacing: .5em; height: 64px !important; padding-left: .5em !important; }
.otp-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* ------------------------------------------------------------------ Sections */
.section { padding: 110px 0; }
.kicker { margin: 0 0 12px; color: var(--brand-dark); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 48px; max-width: 760px; text-wrap: balance; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid #EFEAE3; border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(16,24,40,.25); }
.feature .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

.places-section { background: var(--ink); color: #fff; }
.places-section .kicker { color: #FF9C8F; }
.places-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.places-intro { position: sticky; top: 40px; }
.places-intro .h2 { margin-bottom: 18px; }
.places-intro p { color: rgba(255,255,255,.75); font-size: 17px; margin: 0 0 30px; max-width: 420px; }
.places { list-style: none; margin: 0; padding: 0; }
.place { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); }
.place:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.place .num { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--brand); font-weight: 500; }
.place h3 { margin: 4px 0 6px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
.place p { margin: 0; color: rgba(255,255,255,.72); }

.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.how-step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid #EFEAE3; }
.how-step span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 18px; }
.how-step h3 { margin: 0 0 6px; font-size: 19px; }
.how-step p { margin: 0; color: var(--ink-2); }

.faq-section { padding-top: 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 640px; }

.final-cta { position: relative; padding: 120px 0; color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(216,65,47,.82), rgba(29,39,51,.88)); }
.final-in h2 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); margin: 0 0 12px; letter-spacing: -.02em; }
.final-in p { font-size: 19px; margin: 0 auto 32px; max-width: 540px; color: rgba(255,255,255,.88); }

.note { padding: 40px 0; background: #F4EFE9; }
.note p { margin: 0; font-size: 12.5px; font-style: italic; color: var(--ink-3); line-height: 1.6; max-width: 980px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: #151C25; color: rgba(255,255,255,.72); padding: 60px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { margin: 0; }
.site-footer strong { color: #fff; }
.footer-legal p { margin: 0; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a, .footer-links .linklike { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; font-size: 14px; }
.footer-links a:hover, .footer-links .linklike:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ------------------------------------------------------------------ Sticky CTA + cookie */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(16,24,40,.12); transform: translateY(110%); transition: transform .3s; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn-primary { min-height: 52px; font-size: 15.5px; }
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px; padding: 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: 14px; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ------------------------------------------------------------------ Pagine testuali */
.page-top { background: var(--ink); color: #fff; padding: 22px 0; }
.page-top .brand { color: #fff; }
.doc { max-width: 860px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--ink-3); margin: 0 0 36px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 25px; margin: 44px 0 12px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: #333C47; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { background: #fff; border: 1px solid #EFEAE3; border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.doc .box.hl { border-color: #F8C9C2; background: #FFF7F5; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; background: #fff; border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #EFEAE3; vertical-align: top; }
.doc th { background: #F6F1EB; font-weight: 700; }
.doc .toc { columns: 2; gap: 30px; }
.doc tr.hl td { background: #FFF7F5; }
.doc a { overflow-wrap: anywhere; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.center-page .card { max-width: 560px; background: #fff; border-radius: 24px; padding: 48px 36px; box-shadow: 0 24px 60px -30px rgba(16,24,40,.3); }
.center-page h1 { font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1.1; margin: 20px 0 14px; letter-spacing: -.02em; text-wrap: balance; }
.center-page p { color: var(--ink-2); font-size: 17px; }
.badge-ico { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.badge-ico.ok { background: #E4F6EE; color: var(--ok); }
.badge-ico.ko { background: #FDECEA; color: var(--err); }
.badge-ico svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.badge-ico.ok svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 28px; }
.city-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.city-card:hover img { transform: scale(1.06); }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7)); }
.city-card span { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--display); font-size: 22px; font-weight: 600; }
.city-card small { display: block; font-family: var(--sans); font-size: 12px; opacity: .85; font-weight: 500; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 0; color: #fff; background: var(--paper); }
  .hero::before { height: 520px; background: linear-gradient(180deg, rgba(12,17,25,.55) 0%, rgba(12,17,25,.35) 40%, rgba(12,17,25,.8) 100%); }
  .hero-bg { height: 520px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { min-height: 520px; padding: 104px 0 118px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 48px); margin: 16px 0 12px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 0; }
  .ticks, .trust { display: none; }
  .form-card { margin-top: -96px; position: relative; }
  .scroll-cue { display: none; }
  .places-grid, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .places-intro { position: static; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
  .faq-section { padding-top: 0; }
  .h2 { margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 0; }
  .brand-text span { font-size: 17px; }
  .topbar-cta { display: none; }
  .form-head { padding: 20px 20px 0; }
  #lead-form { padding: 18px 20px 22px; }
  .form-head h2 { font-size: 25px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; }
  .feature .ico { grid-row: span 2; margin: 0; }
  .feature h3 { margin: 2px 0 4px; }
  .place { grid-template-columns: 52px 1fr; padding: 22px 0; }
  .place .num { font-size: 32px; }
  .place h3 { font-size: 22px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .final-cta { padding: 84px 0; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .doc .toc { columns: 1; }
  .doc { padding: 36px 16px 70px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid #EFEAE3; }
  .doc td { border: 0; }
  .doc td:first-child { padding-bottom: 6px; }
  .doc td:last-child { padding-top: 0; font-size: 13.5px; color: var(--ink-2); }
  .doc td:last-child::before { content: "Base giuridica: "; font-weight: 700; }
  .otp-links { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Consensi, passaggi facoltativi
   ========================================================================== */
.consents-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.opt-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #EEF2F6; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.step-sub { margin: -8px 0 14px; font-size: 13.5px; color: var(--ink-3); }
.form-ok { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #E4F6EE; color: #13724C; font-size: 14px; font-weight: 500; }
.form-warn { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #FFF4DE; color: #8A5A00; font-size: 14px; font-weight: 500; }
.form-alert a, .form-warn a { color: inherit; font-weight: 700; }
.btn-danger { display: inline-flex; align-items: center; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--err); color: #fff; font-weight: 700; font-size: 15px; }
.btn-danger.small, .btn-ghost.small, .btn-primary.small { padding: 8px 14px; font-size: 13.5px; min-height: 0; border-radius: 10px; }
.btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }
.check.is-locked { opacity: .75; cursor: default; }
.check .state { display: block; margin-top: 4px; font-style: normal; font-weight: 600; color: var(--ink-3); }

/* Pagina grazie: crea password */
.area-create { margin-top: 28px; padding-top: 24px; border-top: 1px solid #EFEAE3; text-align: left; }
.area-create h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 8px; text-align: center; }
.area-create > p { font-size: 15px; text-align: center; margin: 0 0 18px; }
.area-create .field input { margin-top: 6px; }
.area-create .label { display: block; font-weight: 600; font-size: 14px; }
.area-create .field { display: block; }

/* Documenti legali */
.legal-doc h1 { font-size: clamp(28px, 3.6vw, 40px); }
.legal-doc h1 + p { color: var(--ink-3); margin: 0 0 30px; }
.legal-doc table { display: block; overflow-x: auto; }
.legal-doc td, .legal-doc th { min-width: 120px; font-size: 14px; }
@media (max-width: 640px) { .legal-doc table { display: block; } .legal-doc thead { display: table-header-group; } .legal-doc tr { display: table-row; } .legal-doc td, .legal-doc th { display: table-cell; width: auto; } .legal-doc td:last-child::before { content: none; } }

/* ==========================================================================
   Chat AI
   ========================================================================== */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; font-size: 15px; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(16,24,40,.55); transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: var(--brand); }
.chat-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--ink); color: #fff; }
.chat-head strong { display: block; font-size: 16px; }
.chat-head small { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.chat-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAF7F3; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: 14.5px; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 4px 0; padding-left: 18px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid #EFEAE3; border-bottom-left-radius: 6px; color: var(--ink); }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing { color: var(--ink-3); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { opacity: .4; } }
.msg.err-msg { background: #FDECEA; border-color: #F8C9C2; color: var(--err); }
.msg a { color: var(--brand-dark); word-break: break-word; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #FAF7F3; }
.chat-suggest button { border: 1px solid #E4DCD2; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.chat-suggest button:hover { border-color: var(--brand); color: var(--brand-dark); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #EFEAE3; }
.chat-form input { height: 46px !important; }
.chat-form button { flex: 0 0 46px; border: 0; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; fill: #fff; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.chat-note a { color: var(--ink-3); }
@media (max-width: 900px) {
  .chat { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; }
  .chat.is-open { left: 8px; right: 8px; bottom: 8px; }
  .chat-panel { width: 100%; height: calc(100vh - 16px); height: calc(100dvh - 16px); }
}

/* ==========================================================================
   Area riservata
   ========================================================================== */
.is-area .page-top .topbar-in, .admin-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.area-card { width: 100%; max-width: 460px; text-align: left; }
.area-card h1 { text-align: center; }
.area-card > p { text-align: center; }
.area-card .btn-primary { margin-top: 6px; }
.area-links { text-align: center; margin: 16px 0 0; font-size: 14px; }
.area { padding: 40px 0 80px; }
.area-wrap { max-width: 960px; }
.area-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.muted { color: var(--ink-3); margin: 6px 0 0; }
.panel { background: #fff; border: 1px solid #EFEAE3; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; }
.panel h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 10px; letter-spacing: -.01em; }
.panel h2 small, .admin-head h1 small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 600; }
.panel .consents { margin: 16px 0; }
.panel .consents .check { font-size: 14px; }
.subs { display: grid; gap: 10px; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #EFEAE3; border-radius: 12px; }
.sub small { display: block; color: var(--ink-3); margin-top: 2px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-form .full { grid-column: 1 / -1; }
.grid-form input:disabled { background: #F5F2EE; color: var(--ink-3); }
details.danger { margin-top: 18px; border: 1px solid #F8C9C2; border-radius: 12px; padding: 14px 16px; background: #FFF7F5; }
details.danger summary { cursor: pointer; font-weight: 700; color: var(--err); }
details.danger form { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #F0EBE5; vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: #FAF7F3; position: sticky; top: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: #FFF7F5; }
.small-txt { font-size: 12px; color: var(--ink-2); max-width: 420px; }
@media (max-width: 640px) { .grid-form { grid-template-columns: 1fr; } .panel { padding: 20px 18px; } .area-top { flex-direction: column; } }

/* ==========================================================================
   Area admin
   ========================================================================== */
.is-admin { background: #F6F4F1; }
.admin-top { background: var(--ink); color: #fff; padding: 12px 24px; position: sticky; top: 0; z-index: 30; }
.admin-in { max-width: 1400px; margin: 0 auto; }
.admin-top .brand { color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; margin-left: 24px; }
.admin-nav a { color: rgba(255,255,255,.78); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.on { background: var(--brand); color: #fff; }
.admin-top .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.admin { padding: 28px 24px 70px; }
.admin-wrap { max-width: 1400px; margin: 0 auto; }
.admin-wrap > h1, .admin-head h1 { font-family: var(--display); font-weight: 600; font-size: 32px; margin: 0 0 18px; letter-spacing: -.015em; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-head h1, .admin-head h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid #EFEAE3; border-radius: 14px; padding: 16px 18px; }
.kpi span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi b { display: block; font-size: 30px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--ink-3); font-size: 12px; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; align-items: end; height: 160px; padding-top: 16px; }
.bar { height: 100%; display: flex; align-items: flex-end; position: relative; }
.bar::before { content: ""; width: 100%; height: max(var(--h), 2px); background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; }
.bar span { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 2px); font-size: 10px; color: var(--ink-3); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 13.5px; }
.filters select, .filters input[type=text], .filters input:not([type]), .filters input[type=date] { height: 40px; width: auto; padding: 0 10px; font-size: 13.5px; border-radius: 10px; }
.filters select { padding-right: 28px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2733' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center/14px no-repeat; }
.filters label { display: inline-flex; align-items: center; gap: 6px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #EEF2F6; color: var(--ink-2); white-space: nowrap; }
.pill.on { background: #E4F6EE; color: #13724C; }
.pill.off { background: #F3F1EE; color: #9AA1AA; }
.pill.warn { background: #FFF1D6; color: #8A5A00; }
.pill.st-active, .pill.st-confirmed { background: #E4F6EE; color: #13724C; }
.pill.st-pending_phone { background: #FFF1D6; color: #8A5A00; }
.pill.st-unsubscribed { background: #F3F1EE; color: #7B8593; }
.pill.st-deleted { background: #FDECEA; color: var(--err); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 16px; font-size: 14px; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; word-break: break-word; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 13.5px; }
.inline-actions form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-actions label { display: inline-flex; gap: 6px; align-items: center; }
.mail-preview { border: 1px dashed #DDD5CB; border-radius: 12px; padding: 16px 18px; background: #FDFBF8; font-size: 14px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } .admin-nav { margin-left: 0; } .admin-in { flex-wrap: wrap; } .dl { grid-template-columns: 1fr; } }

.form-sub { margin: 4px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-3); }

/* ==========================================================================
   Lead Sites: marchio dei siti, hero senza foto, quiz
   ========================================================================== */
.site-mark { display: inline-grid; place-items: center; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; font-weight: 800; font-size: 20px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.hero-plain { background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, #1D2733); }
.hero-plain::before { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%); }
.is-quiz { background: #F5F4FB; }
.quiz-top { background: #fff; border-bottom: 1px solid #ECEAF5; padding: 12px 0; position: sticky; top: 0; z-index: 20; }
.quiz-top .brand { color: var(--ink); }
.quiz-nav { display: flex; gap: 8px; }
.quiz-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; background: #F1EFFA; }
.quiz-nav a:last-child { background: var(--brand); color: #fff; }
.quiz-hero { position: relative; color: #fff; padding: 70px 0 60px; margin-bottom: 30px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand-dark) 92%, transparent), color-mix(in srgb, var(--brand) 70%, transparent)), var(--img) center/cover; }
.quiz-hero h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0 0 10px; max-width: 760px; }
.quiz-hero p { font-size: 18px; max-width: 640px; margin: 0; opacity: .92; }
.quiz-h2 { font-family: var(--display); font-size: 28px; margin: 0 0 16px; }
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.quiz-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #ECEAF5; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.quiz-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(40,30,120,.35); }
.quiz-ico { font-size: 34px; }
.quiz-card strong { font-size: 19px; }
.quiz-card small { color: var(--ink-2); }
.quiz-meta { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--brand-dark); }
.quiz-how { margin-bottom: 50px; }
.quiz-play { max-width: 760px; padding-top: 30px; padding-bottom: 60px; }
.quiz-back { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.quiz-play h1 { font-family: var(--display); font-size: 34px; margin: 10px 0 16px; }
.quiz-bar { height: 8px; border-radius: 99px; background: #E6E3F5; overflow: hidden; margin-bottom: 18px; }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.quiz-box, .quiz-result { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid #ECEAF5; }
.quiz-count { margin: 0 0 6px; color: var(--ink-3); font-weight: 600; font-size: 14px; }
.quiz-box h2 { margin: 0 0 20px; font-size: 22px; line-height: 1.35; }
.quiz-answers { display: grid; gap: 10px; }
.quiz-answer { text-align: left; padding: 15px 18px; border-radius: 14px; border: 1.5px solid #E2DEF3; background: #FBFAFF; font-size: 16px; font-weight: 600; color: var(--ink); transition: all .15s; }
.quiz-answer:hover { border-color: var(--brand); }
.quiz-answer.picked { background: var(--brand); color: #fff; border-color: var(--brand); }
.quiz-score { display: flex; align-items: baseline; gap: 10px; }
.quiz-score b { font-size: 54px; font-family: var(--display); color: var(--brand-dark); }
.quiz-points { font-size: 18px; }
.quiz-review { display: grid; gap: 8px; margin: 18px 0; }
.quiz-review .rv { padding: 10px 14px; border-radius: 12px; font-size: 14.5px; }
.quiz-review .rv.ok { background: #E4F6EE; } .quiz-review .rv.ko { background: #FDECEA; }
.quiz-review small { color: var(--ink-2); }
.quiz-actions { display: flex; gap: 10px; }
.quiz-signup { margin-top: 24px; }

/* Admin: persona iscritta su più siti */
.sites-cell .pill{margin:2px 2px 2px 0;display:inline-block}
.tbl tr.is-current td{background:color-mix(in srgb,var(--brand,#F2594B) 8%,transparent)}
.h-sub{font-size:1.1rem;margin:28px 0 12px}

/* Form di ricerca sulle tabelle collegate (blocco "ricerca", public/assets/js/ricerca.js) */
.ricerca-form{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;background:#fff;border:1px solid var(--line,#E6E8EC);border-radius:18px;padding:20px}
.ricerca-campi{display:flex;flex-wrap:wrap;gap:14px;flex:1 1 420px}
.ricerca-campi .field{flex:1 1 180px;margin:0}
.ricerca-campi input{width:100%}
.ricerca-form .btn-primary{flex:0 0 auto}
.ricerca-risultati{margin-top:18px}
.ricerca-msg{color:var(--muted,#667085);font-size:14px;margin:10px 0}
.ricerca-errore{color:var(--err,#D92D20)}
.ricerca-tabella{overflow-x:auto;border:1px solid var(--line,#E6E8EC);border-radius:14px;background:#fff}
.ricerca-tabella table{width:100%;border-collapse:collapse;font-size:14px}
.ricerca-tabella th,.ricerca-tabella td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line,#E6E8EC);vertical-align:top}
.ricerca-tabella th{background:#F8F9FB;font-weight:600;white-space:nowrap}
.ricerca-tabella tr:last-child td{border-bottom:0}
@media (max-width:640px){
  .ricerca-tabella thead{display:none}
  .ricerca-tabella tr{display:block;border-bottom:1px solid var(--line,#E6E8EC);padding:6px 0}
  .ricerca-tabella td{display:flex;gap:10px;border:0;padding:4px 12px}
  .ricerca-tabella td::before{content:attr(data-label);font-weight:600;min-width:40%}
}
