/*
Theme Name: Melia Informatica & Zero Lag
Theme URI: https://www.meliainformatica.it
Author: Melia Informatica
Author URI: https://www.meliainformatica.it
Description: Tema WordPress professionale personalizzato per Melia Informatica e Zero Lag. Specializzato in Soluzioni IT, Sviluppo Software, Hardware Industriale, Web & E-Commerce.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melia-theme
*/

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --zerolag-orange: #f97316;
  --bg-light: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --border-color: #e2e8f0;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info span {
  margin-right: 20px;
}

/* Header */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo .tag-badge {
  background: var(--zerolag-orange);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-menu a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.25), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #475569;
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* Features Highlight */
.badge-strip {
  background: #1e293b;
  padding: 20px 0;
  color: #e2e8f0;
  border-bottom: 1px solid #334155;
}

.badge-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.badge-item strong {
  color: var(--zerolag-orange);
}

/* Services Section */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: #eff6ff;
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Contact Info Section */
.contact-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.contact-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-card h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .header-container { flex-direction: column; gap: 15px; }
  .nav-menu ul { flex-wrap: wrap; justify-content: center; }
}
