:root {
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-text-dark: #333333;
  --color-accent-blue: #1a3a5c;
  --color-btn-green: #28a745;
  --color-btn-orange: #fd7e14;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --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-dark);
  background: var(--color-bg-white);
  line-height: 1.6;
}

.navbar {
  background: var(--color-bg-white);
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

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

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

.nav-link {
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.btn-primary-custom {
  background: var(--color-btn-green);
  border: none;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: #218838;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary-custom {
  background: var(--color-btn-orange);
  border: none;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: #e8690a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.section-light {
  background: var(--color-bg-light);
  padding: 3rem 0;
}

.section-white {
  background: var(--color-bg-white);
  padding: 3rem 0;
}

.priority-tile {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.priority-tile:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.css-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-chiarezza {
  border: 3px solid var(--color-accent-blue);
  border-radius: 50%;
  position: relative;
}

.icon-chiarezza::before {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--color-accent-blue);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-chiarezza::after {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--color-accent-blue);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-compattezza {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.icon-compattezza::before,
.icon-compattezza::after {
  content: '';
  width: 100%;
  height: 3px;
  background: var(--color-btn-green);
}

.icon-prezzo {
  border: 3px solid var(--color-btn-orange);
  border-radius: 4px;
  position: relative;
}

.icon-prezzo::before {
  content: 'E';
  font-size: 24px;
  font-weight: 700;
  color: var(--color-btn-orange);
}

.icon-semplicita {
  position: relative;
}

.icon-semplicita::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-text-dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-semplicita::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-text-dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-confronto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.icon-confronto::before,
.icon-confronto::after {
  content: '';
  width: 25px;
  height: 25px;
  border: 2px solid var(--color-accent-blue);
  border-radius: 4px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: thin;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.product-card {
  min-width: 280px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 1.25rem;
}

.product-badge {
  position: relative;
  display: inline-block;
  background: var(--color-accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-btn-green);
  margin: 0.75rem 0;
}

.two-col-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.two-col-section img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.chip {
  background: var(--color-bg-light);
  border: 2px solid var(--color-accent-blue);
  color: var(--color-accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
}

.divider-section {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin: 2rem 0;
}

.divider-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
}

.table-custom {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.table-custom th {
  background: var(--color-accent-blue);
  color: white;
  font-weight: 600;
  padding: 1rem;
}

.table-custom td {
  padding: 1rem;
}

.qa-item {
  background: white;
  border-left: 4px solid var(--color-btn-green);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.qa-question {
  font-weight: 700;
  color: var(--color-accent-blue);
  margin-bottom: 0.5rem;
}

.qa-answer {
  color: var(--color-text-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-grid-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-grid-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-grid-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-grid-body {
  padding: 1.5rem;
}

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

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

.filter-chip {
  background: var(--color-bg-light);
  border: 2px solid var(--color-text-dark);
  color: var(--color-text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  transition: all 0.3s ease;
}

.photo-strip {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.photo-strip img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.rule-tile {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 1rem;
}

.rule-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--color-accent-blue);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-btn-green);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.footer {
  background: var(--color-accent-blue);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

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

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

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

.cookie-banner.show {
  display: block;
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.thank-you-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
}

.legal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin: 2rem 0;
}

.legal-content h2 {
  color: var(--color-accent-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--color-text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }
  
  .two-col-section {
    flex-direction: column;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .photo-strip {
    flex-direction: column;
  }
  
  .photo-strip img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .scroll-container {
    padding-left: 0;
  }
  
  .product-card {
    min-width: 240px;
  }
}
