/* Soluzione Brufoli — stesso mondo visivo della home e di Zero Rughe. Solo body.meri-sb.
   Apertura, video "Risultati Natinuel", testi, offerte e ordine delle sezioni invariati. */

.meri-sb{
  --sb-ink:#2c2c2c;
  --sb-soft:#4a433b;
  --sb-gold:#c5a059;
  --sb-gold-ink:#7a5a22;
  --sb-line:rgba(197,160,89,.55);
  --sb-cream:#f8f3ec;
  --sb-cream-deep:#f1e7da;
  --sb-rose:#f2e5e4;
  --sb-display:cormorantgaramond-light,cormorantgaramond,"Cormorant Garamond",Georgia,serif;
  --sb-text:montserrat,"Montserrat",Arial,sans-serif;
}
.meri-sb ::selection{background:rgba(197,160,89,.32);color:var(--sb-ink)}
.meri-sb [id^="pageBackground_"]{display:none!important}
.meri-sb,.meri-sb #SITE_CONTAINER{background:#fff}

/* ---------- Fondi delle sezioni ---------- */
.meri-sb #SITE_PAGES [data-testid="colorUnderlay"]{background-color:transparent!important}
.meri-sb #bgLayers_comp-lo6yszrs>[data-testid="colorUnderlay"]{background:linear-gradient(118deg,#fbf8f3 0%,#f6eee3 58%,#efe2cf 100%)!important}
.meri-sb :is(#bgLayers_comp-mj067c66,#bgLayers_comp-ml6ug25y,#bgLayers_comp-ln4mckgo,#bgLayers_comp-ml6vgwbf)>[data-testid="colorUnderlay"]{background-color:var(--sb-cream)!important}
.meri-sb #bgLayers_comp-lo6zay05>[data-testid="colorUnderlay"]{background-color:var(--sb-cream-deep)!important}
.meri-sb #bgLayers_comp-mj072z91>[data-testid="colorUnderlay"]{background-color:var(--sb-gold)!important}
.meri-sb #bgLayers_comp-mj07ycr9>[data-testid="colorUnderlay"]{background-color:var(--sb-rose)!important}
/* modulo: niente fondo arcobaleno, solo crema */
.meri-sb #comp-ln4mckgo [id^="bgMedia_"]{display:none!important}
.meri-sb #comp-ln4mckgo [data-testid="colorUnderlay"]{background:transparent!important}
/* fascia scura prima del piè di pagina: chiara come il resto */
.meri-sb #bgLayers_comp-lo83pzxf>[data-testid="colorUnderlay"]{background-color:#fff!important}

/* ---------- Tipografia ---------- */
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,h3,h4,h5,h6,li,span){font-family:var(--sb-text)!important;letter-spacing:0!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,li):is(.font_7,.font_8,.font_9,.font_10),
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,li) span:is([style*="font-size:12px"],[style*="font-size:14px"],[style*="font-size:15px"],[style*="font-size:16px"]){
  font-size:17px!important;line-height:1.7!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,h3,li)[style*="line-height"]{line-height:1.7!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,li){color:var(--sb-ink);text-wrap:pretty}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,h1,h2,h3,h4,h5,li)[style*="text-align:justify"],
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,h1,h2,h3,h4,h5,li)[style*="text-align: justify"]{text-align:left!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(p,h3,li) :is(span[style*="font-weight:bold"],strong,b){font-weight:600!important}

/* Titoli: la voce della home */
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(h1,h2){font-family:var(--sb-display)!important;font-weight:300!important;
  line-height:1.15!important;letter-spacing:0!important;color:var(--sb-ink);text-wrap:balance}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(h1,h2) span{font-family:inherit!important;font-weight:inherit!important;
  font-size:inherit!important;line-height:inherit!important;letter-spacing:inherit!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) h1{font-size:clamp(34px,3.3vw,48px)!important}
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) h2{font-size:clamp(28px,2.6vw,40px)!important}
/* sottotitoli dell'apertura (h2 e h3 lunghi) */
.meri-sb #SITE_PAGES #comp-ln4nb4rg1 h2{font-size:clamp(22px,1.9vw,28px)!important;line-height:1.35!important}
.meri-sb #SITE_PAGES #comp-mj086lp3 h3{font-size:18px!important;line-height:1.6!important;color:var(--sb-soft)}
/* riga sopra il titolo: oro e piccola, non rossa */
.meri-sb #SITE_PAGES #comp-ln4nb4rg :is(h5,span){font-size:15px!important;line-height:1.5!important;letter-spacing:.06em!important;font-weight:600!important;color:var(--sb-gold-ink)!important}
/* nome nella testimonianza */
.meri-sb #SITE_PAGES #comp-lo70sbqq h2{font-size:30px!important}
/* titolo del modulo e titolo della galleria */
.meri-sb #SITE_PAGES #comp-ln4mckhx2 h2{font-size:30px!important}

