/* Il Tempio Bio Wellness — il pavimento a mosaico delle terme di Ercolano.
   Modulo: la tessera (8px). Basalto, marmo, oro vetroso, rosso pompeiano. */

@font-face { font-family: "Marcellus"; src: url("../fonts/Marcellus-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("../fonts/RedHatMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --t: 8px;                 /* una tessera */
  --basalto: #151311;
  --basalto-2: #1f1c19;
  --basalto-3: #2b2723;
  --marmo: #eceae5;
  --marmo-2: #dcd8d0;
  --marmo-ink: #1a1816;
  --marmo-muto: #4d4741;
  --oro: #c8a048;
  --oro-chiaro: #e3c47e;
  --oro-scuro: #8a6a24;
  --pompei: #9b2a22;
  --pompei-chiaro: #c4483d;
  --salvia: #5f6b4b;
  --fumo: #b9b2a7;          /* testo secondario su basalto */
  --display: "Marcellus", "Times New Roman", serif;
  --testo: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --larghezza: 1320px;
  --pavimento-scuro: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><rect width='128' height='128' fill='%230e0c0b'/><rect x='1' y='1' width='14' height='14' fill='%23131110'/><rect x='17' y='1' width='14' height='14' fill='%23171412'/><rect x='33' y='1' width='14' height='14' fill='%23191613'/><rect x='49' y='1' width='14' height='14' fill='%23151311'/><rect x='65' y='1' width='14' height='14' fill='%23151311'/><rect x='81' y='1' width='14' height='14' fill='%23141210'/><rect x='97' y='1' width='14' height='14' fill='%23151311'/><rect x='113' y='1' width='14' height='14' fill='%23131110'/><rect x='-7' y='17' width='14' height='14' fill='%23141210'/><rect x='9' y='17' width='14' height='14' fill='%23151311'/><rect x='25' y='17' width='14' height='14' fill='%23141210'/><rect x='41' y='17' width='14' height='14' fill='%23171412'/><rect x='57' y='17' width='14' height='14' fill='%23151311'/><rect x='73' y='17' width='14' height='14' fill='%23151311'/><rect x='89' y='17' width='14' height='14' fill='%23191613'/><rect x='105' y='17' width='14' height='14' fill='%23191613'/><rect x='121' y='17' width='14' height='14' fill='%23151311'/><rect x='1' y='33' width='14' height='14' fill='%23171412'/><rect x='17' y='33' width='14' height='14' fill='%23151311'/><rect x='33' y='33' width='14' height='14' fill='%23141210'/><rect x='49' y='33' width='14' height='14' fill='%23191613'/><rect x='65' y='33' width='14' height='14' fill='%23151311'/><rect x='81' y='33' width='14' height='14' fill='%23141210'/><rect x='97' y='33' width='14' height='14' fill='%23151311'/><rect x='113' y='33' width='14' height='14' fill='%23171412'/><rect x='-7' y='49' width='14' height='14' fill='%23141210'/><rect x='9' y='49' width='14' height='14' fill='%23151311'/><rect x='25' y='49' width='14' height='14' fill='%23141210'/><rect x='41' y='49' width='14' height='14' fill='%23141210'/><rect x='57' y='49' width='14' height='14' fill='%23191613'/><rect x='73' y='49' width='14' height='14' fill='%23151311'/><rect x='89' y='49' width='14' height='14' fill='%23171412'/><rect x='105' y='49' width='14' height='14' fill='%23151311'/><rect x='121' y='49' width='14' height='14' fill='%23141210'/><rect x='1' y='65' width='14' height='14' fill='%23171412'/><rect x='17' y='65' width='14' height='14' fill='%23131110'/><rect x='33' y='65' width='14' height='14' fill='%23191613'/><rect x='49' y='65' width='14' height='14' fill='%23171412'/><rect x='65' y='65' width='14' height='14' fill='%23141210'/><rect x='81' y='65' width='14' height='14' fill='%23151311'/><rect x='97' y='65' width='14' height='14' fill='%23141210'/><rect x='113' y='65' width='14' height='14' fill='%23131110'/><rect x='-7' y='81' width='14' height='14' fill='%23141210'/><rect x='9' y='81' width='14' height='14' fill='%23171412'/><rect x='25' y='81' width='14' height='14' fill='%23151311'/><rect x='41' y='81' width='14' height='14' fill='%23141210'/><rect x='57' y='81' width='14' height='14' fill='%23141210'/><rect x='73' y='81' width='14' height='14' fill='%23171412'/><rect x='89' y='81' width='14' height='14' fill='%23131110'/><rect x='105' y='81' width='14' height='14' fill='%23151311'/><rect x='121' y='81' width='14' height='14' fill='%23141210'/><rect x='1' y='97' width='14' height='14' fill='%23151311'/><rect x='17' y='97' width='14' height='14' fill='%23141210'/><rect x='33' y='97' width='14' height='14' fill='%23151311'/><rect x='49' y='97' width='14' height='14' fill='%23141210'/><rect x='65' y='97' width='14' height='14' fill='%23171412'/><rect x='81' y='97' width='14' height='14' fill='%23191613'/><rect x='97' y='97' width='14' height='14' fill='%23141210'/><rect x='113' y='97' width='14' height='14' fill='%23191613'/><rect x='-7' y='113' width='14' height='14' fill='%23131110'/><rect x='9' y='113' width='14' height='14' fill='%23191613'/><rect x='25' y='113' width='14' height='14' fill='%23141210'/><rect x='41' y='113' width='14' height='14' fill='%23191613'/><rect x='57' y='113' width='14' height='14' fill='%23131110'/><rect x='73' y='113' width='14' height='14' fill='%23131110'/><rect x='89' y='113' width='14' height='14' fill='%23171412'/><rect x='105' y='113' width='14' height='14' fill='%23171412'/><rect x='121' y='113' width='14' height='14' fill='%23171412'/></svg>");
  --pavimento-chiaro: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><rect width='128' height='128' fill='%23dfdbd3'/><rect x='1' y='1' width='14' height='14' fill='%23eceae5'/><rect x='17' y='1' width='14' height='14' fill='%23edebe6'/><rect x='33' y='1' width='14' height='14' fill='%23efede9'/><rect x='49' y='1' width='14' height='14' fill='%23edebe6'/><rect x='65' y='1' width='14' height='14' fill='%23e7e4de'/><rect x='81' y='1' width='14' height='14' fill='%23efede9'/><rect x='97' y='1' width='14' height='14' fill='%23e7e4de'/><rect x='113' y='1' width='14' height='14' fill='%23efede9'/><rect x='-7' y='17' width='14' height='14' fill='%23edebe6'/><rect x='9' y='17' width='14' height='14' fill='%23eceae5'/><rect x='25' y='17' width='14' height='14' fill='%23eceae5'/><rect x='41' y='17' width='14' height='14' fill='%23edebe6'/><rect x='57' y='17' width='14' height='14' fill='%23e7e4de'/><rect x='73' y='17' width='14' height='14' fill='%23e9e6e0'/><rect x='89' y='17' width='14' height='14' fill='%23efede9'/><rect x='105' y='17' width='14' height='14' fill='%23e9e6e0'/><rect x='121' y='17' width='14' height='14' fill='%23e7e4de'/><rect x='1' y='33' width='14' height='14' fill='%23e7e4de'/><rect x='17' y='33' width='14' height='14' fill='%23eceae5'/><rect x='33' y='33' width='14' height='14' fill='%23eceae5'/><rect x='49' y='33' width='14' height='14' fill='%23edebe6'/><rect x='65' y='33' width='14' height='14' fill='%23edebe6'/><rect x='81' y='33' width='14' height='14' fill='%23efede9'/><rect x='97' y='33' width='14' height='14' fill='%23efede9'/><rect x='113' y='33' width='14' height='14' fill='%23efede9'/><rect x='-7' y='49' width='14' height='14' fill='%23edebe6'/><rect x='9' y='49' width='14' height='14' fill='%23e7e4de'/><rect x='25' y='49' width='14' height='14' fill='%23edebe6'/><rect x='41' y='49' width='14' height='14' fill='%23e7e4de'/><rect x='57' y='49' width='14' height='14' fill='%23eceae5'/><rect x='73' y='49' width='14' height='14' fill='%23eceae5'/><rect x='89' y='49' width='14' height='14' fill='%23efede9'/><rect x='105' y='49' width='14' height='14' fill='%23e7e4de'/><rect x='121' y='49' width='14' height='14' fill='%23eceae5'/><rect x='1' y='65' width='14' height='14' fill='%23eceae5'/><rect x='17' y='65' width='14' height='14' fill='%23efede9'/><rect x='33' y='65' width='14' height='14' fill='%23edebe6'/><rect x='49' y='65' width='14' height='14' fill='%23e7e4de'/><rect x='65' y='65' width='14' height='14' fill='%23efede9'/><rect x='81' y='65' width='14' height='14' fill='%23e7e4de'/><rect x='97' y='65' width='14' height='14' fill='%23efede9'/><rect x='113' y='65' width='14' height='14' fill='%23eceae5'/><rect x='-7' y='81' width='14' height='14' fill='%23e7e4de'/><rect x='9' y='81' width='14' height='14' fill='%23efede9'/><rect x='25' y='81' width='14' height='14' fill='%23e9e6e0'/><rect x='41' y='81' width='14' height='14' fill='%23edebe6'/><rect x='57' y='81' width='14' height='14' fill='%23eceae5'/><rect x='73' y='81' width='14' height='14' fill='%23e7e4de'/><rect x='89' y='81' width='14' height='14' fill='%23eceae5'/><rect x='105' y='81' width='14' height='14' fill='%23e9e6e0'/><rect x='121' y='81' width='14' height='14' fill='%23efede9'/><rect x='1' y='97' width='14' height='14' fill='%23e9e6e0'/><rect x='17' y='97' width='14' height='14' fill='%23e9e6e0'/><rect x='33' y='97' width='14' height='14' fill='%23e7e4de'/><rect x='49' y='97' width='14' height='14' fill='%23e7e4de'/><rect x='65' y='97' width='14' height='14' fill='%23e7e4de'/><rect x='81' y='97' width='14' height='14' fill='%23eceae5'/><rect x='97' y='97' width='14' height='14' fill='%23e9e6e0'/><rect x='113' y='97' width='14' height='14' fill='%23e7e4de'/><rect x='-7' y='113' width='14' height='14' fill='%23e7e4de'/><rect x='9' y='113' width='14' height='14' fill='%23edebe6'/><rect x='25' y='113' width='14' height='14' fill='%23efede9'/><rect x='41' y='113' width='14' height='14' fill='%23e9e6e0'/><rect x='57' y='113' width='14' height='14' fill='%23e7e4de'/><rect x='73' y='113' width='14' height='14' fill='%23edebe6'/><rect x='89' y='113' width='14' height='14' fill='%23efede9'/><rect x='105' y='113' width='14' height='14' fill='%23e7e4de'/><rect x='121' y='113' width='14' height='14' fill='%23efede9'/></svg>");
  --fila: repeating-linear-gradient(90deg, var(--c-fila, var(--basalto-3)) 0 6px, transparent 6px 8px);
  --mono: "Red Hat Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--oro-scuro) var(--basalto); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--testo);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--marmo);
  background-color: var(--basalto);
  /* il pavimento: fughe tra tessere grandi di basalto */
  background-image: var(--pavimento-scuro);
  caret-color: var(--oro);
  font-variant-numeric: lining-nums;
}
::selection { background: var(--oro); color: var(--basalto); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--basalto); }
::-webkit-scrollbar-thumb { background: var(--oro-scuro); border: 3px solid var(--basalto); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1, h2 { text-transform: uppercase; letter-spacing: .05em; }
p { margin: 0; }

.salta { position: absolute; left: -999px; top: 8px; background: var(--oro); color: var(--basalto); padding: 8px 16px; z-index: 50; }
.salta:focus { left: 8px; }

/* ---------- testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 32px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(21, 19, 17, .94);
  background-image: repeating-linear-gradient(90deg, rgba(200,160,72,.55) 0 6px, transparent 6px 8px);
  background-size: 100% 4px; background-repeat: no-repeat; background-position: bottom;
}
@supports (backdrop-filter: blur(8px)) { .testata { background-color: rgba(21, 19, 17, .84); backdrop-filter: blur(10px) saturate(1.2); } }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marchio img { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--oro); }
.marchio-nome { font-family: var(--display); font-size: 1.35rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.marchio-nome small { display: block; font-family: var(--testo); font-size: .78rem; letter-spacing: .14em; color: var(--oro-chiaro); margin-top: 5px; }
.menu { display: flex; gap: 28px; }
.menu a { text-decoration: none; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fumo); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--marmo); border-color: var(--oro); }
.testata-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--basalto); background: var(--oro); padding: 10px 16px; border-radius: 2px; font-weight: 700; letter-spacing: .02em; transition: background .2s; }
.testata-tel:hover { background: var(--oro-chiaro); }
.testata-tel svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- prima schermata ---------- */
.ingresso {
  max-width: var(--larghezza); margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 4vw, 48px) clamp(32px, 4vw, 56px);
  display: grid; gap: clamp(20px, 2.5vw, 40px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "testo prenota" "pianta prenota";
  align-items: start;
}
.ingresso-testo { grid-area: testo; }
.ingresso h1 { font-size: clamp(1.8rem, 1.1rem + 2vw, 3rem); max-width: 22ch; }
.ingresso-sotto { margin-top: 16px; color: var(--fumo); max-width: 58ch; font-size: 1.12em; }

.pianta { grid-area: pianta; position: relative; padding: 0 12px; }
.pianta .stanze { left: 12px; right: 12px; }
.pianta canvas { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; image-rendering: auto; }
.pianta-nota { margin-top: 10px; font-size: .92rem; color: var(--fumo); letter-spacing: .04em; }
.stanze { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; aspect-ratio: 3 / 2; }
.stanze li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
/* la tabula ansata: targa romana con le due «orecchie» a coda di rondine */
.stanze a {
  position: relative; display: block; text-decoration: none;
  font-family: var(--display); font-size: clamp(.74rem, .5rem + .5vw, .98rem); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--oro-chiaro); background: var(--basalto);
  padding: 7px 14px 6px; border: 2px solid var(--oro);
  transition: background .25s, color .25s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.stanze a::before, .stanze a::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; transform: translateY(-50%);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.stanze a::before { right: 100%; border-right: 10px solid var(--oro); }
.stanze a::after { left: 100%; border-left: 10px solid var(--oro); }
.stanze i { font-style: normal; }
.stanze .corto { display: none; }
.stanze li { transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.in-posa .stanze li { opacity: 0; transform: translate(-50%, -30%); }
.stanze a:hover, .stanze a:focus-visible, .stanze a.accesa { background: var(--oro); color: var(--basalto); transform: translateY(-2px); }

/* ---------- modulo di prenotazione: una lastra di marmo ---------- */
.prenota {
  grid-area: prenota; position: sticky; top: 92px;
  background-color: var(--marmo); color: var(--marmo-ink);
  padding: clamp(20px, 2.4vw, 32px);
  border-top: var(--t) solid var(--oro);
}
.prenota-titolo { font-size: clamp(1.5rem, 1.15rem + .9vw, 2rem); }
.oggi { margin-top: 8px; font-weight: 700; color: var(--marmo-ink); min-height: 1.5em; display: flex; align-items: center; gap: 10px; }
.oggi::before { content: ""; width: 8px; height: 8px; background: var(--oro-scuro); transform: rotate(45deg); flex: none; }
.oggi:empty { display: none; }
.scelte { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scelte legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.scelte label { position: relative; cursor: pointer; }
.scelte input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scelte span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 2px solid var(--marmo-ink); border-radius: 2px;
  font-weight: 500; font-size: .98rem; line-height: 1.2; background: rgba(255,255,255,.55);
  transition: background .18s, color .18s;
}
.scelte span::before { content: ""; width: 8px; height: 8px; background: var(--marmo-ink); flex: none; transition: background .18s, transform .18s; }
.scelte label:hover span { background: #fff; }
.scelte input:checked + span { background: var(--basalto); color: var(--oro-chiaro); }
.scelte input:checked + span::before { background: var(--oro); transform: rotate(45deg); }
.scelte input:focus-visible + span { outline: 3px solid var(--oro-scuro); outline-offset: 2px; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.campo { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.campo-largo { grid-column: 1 / -1; }
.campo input, .campo select {
  font: inherit; font-weight: 500; font-size: 1.05rem; color: var(--marmo-ink);
  background: #fff; border: 2px solid var(--marmo-ink); border-radius: 2px; padding: 10px 12px; min-height: 48px; width: 100%;
  accent-color: var(--oro-scuro);
}
.campo input::placeholder { color: #6d665e; }
.campo input:focus-visible, .campo select:focus-visible { outline: 3px solid var(--oro-scuro); outline-offset: 1px; }
.campo input[aria-invalid="true"] { border-color: var(--pompei); background: #fbefed; }
.errore { margin-top: 12px; color: var(--pompei); font-weight: 700; }
.prenota .bottone-oro { width: 100%; margin-top: 18px; }
.prossimo { grid-area: prossimo; display: none; }
.prossimo:empty { display: none !important; }
.prossimo-corso { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 2rem; line-height: 1.05; color: var(--oro-chiaro); }
.prossimo-quando { font-weight: 700; font-size: 1.15rem; margin: 6px 0 14px; }
.prossimo .bottone-linea { width: 100%; }
.prenota-alt { margin-top: 12px; font-size: .98rem; color: var(--marmo-muto); text-align: center; }
.prenota-alt a { color: var(--marmo-ink); font-weight: 700; }

/* ---------- bottoni ---------- */
.bottone-oro, .bottone-linea {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 1.06rem; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  padding: 14px 24px; min-height: 52px; border-radius: 2px; border: 2px solid var(--oro);
  transition: background .2s, color .2s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.bottone-oro { background: var(--oro); color: var(--basalto); }
.bottone-oro:hover { background: var(--oro-chiaro); transform: translateY(-1px); }
.bottone-oro:active { transform: translateY(1px); }
.bottone-oro svg { width: 22px; height: 22px; fill: currentColor; }
.bottone-oro[aria-busy="true"] { opacity: .7; cursor: progress; }
.bottone-linea { background: transparent; color: var(--oro-chiaro); }
.bottone-linea:hover { background: var(--oro); color: var(--basalto); }

/* ---------- prove ---------- */
.prove {
  max-width: var(--larghezza); margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--fumo);
}
.prove p { font-size: 1.02rem; padding-top: 18px; background: var(--fila) top left / 100% 6px no-repeat; }
.prove strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--oro-chiaro); line-height: 1.1; margin-bottom: 4px; }

/* ---------- soglia: la fascia a meandro tra una stanza e l'altra ---------- */
.soglia {
  height: calc(var(--t) * 5);
  background-color: var(--basalto);
  background-image:
    repeating-linear-gradient(90deg, var(--basalto) 0 1px, transparent 1px var(--t)),
    repeating-linear-gradient(0deg, var(--basalto) 0 1px, transparent 1px var(--t)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40'%3E%3Cpath d='M0 36H64M4 36V4H52V20H20' fill='none' stroke='%23c8a048' stroke-width='8' stroke-linecap='square'/%3E%3C/svg%3E");
  background-size: auto, auto, 64px 40px;
}
.soglia-chiara {
  background-color: var(--marmo);
  background-image:
    repeating-linear-gradient(90deg, var(--marmo) 0 1px, transparent 1px var(--t)),
    repeating-linear-gradient(0deg, var(--marmo) 0 1px, transparent 1px var(--t)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40'%3E%3Cpath d='M0 36H64M4 36V4H52V20H20' fill='none' stroke='%23151311' stroke-width='8' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* ---------- sezioni ---------- */
section { scroll-margin-top: 80px; }
.terme, .rituali, .palestra, .corsi, .regalo, .dove { padding: clamp(64px, 8vw, 120px) clamp(16px, 4vw, 48px); }
.terme > *, .rituali > *, .palestra > *, .corsi > *, .dove > * { max-width: var(--larghezza); margin-left: auto; margin-right: auto; }
.sezione-testa { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sezione-testa h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 3rem); }
.sezione-testa p { max-width: 52ch; color: var(--fumo); font-size: 1.1em; }

/* marmo: terme e corsi */
.terme, .corsi, .dove {
  background-color: var(--marmo); color: var(--marmo-ink);
  background-image: var(--pavimento-chiaro);
  --c-fila: var(--marmo-2);
}
.terme .sezione-testa p, .corsi .sezione-testa p, .dove p { color: var(--marmo-muto); }
.terme .bottone-linea, .corsi .bottone-linea, .dove .bottone-linea { color: var(--marmo-ink); border-color: var(--marmo-ink); }
.terme .bottone-linea:hover, .corsi .bottone-linea:hover, .dove .bottone-linea:hover { background: var(--basalto); color: var(--oro-chiaro); }
.terme > .bottone-linea, .rituali > .bottone-linea, .corsi > .bottone-linea { display: flex; width: fit-content; margin-top: clamp(32px, 4vw, 56px); }

/* il percorso: stazioni in ordine obbligato */
.percorso { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: tappa; }
.tappa { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.tappa + .tappa { padding-left: clamp(14px, 2vw, 28px); }
.tappa-segno { display: block; margin-bottom: 22px; min-height: 40px; }
.tappa-segno canvas { display: block; }
.tappa h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); }
.tappa-clima { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .88rem; margin: 6px 0 12px; color: var(--marmo-muto); }
.tappa-calidarium .tappa-clima { color: var(--pompei); }
.tappa p:last-child { color: var(--marmo-muto); }
/* la freccia del passaggio, fatta di tessere */
.tappa + .tappa::before {
  content: ""; position: absolute; left: -9px; top: calc(var(--t) * 5); width: 16px; height: 16px;
  background: var(--marmo-ink); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--marmo);
}

/* rituali: iscrizioni incise */
.rituali .sezione-testa p { color: var(--fumo); }
.iscrizioni { list-style: none; padding: 0; margin: 0; }
.iscrizioni li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: baseline;
  padding: clamp(22px, 2.4vw, 32px) 0 clamp(18px, 2vw, 28px); background: var(--fila) top left / 100% 6px no-repeat;
}
.iscrizioni { padding-bottom: 6px !important; background: var(--fila) bottom left / 100% 6px no-repeat; }
.iscrizioni h3 { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 3rem); color: var(--oro-chiaro); text-transform: uppercase; letter-spacing: .04em; }
.iscrizioni p { color: var(--fumo); font-size: 1.12em; max-width: 50ch; }
.iscrizioni li:hover h3 { color: var(--oro); }

/* evento */
.evento { padding: clamp(56px, 7vw, 104px) clamp(40px, 6vw, 96px); }
.tabula { position: relative; border: var(--t) solid var(--oro); background: var(--basalto-2); }
.tabula::before, .tabula::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border-top: 44px solid transparent; border-bottom: 44px solid transparent;
}
.tabula::before { right: calc(100% + var(--t)); border-right: 36px solid var(--oro); }
.tabula::after { left: calc(100% + var(--t)); border-left: 36px solid var(--oro); }
.evento-tabula { max-width: 880px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 56px); }
.evento-data { font-weight: 700; letter-spacing: .02em; color: var(--oro-chiaro); font-size: 1.15rem; margin-top: 14px; }
.evento h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); }
.evento-sotto { margin-top: 10px; font-size: 1.2em; }
.evento ul { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.evento li { font-weight: 500; }
.evento li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--oro); margin-right: 10px; vertical-align: middle; transform: rotate(45deg); }

