/* ======================================================
   SUONOELETTRONICO.COM
   Adaptive / Responsive CSS (non distruttivo)
   ====================================================== */

/* 1. Base */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* 2. Contenitore pagina (se non esiste) */
.page-wrapper,
.wrapper,
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
}

/* 3. Immagini responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. Tabelle – comportamento adaptive */
table {
  border-collapse: collapse;
  max-width: 100%;
}

/* wrapper per tabelle grandi */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* mantiene l'impaginazione originale */
.table-responsive table {
  min-width: 700px;
}

/* 5. Evita overflow orizzontale globale */
body {
  overflow-x: hidden;
}

/* 6. Link e testi lunghi */
a {
  word-break: break-word;
}

p, td, th {
  word-break: normal;
}

/* ======================================================
   MOBILE
   ====================================================== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  table {
    font-size: 14px;
  }

  td, th {
    padding: 4px;
  }

  /* vecchi width fissi */
  table[width],
  td[width] {
    width: auto !important;
  }

}

/* ======================================================
   VERY SMALL DEVICES
   ====================================================== */
@media (max-width: 480px) {

  body {
    font-size: 14px;
  }

  table {
    font-size: 13px;
  }

}

