/* ============================================================
   AQUADRA — Design tokens & base
   Brand: installatore professionale di climatizzazione (Ticino, CH)
   ============================================================ */

@font-face {
  font-family: 'Borna';
  src: url('fonts/Borna-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Borna';
  src: url('fonts/Borna-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Borna';
  src: url('fonts/Borna-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (da aquadra-colors.csv) */
  --verde-scuro: #163300;
  --verde-chiaro: #95EB6D;
  --arancione: #FF850D;
  --grigio: #B1B1B1;
  --nero: #000000;

  /* Neutrali armonici (toni verdi a bassissima croma) */
  --bg:        #F6F8F3;
  --bg-soft:   #EDF1E8;
  --surface:   #FFFFFF;
  --border:    #E2E7DB;
  --ink:       #163300;   /* testo primario / titoli */
  --ink-2:     #34402C;   /* testo corpo */
  --muted:     #6E7A66;   /* testo secondario */

  /* Accenti derivati */
  --verde-chiaro-soft: #E8F9DE;
  --arancione-soft:    #FFF1E2;
  --verde-scuro-90:    #234810;

  /* Tipografia */
  --font: 'Borna', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Raggi & ombre */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22,51,0,.05), 0 2px 8px rgba(22,51,0,.04);
  --shadow-md: 0 4px 16px rgba(22,51,0,.07), 0 12px 32px rgba(22,51,0,.06);
  --shadow-lg: 0 10px 30px rgba(22,51,0,.10), 0 30px 70px rgba(22,51,0,.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

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

/* Utility: contenitore */
.aq-wrap { width: min(1200px, 92vw); margin-inline: auto; }

/* Pulsanti brand */
.aq-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.aq-btn:active { transform: translateY(1px); }

.aq-btn--primary {
  background: var(--arancione);
  color: #2A1500;
  box-shadow: 0 6px 18px rgba(255,133,13,.28);
}
.aq-btn--primary:hover { background: #ff922a; box-shadow: 0 8px 24px rgba(255,133,13,.36); }

.aq-btn--dark {
  background: var(--verde-scuro);
  color: #EAF6E2;
}
.aq-btn--dark:hover { background: var(--verde-scuro-90); }

.aq-btn--ghost {
  background: transparent;
  color: var(--verde-scuro);
  border-color: var(--border);
}
.aq-btn--ghost:hover { border-color: var(--verde-scuro); }

/* Eyebrow / kicker */
.aq-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde-scuro);
}
.aq-kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--verde-chiaro);
  transform: rotate(45deg);
}
