/*
Theme Name: DatMit Connect
Theme URI: https://connect.datmit.com
Author: DatMit S.r.l.
Author URI: https://www.datmit.com
Description: Tema ufficiale DatMit Connect - Connettività e Telecomunicazioni.
Version: 1.0.0
Requires PHP: 8.2
Text Domain: datmit-connect
*/

:root {
  --bg: #07111f;
  --bg-secondary: #0c192b;
  --panel: #101f33;
  --text: #f5f8fc;
  --muted: #a9bbcd;
  --accent: #27c7f5;
  --border: rgba(180,210,240,.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(1160px, 92%); margin: auto; }
.narrow { max-width: 850px; }

.site-header {
  position: relative;
  z-index: 10;
  background: #081321;
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-size: 27px; font-weight: 800; letter-spacing: -1.2px; }
.brand-dot { color: var(--accent); }
.brand-division { color: var(--accent); font-size: 11px; letter-spacing: 4px; margin-top: 5px; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; }
.nav-contact { border: 1px solid var(--accent); border-radius: 7px; padding: 9px 16px; }

.hero {
  padding: 125px 0 135px;
  background: radial-gradient(ellipse at 80% 40%, #123d60 0%, #07111f 60%);
}

.hero-inner { max-width: 1160px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2.2px; }
h1,h2,h3 { line-height: 1.16; }
h1 { font-size: clamp(40px, 5.3vw, 76px); letter-spacing: -2.7px; margin: 24px 0; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(30px, 3.5vw, 47px); letter-spacing: -1.3px; margin: 20px 0; }
h3 { font-size: 23px; }
p { color: var(--muted); }
.hero p { font-size: 19px; max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }

.btn {
  display: inline-block;
  border-radius: 7px;
  padding: 14px 23px;
  font-weight: 650;
  transition: .2s ease;
}

.btn-primary { background: var(--accent); color: #07111f; }
.btn-primary:hover { background: #80dfff; color: #07111f; }
.btn-outline { border: 1px solid #7891aa; }
.btn-outline:hover { border-color: var(--accent); }

.section { padding: 105px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading p { font-size: 18px; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 33px 29px;
}

.service-index { font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.service-card h3 { margin-top: 23px; }
.service-card a { color: var(--accent); font-weight: 600; }

.custom-section { background: var(--bg-secondary); }
.custom-section p, .coverage-section p { font-size: 18px; }
.custom-section .btn, .coverage-section .btn { margin-top: 18px; }
.coverage-section { text-align: center; }
.coverage-section .narrow { margin: auto; }

.site-footer { background: #050d18; border-top: 1px solid var(--border); padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 45px; }
.footer-grid h3 { font-size: 17px; }
.footer-grid a { display: block; margin: 9px 0; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 25px; margin-top: 45px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .main-nav { gap: 15px; }
  .hero { padding: 85px 0; }
  .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 75px 0; }
  h1 { letter-spacing: -1px; }
}

/* DatMit Connect - Internal pages */

.page-hero {
  padding: 105px 0 85px;
  background:
    radial-gradient(ellipse at 85% 25%,
      #123d60 0%, #07111f 65%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 22px 0;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  font-size: 19px;
  max-width: 650px;
}

.page-section {
  padding: 85px 0 110px;
  min-height: 420px;
}

.page-content h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 28px;
}

.page-content p {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.page-content a {
  color: var(--accent);
}

.page-contact {
  margin-top: 75px;
  padding: 40px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
}

.page-contact h2 {
  font-size: 27px;
}

.page-contact .btn {
  margin-top: 14px;
}

@media (max-width: 800px) {
  .page-hero {
    padding: 75px 0 60px;
  }

  .page-section {
    padding: 60px 0;
  }

  .page-contact {
    padding: 25px;
  }
}
