/* ==========================================================================
   LIBRAM - Pagina di cortesia (WIP / Manutenzione)
   Foglio autonomo: non dipende da style.css, così la pagina resta leggera
   e funziona anche quando il resto del sito è offline.
   ========================================================================== */

:root {
  --wip-text: #152742;
  --wip-muted: #58697f;
  --wip-primary: #0f43a6;
  --wip-primary-hover: #0b3585;
  --wip-secondary: #63addb;
  --wip-navy: #0a1e3f;
  --wip-amber: #f59e0b;
  --wip-border: rgba(21, 39, 66, 0.12);
  --wip-surface: rgba(255, 255, 255, 0.82);
  --wip-font-body: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wip-font-display: 'Boska', Georgia, 'Times New Roman', serif;
}

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

html, body { min-height: 100%; }

body.wip-page {
  font-family: var(--wip-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wip-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Stesso pattern "blueprint" del footer istituzionale */
  background-color: #edf5fc;
  background-image:
    radial-gradient(rgba(15, 67, 166, 0.08) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(15, 67, 166, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 67, 166, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #f4f9fe 0%, #e1effa 100%);
  background-size: 24px 24px, 24px 24px, 24px 24px, 100% 100%;
}

body.wip-page.has-bg-image {
  background-image:
    linear-gradient(180deg, rgba(244, 249, 254, 0.94) 0%, rgba(225, 239, 250, 0.9) 100%),
    var(--wip-bg-image);
  background-size: 100% 100%, cover;
  background-position: center;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wip-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ------------------------------------------------------------ */
.wip-header { padding: 32px 0 0; }
.wip-brand { display: inline-flex; flex-direction: column; gap: 4px; }
.wip-brand img { height: 46px; width: auto; }
.wip-brand span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--wip-secondary);
  letter-spacing: 0.01em;
}

/* --- Main -------------------------------------------------------------- */
.wip-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0 48px;
}

.wip-hero { max-width: 760px; }

.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--wip-border);
  box-shadow: 0 4px 18px rgba(15, 67, 166, 0.06);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wip-navy);
  margin-bottom: 26px;
}
.wip-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wip-amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: wip-pulse 2.2s ease-out infinite;
}
@keyframes wip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.wip-title {
  font-family: var(--wip-font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--wip-navy);
  margin-bottom: 22px;
}
.wip-title em { font-style: normal; color: var(--wip-primary); }

.wip-lead {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--wip-muted);
  max-width: 620px;
  margin-bottom: 18px;
}
.wip-lead p + p { margin-top: 12px; }

.wip-eta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wip-text);
  margin-bottom: 30px;
}
.wip-eta svg { color: var(--wip-primary); flex-shrink: 0; }

.wip-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.wip-btn:hover { transform: translateY(-1px); }
.wip-btn:focus-visible { outline: 3px solid rgba(15, 67, 166, 0.35); outline-offset: 3px; }
.wip-btn-primary { background: var(--wip-primary); color: #ffffff; box-shadow: 0 10px 24px rgba(15, 67, 166, 0.22); }
.wip-btn-primary:hover { background: var(--wip-primary-hover); }
.wip-btn-ghost { background: #ffffff; color: var(--wip-primary); border: 1px solid var(--wip-border); }
.wip-btn-ghost:hover { border-color: var(--wip-primary); }

/* --- Sedi -------------------------------------------------------------- */
.wip-hubs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wip-hub {
  background: var(--wip-surface);
  backdrop-filter: blur(6px);
  border: 1px solid var(--wip-border);
  border-radius: 14px;
  padding: 20px 22px;
}
.wip-hub-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5080;
  background: rgba(99, 173, 219, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.wip-hub h2 {
  font-family: var(--wip-font-display);
  font-size: 1.18rem;
  color: var(--wip-navy);
  margin-bottom: 4px;
  line-height: 1.25;
}
.wip-hub p { font-size: 0.88rem; color: var(--wip-muted); line-height: 1.5; }
.wip-hub a.wip-hub-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--wip-primary);
}
.wip-hub a.wip-hub-phone:hover { text-decoration: underline; }

/* --- Footer ------------------------------------------------------------ */
.wip-footer {
  border-top: 1px solid #cbdde9;
  padding: 22px 0 26px;
  font-size: 0.8rem;
  color: #475569;
}
.wip-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.wip-footer-group { display: flex; align-items: center; gap: 12px; }
.wip-footer-group img { height: 34px; width: auto; }
.wip-footer a:hover { color: var(--wip-primary); }
.wip-footer-dinova { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .wip-hubs { grid-template-columns: 1fr; }
  .wip-main { padding: 40px 0 36px; }
}
@media (max-width: 520px) {
  .wip-header { padding-top: 24px; }
  .wip-brand img { height: 38px; }
  .wip-actions .wip-btn { width: 100%; }
  .wip-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .wip-badge-dot { animation: none; }
  .wip-btn:hover { transform: none; }
}