/* palestra: basalto e oro */
.palestra { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); max-width: none; }
.palestra > * { margin: 0; }
.palestra { padding-left: max(clamp(16px, 4vw, 48px), calc((100vw - var(--larghezza)) / 2)); padding-right: max(clamp(16px, 4vw, 48px), calc((100vw - var(--larghezza)) / 2)); }
.palestra .sezione-testa { grid-column: 1; grid-template-columns: 1fr; margin-bottom: 0; align-self: start; }
.palestra .sezione-testa p { color: var(--fumo); }
.offerta {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  padding: clamp(24px, 3vw, 40px); margin: 0 44px !important;
}
.offerta-periodo { font-weight: 700; letter-spacing: .02em; color: var(--oro-chiaro); font-size: 1rem; margin-bottom: 24px; }
.offerta-cosa { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); text-transform: uppercase; letter-spacing: .04em; }
.offerta-prezzo { font-family: var(--display); font-size: clamp(4rem, 2.6rem + 4.5vw, 6rem); line-height: 1; color: var(--oro); margin: 8px 0 6px; }
.offerta-omaggio { color: var(--marmo); font-size: 1.1em; margin-bottom: 8px; }
.offerta .bottone-oro { width: 100%; }
.discipline { grid-column: 1; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 12px; align-content: start; }
.discipline li {
  font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 18px; background: var(--basalto-3); color: var(--marmo); display: flex; align-items: center; gap: 12px;
}
.discipline li::before { content: ""; width: 8px; height: 8px; background: var(--oro); transform: rotate(45deg); }

