/* ==========================================================================
   Cartomanzia-Paypal.com - foglio di stile principale
   Stile chiaro, moderno e colorato. Nessuna dipendenza esterna.
   ========================================================================== */

/* ---------- Font self-hosted (nessuna chiamata a Google Fonts) ---------- */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variabili ---------- */
:root {
  --navy: #051630;
  --navy-2: #0b2350;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --magenta: #db2777;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #fde047;
  --lime: #84cc16;
  --green: #16a34a;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --sky: #0ea5e9;
  --blue: #2563eb;
  --red: #dc2626;

  --bg: #f6f7fc;
  --surface: #ffffff;
  --text: #1b2036;
  --muted: #5b6178;
  --border: #e7e9f2;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px -14px rgba(31, 27, 90, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(31, 27, 90, 0.18);
  --font: 'Nunito Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --grad-brand: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 45%, var(--orange) 100%);
  --grad-cool: linear-gradient(135deg, var(--sky) 0%, var(--violet) 100%);
  --grad-warm: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 100%);
  --grad-fresh: linear-gradient(135deg, var(--lime) 0%, var(--emerald) 100%);
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 2000; }
.skip-link:focus { left: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px -10px rgba(219, 39, 119, .65); }
.btn-secondary { background: var(--grad-cool); color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .6); }
.btn-success { background: var(--grad-fresh); color: #063; color: #0f3d22; box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .6); }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--border); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: radial-gradient(900px 300px at 15% 0%, #12306b 0%, transparent 60%),
              linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, #2b1364 100%);
  color: #fff; position: relative; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: block; flex: 0 1 460px; min-width: 0; }
.brand picture, .brand img { width: 100%; height: auto; display: block; border-radius: 10px; }
.nav-toggle {
  display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { color: #fff; font-weight: 700; padding: .55rem .9rem; border-radius: 999px; display: inline-block; white-space: nowrap; }
.site-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.site-nav a.is-active { background: rgba(255,255,255,.16); }
.site-nav .nav-cta a { background: var(--grad-warm); box-shadow: 0 8px 20px -8px rgba(249,115,22,.8); margin-left: .4rem; }
.site-nav .nav-cta a:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3.2rem 0 2.2rem; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0;
}
.hero::before { width: 520px; height: 520px; left: -160px; top: -200px; background: radial-gradient(circle, #c4b5fd, #f0abfc 60%, transparent 70%); }
.hero::after { width: 560px; height: 560px; right: -200px; top: -120px; background: radial-gradient(circle, #fde68a, #fdba74 55%, transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; gap: 2rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border);
  padding: .35rem .9rem .35rem .5rem; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--violet);
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.hero-kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; }
.chip.c-violet { color: var(--violet); } .chip.c-green { color: var(--green); } .chip.c-blue { color: var(--blue); } .chip.c-orange { color: var(--orange); } .chip.c-pink { color: var(--magenta); }

.phone-card {
  background: var(--navy); color: #fff; border-radius: 28px; padding: 1.6rem 1.5rem; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(5,22,48,.7); position: relative; overflow: hidden;
}
.phone-card::before { content: ''; position: absolute; inset: -40% -20% auto; height: 180%; background: conic-gradient(from 180deg, #7c3aed33, #db277733, #f9731633, #06b6d433, #7c3aed33); filter: blur(30px); }
.phone-card > * { position: relative; }
.phone-card .label { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #c7d2fe; }
.phone-card .number { display: block; font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 900; letter-spacing: .02em; color: #fff; margin: .2rem 0 .6rem; text-decoration: none; line-height: 1.1; }
.phone-card .number:hover { color: var(--yellow); }
.phone-card .note { color: #cbd5e1; font-size: .95rem; margin: 0; }
.phone-card .btn { margin-top: 1rem; }

/* ---------- Layout principale ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.6rem; align-items: start; padding: 1rem 0 3rem; }
.layout > main { min-width: 0; }
.stack > * + * { margin-top: 1.6rem; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem;
  position: relative; border: 1px solid var(--border);
}
.card-accent::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad-brand); }
.card-accent.accent-cool::before { background: var(--grad-cool); }
.card-accent.accent-warm::before { background: var(--grad-warm); }
.card-accent.accent-fresh::before { background: var(--grad-fresh); }
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.icon-badge { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.icon-badge svg { width: 24px; height: 24px; }
.ib-violet { background: var(--grad-cool); } .ib-warm { background: var(--grad-warm); } .ib-fresh { background: var(--grad-fresh); } .ib-navy { background: var(--navy); }

/* ---------- Modulo ricarica ---------- */
.ricarica-card .phone-inline { text-align: center; margin: 0 0 1.2rem; }
.ricarica-card .phone-inline a { display: inline-block; font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.ricarica-card .phone-inline small { display: block; color: var(--muted); font-weight: 700; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 800; margin-bottom: .35rem; color: var(--navy); }
.field .hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.input, .field select, .field input[type="tel"], .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="search"], .field input[type="date"], .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 2px solid var(--border); background: #fbfbfe;
  transition: border-color .15s, box-shadow .15s; min-height: 52px;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,58,237,.15); outline: none; background: #fff; }
.field input[type="tel"] { font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; text-align: center; }
.pay-row { text-align: center; margin-top: .4rem; }
.pay-row .btn { font-size: 1.2rem; padding: 1.05rem 2.4rem; }
.pay-logos { margin-top: 1rem; text-align: center; }
.pay-logos img { max-width: 300px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.secure-note svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- Cartomanti in tempo reale ---------- */
.live-pill { display: inline-flex; align-items: center; gap: .45rem; background: #ecfdf5; color: #047857; font-weight: 800; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; margin-left: auto; white-space: nowrap; flex: none; }
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.operatori-feed { font-size: 1rem; display: flow-root; }
.op-count { margin: 0 0 .9rem; color: var(--muted); font-weight: 700; }
.op-count strong { color: var(--green); font-size: 1.25em; }
.op-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.op-pill {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 46px;
  background: #fbfbfe; border: 1px solid var(--border); border-radius: 14px; padding: .45rem .5rem .45rem .85rem;
  font-weight: 800; color: var(--navy); transition: transform .15s, box-shadow .15s;
}
.op-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.op-pill a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; color: inherit; text-decoration: none; }
.op-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.op-code { flex: none; color: #fff; border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; font-weight: 900; letter-spacing: .02em; background: var(--grad-cool); }
.op-grid li:nth-child(5n+2) .op-code { background: linear-gradient(135deg, #a855f7, #ec4899); }
.op-grid li:nth-child(5n+3) .op-code { background: var(--grad-warm); }
.op-grid li:nth-child(5n+4) .op-code { background: var(--grad-fresh); color: #0f3d22; }
.op-grid li:nth-child(5n+5) .op-code { background: linear-gradient(135deg, #f59e0b, #f97316); }
/* stato letto dal colore del cuoricino nel feed (verde/rosso/arancione) */
.op-heart { width: 16px; height: 16px; flex: none; fill: currentColor; }
.op-pill .op-heart { color: #9ca3af; }
.op-pill.op-s-libera   { background: #f0fdf4; border-color: #86efac; }
.op-pill.op-s-libera .op-heart { color: #16a34a; }
.op-grid .op-pill.op-s-libera .op-code { background: linear-gradient(135deg, #22c55e, #059669); color: #fff; }
.op-pill.op-s-occupata { background: #fff5f5; border-color: #fca5a5; color: #7f1d1d; }
.op-pill.op-s-occupata .op-heart { color: #dc2626; }
.op-grid .op-pill.op-s-occupata .op-code { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; }
.op-pill.op-s-pausa    { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.op-pill.op-s-pausa .op-heart { color: #f97316; }
.op-grid .op-pill.op-s-pausa .op-code { background: linear-gradient(135deg, #fbbf24, #f97316); color: #fff; }
.op-pill.op-s-altro    { background: #f3f4f6; border-color: #d1d5db; color: #4b5563; }
.op-pill.op-s-altro .op-heart { color: #9ca3af; }
.op-grid .op-pill.op-s-altro .op-code { background: #6b7280; color: #fff; }
.op-count-libere { color: var(--green); }
.op-legend { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.op-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.op-legend .op-s-libera .op-heart { color: #16a34a; }
.op-legend .op-s-occupata .op-heart { color: #dc2626; }
.op-legend .op-s-pausa .op-heart { color: #f97316; }
.operatori-feed.is-updating { animation: flash .6s ease; }
@keyframes flash { from { background: #fef9c3; } to { background: transparent; } }
.operatori-feed img { border-radius: 12px; }
.operatori-feed table { width: 100%; border-collapse: collapse; }
.operatori-feed td, .operatori-feed th { padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.operatori-feed a { font-weight: 700; }
/* classi usate dal feed esterno (stato cartomante) */
.operatori-feed .cartomanti, .cartomanti  { background: #fef08a; color: #713f12; padding: .2rem .6rem; border-radius: 999px; font-weight: 800; }
.operatori-feed .cartomanti2, .cartomanti2 { background: #bbf7d0; color: #14532d; padding: .2rem .6rem; border-radius: 999px; font-weight: 800; }
.operatori-feed .cartomanti3, .cartomanti3 { background: #a5f3fc; color: #164e63; padding: .2rem .6rem; border-radius: 999px; font-weight: 800; }
.operatori-feed .rosso, .rosso { background: #fecaca; color: #7f1d1d; padding: .2rem .6rem; border-radius: 999px; font-weight: 800; }
.operatori-vuoto { background: #fff7ed; border: 1px dashed #fdba74; border-radius: 14px; padding: 1rem; color: #9a3412; margin: 0; }
.operatori-stamp { color: var(--muted); font-size: .8rem; margin: .8rem 0 0; text-align: right; }

/* ---------- Prezzi ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price {
  border-radius: 18px; padding: 1.2rem 1rem; color: #fff; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.price:hover { transform: translateY(-3px); }
.price .euro { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.price .min { font-weight: 800; opacity: .95; margin-top: .25rem; }
.price .per { font-size: .8rem; opacity: .85; margin-top: .35rem; }
.price.p1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.price.p2 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.price.p3 { background: linear-gradient(135deg, #f97316, #ec4899); }
.price.p4 { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.price .best { position: absolute; top: 10px; right: -34px; transform: rotate(35deg); background: var(--yellow); color: #713f12; font-size: .7rem; font-weight: 900; padding: .2rem 2.6rem; letter-spacing: .05em; }

/* ---------- Passi ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; counter-reset: step; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; background: #fbfbfe; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; }
.steps li::before {
  counter-increment: step; content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.steps li:nth-child(1)::before { background: var(--grad-cool); }
.steps li:nth-child(2)::before { background: linear-gradient(135deg, #a855f7, #ec4899); }
.steps li:nth-child(3)::before { background: var(--grad-warm); }
.steps li:nth-child(4)::before { background: var(--grad-fresh); }
.steps li strong { color: var(--navy); }

/* ---------- Avvisi ---------- */
.callout { border-radius: 16px; padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.callout svg { width: 24px; height: 24px; flex: none; margin-top: .1rem; }
.callout p { margin: 0; }
.callout-info { background: #fefce8; border: 1px solid #fde68a; color: #713f12; }
.callout-danger { background: #fef2f2; border: 2px solid #fca5a5; color: #7f1d1d; font-weight: 800; }
.callout-success { background: #ecfdf5; border: 2px solid #6ee7b7; color: #065f46; }
.callout a { color: inherit; text-decoration: underline; font-weight: 900; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--border); border-radius: 14px; padding: .2rem 1rem; background: #fbfbfe; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 800; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--violet); font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 .9rem; }

/* ---------- Sidebar ---------- */
.side-link { display: flex; align-items: center; gap: .9rem; padding: .3rem 0; }
.side-link img { width: 42px; height: 42px; flex: none; }
.side-link strong { display: block; color: var(--navy); }
.side-link span { color: var(--muted); font-size: .9rem; }
.side-link:hover { text-decoration: none; }
.side-link:hover strong { color: var(--violet); }
.aside-cta { text-align: center; }
.aside-cta .number { display: block; font-size: 1.9rem; font-weight: 900; margin: .3rem 0 .6rem; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; border-bottom: 1px dashed var(--border); }
.aside-list li:last-child { border: 0; }
.aside-list svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: .2rem; }

/* ---------- Pagine risultato (ok / ko) ---------- */
.result-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.result-hero .big-icon { width: 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.result-hero .big-icon svg { width: 48px; height: 48px; color: #fff; }
.result-hero.is-ok .big-icon { background: var(--grad-fresh); box-shadow: 0 20px 40px -18px rgba(16,185,129,.7); }
.result-hero.is-ko .big-icon { background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 20px 40px -18px rgba(220,38,38,.7); }

/* ---------- Pagine di testo (legali, contatti) ---------- */
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero p { color: var(--muted); max-width: 70ch; }
.prose { max-width: 80ch; }
.prose h2 { margin-top: 2rem; padding-top: .5rem; color: var(--navy); }
.prose h3 { margin-top: 1.4rem; color: var(--violet); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: #f3f4fb; color: var(--navy); }
.prose .table-wrap { overflow-x: auto; }
.toc { background: #fbfbfe; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.toc ol { margin: .4rem 0 0; }
.toc a { font-weight: 700; }
.updated { color: var(--muted); font-size: .9rem; }
.form-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.form-check input { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: var(--violet); }
.form-msg { border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 700; }
.form-msg.ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-msg.err { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.form-msg ul { margin: .4rem 0 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.info-tile { display: flex; gap: .9rem; align-items: flex-start; }
.info-tile .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.info-tile strong { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, var(--navy) 0%, #1e1b4b 60%, #3b0764 100%); color: #cbd5e1; padding: 2.5rem 0 7rem; margin-top: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #f87171; color: #fff; font-weight: 900; font-size: .8rem; margin-right: .5rem; }

/* ==========================================================================
   COOKIE BANNER - nero, scritte bianche, pulsanti blu
   ========================================================================== */
#cp-banner, #cp-modal, #cp-fab { font-family: var(--font); }
#cp-banner[hidden], #cp-modal[hidden], #cp-fab[hidden] { display: none !important; }

#cp-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999;
  width: min(760px, calc(100% - 24px)); background: #0b0b10; color: #fff; border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); padding: 1.3rem 1.4rem;
  animation: cpUp .35s ease;
}
@keyframes cpUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
#cp-banner h2 { font-size: 1.15rem; margin: 0 0 .4rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
#cp-banner h2 svg { width: 22px; height: 22px; color: #60a5fa; }
#cp-banner p { margin: 0 0 1rem; color: #d4d4d8; font-size: .95rem; line-height: 1.5; }
#cp-banner p a { color: #93c5fd; text-decoration: underline; }
.cp-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cp-btn {
  flex: 1 1 160px; padding: .8rem 1.1rem; border-radius: 12px; border: 2px solid #2563eb; background: #2563eb; color: #fff;
  font-weight: 800; cursor: pointer; font-size: .95rem; transition: background .15s, transform .15s;
}
.cp-btn:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); }
.cp-btn.cp-btn-outline { background: transparent; color: #93c5fd; border-color: #2563eb; }
.cp-btn.cp-btn-outline:hover { background: rgba(37,99,235,.18); }
.cp-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Modale preferenze */
#cp-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
#cp-modal .cp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
#cp-modal .cp-dialog {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0b0b10; color: #fff;
  border-radius: 22px; padding: 1.5rem; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
}
#cp-modal h2 { margin: 0 0 .3rem; font-size: 1.3rem; color: #fff; }
#cp-modal .cp-intro { color: #d4d4d8; font-size: .95rem; margin-bottom: 1rem; }
#cp-modal .cp-intro a { color: #93c5fd; text-decoration: underline; }
.cp-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.cp-close:hover { background: rgba(255,255,255,.1); }
.cp-cat { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.cp-cat:last-of-type { border-bottom: 1px solid rgba(255,255,255,.1); }
.cp-cat h3 { margin: 0 0 .25rem; font-size: 1rem; color: #fff; }
.cp-cat p { margin: 0; color: #a1a1aa; font-size: .88rem; line-height: 1.45; }
.cp-cat .cp-always { font-size: .75rem; color: #60a5fa; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cp-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: .1rem; }
.cp-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cp-switch span { position: absolute; inset: 0; background: #3f3f46; border-radius: 999px; transition: background .2s; }
.cp-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cp-switch input:checked + span { background: #2563eb; }
.cp-switch input:checked + span::after { transform: translateX(22px); }
.cp-switch input:disabled + span { background: #2563eb; opacity: .6; cursor: not-allowed; }
.cp-switch input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }
#cp-modal .cp-actions { margin-top: 1.2rem; }

/* Pulsante di richiamo in basso a destra */
#cp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #0b0b10; color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 3px #2563eb; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
#cp-fab:hover { transform: scale(1.06); box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 4px #3b82f6; }
#cp-fab svg { width: 28px; height: 28px; }
#cp-fab .cp-tip { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: #0b0b10; color: #fff; padding: .4rem .7rem; border-radius: 8px; font-size: .8rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; font-weight: 700; }
#cp-fab:hover .cp-tip, #cp-fab:focus-visible .cp-tip { opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 768px) {
  .brand { flex-basis: 360px; }
  .site-nav a { padding: .5rem .65rem; font-size: .95rem; }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header .container { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; max-width: calc(100% - 60px); }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding: .4rem 0 .6rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav a { display: block; text-align: center; }
  .site-nav .nav-cta a { margin: .3rem 0 0; }
  .hero { padding: 2.2rem 0 1.4rem; }
  .card { padding: 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .op-pill { padding: .35rem .35rem .35rem .6rem; font-size: .9rem; min-height: 40px; }
  .op-code { font-size: .78rem; padding: .12rem .5rem; }
  .op-name { white-space: normal; line-height: 1.15; }
  .cp-actions { flex-direction: column; }
  .cp-btn { flex: 0 0 auto; width: 100%; }
  #cp-banner { bottom: 8px; width: calc(100% - 16px); padding: 1.1rem; max-height: calc(100vh - 16px); overflow: auto; }
  #cp-banner p { font-size: .88rem; }
  #cp-fab { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  html.cp-banner-open #cp-fab { display: none; }
}
@media (max-width: 420px) {
  .price-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, #cp-banner, #cp-modal, #cp-fab, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; }
}
