/* ==========================================================================
   Dott. Pasquale Marone — versione statica di www.pasqualemarone.it
   Replica del layout WordPress (tema Bridge 10.1 + WPBakery) senza CMS.
   Font: Poppins (self-hosted, cartella fonts/). Colore: #00a09a.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-ext-300.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --verde: #00a09a;
  --testo: #444;
  --footer-bg: #eff8f8;
}

/* --------------------------------------------------------------------------
   Base (tipografia del tema)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: #fff;
  color: var(--testo);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--verde); text-decoration: none; transition: color .1s linear; }
a:hover { color: var(--testo); }

p { margin: 10px 0; font-size: 16px; line-height: 22px; font-weight: 300; color: var(--testo); }

strong, b { font-weight: 500; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
h1 { font-size: 64px; line-height: 60px; font-weight: 300; color: #fff; letter-spacing: 0; }
h2 { font-size: 22px; line-height: 30.46px; font-weight: 300; color: #fff; letter-spacing: 0; text-transform: none; }
h3 { font-size: 25px; line-height: 32.6px; font-weight: 500; color: var(--verde); letter-spacing: 0; text-transform: uppercase; margin-bottom: 10px; }
h4 { font-size: 25px; line-height: 34.375px; font-weight: 500; color: var(--testo); letter-spacing: 0; text-transform: uppercase; margin-bottom: 10px; }
h5 { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
h6 { font-size: 13px; line-height: 20px; font-weight: 600; color: #303030; letter-spacing: 0; text-transform: uppercase; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style-position: outside; }
ul li, ol li { margin-left: 22px; }
ol li ol li { list-style-type: lower-latin; }

/* elenco con freccina verde (pagine categoria) */
ul.ulgreen { list-style: none; }
ul.ulgreen li { margin-left: 6px; }
ul.ulgreen li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  margin-right: 10px;
  background: var(--verde);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 0 6 5 1 10 0 9 4 5 0 1z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 0 6 5 1 10 0 9 4 5 0 1z'/%3E%3C/svg%3E") no-repeat center / contain;
}
ul.urllink li a { color: #333; text-decoration: underline; }
ul.urllink li a:hover { color: var(--verde); }
.font12 { font-size: 12px; }

/* --------------------------------------------------------------------------
   Header — desktop (> 1000px): trasparente sopra la testata, verde quando si scorre
   -------------------------------------------------------------------------- */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  padding-top: 90px;   /* fascia del logo (20 + 50 + 20); sotto il menu da 100px: in tutto 190px */
  background-color: rgba(0, 160, 154, 0);
  transition: padding-top .2s, background-color .2s, box-shadow .2s;
}

.hd .logo {
  position: absolute;
  top: 26px;
  left: 50%;
  height: 37.5px;
  line-height: 0;
  transform: translateX(-50%);
  transition: opacity .2s, visibility .2s;
}
.hd .logo img { height: 37.5px; width: auto; max-width: none; }
.hd .bar, .hd .mm { display: none; }

