
/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, h1, label, select, input {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, sans-serif;
}

body {
  background:whitesmoke ;
  color: #333;
  padding: 1rem;
  overflow-x: hidden;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.contenitore-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contenitore {
  background: rgb(255, 255, 255);
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.contenitore2 {
  background: rgb(247, 247, 247);
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.contenitoreah {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background: rgb(255, 255, 255);
  padding: 1rem;
  border-radius: 8px;
  width: 60%;
  max-width: 1500px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  justify-content: center;
 
}
/* Text styles */
.titolo-moderno {
  font-weight: bold;
  display: block;
  margin-bottom: 0.2rem;
}

.titolo-elegante,
.titolo-creativo {
  font-size: 0.9rem;
  color: #363636;
  display: block;
  margin-bottom: 0.5rem;
}

/* Inputs */
select, input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #b3b3b3;
}

/* Responsive images */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  margin: 0.3rem;
  cursor: pointer;
  text-align: center;
  font-size: small;
}

.btn:hover {
  background-color: #0056b3;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  background: white;
}

th, td {
  padding: 0.75rem;
  border: 1px solid #ffffff;
  text-align:left;
}

.highlight {
  background-color: #ffffff;
}

/* Print styles */
@media print {
  .btn, .no-print {
    display: none !important;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .contenitore {
    max-width: 100%;
  }

  th, td {
    font-size: 0.85rem;
  }
}
     table {
      width: 60%;
      margin: auto;
      border-collapse: collapse;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
      border-color:rgb(255, 255, 255);
    }
    th, td {
      border: 2px solid #ffffff;
      padding: 12px;
      text-align: left;
      width:200px   ;
    }
    th {
      background-color: #cfcfcf;
      color: rgb(0, 0, 0);
      width:500px    ;
    }
    tr:nth-child(even) {
      background-color: #f9f9f9;
    }
    caption {
      caption-side: top;
      font-size: 1.5em;
      margin-bottom: 10px;
    }


/* Enhanced responsive table styles */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    width: 100%;
    min-width: unset;
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
    font-size: 0.8rem;
    width: auto;
  }

  caption {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  caption {
    font-size: 1rem;
  }
}