/* corsi: la tabella a tessere */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filtri button {
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; color: var(--marmo-ink);
  background: transparent; border: 2px solid var(--marmo-ink); border-radius: 2px; padding: 8px 14px; min-height: 44px;
  transition: background .18s, color .18s;
}
.filtri button:hover { background: #fff; }
.filtri button[aria-pressed="true"] { background: var(--basalto); color: var(--oro-chiaro); }
.tabella-orari { display: grid; grid-template-columns: 80px repeat(5, minmax(0, 1fr)); padding-top: 6px; background: repeating-linear-gradient(90deg, var(--marmo-ink) 0 6px, transparent 6px 8px) top left / 100% 6px no-repeat; }
.tabella-orari .cella { padding: 10px 6px 8px; min-height: 54px; background: repeating-linear-gradient(90deg, var(--marmo-2) 0 4px, transparent 4px 8px) bottom left / 100% 3px no-repeat; }
.tabella-orari .giorno { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; padding: 14px 8px; background: repeating-linear-gradient(90deg, var(--marmo-ink) 0 6px, transparent 6px 8px) bottom left / 100% 6px no-repeat; }
.tabella-orari .giorno.oggi-col { background-color: var(--basalto); color: var(--oro-chiaro); }
.tabella-orari .ora { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1rem; padding-top: 16px; }
.tabella-orari .cella.oggi-col { background-color: rgba(200,160,72,.16); }
.lezione {
  display: block; padding: 7px 9px; margin-bottom: 4px; font-weight: 700; font-size: .93rem; line-height: 1.2; border-radius: 2px;
  background: #fff; border: 2px solid var(--marmo-ink); color: var(--marmo-ink);
}
.lezione small { display: block; font-family: var(--mono); font-weight: 600; font-size: .78rem; margin-top: 3px; }
.lezione.corpo { background: var(--basalto); color: var(--marmo); border-color: var(--basalto); }
.lezione.caldo { background: var(--pompei); color: #fff; border-color: var(--pompei); }
.lezione.prossima { box-shadow: 0 0 0 3px var(--oro); }
.giorni-tab { display: none; }
.vuoto { grid-column: 1 / -1; padding: 20px 0; color: var(--marmo-muto); font-weight: 500; }

/* regalo */

/* dove */
.dove { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dove > * { margin: 0; }
.dove { padding-left: max(clamp(16px, 4vw, 48px), calc((100vw - var(--larghezza)) / 2)); padding-right: max(clamp(16px, 4vw, 48px), calc((100vw - var(--larghezza)) / 2)); }
.dove h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 3rem); }
.dove-testo p { margin: 14px 0 24px; max-width: 44ch; }
.orari { margin: 0; }
.orari div { padding: 12px 0 14px; background: var(--fila) bottom left / 100% 4px no-repeat; }
.orari dt { font-weight: 800; }
.orari dd { margin: 2px 0 0; font-family: var(--mono); font-weight: 600; font-size: .95rem; color: var(--marmo-muto); }
.contatti { list-style: none; padding: 0; margin: 0; }
.contatti li { padding: 12px 0 14px; background: var(--fila) bottom left / 100% 4px no-repeat; font-weight: 700; overflow-wrap: anywhere; }
.contatti a { text-decoration-color: var(--oro-scuro); }

/* piede */
.piede-riga { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px clamp(16px, 4vw, 48px); color: var(--fumo); font-size: .95rem; max-width: var(--larghezza); margin: 0 auto; }
.piede-admin { text-align: center; font-size: .85rem; padding: 0 0 96px; color: var(--fumo); }
.piede-admin a { color: var(--fumo); }

.wa-fisso {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--oro); color: var(--basalto); border-radius: 2px; outline: 4px solid var(--basalto);
  transition: transform .2s;
}
.wa-fisso:hover { transform: translateY(-2px); }
.wa-fisso svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- adattamento ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .ingresso { grid-template-columns: 1fr; grid-template-areas: "testo" "prossimo" "prenota" "pianta"; }
  .prossimo { display: block; padding: 18px 0 20px; background: var(--fila) top left / 100% 6px no-repeat; --c-fila: var(--oro); }
  .oggi { display: none; }
  .prenota { position: static; }
  .percorso { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tappa:nth-child(3) { padding-left: 0; }
  .tappa:nth-child(3)::before { display: none; }
  .palestra { grid-template-columns: 1fr; }
  .offerta, .discipline, .palestra .sezione-testa { grid-column: 1; grid-row: auto; }
  .dove { grid-template-columns: 1fr 1fr; }
  .dove-testo { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .testata { gap: 12px; }
  .marchio img { width: 44px; height: 44px; }
  .marchio-nome { font-size: 1.1rem; }
  .testata-tel span { display: none; }
  .testata-tel { padding: 12px; }
  .sezione-testa { grid-template-columns: 1fr; }
  .prove { grid-template-columns: 1fr; gap: 0; }
  .percorso { grid-template-columns: 1fr; }
  .tappa, .tappa + .tappa { padding: 0; }
  .tappa + .tappa::before { display: none; }
  
  .iscrizioni li { grid-template-columns: 1fr; gap: 6px; }
  .campi { grid-template-columns: 1fr 1fr; }
  .dove { grid-template-columns: 1fr; }
  .stanze a { padding: 4px 5px 3px; letter-spacing: 0; font-size: .7rem; }
  .stanze .lungo { display: none; }
  .tabula::before, .tabula::after { display: none; }
  .offerta { margin: 0 !important; }
  .evento { padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
  .stanze .corto { display: inline; }
  .stanze a::before, .stanze a::after { display: none; }
  /* la tabella diventa un giorno alla volta */
  .giorni-tab { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
  .giorni-tab button { font: inherit; font-weight: 800; flex: 1 0 auto; min-height: 44px; padding: 8px 12px; border: 2px solid var(--marmo-ink); background: transparent; color: var(--marmo-ink); border-radius: 2px; cursor: pointer; }
  .giorni-tab button[aria-selected="true"] { background: var(--basalto); color: var(--oro-chiaro); }
  .tabella-orari { grid-template-columns: 64px 1fr; }
  .tabella-orari [data-giorno]:not(.mostra) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.orari .dd-testo { font-family: var(--testo); font-weight: 500; font-size: 1rem; }

.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- recensioni Google: lapidi incise ---------- */
.voci { padding: clamp(64px, 8vw, 120px) clamp(16px, 4vw, 48px); }
.voci > * { max-width: var(--larghezza); margin-left: auto; margin-right: auto; }
.voci-voto { font-size: 1.15em; color: var(--marmo) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.voci-voto .num:first-child { font-size: 2.4rem; color: var(--oro-chiaro); line-height: 1; }
.stelle { display: inline-flex; gap: 4px; }
.stelle i { width: 14px; height: 14px; background: var(--oro); transform: rotate(45deg); }
.voci-elenco { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.voci-elenco li { padding: clamp(24px, 3vw, 40px); background: var(--basalto-2); border-top: var(--t) solid var(--oro); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.voci-elenco blockquote { margin: 0; }
.voci-elenco blockquote p { font-family: var(--display); font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); line-height: 1.35; color: var(--marmo); }
.voci-chi { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .88rem; color: var(--oro-chiaro); }
.voci-chi::after { content: " · Google"; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--fumo); }
.voci-azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 720px) { .voci-elenco { grid-template-columns: 1fr; } .voci-azioni .bottone-linea { width: 100%; } }
.prove a { color: inherit; text-decoration: none; } .prove a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.lingue { display: flex; align-items: center; } .lingue:empty { display: none; }
/* pulsante lingue nel mondo a tessere: niente angoli tondi */
#traduci-sito-cgfa .ts-btn, #traduci-sito-cgfa .ts-pan, #traduci-sito-cgfa .ts-bolla, #traduci-sito-cgfa .ts-cerca, #traduci-sito-cgfa .ts-l { border-radius: 0 !important; }
#traduci-sito-cgfa .ts-btn { font-family: var(--testo) !important; font-weight: 800 !important; letter-spacing: .04em; color: var(--basalto) !important; }
.voci-voto .num:first-child { letter-spacing: -.06em; }

/* ---------- emblemi: le foto vere incorniciate come il quadro al centro di un mosaico ---------- */
.dentro, .voi { padding: clamp(64px, 8vw, 120px) clamp(16px, 4vw, 48px); }
.dentro > *, .voi > * { max-width: var(--larghezza); margin-left: auto; margin-right: auto; }
.emblema {
  margin: 0; position: relative; padding: var(--t);
  background-color: var(--oro);
  background-image:
    repeating-linear-gradient(90deg, var(--basalto) 0 1px, transparent 1px var(--t)),
    repeating-linear-gradient(0deg, var(--basalto) 0 1px, transparent 1px var(--t));
}
.emblema img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--basalto-2); outline: 2px solid var(--basalto); outline-offset: -2px; }
.emblema figcaption {
  position: absolute; left: calc(var(--t) * 2); bottom: calc(var(--t) * 2);
  background: var(--basalto); color: var(--oro-chiaro); padding: 6px 12px 5px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; line-height: 1.2;
  border: 2px solid var(--oro);
}
.emblemi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 300px); gap: clamp(12px, 1.6vw, 20px); }
.emblemi .e-alto { grid-row: span 2; }
.emblemi .e-largo { grid-column: span 2; }
.foto-fila { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 40px) !important; }
.foto-fila .emblema { aspect-ratio: 4 / 3; }

