/*
Theme Name: Infinitek
Theme URI: https://www.infinitek.it/
Author: Infinitek S.r.l.
Description: Tema a blocchi su misura per Infinitek — consulenza IT e implementazione Panthera ERP. Palette navy/blu/argento derivata dal logo aziendale.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infinitek
*/

/* ==========================================================================
   Le variabili di colore/tipografia arrivano da theme.json.
   Qui stanno i dettagli grafici che theme.json non copre.
   ========================================================================== */

:root {
  --ik-border:   rgba(255,255,255,0.09);
  --ik-border-2: rgba(120,170,255,0.28);
  --ik-surface:  rgba(255,255,255,0.035);
  --ik-surface-2:rgba(255,255,255,0.06);
  --ik-shadow:   0 30px 80px -30px rgba(0,0,0,0.75);
  --ik-shadow-blue: 0 20px 50px -18px rgba(31,107,255,0.55);
}

/* ===== Sfondo ambientale (bagliori + griglia) ===== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(31,107,255,0.20), transparent 60%),
    radial-gradient(45vw 45vw at 8% 12%, rgba(111,168,255,0.10), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ===== Header ===== */
.wp-site-blocks > header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,10,20,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ik-border);
}

/* ===== Logo animato: la linfa blu che scorre nell'infinito ===== */
.ik-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.ik-mark { position: relative; width: 74px; height: 35px; flex: none; }
.ik-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ik-mark .ik-flow {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: var(--ik-mark-img); mask-image: var(--ik-mark-img);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background: linear-gradient(100deg,
    transparent 0%, rgba(31,107,255,.15) 18%, rgba(45,127,255,.85) 34%,
    rgba(150,210,255,1) 44%, rgba(255,255,255,.95) 50%,
    rgba(150,210,255,1) 56%, rgba(45,127,255,.85) 66%,
    rgba(31,107,255,.15) 82%, transparent 100%);
  background-size: 280% 100%;
  mix-blend-mode: screen;
  animation: ik-flow 3.6s linear infinite;
}
@keyframes ik-flow { from { background-position: 260% 0 } to { background-position: -40% 0 } }

.ik-wordmark {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700; font-size: 1.3rem; letter-spacing: .28em;
  color: var(--wp--preset--color--contrast);
}
.ik-wordmark .k {
  background: var(--wp--preset--gradient--brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== Hero ===== */
/* Niente logo di sfondo: sovrapposto al testo lo rendeva illeggibile.
   La profondita' la danno gia' i bagliori ambientali su body::before. */
.ik-hero { position: relative; overflow: hidden; }
.ik-hero > .wp-block-group { position: relative; z-index: 2; }

.ik-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border: 1px solid var(--ik-border);
  background: var(--ik-surface); border-radius: 999px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--wp--preset--color--contrast);
}
.ik-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--wp--preset--color--primary-light);
  box-shadow: 0 0 12px var(--wp--preset--color--primary-light);
}

