/* ===========================================================
   Computer's World — stylesheet
   Palette: blu/bianco professionale, accenti ciano
   =========================================================== */

:root {
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --accent: #0ea5e9;
  --accent-soft: #e0f2fe;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-section: #f1f5f9;
  --bg-dark: #0f172a;

  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;

  --success: #10b981;
  --danger: #ef4444;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);

  --container: 1200px;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: inherit; line-height: 1.2; margin: 0 0 0.6em; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-light);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); background: #fff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-section); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--bg-section); color: var(--primary-light); }
.nav a.active { color: var(--primary-light); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.header-cta .btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.header-cta .btn-phone:hover { background: var(--accent); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(30, 58, 138, 0.08), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stats .stat { }
.hero-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); display: block; }
.hero-stats .lbl { font-size: 0.85rem; color: var(--text-soft); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.15), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 8px);
}
.hero-visual .float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-visual .float-card svg { width: 24px; height: 24px; flex-shrink: 0; }
.hero-visual .float-1 { top: 18%; left: -5%; }
.hero-visual .float-2 { bottom: 15%; right: -5%; }
.hero-visual .float-3 { top: 55%; left: 8%; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary-light);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card .card-link::after {
  content: "→";
  transition: transform var(--transition);
}
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- About preview ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-grid .visual {
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.15), rgba(30,58,138,0.15)),
    repeating-linear-gradient(135deg, var(--bg-section) 0 12px, var(--bg-alt) 12px 24px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-grid .visual svg { width: 50%; height: auto; opacity: 0.7; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.about-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
}
.about-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Partners strip ---------- */
.partners {
  padding: 2.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 4rem;
}
.partners-inner .label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-soft);
}
.partner-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.partner-logo.cisco { color: #1ba0d7; }
.partner-logo:hover { opacity: 1; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .cta-strip { grid-template-columns: 1.5fr auto; }
}
.cta-strip h2 { color: #fff; margin: 0 0 0.4rem; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-strip .btn-primary { background: #fff; color: var(--primary); }
.cta-strip .btn-primary:hover { background: var(--accent-soft); }
.cta-strip .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-strip .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Page header ---------- */
.page-header {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(14, 165, 233, 0.12), transparent 60%),
    var(--bg-alt);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.page-header .breadcrumb a { color: var(--text-soft); }
.page-header .breadcrumb a:hover { color: var(--primary-light); }
.page-header h1 { margin-bottom: 0.6rem; }
.page-header p { font-size: 1.1rem; max-width: 680px; margin: 0 auto; color: var(--text-muted); }

/* ---------- Services detailed ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .service-block.reverse > .service-visual { order: 2; }
}
.service-block:last-child { border-bottom: none; }
.service-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  position: relative;
  overflow: hidden;
}
.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.18), transparent 50%);
}
.service-visual svg { width: 36%; height: auto; position: relative; z-index: 1; }
.service-text h2 { font-size: 1.6rem; }
.service-text .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.service-text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.service-text ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}
.service-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
}
.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-card h3 { margin-top: 0; }
.contact-info-card .info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card .info-row:last-child { border-bottom: none; }
.contact-info-card .info-row .ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.contact-info-card .info-row .ic svg { width: 20px; height: 20px; }
.contact-info-card .info-row .lbl { font-size: 0.78rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.contact-info-card .info-row .val { font-weight: 600; color: var(--text); }
.contact-info-card .info-row .val a { color: var(--text); }
.contact-info-card .info-row .val a:hover { color: var(--primary-light); }

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form .field { margin-bottom: 1.1rem; }
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form label .req { color: var(--danger); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form .row.cols-2 { grid-template-columns: 1fr 1fr; } }
.form .privacy {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.form .privacy input { width: auto; margin-top: 4px; }
.form button[type="submit"] { width: 100%; padding: 0.95rem; }
.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-message.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; display: block; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid p { color: #94a3b8; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-brand img { height: 48px; margin-bottom: 1rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom .legal { margin-top: 0.4rem; }
.footer-bottom .legal a { margin: 0 0.5rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .nav, .header-cta .btn-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 0.85rem 1rem; border-radius: var(--radius-sm); }
  .header-cta .btn-phone { display: none; }
  .hero-visual { display: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp 600ms ease both; }
.fade-in.delay-1 { animation-delay: 100ms; }
.fade-in.delay-2 { animation-delay: 200ms; }
.fade-in.delay-3 { animation-delay: 300ms; }
