/* Bella Vita Italiana - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Italian Color Palette */
:root {
  --cream: #faf7f0;
  --warm-cream: #f5f1e8;
  --terracotta: #d4816b;
  --terracotta-dark: #c16b52;
  --golden-yellow: #f4d03f;
  --golden-accent: #f7dc6f;
  --olive-green: #8fbc8f;
  --olive-dark: #7a9a7a;
  --warm-brown: #8b4513;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --white: #ffffff;
  --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.text-light { font-weight: 300; }
.text-regular { font-weight: 400; }
.text-medium { font-weight: 500; }
.text-semibold { font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 60px 0;
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--terracotta-dark);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--terracotta);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(212, 129, 107, 0.8), rgba(244, 208, 63, 0.6)),
              url('https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: var(--white);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--olive-green);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
}

.btn-primary {
  background: var(--terracotta);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--terracotta);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  font-size: 3rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.card-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Stats Section */
.stats {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 300;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--golden-yellow), var(--golden-accent));
  text-align: center;
  color: var(--text-dark);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: 2px solid var(--warm-cream);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--terracotta);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--golden-accent);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--golden-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: var(--text-light);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--warm-cream);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, rgba(44, 44, 44, 0.95) 100%);
  color: var(--white);
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: all 0.5s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--terracotta);
  width: 100%;
  max-width: 100%;
}

.cookie-banner.show {
  transform: translateY(0);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}

.cookie-banner-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--golden-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-banner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--white);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-banner p a {
  color: var(--golden-accent);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner p a:hover {
  color: var(--white);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 120px;
  text-align: center;
}

.cookie-accept {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 129, 107, 0.3);
}

.cookie-accept:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 129, 107, 0.4);
}

.cookie-decline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.cookie-decline:hover {
  background: var(--white);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.cookie-settings {
  background: transparent;
  border: 2px solid var(--golden-accent);
  color: var(--golden-accent);
  font-size: 0.8rem;
  padding: 8px 16px;
  min-width: auto;
}

.cookie-settings:hover {
  background: var(--golden-accent);
  color: var(--text-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile: 1 column layout */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
  }
  
  .nav-list.show {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: 100%;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cookie-banner-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-icon {
    font-size: 2.5rem;
    margin-top: 0;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-banner .btn {
    width: 100%;
    margin: 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: 2 columns layout */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  /* Desktop: 3+ columns layout */
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blog Styles */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Article Page Styles */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-meta {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Back to Blog Link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-to-blog:hover {
  color: var(--terracotta-dark);
}

.back-to-blog::before {
  content: '←';
  margin-right: 0.5rem;
}