/* ---------- il Tempio visto da voi ---------- */
.voi-griglia { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.voi-griglia:empty { display: none; }
.voi-griglia .emblema { aspect-ratio: 1; }
.voi-griglia .emblema figcaption { font-family: var(--testo); text-transform: none; letter-spacing: 0; font-size: .92rem; max-width: calc(100% - 32px); }
.voi-griglia button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.voi-griglia button:focus-visible { outline: 3px solid var(--oro-chiaro); outline-offset: 3px; }
.voi-azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 48px); }
.voi-vuoto { color: var(--fumo); font-size: 1.1em; margin-top: -16px; }
.voi-grande { position: fixed; inset: 0; z-index: 60; background: rgba(21,19,17,.94); display: grid; place-items: center; padding: 24px; }
.voi-grande img { max-width: min(92vw, 1100px); max-height: 80vh; border: var(--t) solid var(--oro); }
.voi-grande p { color: var(--marmo); margin-top: 12px; text-align: center; }
.voi-grande button { position: absolute; top: 16px; right: 16px; min-width: 44px; min-height: 44px; background: var(--oro); color: var(--basalto); border: 0; font: 800 1.2rem var(--testo); cursor: pointer; }

/* piede: social */
.piede-social { display: flex; flex-wrap: wrap; gap: 16px; }
.piede-social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.piede-social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 1080px) {
  .emblemi { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 42vw, 320px); }
}
@media (max-width: 720px) {
  .emblemi .e-largo { grid-column: span 2; }
  .foto-fila { grid-template-columns: 1fr; }
  .foto-fila .emblema { aspect-ratio: 3 / 2; }
  .voi-azioni a { width: 100%; }
  .voi-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* link alla guida dentro le sezioni */
.guida-link { margin-top: clamp(24px, 3vw, 36px) !important; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.guida-link a { color: var(--oro-chiaro); text-underline-offset: 4px; }
.terme .guida-link a, .corsi .guida-link a { color: var(--marmo-ink); }
.iscrizioni h3 a { color: inherit; text-decoration: none; }
.iscrizioni h3 a::after { content: " →"; font-size: .6em; vertical-align: middle; opacity: .7; }
.iscrizioni h3 a:hover, .iscrizioni h3 a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- il sigillo del Tempio in 3D ---------- */
.sigillo { padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 3vw, 48px); align-items: center; max-width: calc(var(--larghezza) + 96px); margin: 0 auto; }
.sigillo-testo h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 3rem); }
.sigillo-testo p { color: var(--fumo); font-size: 1.1em; margin-top: 16px; max-width: 40ch; }
.sigillo-testo .bottone-linea { margin-top: 24px; }
.scena3d { position: relative; touch-action: pan-y; }
.scena-tondo { aspect-ratio: 1; }
.scena-lampada { aspect-ratio: 3 / 4; }
.scena3d canvas, .scena3d .riserva { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scena3d canvas { opacity: 0; transition: opacity .8s cubic-bezier(.16,1,.3,1); cursor: grab; }
.scena3d canvas.pronto { opacity: 1; }
.scena-tondo .riserva { border-radius: 50%; }
.pronto-scena .riserva { opacity: 0; pointer-events: none; }

@media (max-width: 720px) { .sigillo { grid-template-columns: 1fr; } }
.scena-tondo { width: min(100%, 560px); margin: 0 auto; }
.sigillo [hidden] { display: none !important; }

/* ---------- regala un rito: catalogo dei regali ---------- */
.regalo > * { max-width: var(--larghezza); margin-left: auto; margin-right: auto; }
.regali { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.regali li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 36px); background: var(--basalto-2); border: 2px solid var(--basalto-3, #2a2622); border-top: var(--t) solid var(--oro); }
.regali li::after { content: ""; position: absolute; top: calc(var(--t) * -1); right: 0; width: calc(var(--t) * 3); height: var(--t); background: repeating-linear-gradient(90deg, var(--basalto) 0 1px, transparent 1px var(--t)), var(--oro-chiaro); }
.regali h3 { font-size: clamp(1.35rem, 1.05rem + .8vw, 1.8rem); color: var(--marmo); }
.regali p { color: var(--fumo); font-size: 1.05em; flex: 1; }
.regali .bottone-linea { align-self: flex-start; }
.regali .regalo-caldo { border-top-color: var(--pompei); }
.regali .regalo-offerta { border-color: var(--oro); }
.regalo-prezzo { flex: 0 !important; font-size: 2.4rem !important; color: var(--oro-chiaro) !important; line-height: 1; }
.regalo-altro { margin-top: clamp(28px, 3.5vw, 44px) !important; color: var(--fumo); font-size: 1.08em; }
.regalo-altro a { color: var(--oro-chiaro); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 1080px) { .regali { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .regali { grid-template-columns: 1fr; } .regali .bottone-linea { align-self: stretch; } }

/* ---------- condividi e vinci: il conto alla rovescia a mosaico (sito e app) ---------- */
.cond-mosaico { --cols: 20; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; padding: 10px; background: var(--basalto-2); border: 2px solid var(--basalto-3); }
.cond-mosaico i { display: block; aspect-ratio: 1; background: var(--basalto-3); box-shadow: inset 0 0 0 1px rgba(200, 160, 72, .12); border-radius: 2px; }
.cond-mosaico i.on { background: var(--oro); box-shadow: none; animation: cond-accesa .55s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 5ms); }
.cond-mosaico i.on:nth-child(3n) { background: var(--oro-chiaro); }
.cond-mosaico i.on:nth-child(7n + 2) { background: var(--oro-scuro); }
.cond-mosaico i.on:nth-child(11n + 5) { background: var(--oro-chiaro); }
@keyframes cond-accesa { from { background: var(--basalto-3); transform: scale(.55); } }
@media (prefers-reduced-motion: reduce) { .cond-mosaico i.on { animation: none; } }
.cond-mancano { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; color: var(--marmo); margin: 0 0 14px; }
.cond-mancano .num { color: var(--oro-chiaro); font-size: 1.25em; }

/* la fascia nella home */
.condividi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(64px, 8vw, 120px) max(clamp(16px, 4vw, 48px), calc((100vw - var(--larghezza)) / 2)); }
.condividi h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 3rem); }
.cond-testo > p { color: var(--fumo); font-size: 1.1em; max-width: 46ch; margin-top: 14px; }
.cond-testo .cond-mancano { margin-top: 26px; }
.cond-testo .cond-premio { color: var(--marmo); font-weight: 700; }
.cond-azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cond-regole { margin-top: 18px !important; font-size: 1em !important; }
.cond-regole a { color: var(--oro-chiaro); text-underline-offset: 4px; }
@media (max-width: 860px) { .condividi { grid-template-columns: 1fr; } .cond-azioni .bottone-oro, .cond-azioni .bottone-linea { flex: 1 1 100%; } }

