:root {
  --color-white: #ffffff;
  --color-bg-light: #f7f7f7;
  --color-text: #3a3a3a;
  --color-accent: #1e3a5f;
  --color-primary: #2d7a3e;
  --color-secondary: #e67e22;
  --border-radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

.navbar {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

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

.btn-primary {
  background: var(--color-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #236030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.btn-secondary {
  background: var(--color-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
  color: var(--color-white);
}

.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.section-light {
  background: var(--color-bg-light);
}

.section-padding {
  padding: 4rem 0;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.product-card .card-img-top {
  height: 300px;
  object-fit: contain;
  padding: 1rem;
  background: var(--color-white);
}

.badge-category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.badge-alltag {
  background: #e8f4f8;
  color: #2c5f7a;
}

.badge-training {
  background: #fff3e0;
  color: #b85c00;
}

.badge-pause {
  background: #f3e5f5;
  color: #6a1b9a;
}

.badge-routine {
  background: #e8f5e9;
  color: #2e7d32;
}

.percorso-card {
  padding: 1.5rem;
  cursor: pointer;
}

.percorso-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.two-column-section {
  align-items: center;
}

.two-column-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.divider-section {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.divider-text {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  font-size: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.category-tile {
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-tile h3 {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.comparison-table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-table th {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.faq-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-card h4 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-bg-light);
  border-radius: 25px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.chip:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

.footer h5 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer a {
  color: #ccc;
}

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

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.15);
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.product-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0;
}

.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  padding: 1rem;
  background: var(--color-bg-light);
  margin-bottom: 0.75rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(58, 58, 58, 0.98);
  color: var(--color-white);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner.hidden {
  display: none;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1.75rem;
}

.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 1.25rem;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .two-column-img {
    height: 250px;
    margin-top: 1.5rem;
  }
  
  .divider-section {
    height: 200px;
  }
  
  .chip-bar {
    gap: 0.5rem;
  }
  
  .chip {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
}
