/* ═══════════════════════════════════════════════════════════
   INGEKO SRL – SITO IN COSTRUZIONE
   Stylesheet v2.0 – Brand palette ufficiale
   Palette: Navy #1a2f5a · Steel Blue #2169a6 · Green #2d7a3a
   Tipografia: Barlow Condensed + Barlow + IBM Plex Mono
═══════════════════════════════════════════════════════════ */

:root {
  --brand-navy:      #1a2f5a;
  --brand-blue:      #2169a6;
  --brand-blue-light:#3b8fd4;
  --brand-green:     #2d7a3a;
  --brand-gray:      #5a6472;

  --clr-bg:          #080c14;
  --clr-surface:     rgba(255,255,255,0.04);
  --clr-surface-h:   rgba(59,143,212,0.10);
  --clr-border:      rgba(255,255,255,0.10);

  --clr-white:       #ffffff;
  --clr-white-80:    rgba(255,255,255,0.80);
  --clr-white-60:    rgba(255,255,255,0.60);
  --clr-white-35:    rgba(255,255,255,0.35);

  --clr-accent:      #3b8fd4;
  --clr-accent-dim:  rgba(59,143,212,0.18);

  --ff-display:  'Barlow Condensed', sans-serif;
  --ff-body:     'Barlow', sans-serif;
  --ff-mono:     'IBM Plex Mono', monospace;

  --transition:  0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:      6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
address { font-style: normal; }
img { max-width: 100%; display: block; }

/* ── TOP BRAND LINE ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--brand-green) 0%,
    var(--brand-blue) 35%,
    var(--brand-blue-light) 65%,
    var(--brand-navy) 100%
  );
  z-index: 100;
}

/* ── BACKGROUND ─────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: brightness(0.58) saturate(1.1);
  transform: scale(1.04);
  animation: bgBreath 20s ease-in-out infinite alternate;
}

@keyframes bgBreath {
  from { transform: scale(1.00); filter: brightness(0.55) saturate(1.0); }
  to   { transform: scale(1.06); filter: brightness(0.64) saturate(1.2); }
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,0.20) 0%,
    rgba(8,12,20,0.05) 30%,
    rgba(8,12,20,0.52) 75%,
    rgba(8,12,20,0.92) 100%
  );
}

/* ── NOISE ──────────────────────────────────────────────── */
.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── PAGE WRAPPER ───────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2.8rem, 6vw, 5.5rem) clamp(1.25rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  gap: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: 860px;
  text-align: center;
  animation: fadeDown 0.9s var(--transition) both;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-wrap { display: flex; justify-content: center; }

.logo {
  width: clamp(200px, 36vw, 310px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(33,105,166,0.40));
  transition: filter var(--transition), transform var(--transition);
}

.logo:hover {
  filter: drop-shadow(0 6px 38px rgba(59,143,212,0.60));
  transform: translateY(-3px);
}

.header-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,143,212,0.30) 30%,
    rgba(59,143,212,0.50) 50%,
    rgba(59,143,212,0.30) 70%,
    transparent 100%
  );
}

.rule-badge {
  font-family: var(--ff-mono);
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  color: var(--clr-accent);
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── MAIN ───────────────────────────────────────────────── */
.site-main {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.3rem, 2.6vw, 2rem);
  flex: 1;
  justify-content: center;
  animation: fadeUp 1s 0.2s var(--transition) both;
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: clamp(0.58rem, 1.3vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.eyebrow-dot:last-child { animation-delay: 1.2s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.28; transform: scale(0.50); }
}

.headline {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.headline-top {
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--clr-white-60);
}

.headline-main {
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
  background: linear-gradient(
    125deg,
    #ffffff 0%,
    rgba(255,255,255,0.80) 45%,
    var(--brand-blue-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.description {
  font-size: clamp(0.86rem, 1.85vw, 1rem);
  font-weight: 300;
  line-height: 1.82;
  color: var(--clr-white-60);
  max-width: 520px;
}

.description strong {
  color: var(--clr-white);
  font-weight: 500;
}

.section-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
  gap: 1rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,143,212,0.25) 50%,
    transparent 100%
  );
}

.divider-icon {
  color: var(--clr-accent);
  font-size: 1rem;
  opacity: 0.72;
  animation: spin 14s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CONTACT GRID ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 780px;
  background: rgba(59,143,212,0.20);
  border: 1px solid rgba(59,143,212,0.24);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 1s 0.45s var(--transition) both;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: clamp(1.1rem, 2.8vw, 1.85rem) 1rem;
  background: rgba(10,18,36,0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition);
  cursor: default;
  text-align: center;
}

a.contact-card { cursor: pointer; }

a.contact-card:hover {
  background: rgba(33,105,166,0.24);
}

a.contact-card:hover .contact-icon {
  color: var(--clr-accent);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: clamp(1.1rem, 2.3vw, 1.40rem);
  color: var(--clr-white-60);
  transition: color var(--transition), transform var(--transition);
  margin-bottom: 0.08rem;
}

.contact-label {
  font-family: var(--ff-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.contact-value {
  font-size: clamp(0.68rem, 1.4vw, 0.84rem);
  font-weight: 400;
  color: var(--clr-white-60);
  line-height: 1.55;
  word-break: break-word;
}

/* ── SOCIAL ─────────────────────────────────────────────── */
.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  animation: fadeUp 1s 0.60s var(--transition) both;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.56rem 1.2rem;
  border: 1px solid rgba(59,143,212,0.28);
  border-radius: var(--radius);
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white-60);
  background: rgba(10,18,36,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.social-btn:hover, .social-btn:focus-visible {
  color: var(--clr-white);
  transform: translateY(-3px);
}

.social-btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

.social-btn--linkedin:hover {
  border-color: #0a66c2;
  background: rgba(10,102,194,0.20);
  box-shadow: 0 6px 26px rgba(10,102,194,0.28);
}

.social-btn--tiktok:hover {
  border-color: #fe2c55;
  background: rgba(254,44,85,0.15);
  box-shadow: 0 6px 26px rgba(254,44,85,0.24);
}

.social-btn i { font-size: 0.86rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  max-width: 860px;
  animation: fadeUp 1s 0.75s var(--transition) both;
}

.footer-inner {
  border-top: 1px solid rgba(59,143,212,0.20);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer-legal {
  font-family: var(--ff-mono);
  font-size: clamp(0.48rem, 1.05vw, 0.58rem);
  letter-spacing: 0.08em;
  color: var(--clr-white-35);
  line-height: 1.9;
}

.footer-legal strong { color: var(--clr-white-60); }

.footer-legal a {
  color: var(--clr-accent);
  transition: opacity var(--transition);
}

.footer-legal a:hover { opacity: 0.72; }

.footer-copy {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--clr-white-35);
}

/* ── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-break { display: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card:nth-child(3) { grid-column: auto; }
  .mobile-break { display: block; }
  .headline-main { font-size: clamp(2.7rem, 12vw, 4.5rem); }
  .logo { width: clamp(155px, 55vw, 230px); }
  .social-btn span { display: none; }
  .social-btn { padding: 0.62rem 1rem; }
  .social-btn i { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
