/* =========================================================
   MdT5JFx - Foglio di stile unico e responsive
   Colori originali mantenuti: #3366ff, #000, #777, #fff
   ========================================================= */

/* ---------- Reset di base ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #777;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3366ff;
  text-decoration: underline;
}

a:hover {
  color: #1a3fa0;
}

/* ---------- Contenitore centrale ---------- */
.wrapper {
  max-width: 1244px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
.site-header {
  background: #3366ff;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.site-header img {
  width: 73px;
  height: auto;
  flex-shrink: 0;
}

.site-header h1 {
  font-size: 1.4rem;
  font-weight: normal;
  margin: 0;
  color: #fff;
  line-height: 1.3;
}

/* ---------- NAV / MENU ---------- */
.site-nav {
  background: #000;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;      /* <-- va a capo su mobile */
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 8px 10px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: #b0b0b0;
  color: #000;
}

.site-nav li.active {
  background: #fff;
  color: #000;
}

.site-nav li.active a,
.site-nav li.active span {
  color: #000;
  display: block;
  padding: 8px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* ---------- BARRA BLU SEPARATRICE ---------- */
.blue-bar {
  background: #3366ff;
  height: 12px;
}

/* ---------- CONTENUTO PRINCIPALE ---------- */
main {
  padding: 20px 15px 40px;
}

main h2 {
  color: #3366ff;
  font-size: 1.8rem;
  text-align: center;
  margin: 10px 0 20px;
  font-weight: normal;
}

main h3 {
  color: #777;
  font-size: 1.4rem;
  margin: 25px 0 10px;
  font-weight: normal;
}

main p {
  margin: 0 0 1em;
}

/* Blocco di testo centrato e leggibile su desktop, fluido su mobile */
.text-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.text-block.center {
  text-align: center;
}

hr.sep {
  border: 0;
  border-top: 2px solid #777;
  max-width: 700px;
  margin: 20px auto;
}

/* ---------- IMMAGINI DI CONTENUTO ---------- */
.content-img {
  margin: 20px auto;
  border: 1px solid #ccc;
}

.img-caption {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------- TABELLA (version.html) ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;      /* scroll orizzontale su mobile se serve */
  -webkit-overflow-scrolling: touch;
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  margin: 0 auto;
}

table.compare td {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px;
  vertical-align: middle;
}

table.compare td:first-child {
  text-align: left;
}

table.compare td:not(:first-child) {
  text-align: center;
  width: 22%;
}

table.compare tr.group td {
  color: #3366ff;
  font-weight: bold;
  padding-top: 18px;
}

table.compare img {
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* ---------- FORM PAYPAL ---------- */
.paypal-box {
  text-align: center;
  margin: 30px 0;
}

.paypal-box img {
  display: inline-block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #3366ff;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
}

.site-footer a {
  color: #fff;
}

/* ---------- MEDIA QUERY ---------- */

/* Tablet e sotto */
@media (max-width: 1024px) {
  .site-header h1 { font-size: 1.2rem; }
  main h2 { font-size: 1.5rem; }
  main h3 { font-size: 1.2rem; }
}

/* Smartphone */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .site-header {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }

  .site-header img { width: 60px; }

  .site-header h1 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .site-nav ul { justify-content: center; }

  .site-nav a,
  .site-nav li.active a,
  .site-nav li.active span {
    font-size: 0.7rem;
    padding: 8px 8px;
    letter-spacing: 0.1em;
  }

  main { padding: 15px 12px 30px; }

  main h2 { font-size: 1.25rem; }
  main h3 { font-size: 1.05rem; }

  table.compare td { padding: 8px; font-size: 0.85rem; }
  table.compare td:not(:first-child) { width: 20%; }
}

/* Schermi molto piccoli */
@media (max-width: 380px) {
  .site-header h1 { font-size: 0.9rem; }
  .site-nav a,
  .site-nav li.active a,
  .site-nav li.active span {
    font-size: 0.65rem;
    padding: 6px 6px;
  }
}

/* ---------- HERO (index: immagine + testo affiancati) ---------- */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1150px;
  margin: 0 auto 30px;
}

.hero-img {
  flex: 0 0 599px;      /* stessa larghezza dell'originale */
  max-width: 599px;
}

.hero-img img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  display: block;
}

.hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-text .brand {
  color: #3366ff;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Su tablet e mobile: impila verticalmente */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 20px;
  }
  .hero-img {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ---------- HERO variante download (testo centrato a destra) ---------- */
.hero-text.center {
  text-align: center;
}

.hero-text .download-buttons {
  margin: 25px 0;
}

.hero-text .download-buttons img {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 5px 8px;
  vertical-align: middle;
}

/* ---------- HERO download: testo centrato verticalmente ---------- */
.hero.hero-download {
  align-items: center;      /* centra verticalmente testo e immagine */
}

/* Su tablet: impila prima, così il testo non si "schiaccia" */
@media (max-width: 1100px) {
  .hero.hero-download {
    flex-direction: column;
    align-items: center;
  }
  .hero.hero-download .hero-img {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0 auto;
  }
}