/* ═══════════════════════════════════════════════════════════
   CERKEZISERVIZI v3.0 — Design Token System
   Direzione: ispirato allo stile editoriale di Claude/Anthropic
   Typeface: Source Serif 4 (titoli) + Inter (corpo testo)
   Palette: crema caldo, inchiostro bruno, accento terracotta
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Colori base */
  --cream:        #FAF9F5;
  --cream-deep:   #F4F1EA;
  --paper:        #FFFFFF;
  --ink:          #1F1B16;
  --ink-70:       rgba(31,27,22,0.70);
  --ink-45:       rgba(31,27,22,0.45);
  --ink-10:       rgba(31,27,22,0.07);

  /* Accento — Blu Petrolio (era Terracotta) */
  --accent:       #2F6E68;
  --accent-dark:  #204E4A;
  --accent-dim:   #DCEBE9;
  --accent-ink:   #FFFFFF;

  /* Stati — riarmonizzati per il petrolio */
  --green:        #5C8A52;
  --green-dim:    #E5EFE0;
  --amber:        #B5862E;
  --amber-dim:    #F5EAD6;
  --blue:         #5E7BA8;
  --blue-dim:     #E5EAF3;
  --red:          #B05A45;
  --red-dim:      #F5E2DC;

  --line:         rgba(31,27,22,0.12);

  /* Raggi (invariati) */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  /* Font (invariati) */
  --serif: 'Source Serif 4', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Ombre (invariate) */
  --shadow-sm: 0 1px 3px rgba(31,27,22,0.06);
  --shadow-md: 0 6px 24px rgba(31,27,22,0.08);
  --shadow-lg: 0 20px 50px rgba(31,27,22,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ───────────────────────────────────────────────
   TYPOGRAPHY
─────────────────────────────────────────────── */
.t-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.t-display em { font-style: italic; color: var(--accent); font-weight: 500; }

.t-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.t-h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.t-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.t-body { font-size: 1rem; color: var(--ink-70); line-height: 1.7; }
.t-small { font-size: 0.875rem; color: var(--ink-70); }

/* ───────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────── */
.btn-cz-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-cz-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: var(--accent-ink); }
.btn-cz-primary:disabled { background: var(--ink-45); cursor: not-allowed; transform: none; }

.btn-cz-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-cz-ghost:hover { border-color: var(--ink); background: var(--ink-10); transform: translateY(-1px); color: var(--ink); }

.btn-cz-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-cz-dark:hover { background: #353026; transform: translateY(-1px); color: var(--cream); }

/* ───────────────────────────────────────────────
   BADGES
─────────────────────────────────────────────── */
.badge-cz {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}
.badge-cz.green  { background: var(--green-dim); color: var(--green); }
.badge-cz.amber  { background: var(--amber-dim); color: var(--amber); }
.badge-cz.blue   { background: var(--blue-dim); color: var(--blue); }
.badge-cz.accent { background: var(--accent-dim); color: var(--accent-dark); }

/* ───────────────────────────────────────────────
   NAVBAR
─────────────────────────────────────────────── */
#mainNav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,249,245,0.90);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s;
}
#mainNav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-logo em { font-style: normal; color: var(--accent); translate: no;}
.nav-logo-mark { border-radius: 6px; flex-shrink: 0; }

.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.45rem 0.9rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-70);
  border-radius: var(--r-xs);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--ink-10); }

.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--ink);
  font-size: 1.4rem;
}

.nav-mobile {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  z-index: 999;
  padding: 1rem 2rem 1.5rem;
  flex-direction: column; gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: 0.65rem 0.75rem;
  font-weight: 600; color: var(--ink);
  border-radius: var(--r-xs);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 991px) {
  .nav-links, #mainNav .btn-cz-primary { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
}

/* ───────────────────────────────────────────────
   HERO
─────────────────────────────────────────────── */
.hero {
  padding: 6.5rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--accent);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink-70);
  margin-bottom: 2rem;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4.5rem; }