.mn { position: relative; height: 100px; text-align: center; transition: height .2s; }
.mn > ul { display: inline-block; list-style: none; margin: 0; padding: 0; }
.mn > ul > li { position: relative; display: inline-block; margin: 0; }
.mn > ul > li > a {
  display: block;
  height: 100px;
  padding: 0 17px;
  line-height: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  transition: height .2s, line-height .2s, color .2s;
}
.mn > ul > li > a > span { position: relative; display: inline-block; line-height: normal; }
.mn > ul > li > a > span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11.5px;
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .3s ease;
}
.mn > ul > li.active > a > span::after,
.mn > ul > li:hover > a > span::after { opacity: 1; }
.mn > ul > li > a:hover { color: #fff; }

/* header scuro (solo home): logo e menu verdi */
.hd.dark .mn > ul > li > a,
.hd.dark .mn > ul > li > a:hover { color: var(--verde); }
.hd.dark .mn > ul > li > a > span::after { background: var(--verde); }

/* sottomenu */
.mn .sub {
  position: absolute;
  top: 100%;
  left: 16px;
  z-index: 20;
  width: 225px;
  text-align: left;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
/* apertura a tendina dall'alto (il tema anima l'altezza in 0,3 s); la chiusura è immediata */
.mn > ul > li:hover > .sub,
.mn > ul > li:focus-within > .sub { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .3s ease-out; }
.mn .sub ul { list-style: none; margin: 0; padding: 7px 0; background: var(--verde); }
.mn .sub li { margin: 0; line-height: 26px; }
.mn .sub a {
  display: block;
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.mn .sub a:hover { color: #fff; }

/* stato «scrollato»: barra verde da 90px con il menu (scelta 045WEB: sul sito WordPress c'era il logo schiacciato) */
.hd.scrolled { padding-top: 0; background-color: rgba(0, 160, 154, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .11); }
.hd.scrolled .logo { opacity: 0; visibility: hidden; }
.hd.scrolled .mn,
.hd.scrolled .mn > ul > li > a { height: 90px; line-height: 90px; }
.hd.dark.scrolled .mn > ul > li > a,
.hd.dark.scrolled .mn > ul > li > a:hover { color: #fff; }
.hd.dark.scrolled .mn > ul > li > a > span::after { background: #fff; }

/* --------------------------------------------------------------------------
   Contenuto: righe, griglia, colonne (equivalenti WPBakery)
   -------------------------------------------------------------------------- */
main { display: block; }

.r {
  position: relative;
  margin-left: -15px;
  margin-right: -15px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.g { width: 1100px; margin: 0 auto; }
.g > .cols { margin: 0 -15px; }

.cols { display: flex; flex-wrap: wrap; align-items: flex-start; }
.c { min-height: 1px; padding: 0 15px; }
.c1 { width: 8.3333%; } .c2 { width: 16.6667%; } .c3 { width: 25%; } .c4 { width: 33.3333%; }
.c5 { width: 41.6667%; } .c6 { width: 50%; } .c7 { width: 58.3333%; } .c8 { width: 66.6667%; }
.c9 { width: 75%; } .c10 { width: 83.3333%; } .c11 { width: 91.6667%; } .c12 { width: 100%; }

.inner { margin-left: -15px; margin-right: -15px; }

.sp { display: block; }

/* come WPBakery: l'ultimo paragrafo/elenco di un blocco di testo non ha margine sotto (i titoli sì) */
.tx p:last-child, .tx ul:last-child, .tx ol:last-child, .tx div:last-child { margin-bottom: 0; }

/* elementi decorativi del tema */
.toptitle { margin-top: 250px; }
.tratteggio,
.tratteggio_page {
  width: 100%;
  height: 55px;
  background: url("../img/tratteggio.png") 50% 50% repeat;
  margin: 80px 0 40px;
}
.tratteggio_page { margin: 0; }

/* immagine con cambio al passaggio del mouse (cerchi della home) */
.ih { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.ih a { display: block; position: relative; }
.ih img { display: block; max-width: 100%; height: auto; transition: opacity .3s ease-in-out; }
.ih .ih-b { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; }
.ih:hover .ih-b { opacity: 1; }

/* immagine singola */
.si img { max-width: 100%; height: auto; vertical-align: top; }

/* riquadri con icona nelle pagine intervento */
.iconside { float: left; margin: 0 20px 30px 0; }

/* galleria «alcuni interventi» */
.gal { list-style: none; margin: 0; padding: 0; }
.gal::after { content: ""; display: table; clear: both; }
.gal li { float: left; margin: 0 2% 2% 0; padding: 0; }
.gal li img { width: 100%; height: auto; }
.gal.v2 li { width: 49%; }
.gal.v2 li:nth-child(2n) { margin-right: 0; }
.gal.v3 li { width: 32%; }
.gal.v3 li:nth-child(3n) { margin-right: 0; }
.gal.v4 li { width: 23.5%; }
.gal.v4 li:nth-child(4n) { margin-right: 0; }

/* pulsanti */
.qbutton {
  position: relative;
  display: inline-block;
  box-sizing: content-box;   /* come nel tema: 39px + bordi = 43px (large: 47 + 4 = 51px) */
  height: 39px;
  padding: 0 23px;
  border: 2px solid var(--bc, #e0e0e0);
  border-radius: 4px;
  background-color: var(--bg, #e0e0e0);
  color: var(--c, #444);
  font-size: 15px;
  font-weight: 500;
  line-height: 39px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .1s linear, background-color .1s linear, border-color .1s linear;
}
.qbutton:hover {
  color: var(--hc, #fff);
  border-color: var(--hbc, var(--verde));
  background-color: var(--hbg, var(--verde));
}
.qbutton.large { height: 47px; padding: 0 29px; font-size: 16px; line-height: 47px; }

/* pagina 404: come quella del tema (fondo verde fino al footer) */
body.p404 { display: flex; flex-direction: column; min-height: 100vh; }
body.p404 main { flex: 1 0 auto; display: flow-root; background: var(--verde); text-align: center; }
.e404-t { position: relative; height: 200px; }
.e404-t h1 { position: absolute; top: 177.5px; left: 0; right: 0; font-size: 47px; line-height: 60px; text-transform: uppercase; }
.e404 { margin-bottom: 83px; }
.e404 h2 { margin: 40px 0 20px; font-size: 32px; line-height: 44.3px; }
.e404 p { margin: 15px 0 35px; color: #fff; }
.e404 .sep { height: 1px; margin: 35px 0 10px; }

/* riquadro contatti (al posto del vecchio modulo) */
.contatti-box { padding: 40px; background: var(--footer-bg); }
.contatti-box .qbutton { margin: 0 10px 15px 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ft { padding: 72px 0 52px; background: var(--footer-bg); color: var(--verde); }
.ft .g { display: flex; flex-wrap: wrap; }
.ft .fc { width: 33.3333%; }
/* rientri delle tre colonne come nel tema (15 | 25+5 | 25) */
.ft .fc:nth-child(1) { padding: 0 15px 0 0; }
.ft .fc:nth-child(2) { padding: 0 5px 0 25px; }
.ft .fc:nth-child(3) { padding: 0 0 0 25px; }
.ft h5 { margin: 0 0 10px; color: var(--verde); }
.ft .txt { font-size: 16px; line-height: 26px; font-weight: 300; color: var(--verde); }
.ft p { margin: 10px 0 15px; color: var(--verde); font-size: 16px; line-height: 22px; }
.ft .avviso p { font-size: 12px; line-height: 18px; }
.ft ul { list-style: none; }
.ft ul li { margin: 0; padding: 3px 0; line-height: 22px; }
.ft a { color: var(--verde); }
.ft a:hover { color: var(--testo); }

.fb { display: flex; padding: 0 40px; background: #fff; }
.fb .fbc {
  display: flex;
  align-items: center;
  width: 33.3333%;
  height: 53px;
  font-size: 12px;
  line-height: 22px;
  color: var(--verde);
}
.fb .fbr { justify-content: flex-end; }
.fb a { color: var(--verde); }
.fb a:hover { color: var(--testo); }

/* --------------------------------------------------------------------------
   Torna su
   -------------------------------------------------------------------------- */
.btt {
  position: fixed;
  right: 25px;
  bottom: 65px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid #e8e8e8;
  border-radius: 50%;
  color: #b0b0b0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .2s ease;
}
.btt.on { opacity: 1; visibility: visible; }
.btt:hover { background-color: #e8e8e8; color: #b0b0b0; }
.btt svg { width: 19px; height: 22px; display: block; }

/* --------------------------------------------------------------------------
   Banner cookie Iubenda: stesse regole del sito WordPress
   -------------------------------------------------------------------------- */
#iubenda-cs-banner { bottom: 0 !important; left: 0 !important; position: fixed !important; width: 100% !important; z-index: 99999998 !important; background-color: #000; }
.iubenda-cs-content { display: block; margin: 0 auto; padding: 20px; width: auto; font-family: Helvetica, Arial, FreeSans, sans-serif; font-size: 12px; background: #000; color: #fff !important; }
.iubenda-cs-rationale { max-width: 900px; position: relative; margin: 0 auto; }
.iubenda-banner-content > p { font-family: Helvetica, Arial, FreeSans, sans-serif; line-height: 1.5; font-size: 12px !important; color: #fff !important; }
.iubenda-cs-close-btn { margin: 0; color: #fff !important; text-decoration: none; font-size: 12px; position: absolute; top: 0; right: 0; border: none; }
.iubenda-cs-cookie-policy-lnk { text-decoration: underline; color: #fff !important; font-size: 12px; font-weight: 900; }

/* --------------------------------------------------------------------------
   Breakpoint — stessi passi del tema (griglia 1300 sopra i 1400px)
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 1400px) {
  .g { width: 1300px; }
}
@media only screen and (max-width: 1200px) {
  .g { width: 950px; }
}

/* sotto i 1000px: header mobile verde, menu a scomparsa */
@media only screen and (max-width: 1000px) {
  .g { width: 768px; }

  .hd { position: relative; padding-top: 0; background-color: var(--verde); }
  .hd .logo, .hd .mn { display: none; }
  .hd .bar { display: block; position: relative; height: 100px; }
  .hd .logo-m {
    position: absolute;
    top: 31.25px;
    left: 50%;
    height: 37.5px;
    line-height: 0;
    transform: translateX(-50%);
  }
  .hd .logo-m img { height: 37.5px; width: auto; max-width: none; }
  .hd .burger {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 15px;
    height: 100px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
  }
  .hd .burger svg { width: 21px; height: 18px; display: block; }

  .hd .mm { display: none; padding: 0 15px; background: var(--verde); }
  .hd .mm.open { display: block; }
  .mm ul { list-style: none; margin: 0 0 -1px; padding: 0; }
  .mm li { position: relative; margin: 0; border-bottom: 1px solid #fff; }
  .mm li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    text-transform: uppercase;
    color: #fff;
  }
  .mm li a:hover, .mm li.active > a { color: #fff; }
  .mm .arrow {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
  }
  .mm .arrow svg { width: 7px; height: 12px; transition: transform .2s ease; }
  .mm li.open > .arrow svg { transform: rotate(90deg); }
  .mm li ul { display: none; margin: 0; }
  .mm li.open > ul { display: block; }
  .mm li li { border-bottom: 0; border-top: 1px solid #fff; }
  .mm li li a { padding-left: 15px; }

  .toptitle { margin-top: 50px; }
  .tratteggio, .tratteggio_page { background-image: url("../img/tratteggio-mobile.png"); }

  .e404-t { height: 55px; padding-top: 15px; }
  .e404-t h1 { position: static; font-size: 20px; line-height: 25px; }
}

@media only screen and (max-width: 768px) {
  .g { width: 600px; }
  .qbutton { padding: 0 14px; }
  .qbutton.large { height: 42px; padding: 0 17px; line-height: 42px; }
  .fb { padding: 0 10px; }
}

/* sotto i 768px le colonne si impilano (come vc_col-sm-*) */
@media only screen and (max-width: 767px) {
  .c { width: 100% !important; }
  .contatti-box { margin-top: 40px; }
}

@media only screen and (max-width: 600px) {
  .g { width: 420px; }
  h1 { font-size: 40px; line-height: 40px; }
  .tratteggio { margin: 20px 0 40px; }
  .ft .fc, .ft .fc:nth-child(n) { width: 100%; padding: 0; margin-bottom: 25px; }
  .ft .fc:last-child { margin-bottom: 0; }
  .fb { flex-direction: column; }
  .fb .fbc { width: 100%; }
  .contatti-box { padding: 30px 20px; }
}

@media only screen and (max-width: 480px) {
  .g { width: 300px; }
  .ft .g { width: auto; padding: 0 25px; }
  .gal li { width: 100% !important; margin-right: 0 !important; }
  .fb .fbc { height: 35px; justify-content: center; text-align: center; }
  .fb .fbc:empty { display: none; }
  /* sotto i 480px ogni blocco del footer ha 25px sotto, come i widget del tema */
  .ft .fc > :last-child { margin-bottom: 25px; }
  .ft .fc:first-child > p { margin-top: 25px; }
}

@media only screen and (max-width: 420px) {
  .ft .g { padding: 0 15px; }
}

@media only screen and (max-width: 350px) {
  .g { width: 95%; }
}

@media print {
  .hd, .btt { display: none; }
}
