/* Pellegrinello · brand marketing agency
   v2 visual system.
   Palette: sage / carbon / cream / gold, plus an ultraviolet accent
   reserved for the UV-350 reveal.
   Type: Sora (display) + Inter (text). */

:root {
  /* brand palette */
  --sage: #B3C1B2;
  --sage-deep: #8FA48E;
  --ink: #333738;
  --cream: #E5DFD1;
  --gold: #BF9F6D;
  --gold-deep: #A6874F;
  /* gold is a fill and a border, never body text on a light surface:
     for gold-coloured text we drop to this darker step, which clears AA */
  --gold-text: #755826;

  /* derived surfaces */
  --panel: #EDE8DC;
  --panel-2: #DED7C6;
  --border: #D4CCBA;
  --border-soft: #DFD8C8;
  --muted: #5E6161;
  --muted-2: #616666;
  --taupe: #5A6459;
  --ink-panel: #3C4142;
  --ink-line: #4A4F50;
  --on-dark: #C9BFA8;

  /* ultraviolet 350 */
  --uv: #7C4DFF;
  --uv-deep: #5B2AA8;

  --dot-clarity: #BF9F6D;
  --dot-coherence: #5A6459;
  --dot-meaning: #B3C1B2;
  --dot-discipline: #616666;

  --shadow: 0 18px 60px rgba(51,55,56,0.10);
  --shadow-soft: 0 8px 30px rgba(51,55,56,0.07);
  --radius: 22px;
  --radius-sm: 16px;
  --maxw: 1120px;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* cursor position, written by app.js */
  --mx: -300px;
  --my: -300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* honeycomb watermark, permanent and barely there */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/honeycomb-veil.webp") center / cover no-repeat;
  opacity: 0.07;
}

/* ---------- ultraviolet 350: the reveal layer ---------- */
.uv-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/honeycomb-reveal.webp") center / cover no-repeat;
  opacity: 0;
  transition: opacity .45s ease;
  -webkit-mask-image: radial-gradient(circle 200px at var(--mx) var(--my),
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.18) 66%, transparent 78%);
  mask-image: radial-gradient(circle 200px at var(--mx) var(--my),
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.18) 66%, transparent 78%);
}
body.uv-on .uv-layer { opacity: .5; }

