
html {
  /* La larghezza e la lunghezza del conent sono width e height meno padding e border */
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
}

footer {
  padding: 40px 12% 38px;
}

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

h2,
h3 {
  margin: 0.4rem;
  text-align: center;
}

.banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 6rem;
  margin: 0.5rem 0 1.25rem;
}

.banner h1 {
  display: inherit;
  align-items: center;
}

.nav-pannel {
  padding: 0 5%;
}

.nav-pannel ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 3rem;
  list-style: none;
}

.dash-block {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(100%, 34rem);
  padding: 1rem 1rem 1.25rem;
}

.service-block {
  /* 3 colonne: icona | titolo | vuota. Le due laterali (1fr) sono uguali,
     quindi la colonna centrale coincide con il centro del blocco */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 100%;
  align-items: center;
  height: 4.5rem;
  padding: 10px;
  margin: 0.75rem 0.5rem;
}

.service-block img {
  justify-self: start;
}

.inner {
  margin: 0 auto;
}

.company {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.motto {
  margin-top: 1.5rem;
}

.rights {
  padding-top: 15px;
}

#servizzi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin: 4rem 0 6rem;
  padding: 0 1rem;
}

#wrap {
  display: flow-root;
  min-height: 100vh;
}