/* Hero dashboard preview */
.hero-dashboard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.dash-topbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  background: var(--ink);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #E0796A; }
.dash-dot.y { background: #E0B85C; }
.dash-dot.g { background: #8CAE7E; }

.dash-tabs { margin-left: 1.25rem; display: flex; gap: 0.25rem; }
.dash-tab {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-xs);
  color: rgba(250,249,245,0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dash-tab.active { background: rgba(250,249,245,0.14); color: var(--cream); }

.dash-body { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr; gap: 1px; background: var(--line); }
.dash-col { background: var(--paper); padding: 1.25rem 1.5rem; }
.dash-col-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 1rem;
}

.dash-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: 0.84rem;
}
.dash-row:last-child { border-bottom: none; }
.dash-name { font-weight: 600; color: var(--ink); }
.dash-sub { font-size: 0.75rem; color: var(--ink-45); }
.dash-big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.7rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

@media (max-width: 767px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-bg-word { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-tabs { display: none; }
}

/* ───────────────────────────────────────────────
   SECTION SHELL
─────────────────────────────────────────────── */
.section-wrap { max-width: 1160px; margin: 0 auto; padding: 5.5rem 2rem; }
.section-header { margin-bottom: 3.5rem; }

.bg-paper-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-ink-section { background: var(--ink); }

@media (max-width: 767px) {
  .section-wrap { padding: 3.5rem 1.25rem; }
}

/* ───────────────────────────────────────────────
   SERVICE CARDS
─────────────────────────────────────────────── */
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.si-accent { background: var(--accent-dim); color: var(--accent-dark); }
.si-green  { background: var(--green-dim); color: var(--green); }
.si-amber  { background: var(--amber-dim); color: var(--amber); }
.si-dark   { background: var(--ink-10); color: var(--ink); }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.tag-pill {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--ink-10);
  color: var(--ink-70);
}

/* ───────────────────────────────────────────────
   FLAGSHIP (HR GESTIONALE)
─────────────────────────────────────────────── */
.flagship-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 2rem;
}

.feature-checklist { list-style: none; padding: 0; margin: 0; }
.feature-checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.55rem 0;
  font-size: 0.94rem; color: var(--ink);
  border-bottom: 1px solid var(--ink-10);
}
.feature-checklist li:last-child { border-bottom: none; }
.feature-checklist i { color: var(--accent-dark); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.flagship-visual-panel {
  background: var(--cream);
  border-left: 1px solid var(--line);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}

@media (max-width: 767px) {
  .flagship-visual-panel { border-left: none; border-top: 1px solid var(--line); }
}

.ui-mock-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.25rem; }
.ui-mock-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 0.75rem; }
.ui-mock-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.45rem 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: 0.83rem; color: var(--ink-70);
}
.ui-mock-row:last-child { border-bottom: none; }

/* ───────────────────────────────────────────────
   PHONE MOCKUP
─────────────────────────────────────────────── */
.phone-shell {
  background: var(--ink);
  border-radius: 40px;
  padding: 1.5rem 1rem 2rem;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(250,249,245,0.08);
}
.phone-notch { width: 72px; height: 7px; background: rgba(250,249,245,0.15); border-radius: 100px; margin: 0 auto 1.25rem; }
.phone-screen { background: var(--cream); border-radius: 24px; padding: 1.1rem; overflow: hidden; }
.phone-screen-header { font-weight: 700; font-size: 0.82rem; color: var(--ink); margin-bottom: 0.9rem; }
.ph-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.85rem; margin-bottom: 0.6rem; }
.ph-card-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 0.3rem; }
.ph-card-val { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); }
.ph-card-sub { font-size: 0.68rem; color: var(--ink-45); margin-top: 0.15rem; }
.ph-row { display: flex; gap: 0.5rem; }
.ph-mini { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.65rem 0.5rem; text-align: center; }
.ph-mini .lbl { font-size: 0.6rem; color: var(--ink-45); font-weight: 600; }
.ph-mini .val { font-size: 0.85rem; font-weight: 700; margin-top: 2px; }
.ph-mini .val.green { color: var(--green); }
.ph-mini .val.amber { color: var(--amber); }

/* ───────────────────────────────────────────────
   PROCESS STEPS
─────────────────────────────────────────────── */
.process-step-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; height: 100%; position: relative; }
.step-num { font-family: var(--serif); font-weight: 500; font-size: 2.9rem; line-height: 1; color: var(--accent-dim); margin-bottom: 0.75rem; }

