/* Video2000 — foglio di stile */

:root {
  --paper: #f7f7f4;
  --surface: #ffffff;
  --ink: #0e0f12;
  --muted: #5a5d65;
  --line: #e3e3de;
  --accent: #1f4fff;
  --accent-ink: #ffffff;
  --accent-soft: #e8edff;
  --screen: #0b0c10;
  --screen-glow: rgba(70, 110, 255, .35);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 15, 18, .04), 0 8px 24px rgba(14, 15, 18, .06);
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0d10;
    --surface: #15161b;
    --ink: #f1f1ee;
    --muted: #a0a3ab;
    --line: #26282e;
    --accent: #7b98ff;
    --accent-ink: #0c0d10;
    --accent-soft: #1a2142;
    --screen: #050608;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0c0d10;
  --surface: #15161b;
  --ink: #f1f1ee;
  --muted: #a0a3ab;
  --line: #26282e;
  --accent: #7b98ff;
  --accent-ink: #0c0d10;
  --accent-soft: #1a2142;
  --screen: #050608;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; color: var(--ink); }
.brand svg { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(14, 15, 18, .18); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.nav .btn-sm { margin-left: 8px; color: var(--paper); }
.nav .btn-sm:hover { color: var(--paper); background: var(--ink); }

/* ---------- Eyebrow (richiama i trattini del logo) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 6px;
  flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 10px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 15px 0 / 19px 100% no-repeat;
  transform: skewX(42deg);
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.75rem);
  font-weight: 700;
  margin: 20px 0 20px;
}
.hero h1 .soft { color: var(--muted); font-weight: 600; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--accent); }
.facts strong { color: var(--ink); font-weight: 600; }

/* "Schermo" con il logo */
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: var(--screen);
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(14, 15, 18, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.screen-inner {
  position: relative;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 40%, #1c2140 0%, #0d0f1a 55%, #07080c 100%);
}
.screen-inner::before {
  /* linee di scansione */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.screen-inner::after {
  /* riflesso */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .09) 0%, transparent 38%);
  pointer-events: none;
}
.screen-logo {
  width: 72%;
  color: #fff;
  filter: drop-shadow(0 0 18px var(--screen-glow));
  animation: power-on 1.1s cubic-bezier(.2, .7, .2, 1) both .2s;
}
.screen-led {
  position: absolute;
  right: 26px;
  bottom: -3px;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: #3dff8b;
  box-shadow: 0 0 10px #3dff8b;
}
.screen-stand {
  width: 34%;
  height: 10px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
  background: color-mix(in srgb, var(--ink) 14%, var(--paper));
}

@keyframes power-on {
  0% { opacity: 0; transform: scaleY(.02) scaleX(.6); filter: brightness(3); }
  45% { opacity: 1; transform: scaleY(.02) scaleX(1); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Sezioni ---------- */

.section { padding: 96px 0; }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-top: 16px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* Servizi */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

.band {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.band p { font-size: 1.05rem; max-width: 60ch; }
.band strong { font-weight: 650; }
.band .btn-ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.band .btn-ghost:hover { border-color: var(--paper); }

/* Marchi */
.brands-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.brand-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
}
.brand-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 20px;
}
.brand-group h3 small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
}

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: .98rem;
}
.note svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }

/* Contatti */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li { display: flex; }
.contact-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-width: 0;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.contact-item svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; }
.contact-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-sub { color: var(--muted); font-size: .92rem; }

.visit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.visit h3 { font-size: 1.5rem; font-weight: 700; }
.visit address { font-style: normal; font-size: 1.1rem; line-height: 1.5; margin-top: 12px; color: color-mix(in srgb, var(--paper) 80%, transparent); }

.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours caption {
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  padding-bottom: 10px;
}
.hours th, .hours td {
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  text-align: left;
  font-weight: 500;
}
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed td { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.visit .btn-primary { background: var(--paper); color: var(--ink); align-self: flex-start; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  align-items: start;
}
.footer-logo { width: 150px; color: var(--ink); }
.legal { display: grid; gap: 4px; justify-items: end; text-align: right; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Comparsa progressiva ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .brands-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 520px; }
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .header-inner { height: 64px; }
  .brand svg { width: 132px; }
  .section { padding: 72px 0; }
  .services, .contact-list { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-group, .visit { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .legal { justify-items: start; text-align: left; }
}
