/* ==========================================================================
   VeneziaCancelliAutomatici.com — brand-foundation.css
   Direzione cromatica: TEAL  ·  Prefisso codice: vca  ·  v1.0
   Da caricare per PRIMO nel child theme, prima di components.css e fixes.css.
   ========================================================================== */


:root {

  /* --- PALETTE ---------------------------------------------------------- */
  --vca-bg:            #F4F5F7;  /* Zinco chiaro     — sfondo body          */
  --vca-stone:         #E3E7EC;  /* Pietra           — sezioni alternate    */
  --vca-ink:           #14181D;  /* Inchiostro       — titoli e testo       */
  --vca-ink-soft:      #556069;  /* Grigio acciaio   — testo secondario     */
  --vca-dark:          #1A2027;  /* Acciaio in ombra — sezioni scure        */
  --vca-accent:        #1F6F8B;  /* Teal profondo    — CTA, telefono        */
  --vca-accent-hover:  #17566C;  /* Teal scuro       — hover, bordi attivi  */
  --vca-accent-soft:   #3E9CBF;  /* Teal chiaro      — SOLO su fondo scuro  */
  --vca-success:       #1E7A4C;  /* conferme form                           */
  --vca-error:         #B3352C;  /* validazione form                        */

  /* HSL per manipolazioni runtime (opacita', tinte) */
  --vca-hsl-accent:    196, 64%, 33%;
  --vca-hsl-ink:       213, 18%, 10%;
  --vca-hsl-dark:      212, 20%, 13%;

  /* --- CONTRASTI VERIFICATI (WCAG 2.1) ---------------------------------
     ink          su bg        16.34:1  AAA
     ink          su stone     14.35:1  AAA
     ink-soft     su bg         5.90:1  AA
     ink-soft     su stone      5.18:1  AA
     bg           su dark      15.04:1  AAA
     accent       su bg         5.20:1  AA    <-- il teal e' leggibile sul chiaro
     accent       su stone      4.56:1  AA    (margine sottile: non ridurre oltre)
     bg           su accent     5.20:1  AA    <-- unico abbinamento sulla CTA
     accent-soft  su dark       5.24:1  AA    <-- l'accento quando il fondo e' scuro
     success      su bg         4.88:1  AA
     error        su bg         5.56:1  AA

     REGOLA INDEROGABILE — E' L'OPPOSTO DI CAV.
     Il teal e' un colore SCURO (L 33%), l'ambra di CAV era chiara.
     1. Ogni superficie teal porta testo --vca-bg. Testo --vca-ink sul teal
        fa 3.14:1 ed e' BOCCIATO: la riga "ogni superficie porta testo ink"
        ereditata da CAV va invertita ovunque compaia.
     2. --vca-accent come TESTO o come elemento di interfaccia su --vca-dark
        fa 2.89:1: bocciato sia per il testo (4.5:1) sia per la UI (3:1).
        Su fondo scuro si usa --vca-accent-soft. Mai il contrario:
        accent-soft su bg fa 2.87:1.
     ------------------------------------------------------------------- */

  /* --- TIPOGRAFIA ------------------------------------------------------- */
  --vca-font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --vca-font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --vca-font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Archivo e' variabile: il display usa l'asse di larghezza in condensato,
     cosi' la tipografia ripete la geometria del marchio. */
  --vca-display-stretch: 85;
  --vca-display-weight:  600;

  --vca-fs-h1:      clamp(2.05rem, 5.2vw, 3.40rem);
  --vca-fs-h2:      clamp(1.65rem, 3.6vw, 2.45rem);
  --vca-fs-h3:      clamp(1.30rem, 2.4vw, 1.60rem);
  --vca-fs-body:    clamp(1.02rem, 1.1vw, 1.12rem);
  --vca-fs-small:   0.92rem;
  --vca-fs-eyebrow: 0.78rem;

  --vca-lh-tight:   1.08;
  --vca-lh-heading: 1.18;
  --vca-lh-body:    1.68;

  /* --- LAYOUT ----------------------------------------------------------- */
  --vca-container-max:     1240px;
  --vca-container-padding: clamp(1rem, 4vw, 2rem);
  --vca-section-y:         clamp(3rem, 7vw, 5.5rem);
  --vca-radius:            5px;   /* quasi squadrato: il brand e' tecnico */
  --vca-border:            1px solid var(--vca-stone);
}

/* --------------------------------------------------------------------------
   TIPOGRAFIA BASE
   -------------------------------------------------------------------------- */

