/* =====================================================================
   Cartomanzia Bassissimo Costo – foglio di stile 2026
   Tema scuro ed elegante: blu notte / viola profondo, accenti oro.
   ===================================================================== */

:root {
	--bg:        #0d0a1f;
	--bg-2:      #16112f;
	--bg-3:      #1f1840;
	--surface:   rgba(255,255,255,.045);
	--surface-2: rgba(255,255,255,.08);
	--border:    rgba(255,255,255,.12);
	--text:      #f1ecff;
	--muted:     #b6adcf;
	--gold:      #e3c06a;
	--gold-2:    #f6dc93;
	--gold-dark: #9c7a2a;
	--rose:      #ff6b8b;
	--green:     #4ade80;
	--radius:    18px;
	--radius-sm: 10px;
	--shadow:    0 20px 60px rgba(0,0,0,.45);
	--font-head: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1120px;
	--gutter:    16px;
}

/* ---------- Reset leggero ---------- */
*, *::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-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	background-image:
		radial-gradient(1200px 600px at 80% -10%, rgba(120, 70, 220, .28), transparent 60%),
		radial-gradient(900px 500px at -10% 30%, rgba(227, 192, 106, .12), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
	background-attachment: fixed;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: #fff; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
p { margin: 0 0 1em; }
strong, b { font-weight: 800; color: #fff; }
ul { padding-left: 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: .5em 1em; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .95em 1.6em; border-radius: 999px; font-weight: 800; font-size: 1.02rem;
	border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	line-height: 1.1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c99c3f); color: #1a1205; box-shadow: 0 10px 30px rgba(227,192,106,.3); }
.btn--primary:hover { color: #000; box-shadow: 0 14px 36px rgba(227,192,106,.45); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { background: var(--surface-2); color: #fff; }
.btn--lg { font-size: 1.25rem; padding: 1.05em 1.9em; }
.btn--sm { font-size: .92rem; padding: .6em 1.1em; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(13,10,31,.72);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	transition: background .2s;
}
.site-header.is-compact { background: rgba(13,10,31,.92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--gold); text-decoration: none !important; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.brand__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--text); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--gold-2); text-decoration: none; }
.site-nav .btn { color: #1a1205; }
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(13,10,31,.98); border-bottom: 1px solid var(--border);
		padding: .5rem var(--gutter) 1rem; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--border); }
	.site-nav .btn { margin-top: .75rem; border-bottom: 0; }
}

