body{
  margin:0;
  font-family:"Times New Roman", Georgia, serif;
  background:#fbfaf7;
  color:#111;
  line-height:1.9;
}

.wrap{
  max-width:760px;
  margin:0 auto;
  padding:0 22px;
}

header{
  border-bottom:1px solid #e1ddd4;
  padding:20px 0;
}

header .wrap{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  line-height:1.4;
}

.mobile-break{
  display:none;
}

.desktop-sep{
  display:inline;
}

@media (max-width:768px){
  .desktop-sep{
    display:none;
  }

  .mobile-break{
    display:block;
  }
}

footer{
  border-top:1px solid #e1ddd4;
  padding:28px 0;
  font-size:13px;
  color:#5a5a5a;
}

/* Titoli pagine interne */
main h1{
  font-size:34px;
  font-weight:500;
  line-height:1.25;
  margin:28px 0 12px;
}

/* Titolo homepage */
.home-title{
  font-size:clamp(34px, 6vw, 44px);
  line-height:1.15;
  letter-spacing:0.6px;
  font-weight:600;
  margin:0 0 12px;
}

h2{
  font-weight:500;
  margin:0 0 6px;
}

h3{
  font-weight:500;
  margin:0 0 4px;
}

p{
  text-align:justify;
  color:#5a5a5a;
  margin:8px 0;
}

.card{
  padding:48px 0;
  border-bottom:1px solid #e1ddd4;
}

.section{
  padding:48px 0;
  border-bottom:1px solid #e1ddd4;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

@media (max-width:900px){
  .grid{
    grid-template-columns:1fr;
  }

  p{
    text-align:justify;
    color:#5a5a5a;
  }
}

input,
textarea{
  width:100%;
  border:none;
  border-bottom:1px solid #e1ddd4;
  padding:10px 0;
  margin-bottom:20px;
  background:transparent;
}

.btn{
  color:#8a6d3b;
  text-decoration:underline;
  background:none;
  border:none;
  cursor:pointer;
}

.notice{
  color:red;
  margin-bottom:20px;
}

/* Link generali */
a{
  color:#8a6d3b;
  text-decoration:underline;
}

a:hover{
  opacity:.85;
}

a:visited{
  color:#8a6d3b;
}

/* Footer links */
.footer-link{
  color:#5a5a5a;
  text-decoration:underline;
}

.footer-link:hover{
  opacity:.75;
}

.footer-link:visited{
  color:#5a5a5a;
}

.privacy-text{
  font-size:14px;
  line-height:1.6;
  color:#5a5a5a;
  text-align:justify;
}

/* Cookie banner GDPR */
#cookie-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  z-index:9998;
}

#cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:#fbfaf7;
  border-top:1px solid #e1ddd4;
  display:none;
  z-index:9999;
}

#cookie-banner .wrap{
  padding:18px 22px;
}

#cookie-banner h3{
  margin:0 0 8px;
  font-weight:500;
  font-size:18px;
  color:#111;
}

.cookie-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.cookie-btn{
  font-family:inherit;
  border:1px solid #e1ddd4;
  background:transparent;
  padding:8px 12px;
  cursor:pointer;
}

.cookie-btn.primary{
  border-color:#8a6d3b;
}

.cookie-btn:hover{
  opacity:.85;
}

.cookie-small{
  font-size:13px;
  color:#5a5a5a;
  text-align:justify;
  line-height:1.6;
}

.cookie-prefs{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e1ddd4;
  display:none;
}

.cookie-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:10px 0;
}

.cookie-row strong{
  display:block;
  color:#111;
}

.cookie-row input{
  width:auto;
  margin-top:4px;
}

/* ---------------- HOME PAGE ---------------- */

.home .card{
  padding:20px 0;
}

.home section:first-of-type{
  padding-top:20px;
}

.home section{
  padding-bottom:20px;
}

.home-photo{
  display:block;
  margin:0 auto 15px auto;
  width:140px;
  height:auto;
  border-radius:6px;
}

@media (max-width:600px){
  .home-photo{
    width:120px;
  }
}

.subtitle{
  font-size:18px;
  color:#555;
  margin-top:6px;
  letter-spacing:0.3px;
  text-align:center;
}

/* ---------------- ALLINEAMENTO MOBILE COME HOME ---------------- */

