/* Global Variables */
:root {
  --primary-color: #10A37F;   /* Teal (ChatGPT-inspired) */
  --primary-dark: #0F8B68;    /* Darker teal for hover effects */
  --nav-bg: #343541;          /* Dark Gray */
  --background: #F7F8FA;      /* Very Light Gray */
  --text-color: #333;
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Regola globale per i link: non più blu, ma intonati con il resto */
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Uniform Headings (concise) */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-top: 0;
}

/* Navbar */
.navbar {
  background-color: var(--nav-bg);
}
.navbar-brand,
.nav-link {
  color: #fff !important;
}

/* Hero Section */
.hero {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color) !important;
  border: none !important;
  transition: background-color 0.3s;
}
.btn-primary:hover {
  background-color: var(--primary-dark) !important;
}
.btn-outline-primary {
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  transition: background-color 0.3s, color 0.3s;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Cards */
/* Forza il ridimensionamento responsivo senza ritagli */
.card img,
.card-img-top {
  width: auto !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}

/* Price Box for Evaluation Board details */
.price-box {
  border: 2px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 30px auto;
  max-width: 400px;
}
.price-box h3 {
  margin-bottom: 20px;
  font-size: 1.75rem;
}
.price-box p {
  margin: 5px 0;
  font-size: 1.2rem;
}
.price-box .btn {
  margin-top: 15px;
}

/* Table Styles */
.table-section {
  padding: 50px 0;
}
.table thead {
  background-color: var(--primary-color);
  color: #fff;
}
.table tbody tr:hover {
  background-color: #e6f7f2;
}
.highlight {
  background-color: #d1fae5;
  font-weight: bold;
}

/* Timeline (Firmware History) */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ccc;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
}
.timeline-item:nth-child(even)::after {
  left: -6px;
}

/* Reseller Grid */
.reseller-grid {
  padding: 50px 0;
}
.reseller-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #fff;
}

/* Footer */
.footer {
  background-color: var(--nav-bg);
  color: #ccc;
  padding: 30px 0;
  text-align: center;
}
.footer a {
  color: #ccc;
  text-decoration: none;
}
.footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

@font-face {
  font-family: 'Spaceman';
  src: url('fonts/Spaceman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.brand-text {
  font-family: 'Spaceman', sans-serif;
  font-size: 1.8rem; /* Adjust as needed */
}

/* === Sezione Features: Stili personalizzati === */
.feature-list {
  font-size: 1.125rem; /* Font base per schermi più grandi */
  line-height: 1.5;
}

.feature-item {
  margin-bottom: 1rem;
}

.feature-item i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Riduci il font-size per dispositivi mobili */
@media (max-width: 576px) {
  .feature-list {
    font-size: 1rem;
  }
}
