body {
  margin: 0;
  padding: 32px 16px;
  background: #ece7da;
  color: #222222;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.45;
}

.pagina {
  max-width: 44em;
  margin: 0 auto;
  padding: 28px 32px 20px;
  background: #fffdf8;
  border: 1px solid #8a8577;
  box-shadow: 4px 4px 0 #c9c2b0;
}

header {
  border-bottom: 3px double #8a8577;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 2em;
  font-weight: normal;
  letter-spacing: .02em;
}

.sottotitolo {
  margin: 2px 0 12px;
  color: #6b6658;
  font-style: italic;
}

h2 {
  margin: 26px 0 6px;
  font-size: .95em;
  font-weight: bold;
  font-variant: small-caps;
  letter-spacing: .12em;
  color: #5a5547;
  border-bottom: 1px solid #d6cfbd;
}

ul.servizi {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.servizi li {
  display: grid;
  grid-template-columns: 9em 15em 1fr;
  gap: 0 12px;
  align-items: baseline;
  padding: 5px 4px;
  border-bottom: 1px dotted #d6cfbd;
}

ul.servizi li:last-child { border-bottom: none; }

a { color: #1a0dab; }
a:visited { color: #660099; }
a:hover { background: #ffff99; }
a:active { color: #cc0000; }

.host {
  font-family: "Courier New", Courier, monospace;
  font-size: .85em;
  color: #6b6658;
  overflow-wrap: anywhere;
}

.desc {
  font-style: italic;
  color: #444038;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: .85em;
  font-style: normal;
  white-space: nowrap;
  background: #f1ecdf;
  border: 1px solid #d6cfbd;
  padding: 1px 5px;
}

.orario-box { overflow-x: auto; }

table.orario {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .85em;
  text-align: center;
}

.orario th,
.orario td {
  border: 1px solid #d6cfbd;
  padding: 5px 2px;
}

.orario thead th,
.orario tbody th {
  background: #f1ecdf;
  color: #5a5547;
  font-variant: small-caps;
  letter-spacing: .05em;
}

.orario thead th:first-child { width: 2.4em; }

.orario small {
  display: inline-block;
  margin-top: 2px;
  font-family: "Courier New", Courier, monospace;
  font-size: .8em;
  color: #6b6658;
}

.orario .oggi { background: #fff6c2; }
.orario thead th.oggi { background: #f0dc7a; color: #222222; }

.orario-giorni { display: none; }

.tab-giorni {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.tab-giorni button {
  flex: 1;
  padding: 7px 0;
  font: inherit;
  font-variant: small-caps;
  letter-spacing: .05em;
  color: #5a5547;
  background: #f1ecdf;
  border: 1px solid #d6cfbd;
  cursor: pointer;
}

.tab-giorni button.attivo {
  background: #f0dc7a;
  border-color: #8a8577;
  color: #222222;
  font-weight: bold;
}

.ore-giorno {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d6cfbd;
}

.ore-giorno li {
  display: grid;
  grid-template-columns: 4.2em 1fr auto;
  gap: 0 10px;
  align-items: baseline;
  padding: 9px 10px;
  border-bottom: 1px dotted #d6cfbd;
}

.ore-giorno li:last-child { border-bottom: none; }

.ore-giorno .ora { color: #6b6658; font-size: .9em; }

.ore-giorno .aula {
  font-family: "Courier New", Courier, monospace;
  font-size: .85em;
  color: #6b6658;
}

footer {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #d6cfbd;
  font-size: .8em;
  color: #6b6658;
  text-align: center;
}

@media (max-width: 600px) {
  body { padding: 10px 8px; }
  .pagina { padding: 18px 14px 14px; box-shadow: 2px 2px 0 #c9c2b0; }
  ul.servizi li { grid-template-columns: minmax(6em, auto) 1fr; padding: 8px 2px; }
  .host { display: none; }
  .desc { text-align: right; font-size: .9em; }
  code { white-space: normal; overflow-wrap: anywhere; }
  .orario-box { display: none; }
  .orario-giorni { display: block; }
}