.ik-eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .76rem;
  font-weight: 600; color: var(--wp--preset--color--primary-light);
}
.ik-grad-text {
  background: var(--wp--preset--gradient--brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== Card servizi ===== */
.ik-card {
  position: relative; background: var(--ik-surface);
  border: 1px solid var(--ik-border); border-radius: 20px;
  padding: 2rem 1.9rem; overflow: hidden;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.ik-card:hover { transform: translateY(-6px); background: var(--ik-surface-2); box-shadow: var(--ik-shadow); }
.ik-card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(150deg, rgba(45,127,255,0.22), rgba(45,127,255,0.05));
  border: 1px solid var(--ik-border-2); margin-bottom: 1.3rem;
}
.ik-card-icon svg { width: 24px; height: 24px; stroke: var(--wp--preset--color--primary-light); fill: none; stroke-width: 1.8; }

/* ===== Elenco con spunta ===== */
.ik-check { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; }
.ik-check li { position: relative; padding-left: 2.1rem; margin-bottom: .85rem; color: var(--wp--preset--color--contrast); }
.ik-check li::before {
  content: "\2713"; position: absolute; left: 0; top: .05em;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: var(--wp--preset--gradient--brand); color: #04101f;
  border-radius: 50%; font-size: .78rem; font-weight: 800;
}

/* ===== Pannello statistiche ===== */
.ik-panel {
  border-radius: 20px; padding: 2.2rem;
  background: linear-gradient(160deg, rgba(31,107,255,0.16), rgba(13,21,38,0.6));
  border: 1px solid var(--ik-border-2); box-shadow: var(--ik-shadow);
}
.ik-stat { padding: 1rem 0; border-bottom: 1px solid var(--ik-border); }
.ik-stat:last-child { border-bottom: none; }
.ik-stat b {
  display: block; font-family: var(--wp--preset--font-family--display);
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--wp--preset--color--contrast);
}

/* ===== Team ===== */
.ik-team-card {
  background: var(--ik-surface); border: 1px solid var(--ik-border);
  border-radius: 20px; padding: 2.3rem 2rem; text-align: center;
  transition: transform .2s, border-color .2s;
}
.ik-team-card:hover { transform: translateY(-4px); border-color: var(--ik-border-2); }
.ik-avatar {
  width: 78px; height: 78px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; color: #04101f;
  font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.5rem;
  background: var(--wp--preset--gradient--brand); box-shadow: var(--ik-shadow-blue);
}

/* ===== Form (Fluent Forms / Contact Form 7) ===== */
.ik-form-wrap {
  background: var(--ik-surface); border: 1px solid var(--ik-border);
  border-radius: 20px; padding: 2.2rem;
}
.ik-form-wrap input[type=text], .ik-form-wrap input[type=email],
.ik-form-wrap input[type=tel], .ik-form-wrap textarea, .ik-form-wrap select {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--ik-border); background: rgba(0,0,0,0.25);
  color: var(--wp--preset--color--contrast); font-family: inherit; font-size: .98rem;
  transition: border-color .15s, box-shadow .15s;
}
.ik-form-wrap input:focus, .ik-form-wrap textarea:focus {
  outline: none; border-color: var(--wp--preset--color--primary-light);
  box-shadow: 0 0 0 3px rgba(45,127,255,0.14);
}
.ik-form-wrap label { font-size: .88rem; color: var(--wp--preset--color--contrast); }

.ik-team-card h3 { margin-bottom: .15rem; }
.ik-team-role {
  color: var(--wp--preset--color--primary-light); font-weight: 600;
  font-size: .9rem; letter-spacing: .04em; margin-bottom: .9rem;
}

/* ===== Elenco contatti ===== */
.ik-contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.ik-contact-list li { display: flex; flex-direction: column; margin-bottom: 1.3rem; }
.ik-contact-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .7rem;
  color: #6f82a3; margin-bottom: .25rem;
}
.ik-contact-list a, .ik-contact-list li > span:last-child {
  color: var(--wp--preset--color--contrast); font-size: 1.12rem; font-weight: 500;
}
.ik-contact-list a:hover { color: var(--wp--preset--color--primary-light); }

/* ===== Elenchi del footer ===== */
.ik-footer-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.ik-footer-list li { margin-bottom: .5rem; }
.ik-footer-list a { color: var(--wp--preset--color--muted); font-size: .92rem; }
.ik-footer-list a:hover { color: var(--wp--preset--color--contrast); }

/* ===== Fascia di riepilogo ===== */
.ik-trust {
  border-top: 1px solid var(--ik-border); border-bottom: 1px solid var(--ik-border);
  background: rgba(255,255,255,0.015);
}
.ik-trust b { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--contrast); }

/* ===== Footer ===== */
.wp-site-blocks > footer { border-top: 1px solid var(--ik-border); }
.ik-legal { border-top: 1px solid var(--ik-border); padding-top: 1.6rem; }
.ik-legal p { font-size: .81rem; color: #6f82a3; }

/* ===== Comparsa allo scroll ===== */
.js .ik-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .ik-reveal.is-visible { opacity: 1; transform: none; }

/* ===== Accessibilità ===== */
@media (prefers-reduced-motion: reduce) {
  .ik-mark .ik-flow { animation: none; }
  .ik-reveal { opacity: 1 !important; transform: none !important; }
}
