/* Stigea srl - stili del sito (ricalcati dal sito originale www.stigeasrl.it) */

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  text-align: center;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #000;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#container {
  width: 100%;
  text-align: center;
  margin: auto;
}

/* ---------- Header ---------- */
#cont_header {
  width: 100%;
  min-height: 144px;
  background: url(images/bg_header.jpg) left top repeat-x;
  border-bottom: 1px solid #bbc1c5;
}

#header {
  max-width: 952px;
  min-height: 144px;
  margin: auto;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#logo {
  height: 144px;
  width: 295px;
  flex: 0 0 auto;
}

#logo img {
  display: block;
}

#recapiti {
  padding: 60px 0 0 0;
  font: bold 13px "Trebuchet MS", Arial, sans-serif;
  color: #0e263c;
}

#recapiti a:link,
#recapiti a:visited {
  color: #0e263c;
}

#recapiti a:hover {
  color: #0080ff;
}

/* ---------- Menu ---------- */
#cont_menu {
  clear: both;
  width: 100%;
  height: 41px;
  background: url(images/bg_menu.jpg) left top repeat-x;
  border-bottom: 1px solid #cad0d4;
}

#menu {
  max-width: 952px;
  margin: auto;
  height: 40px;
  text-align: left;
}

.menu-toggle {
  display: none;
}

#menu ul {
  padding: 0;
  margin: 0;
  height: 40px;
  list-style-type: none;
  text-transform: uppercase;
  font: bold 13px "Trebuchet MS", Arial, sans-serif;
  display: flex;
}

#menu li {
  width: 158px;
  height: 40px;
  padding: 10px 0 0 0;
  text-align: center;
  background: url(images/bg_li.jpg) right center no-repeat;
}

#menu li.last {
  background-image: none;
}

#menu a:link,
#menu a:visited {
  color: #fff;
  text-decoration: none;
}

#menu a:hover {
  color: #0080ff;
  text-decoration: underline;
}

/* ---------- Contenuto ---------- */
#centro {
  display: block;
  max-width: 952px;
  margin: auto;
  padding: 0 0 20px 0;
}

#banner {
  padding: 20px 0 0 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
}

#banner_sx {
  width: 705px;
}

#banner_sx img {
  display: block;
}

#banner_dx {
  width: 241px;
  display: flex;
  flex-direction: column;
}

#banner_dx img:nth-child(1) {
  margin-bottom: 6px;
}

#banner_dx img:nth-child(2) {
  margin-bottom: 7px;
}

#banner_dx img {
  display: block;
}

#testo {
  clear: both;
  padding-top: 20px;
  text-align: left;
  font-size: 12px;
}

#testo a:link,
#testo a:visited {
  font-weight: bold;
  color: #c84208;
}

#testo a:hover {
  font-weight: bold;
  color: #0080ff;
}

h1 {
  text-transform: uppercase;
  font: 22px "Trebuchet MS", Arial, sans-serif;
  color: #0e263c;
}

h2 {
  text-transform: uppercase;
  font: 20px "Trebuchet MS", Arial, sans-serif;
  color: #0e263c;
}

h3 {
  text-transform: uppercase;
  font: 17px "Trebuchet MS", Arial, sans-serif;
  color: #0e263c;
}

/* I titoli interni ai testi CMS (es. nomi del team) mantengono la dimensione dell'h3 originale */
/* spaziatura = margine p (12) + riga <br> del vecchio html (14) + margine titolo (17) */
.cms-text h2 {
  font-size: 17px;
  margin: 43px 0 17px;
}

/* nella privacy i titoli originali sono h2 da 20px */
.privacy-text h2,
.privacy-text h3 {
  font-size: 20px;
  margin: 42.6px 0 16.6px;
}

/* "Note legali" era un secondo h1 nel vecchio sito: stesso aspetto, ma h2 per avere un solo h1 */
.privacy-text h2#note_legali {
  font-size: 22px;
  margin: 40.7px 0 14.74px;
}

.privacy-text h2#note_legali + h3 {
  margin-top: 16.6px;
}

.cms-text p:first-child {
  margin-top: 0;
}

p.organigramma {
  text-align: center;
}

p.organigramma img {
  vertical-align: top;
}

/* nel vecchio html le immagini erano separate da un <br> */
p.organigramma + p.organigramma {
  margin-top: 38px;
}

/* ---------- Home ---------- */
#testo .intro {
  min-height: 171px;
  border-bottom: 1px solid #8b98a0;
  overflow: hidden;
}

#testo .intro p {
  margin: 0 0 14px;
}

