/* ==========================================================================
   cartomanziabassocosto.it – foglio di stile
   Stile chiaro e moderno · nessun font esterno (privacy + velocità)
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5b6475;
  --border: #e3e8f2;
  --primary: #1e5eff;
  --primary-dark: #1446c7;
  --primary-soft: #e9efff;
  --green: #15803d;
  --green-bg: #e6f6ec;
  --red: #c62828;
  --red-bg: #fdecec;
  --gray: #6b7280;
  --gray-bg: #eef0f4;
  --amber: #ffb703;
  --violet: #6d28d9;
  --violet-soft: #efeafe;
  --rose: #e11d48;
  --rose-soft: #ffe8ef;
  --green-soft: #e3f7ea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --shadow-sm: 0 2px 10px rgba(17, 24, 39, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); 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(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--gray-bg); padding: .1em .4em; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .6em; }

/* ---------------------------------------------------------------- Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; line-height: 1;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg, .feature__icon svg, .brand-logo__mark, .cc-fab svg { flex: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(30, 94, 255, .25); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: #f1f5ff; color: var(--primary-dark); }
.btn--outline { background: #fff; color: var(--primary-dark); border-color: #c7d6ff; }
.btn--outline:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.btn--card { width: 100%; margin-top: 16px; padding: 13px 18px; background: var(--primary); color: #fff; }
.btn--card:hover { background: var(--primary-dark); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1.1rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot--green { background: #22c55e; } .dot--violet { background: #8b5cf6; } .dot--rose { background: #f43f5e; } .dot--blue { background: var(--primary); }
.grad { background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 60%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.15rem; text-decoration: none !important; white-space: nowrap; }
.brand-logo__text strong { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 18px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 600; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-120%); opacity: 0; transition: transform .25s, opacity .2s; }
  .site-nav.is-open { transform: none; opacity: 1; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 4px; }
  .btn--call { width: 100%; }
}

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, .18) 0%, rgba(124, 58, 237, 0) 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(225, 29, 72, .14) 0%, rgba(225, 29, 72, 0) 60%),
    radial-gradient(800px 400px at 50% 0%, rgba(30, 94, 255, .14) 0%, rgba(30, 94, 255, 0) 60%),
    linear-gradient(180deg, #fff 0%, #f6f4ff 100%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 22px; }
.hero__points li { padding: 6px 0; color: var(--muted); font-size: .98rem; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero__number { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--primary); color: #fff; text-decoration: none !important; padding: 16px 30px 18px; border-radius: 22px; box-shadow: 0 14px 34px rgba(30, 94, 255, .32); margin: 12px 0 18px; transition: transform .15s, box-shadow .15s; }
.hero__number:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(30, 94, 255, .4); color: #fff; }
.hero__number-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.hero__number-value { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: .02em; line-height: 1.05; }
.price-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.price-pills li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: .95rem; box-shadow: var(--shadow-sm); }
.price-pills strong { color: var(--primary-dark); }
.hero__alt { color: var(--muted); font-size: .98rem; }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { max-width: 220px; }
  .hero__number { width: 100%; align-items: center; }
  .hero__actions .btn { width: 100%; }
}

/* ------------------------------------------------------------- Vantaggi */
.features { padding: 20px 0 30px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature h2 { font-size: 1.1rem; margin: 14px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.feature__icon { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); align-items: center; justify-content: center; }
.feature__icon--violet { background: var(--violet-soft); color: var(--violet); }
.feature__icon--green { background: var(--green-soft); color: var(--green); }
.feature { border-top: 4px solid var(--primary); }
.feature:nth-child(2) { border-top-color: var(--violet); }
.feature:nth-child(3) { border-top-color: #22c55e; }
@media (max-width: 860px) { .features__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Sezioni */
.section { padding: 56px 0; }
.section__head { max-width: 760px; margin-bottom: 28px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.numbers { padding-top: 32px; }
.live { background: linear-gradient(180deg, #eef3ff 0%, #f5f7fb 100%); border-top: 1px solid #e0e8ff; border-bottom: 1px solid #e0e8ff; }
.live .eyebrow { color: var(--green); }
.faq { background: linear-gradient(180deg, #f5f7fb 0%, #f6f2ff 100%); }
.faq .eyebrow { color: var(--violet); }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.live-stamp { color: var(--green); font-weight: 600; }

/* ------------------------------------------------- Feed cartomanti.net */
.feed { display: grid; gap: 24px; min-width: 0; }
.feed > * { min-width: 0; }
.feed img { max-width: 100%; height: auto; }
.feed .brand { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .feed .brand { padding: 18px; } }
.feed .brand-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.feed .brand-head h2 { margin: 0; font-size: 1.45rem; }
.feed .live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .95rem; }
.feed .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .45); } 70% { box-shadow: 0 0 0 9px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }

.feed .numeri { display: grid; gap: 10px; margin: 0 0 18px; }
.feed .numeri li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--muted); font-size: .98rem; }
.feed a.tel { display: inline-block; font-weight: 900; font-size: 1.35rem; color: var(--primary-dark); margin-right: 6px; letter-spacing: .01em; }
.feed a.tel--verde { color: var(--green); }

.feed .ricarica { border: 1px dashed #b9cbff; background: #f7f9ff; border-radius: var(--radius-sm); padding: 18px; margin: 0 0 18px; text-align: center; }
.feed .ricarica h3 { margin-bottom: 4px; }
.feed .ricarica p { color: var(--muted); margin-bottom: 10px; }
.feed .payments { max-width: 420px; border-radius: 8px; }
.feed .pacchetti { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.feed .pacchetti img { border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform .15s; }
.feed .pacchetti a:hover img { transform: translateY(-2px); }

.feed .op-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.feed .op-head h3 { margin: 0; font-size: 1.05rem; }
.feed .op-legend { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); }
.feed .op-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.feed .op-legend .op--free::before { background: var(--green); }
.feed .op-legend .op--busy::before { background: var(--red); }
.feed .op-legend .op--away::before { background: var(--gray); }

.feed .op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.feed .op { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .95rem; }
.feed .op-icon { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--gray); }
.feed .op-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .op-ext { color: var(--muted); font-weight: 500; font-size: .82rem; background: var(--gray-bg); padding: 2px 7px; border-radius: 6px; }
.feed .op--free { border-color: #b7e4c7; background: var(--green-bg); color: var(--green); }
.feed .op--free .op-icon { background: var(--green); box-shadow: 0 0 0 3px rgba(21, 128, 61, .15); }
.feed .op--busy { border-color: #f3c0c0; background: var(--red-bg); color: var(--red); }
.feed .op--busy .op-icon { background: var(--red); }
.feed .op--away { color: var(--gray); background: var(--gray-bg); }

.feed .banner-link { display: block; text-align: center; margin: 0 0 18px; }
.feed .banner-link img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.feed .cta { text-align: center; background: var(--primary-soft); border-radius: var(--radius-sm); padding: 20px; margin: 0 0 18px; }
.feed .cta-link { display: inline-block; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 999px; margin-bottom: 12px; text-decoration: none !important; box-shadow: 0 8px 20px rgba(30, 94, 255, .25); }
.feed .cta-link:hover { background: var(--primary-dark); }
.feed .cta img { display: block; margin: 0 auto 10px; }
.feed .cta p { margin: 0; color: var(--muted); }
.feed .cta p b { color: var(--primary-dark); font-size: 1.1rem; }
.feed .brand > *:last-child { margin-bottom: 0; }
.feed-offline { background: var(--red-bg); color: var(--red); padding: 16px; border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- Promo */
.promo { padding-top: 0; }
.promo__box { background: linear-gradient(120deg, #6d28d9 0%, #1e5eff 100%); color: #fff; border-radius: var(--radius); padding: 34px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 16px 40px rgba(30, 94, 255, .3); }
.promo__box h2 { color: #fff; margin-bottom: .3em; }
.promo__box .btn--light { color: #4c1d95; }
.promo__box p { margin: 0; opacity: .95; }
.promo__stars { color: var(--amber); letter-spacing: .1em; font-size: 1.1rem; margin-bottom: 6px; }

/* --------------------------------------------------------------- Numeri */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { --accent: var(--primary); --accent-soft: var(--primary-soft); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card--rose { --accent: var(--rose); --accent-soft: var(--rose-soft); }
.card--violet { --accent: var(--violet); --accent-soft: var(--violet-soft); }
.card--green { --accent: var(--green); --accent-soft: var(--green-soft); }
.card h3 { margin-bottom: 10px; }
.card__number { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 900; color: var(--accent); margin: 4px 0 14px; letter-spacing: .01em; }
.card__number svg { flex: none; background: var(--accent-soft); border-radius: 10px; padding: 6px; width: 36px; height: 36px; }
.card__number:hover { text-decoration: none; filter: brightness(.9); }
.card__prices { flex: 1; }
.card__prices li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .97rem; }
.card__prices strong { color: var(--text); }
.card .btn--card { background: var(--accent); }
.card .btn--card:hover { filter: brightness(.92); }
.card--highlight { box-shadow: 0 16px 40px rgba(21, 128, 61, .16); }
.card__badge { position: absolute; top: -14px; left: 24px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ FAQ */
.faq__list { max-width: 860px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------------------------------------------- Linea classica (in fondo) */
.classic { padding-top: 0; }
.classic__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.classic__text { flex: 1 1 420px; }
.classic__text h2 { font-size: 1.45rem; }
.classic__text p { color: var(--muted); }
.classic__text .price-pills { margin-bottom: 0; }
.classic__number { display: inline-flex; flex-direction: column; align-items: center; background: var(--primary-soft); color: var(--primary-dark); text-decoration: none !important; padding: 14px 28px; border-radius: 16px; border: 1px solid #c7d6ff; transition: background .15s; }
.classic__number:hover { background: #dbe6ff; }
.classic__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.classic__value { font-size: 1.8rem; font-weight: 900; letter-spacing: .02em; }
@media (max-width: 700px) { .classic__box { padding: 24px 20px; } .classic__number { width: 100%; } }

/* --------------------------------------------------------------- Footer */
.site-footer { background: linear-gradient(180deg, #111a33 0%, #0f172a 100%); color: #cbd5e1; padding: 48px 0 28px; margin-top: 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 32px; }
.site-footer__brand { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.site-footer__brand strong { color: #7aa2ff; }
.site-footer__title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer__links li { margin-bottom: 6px; }
.site-footer__small { font-size: .88rem; color: #94a3b8; }
.site-footer__copy { border-top: 1px solid rgba(255, 255, 255, .1); margin: 28px 0 0; padding-top: 18px; font-size: .85rem; color: #94a3b8; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------- Pagine legali */
.page-legal .legal { max-width: 860px; padding: 48px 0 64px; }
.legal h1 { margin-bottom: .3em; }
.legal .legal__meta { color: var(--muted); margin-bottom: 2em; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; list-style: disc; margin-bottom: 1em; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: .35em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1em 0 1.5em; background: #fff; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--primary-soft); }
.legal .box { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: var(--radius-sm); margin: 1em 0; }
.legal-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 2em; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 24px; }
@media (max-width: 700px) { .legal-toc ol { columns: 1; } }

/* ------------------------------------------------------------ Pagina 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 5rem; color: var(--primary); margin: 0; }

/* ==========================================================================
   COOKIE BANNER – nero, testo bianco, pulsanti blu
   ========================================================================== */
.cc-btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 12px 22px;
  border: 2px solid var(--primary); line-height: 1; transition: background .15s, transform .15s; white-space: nowrap;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cc-btn--primary { background: var(--primary); color: #fff; }
.cc-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.cc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cc-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 16px;
}
.cc-banner__inner {
  position: relative; max-width: 1080px; margin: 0 auto;
  background: #0b0b0f; color: #fff; border-radius: 20px; padding: 24px 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center;
  animation: cc-in .35s ease-out;
}
@keyframes cc-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-banner__title { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.cc-banner__text p { margin: 0; font-size: .95rem; line-height: 1.55; color: #e5e7eb; }
.cc-banner__text a { color: #fff; text-decoration: underline; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-banner__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: #9ca3af; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.cc-banner__close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cc-inline-icon { font-style: normal; }
@media (max-width: 860px) {
  .cc-banner { padding: 10px; }
  .cc-banner__inner { grid-template-columns: 1fr; padding: 22px 18px 18px; }
  .cc-banner__actions { justify-content: stretch; }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
}

/* pulsante di richiamo (in basso a destra) */
.cc-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 990;
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--primary);
  background: #0b0b0f; color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transition: transform .15s, background .15s;
}
.cc-fab:hover { transform: scale(1.06); background: var(--primary); }
.cc-fab:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.cc-fab[hidden] { display: none; }

/* pannello preferenze */
.cc-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.cc-modal__dialog {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto;
  background: #0b0b0f; color: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  padding: 0; outline: none; animation: cc-in .3s ease-out;
}
.cc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 12px; }
.cc-modal__head h2 { margin: 0; font-size: 1.35rem; }
.cc-modal__close { border: 0; background: transparent; color: #9ca3af; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.cc-modal__close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cc-modal__body { padding: 0 26px 10px; }
.cc-modal__intro { color: #d1d5db; font-size: .95rem; }
.cc-modal__intro a, .cc-cat a { color: #fff; text-decoration: underline; }
.cc-cat { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; }
.cc-cat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cc-cat h3 { margin: 0 0 4px; font-size: 1.05rem; }
.cc-cat h3 label { cursor: pointer; }
.cc-cat p { margin: 0; color: #d1d5db; font-size: .92rem; }
.cc-cat__details { margin-top: 10px; font-size: .88rem; color: #cbd5e1; }
.cc-cat__details summary { cursor: pointer; color: #93b4ff; font-weight: 600; }
.cc-cat__details ul { list-style: disc; padding-left: 1.2em; margin-top: 6px; }
.cc-cat__details code { background: rgba(255, 255, 255, .12); color: #fff; }
.cc-always { flex: none; font-size: .8rem; font-weight: 700; color: #86efac; background: rgba(134, 239, 172, .12); padding: 6px 12px; border-radius: 999px; }
.cc-switch { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch__track { position: absolute; inset: 0; background: #374151; border-radius: 999px; transition: background .2s; }
.cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cc-switch input:checked + .cc-switch__track { background: var(--primary); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(22px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid #fff; outline-offset: 2px; }
.cc-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 26px 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cc-modal__meta { padding: 0 26px 18px; margin: 0; font-size: .78rem; color: #9ca3af; }
@media (max-width: 600px) {
  .cc-modal__foot { flex-direction: column; }
  .cc-modal__foot .cc-btn { width: 100%; }
}
html.cc-modal-open, html.nav-open { overflow: hidden; }
