/**
 * SAN CMS - Foglio di stile del motore
 * Struttura e aspetto di partenza delle classi che il motore produce (sezioni, righe,
 * colonne, blocchi). Arriva con il motore e si aggiorna con lui: NON si modifica nei siti.
 * Il sito lo corregge dal suo sito/stile.css, che viene caricato dopo e quindi vince:
 * di solito basta ridare un valore alle variabili di :root.
 */
html, body { margin: 0; padding: 0; }
:root {
  /* base */
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #86868b;
  --text: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  /* pastelli: quadratini numerati dei passi */
  --p-orange: #ffe8cc; --p-orange-ink: #b27200;
  --p-red: #ffd6cc;    --p-red-ink: #cc3300;
  --p-green: #dceddc;  --p-green-ink: #3c6e3b;
  --p-cyan: #e0f7ff;   --p-cyan-ink: #0099cc;
  --aqua: #87f6f9;
  /* colore del marchio e delle scritte del menu: li sceglie il pannello */
  --brand: #f78020;
  --logo: #231f20;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5; letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  /* la pagina e' alta almeno quanto la finestra: su una pagina corta il footer scende in fondo */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
/* il footer: il file del sito (footer) oppure quello a blocchi fatto nel pannello (.foot) */
body > footer, body > .foot { margin-top: auto; }
.foot { background: var(--foot-bg, transparent); }
/* blocco «Menu del sito»: le voci in riga anche dove il foglio del sito non ha uno stile per .nav
   (regole deboli apposta: se il sito ne ha di sue, vincono quelle) */
:where(.cl) > .nav { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
:where(.cl) > .nav a { display: block; padding: 6px 12px; }
/* footer sempre a vista (scheda Footer): resta sul bordo basso della finestra mentre si scorre */
body.foot-stay > footer, body.foot-stay > .foot {
  position: sticky; bottom: 0; z-index: 15;
  background: var(--foot-bg, var(--bg, #fff));
}
/* lo stesso, ma solo sul computer: sotto i 900 px il footer scorre con la pagina */
@media (min-width: 901px) {
  body.foot-stay-d > footer, body.foot-stay-d > .foot {
    position: sticky; bottom: 0; z-index: 15;
    background: var(--foot-bg, var(--bg, #fff));
  }
}
*, *::before, *::after { box-sizing: border-box; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--max-w, 1200px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
section { scroll-margin-top: 80px; }
.pad { padding-block: clamp(32px, 4.5vw, 60px); }

/* sezioni, righe, colonne: la pagina è fatta di blocchi disposti su 12 colonne */
.sec.on-dark { color: #fff; }
.sec.bg-pic { background-repeat: no-repeat; background-position: center center; background-size: cover; }
.sec.bg-fixed { background-attachment: fixed; }
.sec.tall { display: grid; align-content: center; }
.sec.tall > .wrap { width: 100%; }
.wrap.full { max-width: none; }
.rw { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap, 24px); }
.rw + .rw { margin-top: 24px; }
.cl { grid-column: var(--st) / span var(--s); align-self: var(--va, stretch); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cl > .pastel:only-child, .cl > .step:only-child { flex: 1; }
/* parole con un colore di fondo (formato del testo): il fondo segue il testo, riga per riga.
   Stesse misure dell'evidenziatore del sito CTH (.highlight-yellow): 2px sopra e sotto, 6px ai lati */
.hl { padding: 2px 6px; }
/* blocco con una larghezza o degli spazi suoi (riquadro «Posizione e spazi»): mai piu' largo della colonna */
.pos { max-width: 100%; }
/* ombra scelta dal pannello per riquadri, colonne e sezioni (le stesse tre gia' usate da pulsanti e immagini) */
.shd-s { box-shadow: 0 4px 15px rgba(0, 0, 0, .05); }
.shd-m { box-shadow: 0 8px 25px rgba(0, 0, 0, .12); }
.shd-l { box-shadow: 0 12px 40px rgba(0, 0, 0, .16); }

/* aspetto scelto dal pannello (riquadro «Aspetto»): fondo, spazio, cornice e angoli stanno scritti
   sull'elemento; qui l'inclinazione (--xrot) e il nastro adesivo, uno al centro (.tp-c) o uno per angolo (.tp-k).
   Misure del nastro: quelle del sito Teatro CTH, dove e' nato. Colore: --tape */
.bx.xr { transform: rotate(var(--xrot)); }
.bx.tp-c, .bx.tp-k { position: relative; }
.bx.tp-c::before, .bx.tp-k::before, .bx.tp-k::after {
  content: ""; position: absolute; z-index: 20; box-sizing: content-box;
  background-color: var(--tape, rgba(230, 220, 180, .5));
  border-left: 2px dashed rgba(0, 0, 0, .08); border-right: 2px dashed rgba(0, 0, 0, .08);
}
.bx.tp-c::before { width: 84px; height: 25px; top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 2px 5px rgba(0, 0, 0, .05); border-left-color: rgba(0, 0, 0, .1); border-right-color: rgba(0, 0, 0, .1); }
.bx.tp-k::before, .bx.tp-k::after { width: 63px; height: 21px; top: -7px; }
.bx.tp-k::before { left: -14px; transform: rotate(-35deg); }
.bx.tp-k::after { right: -14px; transform: rotate(35deg); }

/* aggancio con un'immagine a scelta (--pin), larga --pin-w, che sporge sopra di --pin-y:
   al centro, su un angolo (.pn-left, .pn-right) o su tutti e due (.pn-both) */
.bx.pn { position: relative; }
.bx.pn::before, .bx.pn-both::after {
  content: ""; position: absolute; z-index: 20; pointer-events: none;
  width: var(--pin-w); height: var(--pin-w); top: calc(var(--pin-y) * -1);
  left: 50%; transform: translateX(-50%);
  background: var(--pin) center / contain no-repeat;
}
.bx.pn-left::before, .bx.pn-both::before { left: calc(var(--pin-w) / -3); transform: none; }
.bx.pn-right::before, .bx.pn-both::after { left: auto; right: calc(var(--pin-w) / -3); transform: none; }

/* l'ombra di una sezione deve cadere sopra quella che segue */
.sec.shd-s, .sec.shd-m, .sec.shd-l { position: relative; z-index: 1; }
/* Animazioni di entrata dei testi (js/motore.js): il testo aspetta nascosto finche' non tocca a lui */
.an-js [data-an]:not(.an-on) { opacity: 0; }
.an-w { display: inline-block; white-space: nowrap; }
.an-c { display: inline-block; transform-origin: center center; }
@keyframes an-slide { from { opacity: 0; transform: translateX(var(--an-x)); } to { opacity: 1; transform: translateX(0); } }
@keyframes an-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes an-wave { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: scale(1); } }
/* colonna «in riga»: i blocchi stanno uno accanto all'altro, larghi quanto il loro contenuto; se non ci stanno vanno a capo */
.cl.in-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: var(--ju, flex-start); }
.cl.in-row > * { flex: 0 1 auto; max-width: 100%; min-width: 0; }

/* testi */
.title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 100; letter-spacing: 0.02em; line-height: 1.1; text-wrap: balance; }
.t-sub { font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--muted); }
.title + .t-sub { margin-top: -14px; }
.t-small { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.kicker { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
.desc { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.on-dark .desc { color: inherit; }
.txt-n { line-height: 1.5; text-wrap: balance; }
.txt-s { font-size: .9rem; line-height: 1.5; }
/* puntati come il riferimento pib.eu: pallino pieno colorato, una voce per riga, righe ariose */
.feat { list-style: none; padding: 0; display: grid; gap: var(--lg, 16px); counter-reset: voce; }
.feat li { display: flex; gap: 16px; align-items: baseline; }
.feat li::before { content: ""; flex: none; width: var(--bs, 9px); height: var(--bs, 9px); border-radius: 50%; background: var(--bc, var(--brand)); }
/* il punto scelto dal pannello: quadrato, trattino, spunta, freccia, numeri, nessuno */
.feat.b-square li::before { border-radius: 0; }
.feat.b-dash li::before { height: max(2px, calc(var(--bs, 9px) / 4)); border-radius: 0; align-self: center; }
.feat.b-check li::before, .feat.b-arrow li::before, .feat.b-num li::before { width: auto; height: auto; border-radius: 0; background: none; color: var(--bc, var(--brand)); font-weight: 700; line-height: 1; }
.feat.b-check li::before { content: "\2713"; font-size: calc(var(--bs, 9px) * 1.8); }
.feat.b-arrow li::before { content: "\2192"; font-size: calc(var(--bs, 9px) * 1.8); }
.feat.b-num li::before { counter-increment: voce; content: counter(voce) "."; font-size: calc(var(--bs, 9px) * 1.8); min-width: 1.4em; }
.feat.b-none li::before { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 2.2rem;
  font-size: 1rem; font-weight: 600;
  background: var(--bb, var(--btn-bg, var(--ink))); color: var(--bf, var(--btn-fg, #fff));
  border-radius: var(--br, var(--btn-r, 0));
  box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, .12); }
/* cornice e colori dei due stati scelti dal pannello (classi k-* messe da render.php solo dove c'e' un valore):
   vincono sulle regole del foglio del sito, che viene dopo. Premuto senza valore = come al passaggio */
.btn.k-bw { border: var(--bw) solid var(--bd, currentColor) !important; }
.btn.k-bd { border-color: var(--bd) !important; }
.btn.k-bbh:hover { background: var(--bbh) !important; opacity: 1; }
.btn.k-bfh:hover { color: var(--bfh) !important; opacity: 1; }
.btn.k-bdh:hover { border-color: var(--bdh) !important; }
.btn.k-bba:active { background: var(--bba) !important; }
.btn.k-bfa:active { color: var(--bfa) !important; }
.btn.k-bda:active { border-color: var(--bda) !important; }
.btn.light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn.grey { --btn-bg: var(--bg2); --btn-fg: var(--ink); }
.btn.s { padding: .5rem 1.4rem; font-size: .875rem; }
.btn.l { padding: 1.1rem 3rem; font-size: 1.15rem; }
.btn-row.wide .btn { display: flex; width: 100%; }

/* immagini e video */
.pic { width: 100%; object-fit: cover; }
.pic.sh { box-shadow: 0 12px 40px rgba(0, 0, 0, .16); }
.pic-box { display: grid; place-items: center; }
.pic-box .pic { width: auto; max-width: 100%; object-fit: contain; }
/* contenuto incorporato (un progetto di SAN Snippets, un video di YouTube...) e codice libero */
.embed { width: 100%; overflow: hidden; background: #000; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.raw { min-width: 0; max-width: 100%; }
/* icona, linea divisoria, galleria */
.ico { line-height: 0; }
.ico svg, .ico img { display: inline-block; width: var(--is, 48px); height: var(--is, 48px); }
.ico svg { fill: none; stroke: currentColor; stroke-width: var(--iw, 1.5); stroke-linecap: round; stroke-linejoin: round; }
.ico img { object-fit: contain; }
.rule { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 0; }
.gal { display: grid; grid-template-columns: repeat(var(--gc, 3), minmax(0, 1fr)); gap: var(--gg, 12px); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal a { display: block; cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vmin; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
/* accordion: titoli sempre visibili, il testo si apre al clic */
.acc { border-top: 1px solid var(--al, var(--line)); }
.acc details { border-bottom: 1px solid var(--al, var(--line)); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 1.15rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 5px 4px 0; border-right: 2px solid var(--ac, currentColor); border-bottom: 2px solid var(--ac, currentColor); transform: rotate(45deg); transition: transform .2s; }
.acc details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.acc.s-plus summary::after { content: "+"; width: auto; height: auto; margin: 0; border: 0; transform: none; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--ac, currentColor); }
.acc.s-plus details[open] > summary::after { content: "\2212"; transform: none; margin: 0; }
.acc.s-none summary::after { display: none; }
.acc-b { padding-bottom: 20px; color: var(--text); line-height: 1.6; }
.on-dark .acc-b { color: inherit; }
/* modulo di contatto */
.cform { display: grid; gap: 16px; }
.cf { display: grid; gap: 6px; font-size: var(--fs, .95rem); }
.cf input, .cf textarea { width: 100%; padding: .7rem .9rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(0, 0, 0, .22); border-radius: var(--fr, 0); }
.cf textarea { min-height: 140px; resize: vertical; }
.cf.chk { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.cf.chk input { width: auto; margin: .3em 0 0; }
.cf.chk a { text-decoration: underline; }
.cf.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform button.btn, .pform button.btn { border: 0; cursor: pointer; font-family: inherit; }
.cform button.btn:disabled { opacity: .5; cursor: default; }
.cf-msg { font-weight: 600; font-size: var(--fs, inherit); }
.cf-msg:empty { display: none; }
/* pagina con la password */
.pform { display: grid; gap: 16px; max-width: 420px; }
.vid video { width: 100%; object-fit: cover; }
.vid.ctl { background: #000; }
.vid.auto { margin-bottom: -1px; } /* -1px: l'altezza del video non è un numero intero di pixel, senza resta un filo sotto */

/* testi e immagini a rotazione */
.rot { text-align: center; }
.rot .slides { position: relative; }
.rot .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.rot .slide.on { opacity: 1; visibility: visible; }
.rot.texts .slide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.rot.texts h1, .rot.texts h2 {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 4.5rem); line-height: 1; letter-spacing: 0;
  max-width: 100%; text-wrap: balance;
}
.rot.texts p { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 100%; white-space: nowrap; }
.rot.shots img.slide { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d1d1d6; cursor: pointer; }
.dots button.on { background: var(--ink); }
.on-dark .dots button.on { background: #fff; }

/* riquadro colorato: il colore arriva dal blocco (--c), il testo si adatta (--ct) */
.pastel { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--c, var(--brand)); color: var(--ct, var(--ink)); }
.pastel .h { font-size: 1.5rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.pastel p:not(.h) { color: inherit; line-height: 1.35; }

/* passo numerato */
.step { display: grid; gap: 14px; align-content: start; padding: 28px; background: #fff; color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .03); }
.step b { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.step.c1 b { background: var(--p-green); color: var(--p-green-ink); }
.step.c2 b { background: var(--p-red); color: var(--p-red-ink); }
.step.c3 b { background: var(--p-orange); color: var(--p-orange-ink); }
.step.c4 b { background: var(--p-cyan); color: var(--p-cyan-ink); }
.step .h { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.step p:not(.h) { color: var(--text); font-size: .95rem; line-height: 1.35; }

/* fotogramma con didascalia */
.frame { display: grid; gap: 6px; align-content: start; }
.frame img { width: 100%; margin-bottom: 10px; }
.frame h5 { font-size: .8rem; font-weight: 400; letter-spacing: .08em; color: var(--aqua); }
.frame h4 { font-size: 1.05rem; font-weight: 300; letter-spacing: 0.01em; line-height: 1.35; }

/* schede con video: griglia che si riempie da sola, il video si apre al clic in un riquadro scuro */
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--vm, 330px), 100%), 1fr)); gap: var(--vg, 35px); }
.vcard { overflow: hidden; background: #fff; color: var(--ink); border-radius: var(--vr, 0); box-shadow: 0 4px 20px rgba(0, 0, 0, .05); transition: box-shadow .4s; }
.vcard[data-video] { cursor: pointer; }
.vcard[data-video]:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
.vc-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2); }
.vc-pic img { width: 100%; height: 100%; object-fit: cover; }
.vc-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .4s; }
.vc-play svg { width: 20px; height: 20px; margin-left: 2px; fill: var(--ink); }
.vcard:hover .vc-play { transform: scale(1.12); background: #fff; }
.vc-info { padding: 24px; }
.vc-info h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.vc-tags span { padding: 4px 10px; background: var(--bg2); border-radius: 6px; }
.vbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8, 11, 17, .93); }
.vbox-in { width: 90%; max-width: 1020px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vbox-in video, .vbox-in iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.vbox-x { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.vbox-x svg { width: 18px; height: 18px; fill: currentColor; }

/* categorie e schede: una linguetta per categoria, sotto i loghi della categoria scelta */
.tabs { display: flex; flex-direction: column; }
.tab-bar { align-self: center; display: flex; max-width: 100%; gap: 8px; padding: 6px; margin-bottom: 40px; background: rgba(0, 0, 0, .03); border: 1px solid var(--line); border-radius: 40px; }
.tab-btn { flex: none; padding: .6rem 2rem; border: 0; border-radius: 30px; background: transparent; font: inherit; font-size: .95rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--ink); background: #fff; box-shadow: 0 6px 15px rgba(0, 0, 0, .04); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.lgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 40px 32px; justify-items: center; }
.lg { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 130px; text-align: center; }
.lg-pic { display: grid; place-items: center; width: var(--ls, 82px); height: var(--ls, 82px); padding: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--lr, 20px); box-shadow: 0 10px 24px rgba(0, 0, 0, .05); transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
.lg-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
a.lg:hover .lg-pic { transform: translateY(-6px) scale(1.04); box-shadow: 0 15px 35px rgba(0, 0, 0, .12); }
.lg-t { font-size: .95rem; font-weight: 600; line-height: 1.2; }
.lg-s { font-size: .7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* riquadro con etichette: il colore arriva dal blocco (--c), il testo si adatta (--ct) */
.tagbox { padding: 32px; background: var(--c, var(--p-orange)); color: var(--ct, var(--ink)); }
.tb-head { display: flex; align-items: center; gap: 15px; margin-bottom: 19px; }
.tb-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--ic, currentColor); }
.tb-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tagbox .h { font-size: 1.5rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 500; }
.tb-tags span { padding: 6px 14px; background: rgba(255, 255, 255, .75); border-radius: 8px; }

/* riquadro con immagine: immagine da un lato, titolo e testi dall'altro */
.picbox { display: flex; align-items: center; gap: 48px; padding: 48px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.picbox.rev { flex-direction: row-reverse; }
.pb-pic { flex: none; width: var(--pw, 440px); max-width: 50%; }
.pb-text { min-width: 0; }
.picbox .h { margin-bottom: 16px; font-size: 2.4rem; font-weight: 800; letter-spacing: 0; line-height: 1.15; }
.pb-text p { font-size: 1.1rem; line-height: 1.6; color: var(--text); }
.pb-text .pb-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.pb-text .pb-note:empty { display: none; }

/* altezza scelta a mano nel pannello: vale dove le colonne stanno affiancate, sotto decide il contenuto */
@media (min-width: 901px) {
  .hmin { min-height: var(--h); }
  .rw.free > .cl { align-self: var(--va, start); }
  .hfix { height: var(--h); }
  .shift { position: relative; left: var(--dx, 0); top: var(--dy, 0); }
}
/* valori propri del telefono, dati nel pannello in vista Telefono: spazi di blocchi e sezioni, spostamento */
@media (max-width: 900px) {
  .m-mt { margin-top: var(--m-mt) !important; }
  .m-mb { margin-bottom: var(--m-mb) !important; }
  .m-pt { padding-top: var(--m-pt) !important; }
  .m-pb { padding-bottom: var(--m-pb) !important; }
  .m-shift { position: relative; left: var(--m-dx, 0); top: var(--m-dy, 0); }
}
/* nascosto dal pannello solo sugli schermi larghi o solo su quelli stretti */
@media (min-width: 901px) { .hide-d { display: none !important; } }
@media (max-width: 900px) { .hide-m { display: none !important; } }
/* titoli su una riga sola (il corpo lo riduce lo script dove serve); sul telefono vanno a capo */
@media (min-width: 601px) {
  .one-line { white-space: nowrap; }
}
/* schermi stretti: le colonne vanno una sotto l'altra, quelle strette restano a due per riga */
@media (max-width: 900px) {
  .cl { grid-column: auto / span 12; align-self: stretch; }
  .cl.q { grid-column: auto / span 6; }
  .sec.bg-fixed { background-attachment: scroll; }
}
@media (max-width: 900px) {
  .picbox, .picbox.rev { flex-direction: column; text-align: center; }
  .pb-pic { width: 100%; max-width: 100%; }
  /* le linguette che non stanno in larghezza si scorrono col dito */
  .tab-bar { align-self: stretch; overflow-x: auto; scrollbar-width: none; border-radius: 20px; }
  .tab-bar::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .lg { width: 100%; max-width: 140px; }
}
@media (max-width: 480px) {
  .cl.q { grid-column: auto / span 12; }
  .cl.q.keep2 { grid-column: auto / span 6; }
  .rw { column-gap: min(14px, var(--col-gap, 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rot .slide, .btn, .vcard, .vc-play, .lg-pic { transition: none; }
  .sec.bg-fixed { background-attachment: scroll; }
}
