/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      1.1.0
*/
/* ==========================================================================
   MTTLAB CHILD THEME — style.css
   Mobile-first | Breakpoints: 768px · 900px · 1200px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --mtt-navy:   #1a2e4a;   /* era #0b1523, un po' più chiaro */
  --mtt-blue:   #0a4a72;   /* nuovo blu profondo per i bottoni */
  --mtt-accent: #0091d6;
  --mtt-bg:     #f8fafc;
  --mtt-text:   #1f2937;
  --mtt-muted:  #374151;
  --mtt-white:  #ffffff;
  --mtt-border: #e5e7eb;

  --mtt-container: 1200px;
  --mtt-gutter:    24px;

  --mtt-radius-card: 12px;
  --mtt-radius-btn:  6px;

  --mtt-shadow:        0 4px 20px rgba(0,0,0,0.03);
  --mtt-shadow-strong: 0 12px 40px rgba(0,0,0,0.10);

  --mtt-transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2) BASE / RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--mtt-bg);
  color: var(--mtt-text);
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Rimozione overlay gradiente (arco) */
body::before {
  display: none !important;
}

#page {
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mtt-accent);
  text-decoration: none;
  transition: color var(--mtt-transition);
}

a:hover {
  color: var(--mtt-navy);
}

p:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   3) TIPOGRAFIA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--mtt-navy);
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

small,
.mtt-small {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   4) HEADER
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--mtt-white);
  border-bottom: 1px solid var(--mtt-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: none;
}

#site-navigation {
  background: var(--mtt-white);
}

.main-navigation a {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--mtt-text);
  transition: color var(--mtt-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--mtt-accent);
}

/* Mobile header fisso */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
  }

  #page {
    padding-top: 70px;
  }
}

/* --------------------------------------------------------------------------
   5) FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--mtt-navy);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  transition: color var(--mtt-transition);
}

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

.site-footer .copyright {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   6) LAYOUT — container e sezioni
   -------------------------------------------------------------------------- */
.mtt-container {
  max-width: var(--mtt-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mtt-gutter);
  padding-right: var(--mtt-gutter);
}

.mtt-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 900px) {
  .mtt-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.mtt-section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--mtt-navy);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 12px;
}

.mtt-section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtt-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --------------------------------------------------------------------------
   7) BOTTONI
   -------------------------------------------------------------------------- */
.mtt-btn,
a.mtt-btn {
  display: inline-block;
  background: var(--mtt-blue);
  color: var(--mtt-white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 18px 45px;
  border-radius: var(--mtt-radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--mtt-transition), box-shadow var(--mtt-transition);
  line-height: 1;
}

.mtt-btn:hover,
a.mtt-btn:hover {
  color: var(--mtt-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11,21,35,0.25);
}

@media (max-width: 768px) {
  .mtt-btn,
  a.mtt-btn {
    width: 100%;
    min-height: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   8) CARD
   -------------------------------------------------------------------------- */
.mtt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .mtt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .mtt-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .mtt-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 260px));
    justify-content: center;
  }

  .mtt-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
  }
}

.mtt-card {
  background: var(--mtt-white);
  border: 1px solid var(--mtt-border);
  border-radius: var(--mtt-radius-card);
  padding: 32px 28px;
  box-shadow: var(--mtt-shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--mtt-transition),
    box-shadow var(--mtt-transition),
    border-color var(--mtt-transition);
}

.mtt-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--mtt-shadow-strong);
  border-color: var(--mtt-accent);
}

.mtt-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.mtt-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mtt-navy);
  margin: 0 0 12px;
}

.mtt-card-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mtt-muted);
  margin: 0;
  flex: 1;
}

.mtt-card-link {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--mtt-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mtt-card-link:hover {
  color: var(--mtt-navy);
}

/* Card quadrate — sezione Core Services */
.mtt-card--square {
  aspect-ratio: 1;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 36px 28px;
}

.mtt-card--square .mtt-card-icon {
  font-size: 44px;
  margin-bottom: 20px;
}

.mtt-card--square .mtt-card-title {
  font-size: 22px;
}

.mtt-card--square .mtt-card-text {
  font-size: 17px;
}

.mtt-card--square .mtt-card-link {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .mtt-card--square {
    aspect-ratio: auto;
  }
}

/* --------------------------------------------------------------------------
   9) HERO
   -------------------------------------------------------------------------- */
.mtt-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--mtt-white);
  padding-top: 64px;
  padding-bottom: 64px;
}

.mtt-hero-inner {
  max-width: var(--mtt-container);
  margin: 0 auto;
  padding: 0 var(--mtt-gutter);
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .mtt-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .mtt-hero-content {
    flex: 1;
  }

  .mtt-hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

.mtt-hero-content h1 {
  margin-bottom: 20px;
}

.mtt-hero-content p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--mtt-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.mtt-hero-image img {
  border-radius: var(--mtt-radius-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 540px;
}

/* --------------------------------------------------------------------------
   10) WORKFLOW — step numerati
   -------------------------------------------------------------------------- */
.mtt-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
}

.mtt-workflow-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(96px, 10vw, 140px);
  font-weight: 900;
  color: var(--mtt-navy);
  opacity: 0.10;
  line-height: 0.9;
  margin-bottom: 20px;
  display: block;
  letter-spacing: -0.04em;
}

.mtt-workflow-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mtt-navy);
  margin: 0 0 10px;
}

.mtt-workflow-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtt-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11) TRUST — statistiche
   -------------------------------------------------------------------------- */
.mtt-stat-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--mtt-navy);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.mtt-stat-label {
  font-size: 15px;
  color: var(--mtt-muted);
  display: block;
}

.mtt-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .mtt-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   12) CTA SEZIONE FINALE
   -------------------------------------------------------------------------- */
.mtt-cta-section {
  background: var(--mtt-navy);
  color: var(--mtt-white);
  text-align: center;
}

.mtt-cta-section h2 {
  color: var(--mtt-white);
  margin-bottom: 16px;
}

.mtt-cta-section p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.mtt-cta-section .mtt-btn {
  background: var(--mtt-accent);
}

.mtt-cta-section .mtt-btn:hover {
  background: var(--mtt-accent);
  box-shadow: 0 8px 24px rgba(0,145,214,0.40);
}

/* --------------------------------------------------------------------------
   13) FOOTER ISTITUZIONALE
   -------------------------------------------------------------------------- */
.mtt-footer-institutional {
  background: var(--mtt-navy);
  color: rgba(255,255,255,0.80);
  padding: 64px 0 40px;
}

.mtt-footer-institutional .mtt-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .mtt-footer-institutional .mtt-container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 900px) {
  .mtt-footer-institutional .mtt-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.mtt-footer-brand {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--mtt-white);
  margin-bottom: 12px;
  display: block;
}

.mtt-footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

.mtt-footer-data-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.40);
  margin: 0 0 12px;
}

.mtt-footer-data-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.mtt-footer-data-list li strong {
  color: rgba(255,255,255,0.50);
  font-weight: 600;
  margin-right: 4px;
}

.mtt-footer-data-list a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--mtt-transition);
}

.mtt-footer-data-list a:hover {
  color: var(--mtt-white);
}

.mtt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14) UTILITIES
   -------------------------------------------------------------------------- */
.txt-center { text-align: center; }
.txt-left   { text-align: left; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.mtt-bg-white { background: var(--mtt-white); }
.mtt-bg-light { background: var(--mtt-bg); }
