/* ==========================================================================
   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; }