/* ───────────────────────────────────────────────
   FAQ ACCORDION
─────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.65rem; background: var(--paper); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700; font-size: 0.98rem;
  color: var(--ink);
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--sans);
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent-dark); }
.faq-q i { transition: transform 0.25s; flex-shrink: 0; font-size: 0.85rem; color: var(--ink-45); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 1.5rem; max-height: 0; overflow: hidden; font-size: 0.93rem; color: var(--ink-70); transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* ───────────────────────────────────────────────
   CTA BAND
─────────────────────────────────────────────── */
.cta-band { background: var(--ink); padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 100%, rgba(47,110,104,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band .t-display { color: var(--cream); }
.cta-band .t-display em { color: #3F8C84; }
.cta-band .t-label { color: #3F8C84; }
.cta-band p { color: rgba(250,249,245,0.62); }

/* ───────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────── */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3rem 2rem; }
.footer-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo em { font-style: normal; color: var(--accent); translate: no; }
.footer-logo-mark { border-radius: 5px; flex-shrink: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.footer-links a { font-size: 0.87rem; color: var(--ink-70); padding: 0.3rem 0.6rem; border-radius: var(--r-xs); transition: color 0.15s, background 0.15s; }
.footer-links a:hover { color: var(--ink); background: var(--ink-10); }
.footer-copy { font-size: 0.8rem; color: var(--ink-45); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }

/* ───────────────────────────────────────────────
   CHATBOT
─────────────────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 2000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(31,27,22,0.28);
  font-size: 1.3rem;
  transition: background 0.2s, transform 0.15s;
}
.chat-fab:hover { background: var(--accent); transform: translateY(-2px); }
.chat-fab .ico-close { display: none; }
.chat-fab.open .ico-chat { display: none; }
.chat-fab.open .ico-close { display: block; }

.chat-win {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 1999;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 460px; max-height: calc(100vh - 8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-win.open { display: flex; }

.chat-win-header { background: var(--ink); color: var(--cream); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 0.9rem;
  flex-shrink: 0;
}
.chat-win-title { font-weight: 700; font-size: 0.9rem; }
.chat-win-sub { font-size: 0.75rem; color: rgba(250,249,245,0.58); }

.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem; background: var(--cream); }
.chat-bubble { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: var(--r-md); font-size: 0.86rem; line-height: 1.55; }
.chat-bubble.bot { background: var(--paper); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-opts { display: flex; flex-direction: column; gap: 0.4rem; align-self: stretch; }
.chat-opt-btn {
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.83rem; font-weight: 600;
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--sans);
}
.chat-opt-btn:hover { border-color: var(--accent); background: var(--accent-dim); }

.chat-footer-bar { padding: 0.75rem 1rem; border-top: 1px solid var(--line); background: var(--paper); font-size: 0.76rem; color: var(--ink-45); text-align: center; flex-shrink: 0; }
.chat-footer-bar a { color: var(--accent-dark); font-weight: 600; }

@media (max-width: 480px) {
  .chat-win { width: calc(100vw - 1.5rem); right: 0.75rem; bottom: 4.5rem; }
  .chat-fab { right: 1rem; bottom: 1rem; }
}

/* ───────────────────────────────────────────────
   CACHE STATUS BADGE
─────────────────────────────────────────────── */
.cache-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(92,122,82,0.2);
  cursor: default;
  user-select: none;
}
.cache-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cache-badge.miss { background: var(--ink-10); color: var(--ink-45); border-color: var(--line); }
.cache-badge.miss .dot { background: var(--ink-45); }

/* ───────────────────────────────────────────────
   PAGE HEADER (pagina Contatti)
─────────────────────────────────────────────── */
.page-header {
  padding: 5rem 2rem 4rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}

.contact-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; padding: 3rem 1.25rem; }
}

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2.5rem; box-shadow: var(--shadow-sm); }
@media (max-width: 767px) { .form-card { padding: 1.75rem; } }

.form-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--ink); margin-bottom: 0.5rem; }
.form-card .form-sub { font-size: 0.9rem; color: var(--ink-45); margin-bottom: 2rem; }

label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
label .req { color: var(--accent-dark); }

input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 0.94rem;
  color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}
textarea { resize: vertical; min-height: 130px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231F1B16' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint { font-size: 0.78rem; color: var(--ink-45); margin-top: 0.3rem; }

.form-status { margin-top: 1.25rem; font-size: 0.9rem; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); display: none; }
.form-status.success { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--green-dim); color: var(--green); }
.form-status.error   { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--red-dim); color: var(--red); }

.info-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; transition: border-color 0.2s; }
.info-card:hover { border-color: var(--accent); }
.info-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}
.info-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.info-card p, .info-card a { font-size: 0.9rem; color: var(--ink-70); }
.info-card a { color: var(--accent-dark); font-weight: 600; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; }
.trust-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.83rem; font-weight: 600; color: var(--ink-70); }
.trust-item i { color: var(--green); }

@media (max-width: 767px) {
  .page-header { padding: 3.5rem 1.25rem 3rem; }
}
