/* =================================================================
   WOLFCODING — Company Deck: componenti delle slide.
   Tutte le regole sono sotto .slide: il file è caricato anche
   nell'editor senza interferire con le altre pagine.
   (La parte "presentazione a schermo intero" è in deck-page.css)
   ================================================================= */

.slide {
  --green-glow: rgba(46, 230, 160, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--text, #fff);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79,184,232,0.08), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(20,32,85,0.6), transparent 60%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 60%, #0d1638 100%);
}
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }
.slide h1, .slide h2, .slide h3, .slide p, .slide figure { margin: 0; }

.slide .slide-inner {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.slide :where(.slide-inner) > * { margin-top: 0; margin-bottom: 0; }

/* decorazione "rete" su cover e closing */
.slide.cover::before,
.slide.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(79,184,232,0.18), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(79,184,232,0.10), transparent 40%);
  pointer-events: none;
}

/* ---------- TIPOGRAFIA ---------- */
.slide .cover-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.slide .cover-title .accent { color: var(--brand); -webkit-text-fill-color: var(--brand); }

.slide h2:not(.cover-title) {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.slide h2 .light { color: var(--text); }
.slide .accent { color: var(--brand); }

.slide .is-style-lead,
.slide .slide-body {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 60ch;
}
.slide .is-style-lead + .slide-body { margin-top: 1rem; }

.slide .is-style-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---------- COVER ---------- */
.slide.cover { text-align: left; }
.slide .frame {
  border: 2px solid var(--brand);
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
  background: rgba(5,9,24,0.7);
  backdrop-filter: blur(8px);
  align-self: flex-start;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(79,184,232,0.15);
}
.slide :where(.frame) > * { margin-top: 0; margin-bottom: 0; }
.slide .wolf img,
.slide .closing-wolf img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(79,184,232,0.4));
}
.slide .wolf,
.slide .closing-wolf { margin-bottom: 1.2rem !important; }
.slide .closing-wolf img { width: 90px; height: 90px; margin: 0 auto; }

.slide .tagline {
  color: var(--brand);
  letter-spacing: 0.25em;
  margin-top: 1.2rem !important;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  border-top: 1px solid rgba(79,184,232,0.3);
  padding-top: 1.2rem;
}
.slide .supporting {
  color: var(--text-dim);
  margin-top: 0.7rem !important;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.5;
  max-width: 50ch;
}
.slide .meta {
  margin-top: 2rem !important;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.slide .meta::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--brand);
}

/* ---------- CLOSING ---------- */
.slide.closing { text-align: center; }
.slide.closing .slide-inner { align-items: center; }
.slide.closing .frame {
  align-self: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  max-width: 800px;
}
.slide.closing .cover-title { font-size: clamp(2rem, 5vw, 4rem); }
.slide .main {
  margin-top: 1.5rem !important;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem !important;
}
.slide .sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.5rem !important;
}
.slide .url-bar {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(79,184,232,0.3);
  color: var(--brand);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- GRIGLIE: azzerano i margini dei figli ---------- */
.slide .two-col > *, .slide .kpis > *, .slide .services-grid > *, .slide .num-list > *,
.slide .sector-grid > *, .slide .certs > *, .slide .contact-card > *, .slide .growth-layout > *,
.slide .growth-side-kpis > *, .slide .kpi > *, .slide .svc > *, .slide .cert > *,
.slide .sector-tile > *, .slide .contact > *, .slide .item > * { margin: 0; }

/* ---------- DUE COLONNE ---------- */
.slide .two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.slide .two-col.flip { grid-template-columns: 1fr 1.1fr; }
.slide .two-col > * > * + * { margin-top: 0; }

/* ---------- GRAFICO CRESCITA ---------- */
.slide .growth-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 1.5rem;
}
.growth-chart-box {
  background: linear-gradient(180deg, rgba(79, 184, 232, 0.05), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.growth-chart-box .chart-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 1rem;
}
.growth-chart-svg { width: 100%; height: 280px; display: block; }
.growth-chart-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 0.8rem;
  line-height: 1.4;
}
.slide .growth-side-kpis { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- KPI ---------- */
.slide .kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.slide .kpis.cols-2 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.slide .kpi {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(79,184,232,0.06), rgba(79,184,232,0.0));
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  position: relative;
  overflow: hidden;
}
.slide .kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--green));
}
.slide .kpi .num {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.slide .kpi .num .unit {
  font-size: 0.5em;
  color: var(--brand);
  margin-left: 0.2em;
  font-weight: 700;
}
.slide .kpi .label {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.slide .kpi .trend {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

/* ---------- SERVIZI ---------- */
.slide .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}
.slide .svc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: rgba(255,255,255,0.02);
  transition: border-color 200ms, transform 200ms;
}
.slide .svc:hover { border-color: var(--brand); transform: translateY(-2px); }
.slide .svc .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.slide .svc .ico svg { width: 22px; height: 22px; }
.slide .svc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.slide .svc p { font-size: 0.88rem; line-height: 1.5; color: var(--text-dim); }

/* ---------- ELENCO NUMERATO ---------- */
.slide .num-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.slide .num-list.cols-1 { grid-template-columns: 1fr; margin-top: 0; }
.slide .num-list .item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.slide .num-list .item .n {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 2rem;
  flex-shrink: 0;
}
.slide .num-list .item .t {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.slide .num-list .item .t strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* ---------- SETTORI ---------- */
.slide .sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.slide .sector-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.2rem;
  background: rgba(255,255,255,0.025);
  transition: border-color 200ms, transform 200ms;
  position: relative;
}
.slide .sector-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.slide .sector-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 1.2rem;
  width: 24px;
  height: 2px;
  background: var(--brand);
}
.slide .sector-tile h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.3rem 0 0.5rem 0;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.slide .sector-tile p { font-size: 0.82rem; line-height: 1.5; color: var(--text-dim); }

/* ---------- CERTIFICAZIONI ---------- */
.slide .certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.slide .cert {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}
.slide .cert::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  opacity: 0.7;
}
.slide .cert .iso {
  font-family: 'Courier New', monospace;
  font-weight: 800;
  color: var(--brand);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.slide .cert .desc { margin-top: 0.4rem; font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }
.slide .cert .issuer {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.slide .cert.is-highlight {
  background: linear-gradient(135deg, rgba(79,184,232,0.15), rgba(46,230,160,0.05));
  border-color: var(--brand);
}
.slide .cert.is-highlight .iso { color: var(--text); }
.slide .cert.is-highlight .desc { color: var(--brand); font-weight: 600; }

/* ---------- DATI SOCIETARI ---------- */
.slide .institutional {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  margin-top: 1.5rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.slide .institutional .row { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.3rem 0; }
.slide .institutional .k {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
}
.slide .institutional .v { font-size: 0.92rem; color: var(--text); font-weight: 500; }

/* ---------- CONTATTI ---------- */
.slide .contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.slide .contact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(79,184,232,0.06), rgba(79,184,232,0));
}
.slide .contact .role {
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}
.slide .contact .name { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.slide .contact .email { color: var(--text-dim); font-size: 0.95rem; word-break: break-all; }