img.foto_index {
  float: left;
  border: 1px solid #8b98a0;
  margin: 0 10px 10px 0;
}

.attivita_servizi {
  display: flex;
  gap: 2px;
  padding: 2px;
  margin: 20px 0;
}

.attivita_servizi > div {
  width: calc(50% - 1px);
  padding: 1px;
  font-size: 14px;
  font-weight: bold;
  color: #0e263c;
}

.attivita_servizi .titolo_tab {
  margin: 0 0 4px;
  text-transform: uppercase;
  font: 17px "Trebuchet MS", Arial, sans-serif;
  color: #0e263c;
}

ul.lista_tab,
.lista_tab ul {
  list-style-type: none;
  margin: 0;
  padding: 0 0 0 50px;
}

ul.lista_tab li,
.lista_tab ul li {
  padding-left: 20px;
  background: url(images/bullet.jpg) left center no-repeat;
  margin-bottom: 5px;
}

/* ---------- Certificazioni ---------- */
#certificazioni {
  min-height: 122px;
  border: 1px solid #d9dfe3;
  background: #edeff0 url(images/bg_certificazioni.jpg) left top repeat-x;
  margin-top: 40px;
  padding: 2px;
  display: flex;
  gap: 2px;
  font-size: 10px;
  text-align: left;
}

#certificazioni .cert-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 1px;
  text-align: center;
}

#certificazioni .cert-cell.right {
  text-align: right;
}

#certificazioni .cert-cell.left {
  text-align: left;
  padding-top: 13px;
}

#certificazioni img {
  vertical-align: top;
}

#certificazioni .cert-cell p {
  margin: 0;
}

/* ---------- Breadcrumbs ---------- */
#briciole_di_pane {
  font-size: 11px;
  padding: 0 0 5px 0;
  margin: 10px 0;
  border-bottom: 1px solid #e3e4e5;
}

#briciole_di_pane nav {
  display: block !important;
}

#briciole_di_pane .breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#briciole_di_pane .breadcrumb-item::after {
  content: "\00bb\00a0";
}

#briciole_di_pane .breadcrumb-item:first-child {
  text-transform: uppercase;
}

/* ---------- Menu rapido (stampa / segnala / facebook) ---------- */
#menu_rapido {
  height: 41px;
  margin: 0;
  padding: 0;
  text-align: right;
  border-bottom: 1px solid #e3e4e5;
}

#opzioni {
  float: right;
  height: 40px;
}

#icone {
  display: block;
  height: 20px;
  line-height: 0;
}

#icone a {
  display: inline-block;
}

#menu_rapido img {
  border: 0;
  width: 20px;
  height: 20px;
}

#menu_rapido .quick-description {
  display: block;
  min-height: 12px;
  margin: 5px 0 0;
  font-size: 11px;
}

/* ---------- Lavori: elenco ---------- */
div.descrizione_lunga_lista {
  padding: 10px 0;
}

div.descrizione_lunga_lista:empty {
  height: 20px;
}

.liv_lista_branch {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
}

.liv_lista_branch .con_foto {
  border: 1px solid #ccc;
  height: 114px;
  width: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  margin-right: 10px;
}

.liv_lista_branch .con_foto img {
  max-height: 113px;
  width: auto;
  border: 0;
}

.desc_list_branch {
  text-align: left;
}

#brothers {
  margin: 10px 0 0 0;
  font-size: 11px;
}

#brothers ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* ---------- Lavori: dettaglio ---------- */
div.descrizione_lunga_dettaglio {
  padding: 10px 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

div.descrizione_lunga_dettaglio .first_photo {
  flex: 0 0 auto;
  width: 502px;
  max-width: 100%;
  margin: 0 0 15px;
  border: 1px solid #ccc;
  line-height: 0;
}

div.descrizione_lunga_dettaglio .first_photo img {
  width: 100%;
  height: auto;
}

div.descrizione_lunga_dettaglio .scheda-info {
  flex: 1 1 auto;
  min-width: 0;
}

div.descrizione_lunga_dettaglio .cms-text p,
div.descrizione_lunga_dettaglio .cms-text p:first-child {
  margin-top: 12px;
  text-align: justify;
}

#livello_attributi {
  width: 420px;
  max-width: 100%;
  margin-left: auto;
  padding: 0 20px 0 0;
}

#attributi {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

#attributi .AttribName {
  width: 25%;
  padding: 3px 3px 3px 0;
  border-bottom: 1px dotted #e3e4e5;
}

#attributi .AttribValue {
  width: 75%;
  padding: 3px 3px 3px 0;
  border-bottom: 1px dotted #e3e4e5;
}

