/*
Theme Name: Prospero Light
Description: Italian Modernist WordPress theme with SAAS AI focus - Authentic discipline meets digital poetry
Version: 2.7
Author: Alex Gorelik
*/

/* Italian Modernist Color Discipline */
:root {
  /* Neutral Foundation - Italian modernist restraint */
  --nero: #1a1a1a;           /* Deep black */
  --bianco: #ffffff;         /* Pure white */
  --grigio-chiaro: #f8f8f8;  /* Light grey */
  --grigio-medio: #e8e8e8;   /* Medium grey */
  --grigio-scuro: #666666;   /* Dark grey */

  /* Single Bold Accent - Rosso Corsa (Ferrari Red) */
  --rosso-corsa: #dc143c;    /* THE accent color */

  /* Secondary Tones - Restrained */
  --azzurro: #4a90a4;        /* Mediterranean blue (minimal use) */
  --ottone: #b8860b;         /* Brass (for subtle highlights) */

  /* Golden Ratio Spacing System */
  --space-xs: 0.618rem;      /* 10px */
  --space-s: 1rem;           /* 16px */
  --space-m: 1.618rem;       /* 26px - Golden ratio base */
  --space-l: 2.618rem;       /* 42px */
  --space-xl: 4.236rem;      /* 68px */
  --space-xxl: 6.854rem;     /* 110px */

  /* Architectural Typography Scale */
  --text-xs: 0.75rem;        /* 12px */
  --text-s: 0.875rem;        /* 14px */
  --text-base: 1rem;         /* 16px */
  --text-l: 1.125rem;        /* 18px */
  --text-xl: 1.5rem;         /* 24px */
  --text-xxl: 2rem;          /* 32px */
  --text-xxxl: 3rem;         /* 48px */
  --text-display: 4rem;      /* 64px */
}

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

/* Typography as Architecture */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.618; /* Golden ratio */
  color: var(--nero);
  background-color: var(--bianco);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Prevent content from hiding under fixed header */
body {
    padding-top: 80px; /* Adjust this value to match your header height */
}

/* If you have an admin bar when logged in */
body.admin-bar {
    padding-top: calc(80px + 32px); /* Header + WP admin bar */
}

/* Structural Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 300; /* Light weight for architectural feel */
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--nero);
}

h1 { font-size: var(--text-display); line-height: 1.1; }
h2 { font-size: var(--text-xxxl); line-height: 1.2; }
h3 { font-size: var(--text-xxl); line-height: 1.3; }
h4 { font-size: var(--text-xl); line-height: 1.4; }
h5 { font-size: var(--text-l); line-height: 1.4; }
h6 { font-size: var(--text-base); line-height: 1.4; }

/* Geometric Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-golden {
  grid-template-columns: 1fr 1.618fr; /* Golden ratio columns */
}

/* Disciplined Spacing System */
.space-xs { margin-bottom: var(--space-xs); }
.space-s { margin-bottom: var(--space-s); }
.space-m { margin-bottom: var(--space-m); }
.space-l { margin-bottom: var(--space-l); }
.space-xl { margin-bottom: var(--space-xl); }
.space-xxl { margin-bottom: var(--space-xxl); }

/* Header - Minimal Authority */
.site-header {
  background: var(--bianco);
  border-bottom: 1px solid var(--grigio-medio);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: var(--space-m) 0;
  gap: var(--space-l);
}

/* Logo - Single Bold Accent */
.logo {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--nero);
  text-decoration: none;
  position: relative;
  letter-spacing: -0.02em;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 8px; /* Single precise accent */
  height: 2px;
  background: var(--rosso-corsa);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::after {
  width: 100%;
}

/* Navigation - Architectural Spacing */
.main-nav {
  justify-self: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.main-nav a {
  color: var(--grigio-scuro);
  text-decoration: none;
  font-size: var(--text-s);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--nero);
}