/* the cursor itself: the hexagon of the wordmark */
.uv-cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 38px; height: 42px; margin: -21px 0 0 -19px;
  pointer-events: none; opacity: 0;
  transition: opacity .3s ease, width .18s ease, height .18s ease, margin .18s ease;
  will-change: transform;
}
body.uv-on .uv-cursor { opacity: 1; }
.uv-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.uv-cursor .hex {
  fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: .62;
  vector-effect: non-scaling-stroke;
}
/* the light on the lower right vertex: metallic, faint, breathing */
.uv-cursor .spark {
  fill: var(--uv);
  filter: drop-shadow(0 0 3px rgba(124,77,255,.75)) drop-shadow(0 0 7px rgba(91,42,168,.45));
  animation: uv-breathe 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes uv-breathe {
  0%, 100% { opacity: .16; }
  45%      { opacity: .62; }
  70%      { opacity: .30; }
}
.uv-cursor.on-link { width: 52px; height: 58px; margin: -29px 0 0 -26px; }
.uv-cursor.on-link .hex { stroke: var(--gold-deep); opacity: .85; }

@media (hover: hover) and (pointer: fine) {
  body.uv-on, body.uv-on * { cursor: none; }
}

/* easter egg: only for whoever wanders into the corner */
.uv-egg {
  position: fixed; left: 26px; bottom: 22px; z-index: 1;
  width: 96px; height: 150px; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.uv-egg svg { width: 100%; height: 100%; display: block; }
.uv-egg path, .uv-egg circle, .uv-egg line {
  fill: none; stroke: var(--uv); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(124,77,255,.55));
}

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.4px; }
a { color: var(--gold-text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(229,223,209,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brandmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brandmark .logo { display: block; height: 21px; width: auto; }
.brandmark .tag { font-size: 9.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--taupe); margin-top: 7px; }

/* the wordmark is an image. if it fails to load, the name is set in Sora
   so the header never shows a gap where the brand should be */
.brandmark .logo-text, footer .flogo-text { display: none; }
.brandmark.no-logo .logo, footer .fbrand.no-logo .flogo { display: none; }
.brandmark.no-logo .logo-text {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 21px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 13.5px; letter-spacing: .2px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* language switch */
.lang { display: flex; gap: 3px; padding: 4px; background: var(--panel-2); border-radius: 999px; }
.lang button {
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 12px; font-weight: 500; letter-spacing: .8px;
  padding: 5px 11px; border-radius: 999px; transition: all .16s ease;
}
.lang button.active { background: var(--cream); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: 14.5px; letter-spacing: .1px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 20px rgba(191,159,109,.34); }
.btn-primary:hover { background: var(--gold-deep); color: #FFFDF7; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 76px; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); max-width: 15ch; }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 52ch; }
.hero .origin { margin-top: 18px; font-family: var(--display); font-weight: 300; font-size: clamp(16px, 2vw, 19px); color: var(--taupe); max-width: 46ch; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .cta-row .textlink { font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.hero .cta-row .textlink:hover { color: var(--ink); border-color: var(--ink); }

/* signature motion: the tagline being programmed */
.code-anim {
  display: flex; align-items: baseline; white-space: nowrap;
  max-width: 100%; overflow: hidden;
  margin-top: clamp(40px, 8vw, 96px);
  min-height: 1.3em;
  font-family: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", "Courier New", monospace;
  font-size: clamp(19px, 3.2vw, 38px);
  font-weight: 400; letter-spacing: -0.5px;
  color: var(--taupe); opacity: 0.66;
}
.code-anim .prompt { color: var(--gold-text); margin-right: 0.5em; }
.code-anim .caret {
  display: inline-block; width: 0.5ch; height: 0.92em;
  background: var(--gold-deep); margin-left: 0.1em; transform: translateY(0.12em);
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* diagnostic invite band */
.diag-cta { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.diag-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.diag-cta .dc-title { font-family: var(--display); font-size: clamp(23px,3vw,32px); font-weight: 600; color: var(--ink); letter-spacing: -0.4px; }
.diag-cta .dc-sub { color: var(--muted); font-size: 16px; max-width: 52ch; margin-top: 8px; }

/* ---------- sections ---------- */
section.block { padding: 78px 0; position: relative; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(29px, 4vw, 43px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 56ch; }

/* services */
.svc-group-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--taupe);
  margin: 8px 0 20px;
}
.svc-group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.svc-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--sage-deep); }
.svc-card .code { font-size: 11.5px; letter-spacing: 2px; color: var(--gold-text); font-weight: 600; }
.svc-card h3 { font-size: 21px; }
.svc-card p { font-size: 14.5px; color: var(--muted); line-height: 1.58; }
.svc-card .nature { margin-top: auto; font-size: 12px; color: var(--taupe); letter-spacing: .2px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.ai-note {
  background: var(--panel-2); border: 1px dashed var(--sage-deep); border-radius: var(--radius-sm);
  padding: 22px 26px; color: var(--muted); font-size: 15px; display: flex; gap: 16px; align-items: flex-start;
}
.ai-note .badge { flex: 0 0 auto; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); font-weight: 600; border: 1px solid var(--gold); border-radius: 999px; padding: 5px 11px; }

/* ---------- who we are ---------- */
.about { background: var(--panel); border-top: 1px solid var(--border); }
.about .section-head { margin-bottom: 12px; }

.tradizione { position: relative; padding: 54px 0 60px; overflow: hidden; }
/* the heraldic plate: gothic name, crown, Nobili and shield, kept whole,
   dissolved into the page so it reads as provenance and not as an image */
.tradizione .crest {
  position: absolute; right: 1%; top: 50%; transform: translateY(-50%);
  width: clamp(230px, 30vw, 420px); opacity: .26;
  filter: blur(.35px) saturate(.94);
  pointer-events: none; user-select: none;
}
.tradizione .fixed-title,
.jeito .fixed-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.6px; color: var(--ink);
}
.tradizione .body, .jeito .body { position: relative; z-index: 1; max-width: 60ch; }
.tradizione .body p { margin-top: 18px; color: var(--muted); font-size: 16.5px; }
.tradizione .lineage { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.tradizione .lineage li {
  list-style: none; display: flex; gap: 14px; align-items: baseline;
  font-size: 15.5px; color: var(--muted); line-height: 1.55;
}
.tradizione .lineage .yr {
  flex: 0 0 62px; font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 1px; color: var(--gold-text);
}
.tradizione .blason { margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--taupe); font-size: 15px; max-width: 52ch; }
.tradizione .essence { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 58ch; }
.tradizione .essence p { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.tradizione .essence p:first-child { margin-top: 0; font-size: 18px; color: var(--ink); }
.tradizione .essence strong { font-family: var(--display); font-weight: 600; color: var(--ink); }
.tradizione .essence .role { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); }

.jeito { position: relative; padding: 54px 0 60px; border-top: 1px solid var(--border); }
.jeito .intro { margin-top: 16px; color: var(--muted); font-size: 16.5px; max-width: 56ch; }
.pillars-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.pillar-3 {
  position: relative; overflow: hidden;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar-3::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/honeycomb-veil.webp") center / 150% no-repeat;
  opacity: .16; mix-blend-mode: multiply;
}
.pillar-3 > * { position: relative; z-index: 1; }
.pillar-3:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--sage-deep); }
.pillar-3 .p3-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.3px; }
.pillar-3 .p3-rule { width: 34px; height: 2px; background: var(--gold); }
.pillar-3 p { font-size: 14.5px; color: var(--muted); line-height: 1.58; }

/* UV-350 intro block */
.uv-intro { border-top: 1px solid var(--border); padding: 54px 0 60px; }
.uv-intro .uv-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.5px; color: var(--ink);
}
.uv-intro .uv-mark .hexmark { width: 30px; height: 34px; }
.uv-intro .uv-mark .hexmark path { fill: none; stroke: var(--uv-deep); stroke-width: 1.6; }
.uv-intro p { margin-top: 18px; color: var(--muted); font-size: 16.5px; max-width: 58ch; }
.uv-intro .uv-line { margin-top: 20px; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--uv-deep); max-width: 48ch; }
.uv-intro .more { margin-top: 26px; display: inline-flex; }