body {
  background: var(--vca-bg);
  color: var(--vca-ink);
  font-family: var(--vca-font-body);
  font-size: var(--vca-fs-body);
  line-height: var(--vca-lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.vca-display {
  font-family: var(--vca-font-display);
  font-variation-settings: 'wdth' var(--vca-display-stretch),
                           'wght' var(--vca-display-weight);
  color: var(--vca-ink);
  text-wrap: balance;
}

h1 { font-size: var(--vca-fs-h1); line-height: var(--vca-lh-tight);   letter-spacing: -0.015em; }
h2 { font-size: var(--vca-fs-h2); line-height: var(--vca-lh-heading); letter-spacing: -0.010em; }
h3 { font-size: var(--vca-fs-h3); line-height: var(--vca-lh-heading); }

/* Occhiello. Sul chiaro resta grigio; sullo scuro passa al teal chiaro,
   non al teal pieno: quello li' sotto non si leggerebbe. */
.vca-eyebrow {
  font-family: var(--vca-font-display);
  font-variation-settings: 'wdth' var(--vca-display-stretch), 'wght' 600;
  font-size: var(--vca-fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vca-ink-soft);
}
.vca-section--dark .vca-eyebrow { color: var(--vca-accent-soft); }

/* Dati tecnici: sigle di centrali, serie motore, numero di telefono.
   Il monospaziato ha un compito reale, non decorativo. */
.vca-tech,
.vca-phone {
  font-family: var(--vca-font-mono);
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   SEZIONI
   -------------------------------------------------------------------------- */

.vca-section          { padding-block: var(--vca-section-y); }
.vca-section--stone   { background: var(--vca-stone); }
.vca-section--dark    { background: var(--vca-dark); color: var(--vca-bg); }
.vca-section--dark h1,
.vca-section--dark h2,
.vca-section--dark h3 { color: var(--vca-bg); }

.vca-container {
  max-width: var(--vca-container-max);
  margin-inline: auto;
  padding-inline: var(--vca-container-padding);
}

/* --------------------------------------------------------------------------
   BOTTONI — due binari: chiamata (teal pieno) e preventivo (contorno)
   -------------------------------------------------------------------------- */

.vca-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: var(--vca-radius);
  font-family: var(--vca-font-body);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

/* Primario — guasto / urgenza. Testo CHIARO: vedi regola inderogabile sopra. */
.vca-btn--call {
  background: var(--vca-accent);
  color: var(--vca-bg);
}
.vca-btn--call:hover,
.vca-btn--call:focus-visible { background: var(--vca-accent-hover); color: var(--vca-bg); }

/* Secondario — WhatsApp / contatto non urgente. Registro sobrio. */
.vca-btn--quote {
  background: transparent;
  color: var(--vca-ink);
  border-color: var(--vca-ink);
}
.vca-btn--quote:hover,
.vca-btn--quote:focus-visible { background: var(--vca-ink); color: var(--vca-bg); }

.vca-section--dark .vca-btn--quote { color: var(--vca-bg); border-color: var(--vca-bg); }
.vca-section--dark .vca-btn--quote:hover { background: var(--vca-bg); color: var(--vca-ink); }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--vca-accent);
  outline-offset: 2px;
}

/* Sul fondo scuro il teal pieno fa 2.89:1 e l'anello di focus sparisce */
.vca-section--dark :where(a, button, input, textarea, select):focus-visible {
  outline-color: var(--vca-accent-soft);
}

/* --------------------------------------------------------------------------
   BLOCCO ABILITAZIONE
   Deve restare TESTO, mai un'immagine: dev'essere indicizzabile, verificabile
   e correggibile. Registro sobrio — nessun teal, nessuna forma da sigillo.
   La dicitura esatta va copiata dalla visura camerale, non parafrasata.
   -------------------------------------------------------------------------- */

.vca-abilitazione {
  border-left: 3px solid var(--vca-ink-soft);
  background: var(--vca-stone);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--vca-radius) var(--vca-radius) 0;
}
.vca-abilitazione__label {
  font-family: var(--vca-font-display);
  font-variation-settings: 'wdth' var(--vca-display-stretch), 'wght' 600;
  font-size: var(--vca-fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vca-ink-soft);
  display: block;
  margin-bottom: 0.4rem;
}
.vca-abilitazione__norma { font-family: var(--vca-font-mono); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   DISCLAIMER MARCHI DI TERZI
   Su questo sito non basta il footer: ogni pagina che nomina un marchio nel
   titolo lo porta anche nel corpo. La classe e' la stessa, cambia la
   collocazione — il componente di corpo vive in components.css.
   -------------------------------------------------------------------------- */

.vca-disclaimer {
  font-size: var(--vca-fs-small);
  line-height: 1.55;
  color: var(--vca-ink-soft);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITA'
   -------------------------------------------------------------------------- */

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