/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BASE — Reset, tokens, typography
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━━ SELF-HOSTED FONTS ━━━━ */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/raleway-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/raleway-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/raleway-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/raleway-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/raleway-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --ink:        #0c0b22;
  /* Alias legacy: le superfici scure usano tutte il solo Ink. */
  --ink-light:  var(--ink);
  --green:      #a8dd2e;
  --green-dark: #6a9e12;
  --green-d:    #6a9e12;
  --teal:       #52656f;

  /* Backgrounds */
  --bg:         #f4f6f1;
  --bg-alt:     #eaede5;
  --white:      #ffffff;

  /* Text */
  --text:       #191828;
  --muted:      #555568;
  --dim:        #8a8a9a;

  /* Misc */
  --border:     rgba(17, 16, 48, .09);
  --shadow-sm:  0 1px 3px rgba(12,11,34,.06), 0 1px 2px rgba(12,11,34,.04);
  --shadow-md:  0 4px 16px rgba(12,11,34,.10), 0 2px 6px rgba(12,11,34,.06);
  --shadow-lg:  0 12px 40px rgba(12,11,34,.16), 0 4px 12px rgba(12,11,34,.08);

  /* Typography */
  --f-head:     'Raleway', sans-serif;
  --f-body:     'Inter', sans-serif;

  /* Easing */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --ease-out:   cubic-bezier(0, .55, .45, 1);

  /* Layout */
  --gutter:     2.5rem;
}

/* Gutenberg palette bridge.
   The editor stores a selected preset as .has-<slug>-color; map those
   classes to the same theme tokens on both canvas and frontend. */
.has-ink-color { color: var(--ink) !important; }
.has-ink-light-color { color: var(--ink-light) !important; }
.has-green-color { color: var(--green) !important; }
.has-green-dark-color { color: var(--green-dark) !important; }
.has-teal-color { color: var(--teal) !important; }
.has-bg-color { color: var(--bg) !important; }
.has-bg-alt-color { color: var(--bg-alt) !important; }
.has-body-text-color { color: var(--text) !important; }
.has-white-color { color: var(--white) !important; }
.has-muted-color { color: var(--muted) !important; }
.has-dim-color { color: var(--dim) !important; }
.has-border-color { color: var(--border) !important; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
}

/* ━━━━ LAYOUT ━━━━ */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
}

/* ━━━━ UTILITY CLASSES ━━━━ */
.tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-d);
}

.tag.dim { color: var(--teal); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ━━━━ SECTIONS ━━━━ */
.section {
  padding: 8rem 0;
}

.section--compact {
  padding: 5rem 0;
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .section--compact { padding: 3.5rem 0; }
}
