/* ==========================================================================
   calcare.it — water-specific overrides
   Distinguishes from colesterolo.it visual identity
   ========================================================================== */

/* Disabilita custom cursor (cerchio + dot) — torna al puntatore di sistema */
.cursor, .cursor-dot { display: none !important; }
body, body * { cursor: auto !important; }
a, button, [role="button"], .btn, [data-cursor] { cursor: pointer !important; }
input, textarea, [contenteditable] { cursor: text !important; }

/* Onda decorativa tra sezioni (sostituisce divider neutro) */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  background:
    radial-gradient(ellipse 50% 110% at 20% 0%,
      oklch(from var(--c-sage) l c h / .12) 0%,
      transparent 60%),
    radial-gradient(ellipse 60% 100% at 80% 100%,
      oklch(from var(--c-peach) l c h / .10) 0%,
      transparent 55%);
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-divider svg path {
  fill: oklch(from var(--c-sage) l c h / .14);
}

/* Logo: aggiunge piccola goccia SVG accanto al wordmark */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.site-logo::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 22px;
  background: var(--c-sage);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'><path d='M8 1 C8 1 1 10 1 15 C1 19 4 21 8 21 C12 21 15 19 15 15 C15 10 8 1 8 1 Z' /></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'><path d='M8 1 C8 1 1 10 1 15 C1 19 4 21 8 21 C12 21 15 19 15 15 C15 10 8 1 8 1 Z' /></svg>") center/contain no-repeat;
  filter: drop-shadow(0 1px 3px oklch(from var(--c-sage) l c h / .35));
}

/* Hero: aggiunge bolle ascensionali decorative */
.hero-cinema {
  position: relative;
  overflow: hidden;
}

.hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 6px at 12% 78%, oklch(from var(--c-sage) l c h / .35), transparent 70%),
    radial-gradient(circle 10px at 88% 65%, oklch(from var(--c-sage) l c h / .25), transparent 70%),
    radial-gradient(circle 4px at 25% 35%, oklch(from var(--c-peach) l c h / .40), transparent 70%),
    radial-gradient(circle 8px at 65% 20%, oklch(from var(--c-sage) l c h / .20), transparent 75%),
    radial-gradient(circle 5px at 50% 90%, oklch(from var(--c-peach) l c h / .30), transparent 70%);
  animation: bubbles-rise 16s ease-in-out infinite;
}

@keyframes bubbles-rise {
  0%, 100% {
    background-position:
      12% 78%, 88% 65%, 25% 35%, 65% 20%, 50% 90%;
  }
  50% {
    background-position:
      14% 70%, 86% 58%, 27% 28%, 67% 14%, 52% 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema::after { animation: none; }
}

/* Sostituzione dial circolare con "vetro che si riempie" nella story */
.story__dial {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg,
    oklch(from var(--c-bg) l c h / .6),
    oklch(from var(--c-bg-deep) l c h / .9));
  position: relative;
}

.story__dial::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 65%;
  background: linear-gradient(180deg,
    oklch(from var(--c-sage) l c h / .25),
    oklch(from var(--c-sage-strong) l c h / .55));
  transform: translateY(0);
  transition: transform .8s cubic-bezier(.22,.8,.32,1);
  z-index: 1;
}

.story__dial[data-state="ok"]::before    { background: linear-gradient(180deg, oklch(from var(--c-ok) l c h / .25), oklch(from var(--c-ok) l c h / .55)); }
.story__dial[data-state="warn"]::before  { background: linear-gradient(180deg, oklch(from var(--c-warn) l c h / .25), oklch(from var(--c-warn) l c h / .55)); }
.story__dial[data-state="info"]::before  { background: linear-gradient(180deg, oklch(from var(--c-sage) l c h / .25), oklch(from var(--c-sage-strong) l c h / .55)); }
.story__dial[data-state="bad"]::before   { background: linear-gradient(180deg, oklch(from var(--c-bad) l c h / .25), oklch(from var(--c-bad) l c h / .55)); }

.story__dial::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 35%;
  height: 6px;
  background:
    radial-gradient(circle 6px at 10% 50%, oklch(from var(--c-card) l c h / .85), transparent 70%),
    radial-gradient(circle 5px at 30% 50%, oklch(from var(--c-card) l c h / .65), transparent 70%),
    radial-gradient(circle 5px at 55% 50%, oklch(from var(--c-card) l c h / .85), transparent 70%),
    radial-gradient(circle 6px at 80% 50%, oklch(from var(--c-card) l c h / .70), transparent 70%);
  z-index: 2;
}

.story__dial svg { display: none; }   /* nasconde i cerchi del template colesterolo */
.story__dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--c-fg);
  text-shadow: 0 1px 2px oklch(from var(--c-bg) l c h / .6);
}

.story__dial-label {
  position: absolute;
  bottom: 1rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-fg-soft);
}

/* QCalc dial → indicatore goccia */
.qcalc__dial {
  position: relative;
  width: 220px;
  height: 240px;
  margin: 0 auto;
}

.qcalc__dial svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 20px oklch(from var(--c-sage) l c h / .35));
}

.qcalc__dial-track,
.qcalc__dial-fill {
  /* Mantieni le proprietà originali stroke per compatibilità JS, ma sovrapponi visual goccia */
  visibility: hidden;
}

.qcalc__dial::before {
  content: "";
  position: absolute;
  inset: 10% 12% 10% 12%;
  background: linear-gradient(180deg,
    oklch(from var(--c-sage) l c h / .15),
    oklch(from var(--c-sage-strong) l c h / .65));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'><path d='M50 4 C50 4 6 64 6 92 C6 116 25 128 50 128 C75 128 94 116 94 92 C94 64 50 4 50 4 Z' /></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'><path d='M50 4 C50 4 6 64 6 92 C6 116 25 128 50 128 C75 128 94 116 94 92 C94 64 50 4 50 4 Z' /></svg>") center/contain no-repeat;
  z-index: 0;
}

.qcalc__dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
}

/* Fix taglio italic nella hero: la "e" di "calcare" in italic Fraunces con
   letter-spacing negativo e display:inline-block sborda dalla bbox.
   Aggiungo padding di sicurezza + margin-right per il rotator. */
.hero-cinema__title em {
  padding: .05em .15em .12em .02em;
  margin-right: .05em;
  overflow: visible;
}

/* Card showcase: cornice acquatica */
.showcase-card {
  position: relative;
  border: 1px solid oklch(from var(--c-sage) l c h / .25);
  background: linear-gradient(135deg,
    oklch(from var(--c-card) l c h / 1) 0%,
    oklch(from var(--c-sage-soft) l c h / .4) 100%);
}

.showcase-card:hover {
  border-color: oklch(from var(--c-sage) l c h / .6);
  box-shadow: 0 12px 32px oklch(from var(--c-sage) l c h / .18);
}

/* Marquee: bordo acqua sottile */
.marquee {
  border-top: 1px solid oklch(from var(--c-sage) l c h / .18);
  border-bottom: 1px solid oklch(from var(--c-sage) l c h / .18);
  background: linear-gradient(180deg,
    oklch(from var(--c-bg) l c h / 1),
    oklch(from var(--c-sage-soft) l c h / .35));
}

/* Numbers strip: enfatizza con stroke-blue */
.numbers-strip__num {
  background: linear-gradient(135deg, var(--c-sage), var(--c-sage-strong));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Riga "I numeri del calcare" — tono caldo con peach per emphasis */
.giant-head__title em {
  background: linear-gradient(120deg, var(--c-sage-strong), var(--c-peach-strong));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