/* ---------- eventi gestiti dal pannello: foto, descrizione, partecipa, elenco dei prossimi ---------- */
.evento-foto { margin: 0 0 clamp(20px, 3vw, 32px); }
.evento-foto img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border: 2px solid var(--basalto-3); }
.evento-descr { max-width: 60ch; margin: 14px auto 0; color: var(--fumo); font-size: 1.1em; }
.evento-az { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.evento-posti { color: var(--oro-chiaro); font-weight: 700; margin: 0; }
.evento-form { display: grid; gap: 12px; width: min(100%, 420px); text-align: left; margin-top: 4px; }
.evento-form[hidden] { display: none; }
.evento-form label { display: grid; gap: 6px; font-weight: 700; }
.evento-form input { min-height: 48px; padding: 10px 14px; font: inherit; color: var(--marmo-ink); background: var(--marmo); border: 2px solid var(--marmo-2); border-radius: 2px; }
.evento-form input:focus-visible { outline: 3px solid var(--oro); outline-offset: 1px; }
.evento-msg { min-height: 1.4em; font-weight: 700; color: #ff8a80; margin: 0; }
.evento-msg.ok { color: var(--oro-chiaro); }
.evento-altri { max-width: 880px; margin: clamp(24px, 3vw, 40px) auto 0; }
.evento-altri h3 { color: var(--oro-chiaro); font-size: 1.3rem; margin-bottom: 8px; }
.evento .evento-altri ul { display: grid; gap: 0; margin: 0; padding: 0; justify-content: stretch; }
.evento .evento-altri li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0 16px; background: repeating-linear-gradient(90deg, var(--basalto-3) 0 6px, transparent 6px 8px) bottom left / 100% 6px no-repeat; }
.evento .evento-altri li::before { content: none; }
.evento-altri li span { color: var(--fumo); font-variant-numeric: tabular-nums; }

/* pulsante musica di relax nella testata */
.musica { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-right: 10px; background: transparent; color: var(--oro-chiaro); border: 2px solid var(--oro); font: 800 .95rem var(--testo); letter-spacing: .04em; cursor: pointer; }
.musica svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.musica:hover { background: rgba(200,160,72,.14); }
.musica[aria-pressed="true"] { background: var(--oro); color: var(--basalto); }
.musica[aria-pressed="true"] svg { animation: musica-respiro 3.2s ease-in-out infinite; }
@keyframes musica-respiro { 50% { transform: scale(1.12); } }
.musica:focus-visible { outline: 3px solid var(--oro-chiaro); outline-offset: 2px; }
@media (max-width: 720px) { .musica span { display: none; } .musica { padding: 0 10px; margin-right: 6px; } }
@media (prefers-reduced-motion: reduce) { .musica[aria-pressed="true"] svg { animation: none; } }
/* testata affollata sui computer medi: niente a capo, musica solo icona */
.menu a, .testata-tel, .marchio-nome small { white-space: nowrap; }
@media (max-width: 1439px) { .musica span { display: none; } .musica { padding: 0 11px; } .menu { gap: 20px; } }

/* piè di pagina: il Tempio nell'app CityForYou Guida (skill del locale) */
.piede-cfy { max-width: var(--larghezza); margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.piede-cfy-t { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; color: var(--marmo); }
.piede-cfy p { color: var(--fumo); }
.piede-cfy-azioni { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .piede-cfy { grid-template-columns: 1fr; } .piede-cfy-azioni a { flex: 1 1 100%; text-align: center; } }
