html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100%;
  background-color: #f2f2f2;
}

#s1, #s2, #s3 {
  height: 32%;
  overflow: hidden;
}

#s4 {
  height: 4%;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

.sezione {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.slide {
  display: none;
  font-size: 1.4em;
  color: #333;
}

.slide.active {
  display: block;
}

.contenuto-sezione {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 2em;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.contenuto-sezione h1,
.contenuto-sezione h2 {
  color: #003366;
  margin: 0.5em 0;
}

.contenuto-sezione p {
  font-size: 1.2em;
  margin: 0.5em 0;
}

.contenuto-sezione table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.contenuto-sezione td {
  padding: 0.5em;
  font-size: 1.2em;
  vertical-align: middle;
  background-color: #e9f0f8;
  color: #003366;
}

.slide {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

img {
  max-width: 200px;
  height: auto;
  margin-top: 1em;
}

#s4 {
  background-color: #333;
  height: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.notizie-scorrimento {
  height: 30px;
  line-height: 30px;
  font-size: 1.2em;
  padding: 0;
}

.notizie-scorrimento span {
  display: inline-block;
  padding-left: 100%;
  animation: scorrimento 50s linear infinite;
}

@keyframes scorrimento {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