#livello_foto {
  padding: 20px 0 0 0;
  clear: both;
  overflow: hidden;
}

#livello_fotogallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fotogallery {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  height: 115px;
  width: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fotogallery img {
  max-height: 113px;
  width: auto;
}

#livello_allegati {
  clear: both;
}

#livello_allegati ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#livello_allegati li {
  padding-left: 25px;
  min-height: 22px;
  line-height: 22px;
  background: url(images/attach.png) left center no-repeat;
}

#livello_allegati a {
  padding: 2px 30px 2px 0;
}

#livello_allegati a[href$=".pdf"],
#livello_allegati a[href$=".PDF"] {
  background: url(images/pdf.gif) right center no-repeat;
}

#livello_precedente_successivo {
  clear: both;
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #e3e4e5;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

#livello_precedente_successivo .next {
  margin-left: auto;
}

/* ---------- Contatti ---------- */
.contact-list {
  list-style: none;
  margin: 2px 0 12px;
  padding: 0;
}

.contact-list li {
  padding-left: 26px;
  line-height: 20px;
  background-position: left center;
  background-repeat: no-repeat;
}

.contact-list .contact-tel {
  background-image: url(images/ico_tel.png);
}

.contact-list .contact-fax {
  background-image: url(images/ico_fax.png);
}

.contact-list .contact-mail {
  background-image: url(images/mail.png);
}

.contact-map {
  display: block;
  margin: 18.6px 0 0;
  width: 100%;
  height: 450px;
  border: 0;
}

/* ---------- 404 ---------- */
.page-404 .subtitle-404 {
  font-size: 14px;
  font-weight: bold;
  color: #0e263c;
}

/* ---------- Footer ---------- */
#cont_footer {
  width: 100%;
  min-height: 102px;
  background: url(images/bg_footer.jpg) left top repeat-x;
  background-color: #929da3;
}

#footer {
  max-width: 952px;
  min-height: 102px;
  margin: auto;
  text-align: left;
  padding: 20px 0;
  font-size: 12px;
  color: #0e263c;
}

#footer address {
  padding-top: 10px;
  font-style: normal;
}

#footer div.adr {
  display: inline;
}

#footer a:link,
#footer a:visited {
  color: #fff;
}

#footer a:hover {
  color: #0080ff;
}

/* ---------- Responsive (il sito originale è a larghezza fissa 952px) ---------- */
@media (max-width: 980px) {
  #header,
  #menu,
  #centro,
  #footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  #banner_sx {
    width: 74%;
  }

  #banner_dx {
    width: 25%;
  }
}

@media (max-width: 768px) {
  #header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #recapiti {
    padding: 10px 0 15px;
  }

  #cont_menu,
  #menu {
    height: auto;
    min-height: 40px;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    height: 40px;
    background: transparent;
    border: 0;
    color: #fff;
    font: bold 13px "Trebuchet MS", Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
  }

  #menu ul {
    display: none;
    flex-direction: column;
    height: auto;
  }

  #menu ul.open {
    display: flex;
  }

  #menu li {
    width: 100%;
    background-image: none;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }

  #banner {
    flex-direction: column;
  }

  #banner_sx,
  #banner_dx {
    width: 100%;
  }

  #banner_dx {
    flex-direction: row;
    margin-top: 6px;
  }

  #banner_dx img {
    width: calc((100% - 12px) / 3);
  }

  .attivita_servizi,
  #certificazioni {
    flex-direction: column;
  }

  .attivita_servizi > div,
  #certificazioni .cert-cell {
    width: 100%;
  }

  .attivita_servizi > div + div {
    margin-top: 20px;
  }

  #certificazioni .cert-cell,
  #certificazioni .cert-cell.right,
  #certificazioni .cert-cell.left {
    text-align: center;
    padding: 5px;
  }

  div.descrizione_lunga_dettaglio {
    flex-direction: column;
  }

  #livello_attributi {
    padding: 0;
  }
}

/* ---------- Barra cookie (come sul sito originale) ---------- */
#cookieChoiceInfo {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  margin: 0;
  padding: 20px;
  z-index: 10000;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  font-family: Verdana, Geneva, sans-serif;
  text-align: center;
}

#cookieChoiceInfo[hidden] {
  display: none;
}

#cookieChoiceInfo a {
  color: #fff;
  text-decoration: underline;
}

#cookieChoiceInfo a:hover {
  color: #f00;
}

#cookieChoiceDismiss {
  margin-left: 24px;
  font-weight: bold;
}

#cookieChoiceDismiss:hover {
  color: #0c0 !important;
}
