/* ===== TopTRACE static site ===== */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #2b2f33;
  --muted: #6f7882;
  --primary: #1f6fae;
  --primary-dark: #15527f;
  --border: #dfe5eb;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --radius: 12px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ===== Layout ===== */

.site-header {
  /* background: var(--surface); */
  border-bottom: 1px solid var(--border);
  background: #26313b;
  color: #dbe3ea;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.logo {
  font-size: 1.45rem;
  font-weight: 700;
  /* color: var(--primary); */
  color: #ffffff;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  /* color: var(--text); */
  color: #adadad;
  text-decoration: none;
  font-size: .95rem;
}

.nav a:hover,
.nav a.active {
  /* color: var(--primary); */
  color: #adadad;
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
}

/* ===== Hero ===== */

.hero {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-bottom: 32px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  /* color: var(--primary); */
  color: black;
  text-align: center;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  /* color: var(--muted); */
  color: #000;
}

/* ===== Contenuti ===== */

.content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.content h1,
.content h2,
.content h3 {
  /* color: var(--primary); */
  color: #000;
  line-height: 0.85;
}

.content h1 {
  margin-top: 0;
  font-size: 1.25rem;
}

.content h2 {
  margin-top: 32px;
  font-size: 1.05rem;
}

.content p {
  margin: 0 0 16px;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;

  margin: 0 auto;

  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius);
}

.content ul {
  margin: 0 0 16px;
  padding-left: 22px;

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;

  list-style-type: disc;
}

.content li {
  margin-bottom: 6px;
}

/* ===== Card prodotti home ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 5px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  /* background: #eef2f6; */
  background: #ffffff;
}

.card-body {
  padding: 22px;
  flex: 1;
}

.card h2 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.35rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.button,
.card a.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--primary-dark);
}

/* ===== Tabelle / form ===== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--surface);
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 140px;
}

/* ===== Footer ===== */

.site-footer {
  margin-top: 40px;
  background: #26313b;
  color: #dbe3ea;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  font-size: .85rem;
}

.site-footer a {
  color: #fff;
}

/* ===== Responsive ===== */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero,
  .content {
    padding: 24px;
  }
}

/* ===== Slider ===== */

.slider {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 420px;

  margin: 0 auto 40px;

  overflow: hidden;

  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);

  /* background: #ddd; */ 
  background: #ffffff;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  opacity: 0;
  transition: opacity .5s ease;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,.75);
  cursor: pointer;

  font-size: 20px;
  font-weight: bold;

  z-index: 10;
}

.slider-btn:hover {
  background: white;
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

/* Mobile */

@media (max-width: 768px) {
  .slider {
    height: 240px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }
}

/* ===== Assistenza Tecnica ===== */

.assistance-form {
  max-width: 720px;
  margin-top: 24px;
}

.assistance-form label {
  display: block;
  margin-bottom: 6px;

  font-weight: 600;
  color: var(--text);
}

.assistance-form input,
.assistance-form select,
.assistance-form textarea {
  width: 100%;

  padding: 10px 12px;

  margin-bottom: 18px;

  border: 1px solid var(--border);
  border-radius: 6px;

  font: inherit;
}

.assistance-form textarea {
  min-height: 140px;
  resize: vertical;
}

.privacy-note {
  margin-top: 6px;
  margin-bottom: 18px;

  font-size: .9rem;
  color: var(--muted);
}