/* ==========================================================================
   Pagine a blocchi: involucro comune (sfondo, spaziatura, visibilità) e
   stili dei blocchi aggiunti dopo (passaggi, colonne, video, numeri,
   testimonianze, striscia, HTML libero, piani, recensioni).
   Caricato sul sito e nel pannello (anteprima).
   ========================================================================== */

/* ---- Involucro comune: <div class="blk-wrap blk-bg-… blk-pad-…"> */
.blocks > .blk-wrap > .b-section,
.blocks > .blk-wrap > .b-hero { padding-block: clamp(24px, 3.5vw, 48px); }
.blocks > .blk-t-banner > .b-section { padding-block: clamp(10px, 1.6vw, 20px); }
.blocks > .blk-pad-compact > .b-section,
.blocks > .blk-pad-compact > .b-hero { padding-block: clamp(8px, 1.4vw, 18px); }
.blocks > .blk-pad-large > .b-section,
.blocks > .blk-pad-large > .b-hero { padding-block: clamp(48px, 7vw, 104px); }
.blk-wrap[id] { scroll-margin-top: calc(var(--header-h, 68px) + 16px); }

.blk-bg-light { background: #eef3f0; }
.blk-bg-maiolica { background: var(--maiolica-100); position: relative; }
.blk-bg-maiolica::before { content: ""; display: block; height: 10px; background: var(--tile) 0 0 / 20px 20px repeat-x; opacity: .8; }
.blk-bg-sea { background: var(--sea-900); color: #d6e4ec; }
.blk-bg-sea h2, .blk-bg-sea h3, .blk-bg-sea h4, .blk-bg-sea strong { color: #fff; }
.blk-bg-sea p, .blk-bg-sea .lead, .blk-bg-sea .section-head p, .blk-bg-sea .b-head p, .blk-bg-sea .feature-grid p { color: #c3d6e2; }
.blk-bg-sea .prose a, .blk-bg-sea .link-arrow { color: var(--maiolica); }
.blk-bg-sea .how-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.blk-bg-sea .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.blk-bg-sea .btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.blk-bg-sea .faq details { border-color: rgba(255, 255, 255, .18); }
.blk-bg-sea .plan h3, .blk-bg-sea .plan strong, .blk-bg-sea .b-quote strong, .blk-bg-sea .b-review strong, .blk-bg-sea .b-review h3 { color: var(--ink); }
.blk-bg-sea .plan p, .blk-bg-sea .b-quote p, .blk-bg-sea .b-review p { color: var(--ink); }
.blk-bg-sea .b-review-body, .blk-bg-sea .plan .muted { color: var(--muted) !important; }

@media (max-width: 759.98px) { .blk-hide-m { display: none !important; } }
@media (min-width: 760px) { .blk-hide-d { display: none !important; } }

/* ---- Intestazione comune dei nuovi blocchi */
.b-head { max-width: 720px; margin-bottom: clamp(20px, 3vw, 32px); }
.b-head h2 { margin: 0 0 8px; }
.b-head p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.b-head-center { text-align: center; margin-bottom: clamp(20px, 3vw, 32px); }

/* ---- Passaggi numerati */
.b-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
    .b-steps-2, .b-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .b-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.b-steps li { display: grid; gap: 16px; align-content: start; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.b-step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sea-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.b-steps h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }
.b-steps p { margin: 0; color: var(--muted) !important; line-height: 1.6; }
@media (max-width: 759.98px) {
    .b-steps li { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 14px; }
}

/* ---- Colonne */
.b-columns { display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .b-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .b-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 899.98px) { .b-columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b-columns .prose { max-width: none; }
.b-columns .prose > :first-child { margin-top: 0; }
.b-columns .prose img { border-radius: 14px; }

/* ---- Video (si carica solo al clic) */
.b-video { margin: 0; }
.b-video .video-item { border-radius: 20px; box-shadow: 0 10px 30px rgba(10, 38, 57, .14); }
.b-video .video-facade.is-plain { background: linear-gradient(135deg, var(--sea-900), var(--sea-700)); }
.b-video .video-facade span { transition: transform .2s ease, background .2s ease; }
.b-video .video-facade:hover span, .b-video .video-facade:focus-visible span { transform: scale(1.08); background: var(--bouganville); }
.b-video .video-caption { text-align: center; margin-top: 10px; }
.b-video-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.b-video-note .icon { width: 14px; height: 14px; }

/* ---- Numeri in evidenza */
.b-stats { margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
    .b-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.b-stats-1 { grid-template-columns: minmax(0, 1fr); }
.b-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: clamp(18px, 3vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.b-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1; letter-spacing: -.02em; color: var(--sea-900); }
.b-stats dt { color: var(--muted); font-weight: 500; line-height: 1.4; }
.blk-bg-sea .b-stats > div { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.blk-bg-sea .b-stats dd { color: #fff; }
.blk-bg-sea .b-stats dt { color: #b9cfdc; }

/* ---- Testimonianze */
.b-quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.b-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(22px, 3vw, 30px); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.b-quote blockquote { margin: 0; padding: 0; border: 0; }
.b-quote blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: .7; color: var(--maiolica); margin-bottom: 6px; }
.b-quote blockquote p { margin: 0; font-size: 1.06rem; line-height: 1.65; }
.b-quote figcaption { display: flex; gap: 12px; align-items: center; }
.b-quote figcaption span:last-child { display: grid; line-height: 1.3; }
.b-quote small { color: var(--muted); }
.b-quote-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-100); color: var(--sea-900); font-weight: 700; }

/* ---- Striscia */
.b-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 16px; border-radius: 18px; }
.b-banner p { margin: 0; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.b-banner-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.b-banner-icon .icon { width: 22px; height: 22px; }
.b-banner .btn { flex: none; }
.b-banner .btn .icon { width: 16px; height: 16px; margin: 0 -4px 0 4px; }
.b-banner-sea { background: var(--sea-900); color: #fff; }
.b-banner-sea p, .b-banner-bouganville p { color: #fff !important; }
.b-banner-bouganville { background: var(--bouganville); color: #fff; }
.b-banner-maiolica { background: var(--maiolica-100); border: 1px solid #f0dc9f; color: var(--ink); }
.b-banner-maiolica p, .b-banner-light p { color: var(--ink) !important; }
.b-banner-maiolica .b-banner-icon { background: var(--maiolica); color: var(--sea-950); }
.b-banner-light { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.b-banner-light .b-banner-icon { background: var(--sea-100); color: var(--sea-900); }
@media (max-width: 599.98px) { .b-banner .btn { width: 100%; justify-content: center; } }

/* ---- HTML libero */
.b-html img { max-width: 100%; height: auto; }
.b-html table { width: 100%; border-collapse: collapse; }
.b-html th, .b-html td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---- Recensioni */
.b-reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.b-review { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.b-review-stars { display: flex; gap: 2px; margin: 0; font-size: 1rem; line-height: 1; color: var(--line-strong); }
.b-review-stars .is-on { color: var(--ink); }
.b-review h3 { font-size: 1.05rem; margin: 2px 0 0; }
.b-review-body { margin: 0; color: var(--muted); line-height: 1.6; }
.b-review footer { margin-top: auto; padding-top: 10px; display: grid; gap: 2px; font-size: .92rem; }
.b-review footer span { color: var(--muted); }
.b-review footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Zero commissioni */
.nc-card { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; color: #fff;
    background: radial-gradient(90% 120% at 100% 0%, rgba(47, 134, 184, .55), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(173, 44, 107, .55), transparent 60%), linear-gradient(150deg, var(--sea-900), var(--sea-950)); }
@media (min-width: 960px) { .nc-card { grid-template-columns: 1fr 1.05fr; } }
/* .nc-kicker è in site.css: serve anche alla pagina di ricerca, dove blocks.css non si carica */
.nc-intro h2 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: .98; letter-spacing: -.03em; margin: 0; text-transform: uppercase; text-wrap: balance; }
.nc-text { margin: 18px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 46ch; }
.nc-intro .btn { margin-top: 26px; }
.nc-compare { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(16px, 2.4vw, 26px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); display: grid; gap: 8px; }
.nc-rows { display: grid; gap: 8px; }
.nc-example { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.nc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #f5f6f7; }
.nc-name { display: grid; gap: 2px; min-width: 0; }
.nc-name small, .nc-fee small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.nc-pct { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #b42318; min-width: 70px; text-align: right; }
.nc-fee { display: grid; text-align: right; font-weight: 800; color: #b42318; min-width: 92px; }
/* Verde #2f7a4b (= --ok): contrasto 4,97:1 sul fondo #ecfdf3 (il vecchio #1f8f4e era 3,9:1) */
.nc-row.is-us { background: #ecfdf3; border: 2px solid #1f8f4e; }
.nc-row.is-us .nc-pct { font-size: 2rem; color: #2f7a4b; }
.nc-row.is-us .nc-fee { color: #2f7a4b; font-size: 1.1rem; }
.nc-row.is-us .nc-name strong { font-size: 1.1rem; }
.nc-foot { margin: 6px 2px 0; font-size: .74rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 520px) { .nc-row { grid-template-columns: 1fr auto; } .nc-pct { grid-row: 1; grid-column: 2; } .nc-fee { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; } }
.nc-card > * { min-width: 0; }
@media (max-width: 959px) { .nc-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .nc-card { padding: 26px 18px; border-radius: 22px; }
    .nc-intro h2 { font-size: clamp(1.8rem, 9.5vw, 2.6rem); overflow-wrap: anywhere; }
    .nc-intro .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
    .nc-compare { padding: 14px; }
}

/* ==========================================================================
   Impostazioni avanzate di ogni blocco (Aspetto e visibilità › Avanzate)
   Valori in variabili CSS messe in linea da BlockService::wrap().
   ========================================================================== */
.blk-c-bg { background-color: var(--blk-bg) !important; }
.blk-c-bg.blk-bg-maiolica::before { display: none; }
.blk-c-tx, .blk-c-tx :is(p, li, dt, dd, small, .lead, .muted, blockquote, figcaption, label) { color: var(--blk-tx) !important; }
.blk-c-hd :is(h1, h2, h3, h4) { color: var(--blk-hd) !important; }
.blk-c-tx .sx-col.sx-has-tx, .blk-c-tx .sx-col.sx-has-tx :is(p, li, span, small) { color: var(--sx-tx) !important; }
.blk-c-hd .sx-col.sx-has-hd :is(h1, h2, h3, h4) { color: var(--sx-hd) !important; }
.blocks > .blk-c-pt { padding-top: var(--blk-pt); }
.blocks > .blk-c-pb { padding-bottom: var(--blk-pb); }
.blocks > .blk-c-pt > :is(.b-section, .b-hero, .section, .hx-stats, .container) { padding-top: 0; }
.blocks > .blk-c-pb > :is(.b-section, .b-hero, .section, .hx-stats, .container) { padding-bottom: 0; }
@media (max-width: 759.98px) {
    .blocks > .blk-c-ptm { padding-top: var(--blk-ptm); }
    .blocks > .blk-c-pbm { padding-bottom: var(--blk-pbm); }
    .blocks > .blk-c-ptm > :is(.b-section, .b-hero, .section, .hx-stats, .container) { padding-top: 0; }
    .blocks > .blk-c-pbm > :is(.b-section, .b-hero, .section, .hx-stats, .container) { padding-bottom: 0; }
}
.blk-c-mt { margin-top: var(--blk-mt); position: relative; }
.blk-c-mb { margin-bottom: var(--blk-mb); position: relative; }
.blk-c-max .container { max-width: var(--blk-max) !important; }
.blk-c-rad { border-radius: var(--blk-rad); overflow: hidden; }
.blk-c-bd { border: var(--blk-bd); }
.blk-boxed { width: auto; max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: var(--gutter); border-radius: var(--blk-rad, 28px); overflow: hidden; }
@media (min-width: 1680px) { .blk-boxed { margin-inline: auto; } }
.blk-al-left { text-align: left; }
.blk-al-center { text-align: center; }
.blk-al-center :is(.b-head, .section-head, .prose, .narrow) { margin-inline: auto; }
.blk-al-center .section-head { justify-content: center; }
.blk-al-right { text-align: right; }
.blk-hf-display :is(h1, h2, h3, h4) { font-family: var(--font-display) !important; }
.blk-hf-body :is(h1, h2, h3, h4) { font-family: var(--font-body) !important; }
.blk-tf-display :is(p, li, .lead) { font-family: var(--font-display) !important; }
.blk-tf-body :is(p, li, .lead) { font-family: var(--font-body) !important; }
.blk-hw-400 :is(h1, h2, h3, h4) { font-weight: 400 !important; }
.blk-hw-600 :is(h1, h2, h3, h4) { font-weight: 600 !important; }
.blk-hw-800 :is(h1, h2, h3, h4) { font-weight: 800 !important; }
.blk-c-hs :is(h1, h2) { font-size: clamp(calc(var(--blk-hs) * .62), 5vw, var(--blk-hs)) !important; }
.blk-c-ts :is(p, li, .lead, .prose) { font-size: var(--blk-ts) !important; }

/* ==========================================================================
   Sezione libera (.sx): colonne → riquadri → elementi
   ========================================================================== */
.sx-narrow { max-width: 820px !important; }
.sx-medium { max-width: 1180px !important; }
.sx-full { width: 100%; }
.sx { display: grid; gap: var(--sx-gap, clamp(16px, 2.6vw, 32px)); align-items: stretch; }
.sx-l-cols { grid-template-columns: minmax(0, 1fr); }
.sx-l-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 760px) {
    .sx-l-cols { grid-template-columns: var(--sx-cols, minmax(0, 1fr)); }
    .sx-l-auto .sx-span2 { grid-column: span 2; }
}
@media (max-width: 759.98px) {
    .sx-m-two.sx-l-cols, .sx-m-two.sx-l-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-m-reverse { display: flex; flex-direction: column-reverse; }
}
.sx-v-top { align-items: start; }
.sx-v-center { align-items: center; }
.sx-v-bottom { align-items: end; }
.sx-col { min-width: 0; display: flex; flex-direction: column; color: var(--sx-tx, inherit); background: var(--sx-bg, transparent); border-radius: var(--sx-rad, 0); border: var(--sx-bd, 0); }
.sx-col.sx-boxed { padding: var(--sx-pad, clamp(20px, 3vw, 32px)); border-radius: var(--sx-rad, 20px); }
@media (max-width: 759.98px) { .sx-col.sx-boxed { padding: var(--sx-padm, var(--sx-pad, 20px)); } }
.sx-cv-center { justify-content: center; }
.sx-cv-bottom { justify-content: flex-end; }
.sx-sh-soft { box-shadow: 0 8px 24px rgba(10, 38, 57, .10); }
.sx-sh-strong { box-shadow: 0 24px 50px -16px rgba(10, 38, 57, .35); }
.sx-has-tx :is(p, li, span, small, strong, figcaption) { color: inherit; }
.sx-has-tx .prose, .sx-has-tx .prose :is(p, li) { color: inherit; }
.sx-has-hd :is(h1, h2, h3, h4) { color: var(--sx-hd) !important; }
.sx-has-tx :is(h1, h2, h3, h4) { color: var(--sx-hd, inherit); }
.sx-a-left { text-align: left; }
.sx-a-center { text-align: center; }
.sx-a-right { text-align: right; }

.sx-el { margin: 0 0 16px; }
.sx-el:last-child { margin-bottom: 0; }
.sx-el .sx-hl { color: var(--sx-ac, var(--bouganville)); }
/* Titoli */
.sx-heading { text-wrap: balance; }
h1.sx-heading.sx-s-m { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2.sx-heading.sx-s-m, p.sx-heading.sx-s-m { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3.sx-heading.sx-s-m { font-size: 1.25rem; }
h4.sx-heading.sx-s-m { font-size: 1.05rem; }
.sx-heading.sx-s-s { font-size: 1.1rem; }
.sx-heading.sx-s-l { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }
.sx-heading.sx-s-xl { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; }
p.sx-heading { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); }
.sx-has-tx p.sx-heading { color: var(--sx-hd, inherit); }
/* Testi */
.sx-text .prose { max-width: none; }
.sx-text .prose > :first-child { margin-top: 0; }
.sx-text .prose > :last-child { margin-bottom: 0; }
.sx-text.sx-s-s { font-size: .92rem; }
.sx-text.sx-s-l { font-size: 1.15rem; }
.sx-text.sx-s-xl { font-size: 1.3rem; }
.sx-f-display { font-family: var(--font-display) !important; }
.sx-f-body { font-family: var(--font-body) !important; }
.sx-w-400 { font-weight: 400 !important; }
.sx-w-600 { font-weight: 600 !important; }
.sx-w-800 { font-weight: 800 !important; }
/* Elenco */
.sx-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.sx-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.sx-list.sx-s-s { gap: 8px; font-size: .92rem; }
.sx-list.sx-s-l { gap: 14px; font-size: 1.1rem; }
.sx-list.sx-s-xl { gap: 16px; font-size: 1.25rem; }
.sx-mk { flex: none; display: inline-grid; place-items: center; }
.sx-mk-icon .sx-mk { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--sx-ac, var(--sea-100)); color: var(--sx-on, var(--sea-900)); margin-top: -.02em; }
.sx-mk-icon .sx-mk .icon { width: .95em; height: .95em; }
.sx-mk-plain .sx-mk { color: var(--sx-ac, var(--ok)); margin-top: .1em; }
.sx-mk-plain .sx-mk .icon { width: 1.2em; height: 1.2em; }
.sx-mk-number { counter-reset: none; }
.sx-mk-number .sx-mk { width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--sx-ac, var(--sea-900)); color: var(--sx-on, #fff); font-family: var(--font-display); font-weight: 700; font-size: .9em; }
.sx-mk-dot .sx-mk { width: .5em; height: .5em; border-radius: 50%; background: var(--sx-ac, var(--bouganville)); margin-top: .55em; }
.sx-a-center .sx-list, .sx-list.sx-a-center { justify-items: center; }
/* Pulsanti */
.sx-button { display: inline-block; margin-right: 10px; vertical-align: top; }
.sx-a-right > .sx-button, .sx-button.sx-a-right { margin-right: 0; margin-left: 10px; }
.sx-button .btn .icon { width: 18px; height: 18px; }
.sx-btn-sun { background: var(--maiolica); color: var(--sea-950); }
.sx-btn-sun:hover { background: #d9a52b; color: var(--sea-950); }
.sx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sx-ac, var(--sea-700)); text-decoration: underline; text-underline-offset: 3px; }
.sx-link .icon { width: 16px; height: 16px; }
@media (max-width: 599.98px) { .sx-button { display: block; margin-inline: 0; } .sx-button .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; } }
/* Immagine e video */
.sx-image img, .sx-video video { display: block; width: 100%; height: var(--sx-h, auto); object-fit: cover; border-radius: var(--sx-r, 16px); }
.sx-image.sx-s-s img { max-width: 160px; }
.sx-image.sx-s-m img { max-width: 100%; }
.sx-image.sx-s-l img, .sx-image.sx-s-xl img { max-width: none; }
.sx-image.sx-a-center img { margin-inline: auto; }
.sx-image.sx-a-right img { margin-left: auto; }
.sx-video video { background: var(--sea-950); }
/* Icona con testo */
.sx-icon { display: flex; gap: 14px; align-items: flex-start; }
.sx-icon.sx-a-center { flex-direction: column; align-items: center; }
.sx-el .sx-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sx-ac, var(--sea-100)); color: var(--sx-on, var(--sea-900)); }
.sx-ic .icon { width: 24px; height: 24px; }
.sx-icon.sx-s-s .sx-ic { width: 36px; height: 36px; border-radius: 10px; }
.sx-icon.sx-s-s .sx-ic .icon { width: 18px; height: 18px; }
.sx-icon.sx-s-l .sx-ic, .sx-icon.sx-s-xl .sx-ic { width: 64px; height: 64px; border-radius: 18px; }
.sx-icon.sx-s-l .sx-ic .icon, .sx-icon.sx-s-xl .sx-ic .icon { width: 32px; height: 32px; }
.sx-ic-tx { display: grid; gap: 4px; line-height: 1.5; }
.sx-ic-tx strong { font-size: 1.05rem; }
.sx-ic-tx span { opacity: .85; }
/* Numero grande */
.sx-number { display: grid; gap: 6px; }
.sx-el .sx-num { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--sx-ac, var(--sea-900)); }
.sx-number.sx-s-s .sx-num { font-size: 1.6rem; }
.sx-number.sx-s-l .sx-num { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.sx-number.sx-s-xl .sx-num { font-size: clamp(3.2rem, 9vw, 6rem); }
.sx-num-sub { opacity: .85; line-height: 1.45; }
/* Barra di confronto */
.sx-bar { display: grid; gap: 4px; }
.sx-bar-label { font-weight: 700; }
.sx-bar-sub { font-size: .92rem; opacity: .85; }
.sx-bar-track { display: block; height: 12px; border-radius: 99px; background: rgba(20, 36, 48, .09); overflow: hidden; margin-top: 6px; }
.sx-bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--sx-ac, var(--bouganville)); }
/* Etichetta */
.sx-el.sx-badge span { display: inline-flex; align-items: center; gap: 6px; padding: .35em .85em; border-radius: var(--sx-r, 99px); background: var(--sx-ac, var(--bouganville-100)); color: var(--sx-on, var(--bouganville-700)); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.sx-badge[style*="color:"] span { color: inherit; }
.sx-badge .icon { width: 14px; height: 14px; }
.sx-badge.sx-s-l span { font-size: .95rem; }
/* Spazio e linea */
.sx-spacer { height: var(--sx-h, 24px); margin: 0; }
.sx-divider { border: 0; height: var(--sx-h, 1px); background: var(--sx-ac, var(--line)); }

/* ---- Video caricato (blocco Video) */
.b-video-file video { display: block; width: 100%; height: auto; background: var(--sea-950); }
.b-video-file { overflow: hidden; }
.b-video-file.is-portrait { max-width: 420px; margin-inline: auto; }

/* ---- Pulsante fisso sul telefono */
.b-sticky-cta { display: none; }
@media (max-width: 759.98px) {
    .b-sticky-cta { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
    .b-sticky-cta .btn { width: 100%; justify-content: center; }
    .blocks:has(.b-sticky-cta) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
