/* ===========================
   AKIRA SOFTWARE — style.css
   =========================== */

:root {
  --teal: #2AABAB;
  --teal-dark: #1d8080;
  --teal-light: #e8f7f7;
  --dark: #111827;
  --dark2: #1f2937;
  --text: #374151;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafa;
  --border: #e5e7eb;
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.btn-nav {
  background: var(--teal) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.btn-nav:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(42,171,171,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(42,171,171,0.08) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 100px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,171,171,0.15);
  border: 1px solid rgba(42,171,171,0.3);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.accent { color: var(--teal); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,171,171,0.4);
}
.btn-primary.full-width {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.05);
}

.hero-wordmark {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(80px, 16vw, 210px);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #ffffff;
  opacity: 0.18;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 2px; height: 48px;
  background: linear-gradient(to bottom, rgba(42,171,171,0.8), transparent);
  margin: 0 auto;
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label.light { color: rgba(42,171,171,0.8); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title.light { color: #ffffff; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-intro {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-intro.light { color: rgba(255,255,255,0.6); }

/* ===== CHI SIAMO ===== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.section-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}
.visual-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(42,171,171,0.12);
  transform: translateY(-4px);
}
.vc-icon { font-size: 28px; }
.vc-text { font-size: 14px; font-weight: 600; color: var(--dark); }

.vc-1, .vc-3 { background: var(--teal-light); border-color: rgba(42,171,171,0.2); }

/* ===== SERVIZI ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== PERCHE ===== */
.perche {
  background: var(--dark);
}

.perche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.perche-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
}
.perche-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.perche-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.perche-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== CERTIFICAZIONI ===== */
.cert-grid {
  display: flex;
  justify-content: center;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 760px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.cert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.cert-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}
.cert-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.cert-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CONTATTI ===== */
.contatti { background: var(--dark2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 22px; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--teal); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: white;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(42,171,171,0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 64px 24px 48px;
  gap: 48px;
}

.footer-logo p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-logo-img { height: 44px; }

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a, .footer-col span {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: center;
}
.footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cert-card { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
  .section-visual { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: white;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