/* Link nel testo */
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) a{color:var(--sb-gold-ink)!important;text-decoration:underline;
  text-decoration-color:var(--sb-line);text-underline-offset:4px;text-decoration-thickness:1px}

/* Fascia oro: testo in inchiostro (l'oro sul oro non si legge) */
.meri-sb #SITE_PAGES #comp-mj072z91 [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(a,span,p,h2){color:var(--sb-ink)!important}

/* Avvertenza e link legali: piccoli ma leggibili */
.meri-sb #SITE_PAGES :is(#comp-lnh37nql,#comp-lo83qg8r) :is(p,span){font-size:14px!important;line-height:1.6!important;color:var(--sb-soft)!important}

/* ---------- Pulsanti: etichetta centrata, Montserrat ---------- */
.meri-sb #SITE_PAGES a.wixui-button{display:flex!important;align-items:center!important;justify-content:center!important}
.meri-sb #SITE_PAGES a.wixui-button span{font-family:var(--sb-text)!important;letter-spacing:.06em!important}
.meri-sb #SITE_PAGES a.wixui-button,.meri-sb #SITE_PAGES button.wixui-button{transition:background-color .16s ease,box-shadow .16s ease,transform .12s ease!important}
.meri-sb #SITE_PAGES a.wixui-button:hover{box-shadow:inset 0 0 0 1px var(--sb-gold-ink),0 3px 0 rgba(122,90,34,.12)}
.meri-sb #SITE_PAGES a.wixui-button:active{transform:translateY(1px)}

/* caselle del consenso: interlinea leggibile (il testo resta quello approvato) */
.meri-sb .wixui-checkbox__label,.meri-sb .wixui-checkbox__label span{line-height:1.45!important}

/* ---------- Altezze: niente vuoti fissi del vecchio layout ---------- */
.meri-sb #SITE_PAGES [data-mesh-id$="inlineContent-gridContainer"]:not(#comp-lo6zay05 *){min-height:0!important}

@media (prefers-reduced-motion:reduce){
  .meri-sb #SITE_PAGES a.wixui-button{transition:none!important}
}

/* ---------- Elenchi: niente giustificato ereditato ---------- */
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(ul,ol),
.meri-sb #SITE_PAGES [data-testid="richTextElement"]:not(#comp-lo6zay05 *) :is(ul,ol) :is(li,p){text-align:left!important}

/* ---------- Prima e dopo: niente bande grigie, foto intere al centro ---------- */
.meri-sb #comp-ln2ywzo9 .gallery-item-content{background:transparent!important;display:flex!important;justify-content:center!important}
.meri-sb #comp-ln2ywzo9 .gallery-item-content img{display:block!important;position:relative!important;left:auto!important;margin:0 auto!important}

/* ---------- Apertura: filo oro sfalsato attorno al video, come il ritratto della home ---------- */
.meri-sb #comp-mmtc594y{overflow:visible!important;isolation:isolate}
.meri-sb #comp-mmtc594y::after{content:"";position:absolute;inset:14px -14px -14px 14px;border:1px solid var(--sb-gold);pointer-events:none;z-index:-1}
