/*
Theme Name: MooveConsulting
Theme URI: https://mooveconsulting.eu
Author: Moove.it S.r.l.
Author URI: https://mooveconsulting.eu
Description: Tema personalizzato per Moove.it — consulenza strategica in mobilità, logistica, infrastrutture, transizione ecologica e turismo.
Version: 1.0.0
License: Proprietary
Text Domain: mooveconsulting
Tags: custom-menu, featured-images, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #1C2A3A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ============================================================
   CSS VARIABLES — BRAND
   ============================================================ */
:root {
  --moove-blue:       #538ABE;
  --moove-green:      #B1BC3F;
  --moove-dark:       #1C2A3A;
  --moove-light-bg:   #F8F8F6;
  --moove-border:     rgba(28, 42, 58, 0.1);
  --moove-text:       #1C2A3A;
  --moove-text-muted: #6B7A8A;
  --moove-text-light: #9BA8B4;
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        14px;
  --max-width:        1160px;
  --section-pad:      5rem;
  --transition:       0.2s ease;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--moove-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--moove-text-muted); font-weight: 300; }
p:last-child { margin-bottom: 0; }

.text-lead {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--moove-text-muted);
  max-width: 620px;
}

.text-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--moove-text-light);
}

.text-hook {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--moove-blue);
  line-height: 1.5;
}

em { font-style: italic; color: var(--moove-blue); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--section-pad) 0; }
.section + .section { border-top: 0.5px solid var(--moove-border); }

.section-header { margin-bottom: 3rem; }
.section-header .text-label { margin-bottom: 0.75rem; display: block; }

.accent-bar {
  width: 32px;
  height: 2px;
  background: var(--moove-green);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  :root { --section-pad: 3rem; }
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--moove-border);
}

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

.site-logo img { height: 28px; width: auto; }
.site-logo svg { height: 28px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }

.main-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--moove-text-muted);
  transition: color var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--moove-dark); }

.main-nav a.current-menu-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--moove-blue);
  border-radius: 1px;
}

.lang-toggle {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--moove-blue);
  border: 0.5px solid var(--moove-blue);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--moove-blue);
  color: white;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--moove-dark); border-radius: 1px; transition: all var(--transition); }

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 0.5px solid var(--moove-border); flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.65rem 1.25rem; width: 100%; font-size: 0.9375rem; }
  .hamburger { display: flex; }
}

/* ============================================================
   BUTTONS & CTA
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--moove-dark);
  color: white;
  border: 1.5px solid var(--moove-dark);
}
.btn-primary:hover { background: var(--moove-blue); border-color: var(--moove-blue); }

.btn-secondary {
  background: transparent;
  color: var(--moove-text-muted);
  border: 1.5px solid var(--moove-border);
}
.btn-secondary:hover { border-color: var(--moove-dark); color: var(--moove-dark); }

.btn-ghost {
  background: transparent;
  color: var(--moove-text-muted);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--moove-dark); }

.btn-white {
  background: white;
  color: var(--moove-dark);
  border: 1.5px solid white;
}
.btn-white:hover { background: var(--moove-green); border-color: var(--moove-green); color: white; }

.btn svg, .btn .icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border: 0.5px solid var(--moove-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(83, 138, 190, 0.3); }

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(177, 188, 63, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--moove-green);
}

.card h3 { font-size: 1rem; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.card p { font-size: 0.875rem; }

.card-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--moove-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
}

/* Bordered list cards (stacked) */
.list-cards {
  border: 0.5px solid var(--moove-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-card-item {
  padding: 1.35rem 1.5rem;
  border-bottom: 0.5px solid var(--moove-border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background var(--transition);
}
.list-card-item:last-child { border-bottom: none; }
.list-card-item:hover { background: var(--moove-light-bg); }

.list-card-item .item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(83, 138, 190, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moove-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

.list-card-item .item-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 3px; color: var(--moove-dark); }
.list-card-item .item-desc { font-size: 0.8125rem; line-height: 1.65; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 0.5px solid var(--moove-border);
}

.hero-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--moove-green);
  margin-bottom: 1.25rem;
  display: block;
}

.hero h1 { margin-bottom: 1rem; max-width: 680px; }

.hero .text-lead { margin-bottom: 2rem; }

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.hero-markets {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.market-tag {
  font-size: 0.75rem;
  color: var(--moove-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moove-green);
  flex-shrink: 0;
}

/* ============================================================
   PRACTICE AREA GRID
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .practice-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--moove-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  padding: 1.5rem;
  border-right: 0.5px solid var(--moove-border);
  background: white;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--moove-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-number span { color: var(--moove-blue); }
.stat-label { font-size: 0.6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.8px; color: var(--moove-text-light); }

/* ============================================================
   CTA BLOCK (dark)
   ============================================================ */
.cta-block {
  background: var(--moove-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-block h2 { color: white; font-size: 1.625rem; margin-bottom: 0.5rem; }
.cta-block p { color: rgba(255,255,255,0.5); margin: 0; max-width: 400px; }

@media (max-width: 640px) {
  .cta-block { flex-direction: column; align-items: flex-start; padding: 2rem; }
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight-card {
  padding: 2rem;
  border: 0.5px solid var(--moove-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
  cursor: pointer;
}
.insight-card:hover { border-color: rgba(83,138,190,0.3); }

.insight-category {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moove-green);
  margin-bottom: 0.5rem;
  display: block;
}

.insight-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
}

.insight-meta { font-size: 0.6875rem; color: var(--moove-text-light); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(177,188,63,0.1); display: flex; align-items: center;
  justify-content: center; color: var(--moove-green); flex-shrink: 0;
}
.contact-info-label { font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--moove-text-light); margin-bottom: 3px; }
.contact-info-value { font-size: 0.9375rem; font-weight: 400; color: var(--moove-dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--moove-text-muted);
}

input[type="text"],
input[type="email"],
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 10px 14px;
  border: 0.5px solid var(--moove-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--moove-dark);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--moove-blue); }
textarea { height: 120px; resize: vertical; }

.privacy-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1.25rem; }
.privacy-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.privacy-row label { font-size: 0.75rem; text-transform: none; letter-spacing: 0; color: var(--moove-text-muted); font-weight: 300; line-height: 1.5; }
.privacy-row a { color: var(--moove-blue); }

.form-note { font-size: 0.6875rem; color: var(--moove-text-light); margin-top: 0.75rem; line-height: 1.5; }
.btn-submit { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .contact-form-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 0.5px solid var(--moove-border);
}

.breadcrumb {
  font-size: 0.6875rem;
  color: var(--moove-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--moove-text-light); }
.breadcrumb a:hover { color: var(--moove-dark); }
.breadcrumb .current { color: var(--moove-green); }
.breadcrumb-sep { color: var(--moove-text-light); font-size: 0.625rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 2rem 0;
  border-top: 0.5px solid var(--moove-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.6875rem; color: var(--moove-text-light); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.6875rem; color: var(--moove-text-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--moove-dark); }

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .cta-block { padding: 2rem 1.5rem; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 0.5px solid var(--moove-border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-blue { color: var(--moove-blue); }
.text-green { color: var(--moove-green); }
.bg-light { background: var(--moove-light-bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