/* ---------- UV-350 page ---------- */
.uv-page { padding: 88px 0 40px; }
.uv-page .uv-title { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 6vw, 66px); letter-spacing: -1px; }
.uv-page .uv-sub { margin-top: 16px; font-size: 19px; color: var(--uv-deep); font-family: var(--display); font-weight: 400; max-width: 46ch; }
.uv-body { padding-bottom: 84px; }
.uv-body p { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 22px; line-height: 1.66; }
.uv-body p.lead-p { font-size: 21px; color: var(--ink); }
.uv-cells { display: flex; gap: 10px; margin: 40px 0 10px; flex-wrap: wrap; }
.uv-cells svg { width: 56px; height: 64px; }
.uv-cells svg path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .55; }
.uv-cells svg.lit path { stroke: var(--uv-deep); opacity: .9; }
.uv-closing { border-top: 1px solid var(--border); padding-top: 34px; margin-top: 46px; }
.uv-closing .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- self-assessment tool ---------- */
.tool { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tool-tabs { display: flex; gap: 6px; padding: 5px; background: var(--panel-2); border-radius: 999px; width: fit-content; margin-bottom: 30px; }
.tool-tabs button { border: 0; background: transparent; color: var(--muted-2); font-size: 13.5px; font-weight: 500; padding: 9px 18px; border-radius: 999px; transition: all .16s ease; }
.tool-tabs button.active { background: var(--cream); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.tool-panel { display: none; }
.tool-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }

/* living diagram */
.diagram-shell { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px,4vw,52px); }
.diagram-top { display: flex; gap: 44px; align-items: flex-start; flex-wrap: wrap; }
.diagram-intro { flex: 1 1 300px; }
.diagram-intro .lead { font-size: 18px; color: var(--muted); max-width: 40ch; }
.diagram-intro .hint { font-size: 14px; color: var(--muted-2); margin-top: 18px; max-width: 38ch; }
.rule { height: 1px; background: var(--border); margin: 18px 0; }
.pillar-grid { flex: 1 1 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar {
  position: relative; border: 1px solid var(--border); background: var(--panel);
  border-radius: var(--radius-sm); padding: 20px 18px 18px; min-height: 168px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.pillar:hover { transform: translateY(-3px); }
.pillar .p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pillar .p-name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.pillar .p-dot { width: 10px; height: 10px; border-radius: 50%; }
.pillar .p-def { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pillar.off { opacity: .4; background: var(--panel-2); border-style: dashed; }
.pillar.off .p-name { text-decoration: line-through; color: var(--taupe); }

.verdict { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; margin-top: 36px; }
.verdict .note { flex: 1 1 300px; font-size: 15px; color: var(--taupe); max-width: 56ch; }
.verdict .bars { display: flex; gap: 6px; }
.verdict .bars span { width: 46px; height: 6px; border-radius: 3px; transition: opacity .18s ease; }
.sig { font-size: 12px; color: var(--muted-2); margin-top: 24px; }

/* guided path */
.guide-shell { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px,3.5vw,46px); }
.guide-lead { font-size: 17px; color: var(--muted); max-width: 62ch; margin-bottom: 26px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; margin-bottom: 30px; }
.steps button { border: 0; background: transparent; color: var(--muted-2); font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: all .16s ease; }
.steps button.active { background: var(--cream); color: var(--ink); }
.steps button.done { color: var(--gold-text); }
.guide-body .g-name { font-family: var(--display); font-size: 29px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.5px; }
.guide-body .g-def { font-size: 17px; color: var(--muted); max-width: 56ch; margin-bottom: 22px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 24px; }
.pair .cell { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.pair .cell .lbl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--taupe); }
.pair .works { background: var(--panel); }
.pair .fails { background: var(--panel-2); border-left: 1px solid var(--border); }
.pair .cell p { font-size: 14.5px; line-height: 1.55; }
.pair .fails p { color: var(--muted); }

.checks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.check { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; text-align: left; font-size: 15px; color: var(--ink); padding: 4px 0; }
.check .box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--taupe); background: transparent; color: var(--ink); font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .15s ease; }
.check.on .box { background: var(--gold); border-color: var(--gold-deep); }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; }

