/* scheda.lucacazzaniga.it — shared base.
   Same palette and type as villa.vendocasamonzabrianza.it, so the demo and the real sites look related.
   Modules only use these tokens and classes; everything module-specific lives in modules/sNN/style.css. */

:root {
  --bg: #14100c;
  --bg-2: #1b1510;
  --card: #211a13;
  --ink: #f1e7d6;
  --muted: #b3a28b;
  --line: rgba(241, 231, 214, 0.14);
  --bronze: #c29a6b;
  --bronze-soft: #d9bb91;
  --sage: #8a9078;
  --paper: #fff8ef;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* One module = one <section class="mod">. Vertical rhythm is shared. */
.mod {
  position: relative;
  padding-block: clamp(96px, 14vh, 180px);
}
.mod-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section header: eyebrow (step number + label), serif title with italic accent, lead. */
.mod-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow .step {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--bronze-soft);
}
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line); }
.mod-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.mod-title em { font-style: italic; color: var(--bronze-soft); }
.mod-lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}

/* Small print under visuals. */
.caption { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.caption a { color: var(--bronze-soft); }

/* Mandatory label on every AI-generated image (AI Act transparency, same wording as the sales sites). */
.ai-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(20, 16, 12, 0.72);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Buttons and links used across modules. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bronze);
  color: #1a130c;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--bronze-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: rgba(241, 231, 214, 0.06); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--bronze-soft); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