.main-nav a.current::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--rosso-corsa);
  border-radius: 50%;
}

/* Hero - Expressive Minimalism */
.hero {
  background: var(--grigio-chiaro);
  padding: calc(var(--space-xxl) * 2) 0 var(--space-xxl);
  margin-top: 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.hero h1 {
  margin-bottom: var(--space-l);
  font-weight: 200; /* Ultra-light for elegance */
}

.hero .accent-word {
  color: var(--rosso-corsa);
  font-weight: 300;
}

.hero p {
  font-size: var(--text-l);
  color: var(--grigio-scuro);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: 1.618;
}

/* CTA - Geometric Precision */
.cta-primary {
  display: inline-block;
  padding: var(--space-m) var(--space-xl);
  background: var(--nero);
  color: var(--bianco);
  text-decoration: none;
  font-size: var(--text-s);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--rosso-corsa);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover::before {
  transform: translateX(0);
}

.cta-primary span {
  position: relative;
  z-index: 2;
}

/* Content Sections - Generous Whitespace */
.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  font-size: var(--text-xxxl);
  font-weight: 200;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title.with-accent::after {
  content: '';
  position: absolute;
  bottom: -var(--space-s);
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--rosso-corsa);
}

/* Feature Cards - Material Surfaces */
.feature-card {
  background: var(--bianco);
  padding: var(--space-xl);
  border: 1px solid var(--grigio-medio);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--rosso-corsa);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover::before {
  height: 100%;
}

.feature-card h3 {
  margin-bottom: var(--space-m);
  font-weight: 400;
}

.feature-card p {
  color: var(--grigio-scuro);
  line-height: 1.618;
}

/* AI Dashboard - Geometric Abstraction */
.ai-dashboard {
  background: var(--nero);
  color: var(--bianco);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.data-bar {
  height: 4px;
  background: var(--grigio-medio);
  position: relative;
  overflow: hidden;
}

.data-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--rosso-corsa);
  animation: dataFlow 3s ease-in-out infinite;
}

.data-bar:nth-child(1)::after { width: 70%; animation-delay: 0s; }
.data-bar:nth-child(2)::after { width: 45%; animation-delay: 0.5s; }
.data-bar:nth-child(3)::after { width: 85%; animation-delay: 1s; }

@keyframes dataFlow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
}

/* Testimonials - Typographic Hierarchy */
.testimonial {
  border-left: 3px solid var(--rosso-corsa);
  padding-left: var(--space-l);
  margin: var(--space-xl) 0;
}

.testimonial-text {
  font-size: var(--text-l);
  font-style: italic;
  font-weight: 300;
  color: var(--grigio-scuro);
  margin-bottom: var(--space-m);
  line-height: 1.618;
}

.testimonial-author {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--nero);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Footer - Minimal Closure */
.site-footer {
  background: var(--grigio-chiaro);
  border-top: 1px solid var(--grigio-medio);
  padding: var(--space-xxl) 0 var(--space-xl);
}

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

.footer-section h4 {
  font-size: var(--text-s);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-m);
  color: var(--nero);
}

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

.footer-section li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--grigio-scuro);
  text-decoration: none;
  font-size: var(--text-s);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--rosso-corsa);
}

.footer-bottom {
  border-top: 1px solid var(--grigio-medio);
  padding-top: var(--space-l);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--grigio-scuro);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Responsive - Maintaining Proportion */
@media (max-width: 768px) {
  :root {
    --text-display: 2.5rem;
    --text-xxxl: 2rem;
    --space-xxl: 4rem;
  }

  .grid-2,
  .grid-3,
  .grid-golden {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-m);
  }

  .main-nav ul {
    gap: var(--space-l);
  }

  .hero-content {
    text-align: center;
  }
}


/* Responsive adjustment */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly less for mobile if needed */
    }

    body.admin-bar {
        padding-top: calc(70px + 46px);
    }
}