/* ---------- Sezioni ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: .7rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dark), transparent); max-width: 420px; margin: 0 auto; opacity: .7; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 1rem; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.hero__note { font-size: .92rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero__badge {
	position: absolute; top: -14px; right: -10px; background: var(--rose); color: #fff; font-weight: 800;
	padding: .5em .9em; border-radius: 999px; font-size: .85rem; box-shadow: 0 8px 24px rgba(255,107,139,.45);
	transform: rotate(4deg);
}
@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero__media { order: -1; }
	.hero__badge { right: 6px; }
}

/* ---------- Trust strip ---------- */
.trust { padding: 0 0 1rem; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust__item { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; font-weight: 700; font-size: .95rem; }
.trust__item svg { flex: 0 0 auto; color: var(--gold); }
@media (max-width: 860px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Card numeri principali ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plan {
	position: relative; background: linear-gradient(160deg, var(--surface-2), var(--surface));
	border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.75rem;
	box-shadow: 0 10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column;
}
.plan--featured { border-color: rgba(227,192,106,.55); box-shadow: 0 0 0 1px rgba(227,192,106,.25), 0 20px 50px rgba(0,0,0,.35); }
.plan__tag { position: absolute; top: -13px; left: 1.5rem; background: var(--gold); color: #1a1205; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.plan h3 { margin-bottom: .2rem; }
.plan__sub { color: var(--muted); margin-bottom: 1rem; }
.plan__number { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 700; color: var(--gold-2); letter-spacing: .03em; line-height: 1; margin: .3rem 0 1rem; display: block; }
.plan__number:hover { color: #fff; text-decoration: none; }
.plan__price { font-size: 1.35rem; font-weight: 800; color: #fff; }
.plan__price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.plan li { padding: .35rem 0 .35rem 1.6rem; position: relative; border-bottom: 1px dashed var(--border); }
.plan li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold-dark)); color: #1a1205; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Partner / offerte ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.offer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.offer:hover { transform: translateY(-4px); border-color: rgba(227,192,106,.5); }
.offer__media { background: #000; line-height: 0; }
.offer__media img { width: 100%; height: auto; }
.offer__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.offer h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.offer__price { color: var(--gold-2); font-weight: 800; font-size: 1.05rem; margin-bottom: .5rem; }
.offer p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.offer__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.offer--wide { grid-column: span 3; flex-direction: row; }
.offer--wide .offer__media { flex: 0 0 42%; display: flex; align-items: center; }
.offer--wide .offer__body { justify-content: center; }
.offer--promo { border-color: rgba(255,107,139,.5); background: linear-gradient(160deg, rgba(255,107,139,.12), var(--surface)); }
@media (max-width: 960px) { .offers { grid-template-columns: repeat(2, 1fr); } .offer--wide { grid-column: span 2; flex-direction: column; } }
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } .offer--wide { grid-column: span 1; } }

/* ---------- Tabella tariffe ---------- */
.rates { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rates__row { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); align-items: center; }
.rates__row:last-child { border-bottom: 0; }
.rates__row--head { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); font-weight: 800; }
.rates__service { font-weight: 800; color: #fff; }
.rates__service small { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }
.rates__num a { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--gold-2); }
.rates__cost { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) {
	.rates__row { grid-template-columns: 1fr; gap: .25rem; }
	.rates__row--head { display: none; }
}
.flag { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: .35em; border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 800; color: #fff; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---------- CTA finale ---------- */
.cta {
	text-align: center; background: linear-gradient(135deg, rgba(227,192,106,.16), rgba(120,70,220,.18));
	border: 1px solid rgba(227,192,106,.35); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}
.cta p { color: var(--muted); max-width: 600px; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 6.5rem; background: rgba(0,0,0,.25); font-size: .93rem; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer__brand { font-family: var(--font-head); font-size: 1.5rem; color: #fff; font-weight: 700; margin-bottom: .3rem; }
.site-footer__title { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; margin-bottom: .6rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .35rem; }
.site-footer__legal { font-size: .82rem; color: #8f86aa; margin-bottom: .5rem; }
.site-footer p a { color: var(--text); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Pulsanti flottanti ---------- */
.call-fab {
	position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40;
	display: none; align-items: center; gap: .5rem; padding: .85em 1.4em; border-radius: 999px;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; font-weight: 800;
	box-shadow: 0 12px 30px rgba(0,0,0,.5); text-decoration: none !important; white-space: nowrap;
}
@media (max-width: 860px) { .call-fab { display: inline-flex; } }
.cookie-fab {
	position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
	background: var(--bg-3); color: var(--gold); border: 1px solid var(--border); cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.cookie-fab:hover { color: #fff; }
@media (max-width: 860px) { .cookie-fab { bottom: 72px; } }

/* ---------- Pagine legali ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: .9rem; color: var(--gold); letter-spacing: .05em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.legal th { background: var(--surface-2); color: #fff; font-weight: 800; white-space: nowrap; }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }

/* =====================================================================
   COOKIE BANNER & MODAL (consent.js)
   ===================================================================== */
.cbc-btn {
	display: inline-flex; align-items: center; justify-content: center; padding: .7em 1.3em; border-radius: 999px;
	font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; border: 1px solid rgba(255,255,255,.3);
	background: transparent; color: #fff; transition: background .15s, transform .15s;
}
.cbc-btn:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.cbc-btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; border-color: transparent; }
.cbc-btn--primary:hover { background: linear-gradient(135deg, #fff2c2, var(--gold-2)); }

.cbc-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	transform: translateY(110%); transition: transform .35s ease; padding: 0 var(--gutter) var(--gutter);
}
.cbc-banner.is-visible { transform: none; }
.cbc-banner__inner {
	max-width: 1120px; margin: 0 auto; background: #15102c; color: var(--text);
	border: 1px solid rgba(227,192,106,.4); border-radius: var(--radius); padding: 1.2rem 1.4rem;
	box-shadow: 0 -10px 50px rgba(0,0,0,.6); display: flex; gap: 1.5rem; align-items: center;
}
.cbc-banner__text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.cbc-banner__text a { color: var(--gold-2); text-decoration: underline; }
.cbc-banner__actions { display: flex; gap: .5rem; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
	.cbc-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
	.cbc-banner__actions { justify-content: stretch; }
	.cbc-banner__actions .cbc-btn { flex: 1 1 auto; }
	body.cbc-banner-open .call-fab, body.cbc-banner-open .cookie-fab { display: none; }
}

.cbc-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.cbc-modal.is-open { display: block; }
.cbc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.cbc-modal__box {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(640px, calc(100% - 2 * var(--gutter))); max-height: calc(100% - 2rem); overflow: auto;
	background: #15102c; color: var(--text); border: 1px solid rgba(227,192,106,.4); border-radius: var(--radius);
	padding: 1.8rem 1.6rem; box-shadow: var(--shadow);
}
.cbc-modal__title { font-size: 1.7rem; margin-bottom: .4rem; }
.cbc-modal__intro { color: var(--muted); font-size: .93rem; }
.cbc-modal__intro a { text-decoration: underline; }
.cbc-cats { list-style: none; padding: 0; margin: 1.2rem 0; }
.cbc-cat { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: .7rem; background: var(--surface); }
.cbc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cbc-cat__name { font-weight: 800; color: #fff; }
.cbc-cat__always { font-size: .78rem; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.cbc-cat__desc { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.cbc-switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.cbc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbc-switch__slider { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; flex: 0 0 auto; }
.cbc-switch__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cbc-switch input:checked + .cbc-switch__slider { background: var(--gold); }
.cbc-switch input:checked + .cbc-switch__slider::after { transform: translateX(20px); }
.cbc-switch input:focus-visible + .cbc-switch__slider { outline: 3px solid var(--gold); outline-offset: 2px; }
.cbc-modal__meta { font-size: .78rem; color: #8f86aa; margin: 0 0 .9rem; word-break: break-all; }
.cbc-modal__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.cbc-modal__close { position: absolute; top: .6rem; right: .8rem; background: transparent; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.cbc-modal__close:hover { color: #fff; }
body.cbc-modal-open { overflow: hidden; }
@media (max-width: 600px) { .cbc-modal__actions .cbc-btn { flex: 1 1 100%; } }