@media (max-width:768px){

  main.wrap{
    padding-left:22px;
    padding-right:22px;
    box-sizing:border-box;
  }

  nav{
    margin:12px 0 8px;
    font-size:13px;
    line-height:1.5;
  }

  main h1{
    margin-top:14px;
    font-size:30px;
    line-height:1.2;
  }

  .card,
  .section{
    padding-top:20px;
    padding-bottom:20px;
  }

  section[style]{
    padding-top:20px !important;
    padding-bottom:20px !important;
  }
}

@media (max-width:768px){
  .section{
    padding:20px 0;
  }
}

/* Larghezza mobile */
@media (max-width:768px){
  .wrap,
  main.wrap,
  header .wrap,
  footer .wrap,
  #cookie-banner .wrap{
    max-width:100%;
    width:auto;
    margin-left:auto;
    margin-right:auto;
    padding-left:22px;
    padding-right:22px;
    box-sizing:border-box;
  }
}

/* Uniforma larghezza desktop */
@media (min-width:769px){
  .home main.wrap,
  body:not(.home) main.wrap,
  body:not(.home) nav,
  body:not(.home) .section,
  body:not(.home) .card,
  body:not(.home) main.wrap > *{
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* MOBILE FOOTER */
@media (max-width:768px){

  footer{
    text-align:center;
    line-height:1.4;
  }

  footer p{
    margin:4px 0;
  }

  .footer-office{
    font-size:9pt;
    line-height:1.2;
    padding:0 !important;
  }

  .footer-office:last-child{
    padding-left:0 !important;
  }

  .footer-offices-table{
    width:100%;
  }

  .footer-offices-table td:first-child{
    text-align:left;
  }

  .footer-offices-table td:last-child{
    text-align:left;
  }

  .footer-office a{
    color:#8a6d3b !important;
    text-decoration:underline;
  }

  .footer-office a[href^="tel"]{
    color:#8a6d3b !important;
  }

  .footer-email{
    text-align:center;
    font-size:9pt;
    line-height:1.15;
    width:100%;
    color:#111;
    margin:4px 0 0 0;
  }

  .footer-email-icon{
    margin-right:4px;
    color:#111;
    position:relative;
    top:2px;
  }

  .footer-email a,
  .footer-email a:visited{
    color:#8a6d3b !important;
    text-decoration:underline;
  }

  .footer-legal{
    text-align:center;
    font-size:9pt;
    line-height:1.15;
    margin-top:0;
    padding-top:0;
  }

  .footer-legal a,
  .footer-legal a:visited{
    color:#8a6d3b !important;
    text-decoration:underline;
  }

  .footer-legal a{
    margin:0 2px;
  }
}

/* FOOTER GENERALE */
.footer-offices-table{
  width:100%;
  border-collapse:collapse;
}

.footer-office{
  width:50%;
  vertical-align:top;
  text-align:left;
  line-height:1.2;
  color:#5a5a5a;
}

.footer-office:last-child{
  text-align:left;
}

.footer-offices-table td:last-child{
  text-align:right;
}

.footer-office a,
.footer-office a:visited{
  color:#8a6d3b !important;
  text-decoration:underline;
}

.footer-email{
  display:block;
  width:100%;
  text-align:center !important;
  margin:2px auto 0 auto;
  line-height:1.15;
}

.footer-email a,
.footer-email a:visited{
  color:#8a6d3b !important;
  text-decoration:underline;
}

.footer-legal{
  text-align:center;
  margin-top:0;
  padding-top:0;
  line-height:1.1;
}

.footer-legal a,
.footer-legal a:visited{
  color:#8a6d3b !important;
  text-decoration:underline;
}

.footer-legal a{
  margin:0 2px;
}

/* ICONE TELEFONO */
.phone-icon{
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  margin-right:4px;
  vertical-align:middle;
  font-size:0.95em;
  position:relative;
  top:-1px;
}

/* HEADER */
.header-phones{
  font-size:10pt;
  font-weight:normal;
  color:#5a5a5a;
  white-space:nowrap;
  margin-top:6px;
}

.header-phones a{
  color:#8a6d3b;
  text-decoration:underline;
}

.header-phones a:visited{
  color:#8a6d3b;
}

.header-title{
  color:#6f6f6f;
  letter-spacing:0.6px;
  font-size:15px;
  margin-bottom:4px;
}

.footer-email-icon{
  margin-right:4px;
  color:#111;
  position:relative;
  top:2px;
}