/* ==========================================================
   giorgiacampus.it · identità visiva condivisa
   Usato da tutte le landing (dominio e sottodomini).
   ========================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Nero caldo, mai puro: la grana lo rende "gratinato" */
  --ink: #181513;
  --ink-2: #221e1b;
  --ink-3: #2e2925;

  /* Crema per il testo, così il nero non sembra uno schermo spento */
  --cream: #f2ebe1;
  --cream-dim: #b9b0a5;

  /* Rosso ciliegia: il colore che parla */
  --cherry: #c8102e;
  --cherry-deep: #8f0b21;
  --cherry-light: #e8384f;

  /* Verde gambo: solo una puntina, mai come colore principale */
  --stem: #6b8e23;
  --stem-deep: #44601a;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 999px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--ink);
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(200, 16, 46, 0.14), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(107, 142, 35, 0.07), transparent 60%);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* La grana: rumore SVG fisso sopra tutto, leggerissimo */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

::selection { background: var(--cherry); color: var(--cream); }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografia ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
}

.display em,
.cherry-italic {
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--cherry);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--stem);
  vertical-align: 1px;
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: rotate(-2deg) scale(1.03); }

.btn--cherry {
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--cream);
}

.btn--cherry:hover { background: var(--cherry-light); border-color: var(--cherry-light); }

.btn--ghost:hover { background: var(--cream); color: var(--ink); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Etichetta bozza ---------- */

.draft-tag {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--stem);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Testo segnaposto: sottolineatura tratteggiata verde */
.ph {
  text-decoration: underline dashed var(--stem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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