.result .score { font-family: var(--display); font-size: 60px; color: var(--gold-text); font-weight: 600; line-height: 1; }
.result .score small { font-size: 18px; color: var(--taupe); font-family: var(--sans); }
.result .closing { font-size: 16px; color: var(--muted); max-width: 54ch; margin-top: 10px; }
.result .allchecks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.result .allchecks .row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.result .allchecks .row .b { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink); flex: 0 0 18px; }
.result .allchecks .row .b.on { background: var(--gold); }
.result .allchecks .row .b.off { border: 1px solid var(--taupe); }

/* ---------- download / CTA ---------- */
.give { background: var(--ink); color: var(--cream); }
.give h2 { color: var(--cream); }
.give .eyebrow { color: var(--sage); }
.give p { color: var(--on-dark); }
.give-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.dl-card { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.dl-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--ink-line); }
.dl-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dl-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #464B4C; display: flex; align-items: center; justify-content: center; color: var(--sage); }
.dl-item .t { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--cream); }
.dl-item .d { font-size: 13.5px; color: var(--on-dark); margin-top: 3px; }
.dl-item .dl-link { margin-top: 10px; display: inline-flex; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.contact-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--gold-text); }
.contact-card .row .txt a { color: var(--ink); font-size: 16px; }
.contact-card .row .txt .cap { font-size: 12px; color: var(--taupe); letter-spacing: .3px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .flogo { height: 17px; width: auto; display: block; opacity: .9; }
footer .fbrand.no-logo .flogo-text {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .9;
}
footer .fnote { font-size: 12.5px; color: var(--taupe); margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .pillars-3 { grid-template-columns: 1fr; }
  .give-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .tradizione .crest { opacity: .07; right: -6%; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topbar .container { height: 62px; gap: 10px; }
  .brandmark .logo { height: 14px; }
  .brandmark.no-logo .logo-text { font-size: 12.5px; line-height: 14px; letter-spacing: .1em; }
  .brandmark .tag { display: none; }
  .lang { padding: 3px; }
  .lang button { padding: 5px 8px; font-size: 10.5px; letter-spacing: .4px; }
  #nav-cta { padding: 8px 12px; font-size: 12px; }
  .svc-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pair, .result .allchecks { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  .hero h1 { max-width: 100%; }
  .hero .cta-row { gap: 12px; }
  .hero .cta-row .btn-primary { flex: 1 1 auto; justify-content: center; }
  .code-anim { margin-top: 36px; opacity: 0.7; }
  .diag-cta .container { padding-top: 34px; padding-bottom: 34px; }
  .diag-cta .btn { width: 100%; justify-content: center; }
  .give-grid, .contact-grid { gap: 28px; }
  .contact-actions .btn { flex: 1 1 auto; justify-content: center; }
  section.block { padding: 56px 0; }
  .tradizione, .jeito, .uv-intro { padding: 40px 0 44px; }
  .tradizione .crest { display: none; }
  .uv-page { padding: 56px 0 30px; }
}
/* tablet nav collapses; keep header tidy */
@media (max-width: 900px) and (min-width: 621px) {
  .topbar .container { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .code-anim .caret { opacity: 0; }
  .uv-layer, .uv-cursor, .uv-egg { display: none; }
}
