:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-primary: #001a4d;
  --accent-secondary: #27ae60;
  --accent-tertiary: #e67e22;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 40px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-primary);
}

.footer-section p, .footer-section a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a {
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  display: none;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-banner button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-banner .accept {
  background: var(--accent-secondary);
  color: white;
}

.cookie-banner .reject {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 140px;
}

.btn-primary {
  background: var(--accent-secondary);
  color: white;
}

.btn-primary:hover {
  background: #229954;
  transform: scale(1.03);
}

.btn-secondary {
  background: var(--accent-tertiary);
  color: white;
}

.btn-secondary:hover {
  background: #d35400;
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.03);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 20px;
  background: var(--bg-primary);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

section {
  padding: 60px 20px;
}

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

.section-white {
  background: var(--bg-primary);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.mappa-container {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}

.mappa-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--accent-primary);
}

.mappa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.mappa-field {
  position: relative;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
}

.mappa-field-label {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 14px;
  margin-bottom: 8px;
}

.mappa-field-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin: 0 auto;
  max-width: 1100px;
}

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

.two-column-content h3 {
  margin-bottom: 20px;
}

.two-column-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-badge {
  display: inline-block;
  background: var(--accent-secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.product-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  flex: 1;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-primary);
}

.product-card .btn {
  min-width: auto;
  flex: 1;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 0 auto;
  max-width: 1200px;
}

.category-tile {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-tile:hover {
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.category-tile h3 {
  color: var(--accent-primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.category-tile p {
  font-size: 13px;
  color: var(--text-secondary);
}

.prices-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 0 auto;
  max-width: 1200px;
}

.price-item {
  background: var(--bg-primary);
  border: 2px solid var(--accent-secondary);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.price-item h3 {
  color: var(--accent-secondary);
  margin-bottom: 12px;
  font-size: 18px;
}

.price-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th {
  background: var(--accent-primary);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

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

.comparison-table tr:nth-child(even) {
  background: var(--bg-secondary);
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.question-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.question-card h4 {
  color: var(--accent-primary);
  font-size: 14px;
  margin-bottom: 10px;
}

.question-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.banner-small {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.banner-small h3 {
  color: var(--accent-primary);
  margin-bottom: 15px;
}

.banner-small p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.wide-banner {
  position: relative;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1100px;
}

.wide-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  padding: 40px;
  text-align: center;
}

.wide-banner-overlay h3 {
  color: white;
  margin-bottom: 15px;
}

.wide-banner-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 20px;
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-filter button {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-filter button.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.category-filter button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.mini-mappa {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  overflow-x: auto;
}

.mini-mappa-grid {
  display: flex;
  gap: 20px;
  min-width: min-content;
}

.mini-mappa-item {
  flex: 0 0 auto;
  text-align: center;
  min-width: 120px;
}

.mini-mappa-label {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 12px;
  margin-bottom: 8px;
}

.mini-mappa-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wide-banner-full {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
}

.wide-banner-full img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-banner-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  padding-left: 50%;
  width: 100%;
}

.wide-banner-content h2 {
  color: white;
  margin-bottom: 15px;
}

.wide-banner-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 26, 77, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent-primary);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
}

.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.thank-you-container h1 {
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.thank-you-container p {
  font-size: 16px;
  margin-bottom: 30px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 0 auto;
  max-width: 1200px;
}

.rule-tile {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
}

.rule-tile h4 {
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.rule-tile p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.legal-content p, .legal-content li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 50px 20px;
    gap: 30px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column img {
    height: 300px;
  }

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

  .product-card .btn {
    min-width: auto;
  }

  section {
    padding: 40px 20px;
  }

  .cookie-banner.show {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .cookie-banner button {
    width: 100%;
  }

  .wide-banner {
    height: 250px;
  }

  .wide-banner-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mini-mappa-grid {
    gap: 15px;
  }

  .category-filter {
    gap: 10px;
  }

  .form-container {
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 20px;
  }

  nav {
    gap: 10px;
    font-size: 11px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

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

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

  .prices-box {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 200px;
  }

  section {
    padding: 30px 15px;
  }

  .mappa-container {
    padding: 20px;
  }

  .form-container {
    padding: 20px;
  }
}
