/*
Theme Name:  Mentiq
Theme URI:   https://mentiq.ai
Author:      Mentiq
Description: Tema ufficiale Mentiq.ai — AI Software for Business Operations
Version:     1.0.0
License:     Proprietary
Text Domain: mentiq
*/

/* NOTE: Google Fonts is loaded via functions.php (wp_enqueue_style).
   Do NOT add @import here to avoid double-loading. */

/* ---- CSS Variables --------------------------------------- */
:root {
  --color-teal:       #4cceac;
  --color-teal-dark:  #3ab89a;
  --color-navy:       #07295a;
  --color-blue:       #0052cc;
  --color-text:       #172b4d;
  --color-muted:      #42526e;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f4f5f7;
  --color-border:     #dfe1e6;

  --font-heading:     'Playfair Display', serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'DM Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    48px;
  --space-xl:    96px;

  --header-h:    72px;
  --container:   1160px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* WordPress core resets */
.wp-block-image { margin: 0; }
.alignnone, .aligncenter, .alignleft, .alignright { max-width: 100%; }

/* ---- Utility --------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, box-shadow 200ms;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(7,41,90,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 200ms;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#lang-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color 200ms, border-color 200ms;
}

#lang-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-teal);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 200ms;
}

.btn-primary:hover {
  background: var(--color-teal-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 300ms, opacity 300ms;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-open .mobile-nav {
  display: flex;
}

.mobile-nav .nav-links {
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mobile-nav .nav-links a {
  font-size: 22px;
}

.mobile-nav .nav-actions {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--color-text);
  line-height: 1;
}

/* Hamburger → X animation */
.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--color-teal-dark);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.hero-subline {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-secondary {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 200ms;
}

.btn-secondary:hover {
  color: var(--color-teal-dark);
}

/* Hero graphic */
.hero-graphic {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 340px;
  height: 340px;
  background: var(--color-teal);
  opacity: 0.15;
  top: 40px;
  right: 0;
  clip-path: circle(50%);
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: var(--color-navy);
  opacity: 0.2;
  top: 80px;
  right: 80px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border-radius: 0;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: var(--color-teal);
  opacity: 0.85;
  bottom: 80px;
  right: 60px;
  clip-path: circle(50%);
}

/* Hero load animation */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: heroReveal 0.6s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0s; }
.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--color-navy);
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--color-teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-label {
  font-weight: 600;
  color: var(--color-teal);
  margin-right: 4px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-teal-dark);
  background: rgba(76,206,172,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0;
}

.problem-header {
  text-align: center;
  margin-bottom: 56px;
}

.problem-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.stat-source {
  font-size: 11px;
  color: var(--color-muted);
  font-style: italic;
}

.problem-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.problem-body p {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.problem-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   AEGIS PRODUCT SECTION
   ============================================================ */
.aegis {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.aegis-header {
  text-align: center;
  margin-bottom: 56px;
}

.aegis-product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.aegis-tagline {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.aegis-headline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.aegis-subline {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 200ms, box-shadow 200ms;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.feature-body {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
}

/* How it works */
.how-it-works { margin-top: 16px; }

.how-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 48px;
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 24px;
  width: 50%; height: 2px;
  background: var(--color-border);
  transform: translateX(50%);
}

.step:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 24px;
  width: 50%; height: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  line-height: 1;
  margin-bottom: 16px;
  background: var(--color-bg);
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.step-text {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 220px;
}

.aegis-cta { text-align: center; }

/* ============================================================
   COMPANY SECTION
   ============================================================ */
.company {
  background: var(--color-navy);
  padding: var(--space-xl) 0;
  color: #fff;
}

.company .section-label {
  color: var(--color-teal);
  background: rgba(76,206,172,0.15);
}

.company-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.3;
}

.company-body {
  max-width: 720px;
  margin-bottom: 40px;
}

.company-body p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}

.company-body p:last-child { margin-bottom: 0; }

.mission-box {
  border-left: 4px solid var(--color-teal);
  background: rgba(76,206,172,0.08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 56px;
  max-width: 720px;
}

.mission-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-bottom: 10px;
}

.mission-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
}

.values-headline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

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

.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.value-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}

.value-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.value-body {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ============================================================
   EARLY ACCESS SECTION
   ============================================================ */
.early-access {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}

.early-access-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.ea-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.ea-subline {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.ea-form {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

.ea-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 14px 16px;
  height: 52px;
  outline: none;
  transition: border-color 200ms;
}

.ea-form input[type="email"]:focus {
  border-color: var(--color-teal);
}

.ea-form button {
  height: 52px;
  padding: 0 24px;
  background: var(--color-teal);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--color-teal);
  transition: background 200ms;
  white-space: nowrap;
}

.ea-form button:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.ea-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.ea-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}

.ea-benefit svg { flex-shrink: 0; }

.ea-note {
  font-size: 13px;
  color: var(--color-muted);
}

.form-success {
  color: #2d6a4f;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 12px;
  font-weight: 500;
}

.form-error {
  color: #c0392b;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }

.footer-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
}

.footer-logo-mentiq { color: #ffffff; }
.footer-logo-ai     { color: #4cceac; }

.footer-tagline {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.footer-description {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

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

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 200ms;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-legal-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.privacy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.privacy-updated {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 48px;
}

.privacy-intro {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.privacy-section { margin-bottom: 40px; }

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.privacy-section p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-headline { font-size: 2.8rem; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .hero-headline { font-size: 2.2rem; }

  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }

  .steps-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .step::after, .step::before { display: none; }

  .values-grid { grid-template-columns: 1fr; }

  .ea-form { flex-direction: column; gap: 12px; }
  .ea-form input[type="email"] {
    border-right: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }
  .ea-form button { border-radius: var(--radius-md); width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { max-width: 100%; text-align: center; }
  .footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { text-align: center; }
}
