/* Meet Pier Giorgio Page Styles */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-bg-strong) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* Content Grid */
.content-grid {
  padding: 4rem 0;
  background: #f8fafc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.grid-item {
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.content-card {
  display: block;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #f1f5f9;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nav-bg), var(--nav-bg-strong));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--nav-bg);
  transform: translateY(-2px);
}

.content-card:hover h3 {
  color: #1a365d;
}

.content-card:hover p {
  color: #2d3748;
}

.content-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #2f4f6f;
  line-height: 1.3;
}

.content-card p {
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  font-size: 1.1rem;
}

/* Quote Section */
.quote-section {
  background: var(--nav-bg-strong);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.quote-section blockquote {
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
}

.quote-section blockquote p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: 'Merriweather', serif;
}

.quote-section blockquote cite {
  font-size: 1rem;
  opacity: 0.8;
  font-style: normal;
}

.quote-section blockquote cite::before {
  content: '— ';
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-card {
    padding: 2rem;
  }
  
  .content-card h3 {
    font-size: 1.6rem;
  }
  
  .content-card p {
    font-size: 1.05rem;
  }
  
  .quote-section blockquote p {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .content-grid {
    padding: 2rem 0;
  }
  
  .quote-section {
    padding: 2rem 0;
  }
  
  .content-card {
    padding: 1rem;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-item {
  animation: fadeInUp 0.6s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }

/* Focus styles for accessibility */
.content-card:focus {
  outline: 2px solid #5a87a8;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero-section {
    background: white;
    color: black;
  }
  
  .content-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .quote-section {
    background: white;
    color: black;
  }
}
