/* ====== BASE (DESKTOP) ====== */
body{
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;

  min-height: 100vh;
  display: flex;
  justify-content: center;   /* centro orizzontale */
  align-items: center;       /* centro verticale */
}

/* ====== CONTENITORE PAGINA (DESKTOP) ====== */
.page-content-200sx{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;

  /* regolazione verticale “manuale” (desktop) */
  transform: translateY(40px);
}

/* ====== GRIGLIA CARDS (DESKTOP) ====== */
.car-table-200sx{
  width: 100%;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ====== CARD (DESKTOP) ====== */
.car-box-200sx{
  border: 1px solid #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  background-color: #ffffff;
  text-align: center;

  /* stabilità desktop */
  min-height: 340px;
}

.car-box-200sx:hover{
  border-color: blue;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Link: centra tutto come colonna */
.car-link-200sx{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Immagini: dimensione identica per entrambe */
.car-img-200sx{
  width: 100%;
  max-width: 320px;
  height: 200px;
  object-fit: contain;
  display: block;
}

/* rimpicciolisce SOLO la 200SX S13 + micro-spazio sotto */
.car-img-s13{
  transform: scale(1);
  transform-origin: center;
  margin-bottom: 12px;
}

/* Titoli */
.car-title-200sx{
  font-size: 40px;
  font-family: "Arial Black", Helvetica, sans-serif;
  line-height: 1.1;
  margin: 12px 0 0 0;
  color: blue;
  cursor: pointer;
}

/* micro-differenze */
.car-title-s13{ margin-top: 6px; }
.car-title-s14{ margin-top: 18px; }

/* Hover sul titolo */
.car-link-200sx:hover .car-title-200sx{
  text-decoration: underline;
}

/* ====== LINKS IN BASSO (DESKTOP) ====== */
.bottom-links-200sx{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 50px auto 0 auto;
  font-size: 24px;
}

.bottom-links-200sx a{
  color: black;
  font-family: "Times New Roman", serif;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s, text-decoration 0.2s;
}

.bottom-links-200sx a:hover{
  color: #d10a0a;
  text-decoration: underline;
}

/* bordi “spinti” solo su schermi grandi */
@media (min-width: 1100px){
  .left-link-200sx{ margin-left: -100px; }
  .right-link-200sx{ margin-right: -100px; }
}

/* =========================================================
   TABLET / MOBILE (<= 768px)  — 1 colonna + padding laterale
   (NON tocca il desktop)
   ========================================================= */
@media (max-width: 768px){

  /* Evita sfasamenti orizzontali */
  *, *::before, *::after{
    box-sizing: border-box;
  }
  html, body{
    overflow-x: hidden;
  }

  /* su schermi piccoli non usare flex-centering */
  body{
    display: block;
    min-height: auto;
  }

  .page-content-200sx{
    padding: 20px 16px;
    transform: none;
  }

  .car-table-200sx{
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 30px;
  }

  .car-box-200sx{
    width: 100%;
    max-width: 420px;
    min-height: 0;     /* IMPORTANTISSIMO: stop “colonne alte” */
    height: auto;
  }
}

/* =========================================================
   PHONE (<= 600px) — più “boxed” + testi più piccoli
   (Solo telefono, NON tocca desktop)
   ========================================================= */
@media (max-width: 600px){

  .page-content-200sx{
    padding: 20px 24px; /* più stacco ai bordi */
  }

  .car-box-200sx{
    max-width: 380px;   /* più compatta */
  }

  .car-img-200sx{
    max-width: 300px;
  }

  .car-title-200sx{
    font-size: 1.2rem;
    margin: 12px 0 14px 0;
  }

  .bottom-links-200sx{
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    font-size: 18px; /* riduce la “dimensione percepita” globale */
  }

  .bottom-links-200sx a{
    font-size: 18px;   /* link NON giganti */
    line-height: 1.2;
  }

  .right-link-200sx{
    margin-top: 20px;
  }
}