/* Agenzia Garau: original brand layout, kept separate from the vendor theme. */
:root { --garau-green: #7da517; }

#masthead { position: relative; background: #fff; }
#masthead .site-branding.logo .brandinglogo-wrap { display: none; }
#masthead .nav-menu { background: var(--garau-green); }
#masthead .nav-menu .box-header-nav,
#masthead .nav-menu .main-menu > li.current-menu-item,
#masthead .nav-menu .main-menu > li.current_page_item { background: transparent; }
#masthead .nav-menu .box-header-nav::before,
#masthead .nav-menu .box-header-nav::after { content: none !important; display: none !important; }
#masthead .nav-menu .main-menu > li > a { color: #111; font-weight: 600; }
#masthead .nav-menu .main-menu > li.current-menu-item > a,
#masthead .nav-menu .main-menu > li.current_page_item > a { color: #111 !important; background: transparent; }

.garau-carousel { position: relative; width: 100%; overflow: hidden; background: #fff; }
.garau-carousel__slide { display: none; margin: 0; }
.garau-carousel__slide.is-active { display: block; }
.garau-carousel__slide img { display: block; width: 100%; height: min(58vw, 650px); object-fit: cover; }
.garau-carousel__control { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; z-index: 2; }
.garau-carousel__control:hover, .garau-carousel__control:focus-visible { background: var(--garau-green); }
.garau-carousel__control--prev { left: 14px; }
.garau-carousel__control--next { right: 14px; }
.garau-carousel__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 2; }
.garau-carousel__dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.45); padding: 0; cursor: pointer; }
.garau-carousel__dot.is-active { background: #fff; }

@media (min-width: 992px) {
  #masthead .bottom-header { min-height: 350px; padding: 25px 0 55px; background: #fff; box-shadow: none; }
  #masthead .bottom-header .container { max-width: 760px; }
  #masthead .header-middle-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  #masthead .site-branding.logo { width: 300px; flex: 0 0 300px; padding: 0; }
  #masthead .site-branding.logo .custom-logo-link img { display: block; width: 280px; max-width: 100%; height: auto; max-height: none; }
  #masthead .site-branding.logo .brandinglogo-wrap { display: none; }
  #masthead .bottom-header .contact-info { width: 390px; flex: 0 0 390px; float: none; text-align: left; }
  #masthead .quickcontact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
  #masthead .quickcontact .get-tuch { display: flex; align-items: center; margin: 0; min-height: 30px; }
  #masthead .quickcontact .get-tuch i { width: 30px; height: auto; padding: 0; border: 0; background: none; color: #111; font-size: 21px; line-height: 26px; }
  #masthead .quickcontact .get-tuch ul { display: block; margin: 0 0 0 12px; padding: 0; }
  #masthead .quickcontact .get-tuch li { display: block; }
  #masthead .quickcontact .get-tuch h4 { display: none; }
  #masthead .quickcontact .get-tuch p,
  #masthead .quickcontact .get-tuch p a { margin: 0; color: #666; font-size: 15px; line-height: 1.5; }
  #masthead .top-header { position: absolute; top: 246px; left: calc(50% + 14px); width: 240px; height: 48px; padding: 0; background: transparent; z-index: 20; }
  #masthead .top-header .container { width: auto; padding: 0; }
  #masthead .top-header .left-contact { display: none; }
  #masthead .top-header .right-contact { float: none; text-align: left; }
  #masthead .top-header .edu-social { display: flex; gap: 9px; align-items: center; margin: 0; padding: 0; font-size: 0; }
  #masthead .top-header .edu-social li { margin: 0; font-size: 18px; }
  #masthead .top-header .edu-social a { width: 34px; height: 34px; line-height: 34px; border-radius: 50%; text-align: center; color: #fff; background: #3686d3; }
  #masthead .top-header .edu-social li:nth-child(2) a { background: #cd2c84; }
  #masthead .top-header .edu-social li:nth-child(3) a { background: #d34c41; }
  #masthead .nav-menu .container { max-width: 1000px; }
  #masthead .nav-menu,
  #masthead .nav-menu .main-menu,
  #masthead .nav-menu .main-menu > li,
  #masthead .nav-menu .main-menu > li > a { height: 65px; }
  #masthead .nav-menu .main-menu { display: flex; justify-content: center; align-items: center; }
  #masthead .nav-menu .main-menu > li > a { display: flex; align-items: center; padding: 0 15px; line-height: 1.2; }
}

@media (max-width: 991px) {
  #masthead .top-header { background: #fff; }
  #masthead .top-header .edu-social { font-size: 0; }
  #masthead .top-header .edu-social li { font-size: 16px; }
  #masthead .bottom-header { background: #fff; }
  #masthead .site-branding.logo .custom-logo-link img { max-width: 165px; height: auto; }
  .garau-carousel__slide img { height: min(74vw, 430px); }
}

/* Homepage: centered editorial layout matching the original Agenzia Garau. */
body.home .ed-about-us.layout-1 { margin-top: 0; }
body.home #primary { margin-top: 0; }
body.home #main .entry-content > p {
  max-width: 660px;
  margin: 0 auto 22px;
  color: #242424;
  text-align: center;
  font-size: 16px;
  line-height: 1.65;
}
body.home #main .entry-content > p:first-of-type { margin-top: 32px; }
body.home #main .entry-content > p:first-of-type img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 28px auto 0;
}
body.home #main .entry-content > p:last-of-type { margin: 50px auto 90px; }
body.home #main .entry-content > p:last-of-type a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  padding: 12px 26px;
  border-radius: 3px;
  background: #7da517;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
body.home #main .entry-content > p:last-of-type a:hover,
body.home #main .entry-content > p:last-of-type a:focus-visible {
  background: #668813;
  color: #fff;
}
body.home #main .entry-content > p:last-of-type a br { display: none; }
body.home #footer .top-footer,
body.home #footer .bottom-footer { background: #7da517; }
body.home #footer .top-footer { padding: 22px 0 0; }
body.home #footer .bottom-footer { padding: 16px 0 22px; }
body.home #footer .bottom-footer p,
body.home #footer .bottom-footer a { color: #fff; }
body.home #footer .ed-footer-holder { text-align: center; }
body.home #footer .ed-footer-holder .widget { float: none; margin: 0 auto; }

@media (max-width: 700px) {
  body.home #masthead { display: flex; flex-direction: column; padding-bottom: 44px; }
  body.home #masthead .bottom-header { order: 1; position: static; padding: 24px 0 0; }
  body.home #masthead.general-header .top-header {
    display: block;
    order: 2;
    padding: 0 0 24px;
    background: #fff;
  }
  body.home #masthead .nav-menu { order: 3; }
  body.home #masthead .top-header .left-contact { display: none; }
  body.home #masthead .top-header .right-contact { float: none; text-align: center; }
  body.home #masthead .top-header .edu-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 0;
  }
  body.home #masthead .top-header .edu-social li { display: block; margin: 0; font-size: 15px; }
  body.home #masthead .top-header .edu-social a {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3686d3;
    color: #fff;
    line-height: 34px;
    text-align: center;
  }
  body.home #masthead .top-header .edu-social li:nth-child(2) a { background: #cd2c84; }
  body.home #masthead .top-header .edu-social li:nth-child(3) a { background: #d34c41; }
  body.home #masthead .site-branding.logo {
    display: flex;
    justify-content: center;
    padding: 26px 0 12px;
  }
  body.home #masthead .site-branding.logo .custom-logo-link img {
    width: 160px;
    max-width: 100%;
    height: auto;
  }
  body.home #masthead .header-nav-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #7da517;
  }
  body.home #masthead .header-nav-toggle .one,
  body.home #masthead .header-nav-toggle .two,
  body.home #masthead .header-nav-toggle .three {
    width: 21px;
    height: 3px;
    margin: 3px auto;
    background: #fff;
  }
  body.home #main .entry-content > p { width: calc(100% - 32px); font-size: 15px; }
  body.home #main .entry-content > p:first-of-type { margin-top: 32px; }
  body.home #main .entry-content > p:first-of-type img { margin-top: 22px; }
  body.home #main .entry-content > p:last-of-type { margin: 42px auto 100px; }
  body.home #main .entry-content > p:last-of-type a { font-size: 17px; }
}

/* Garau live header/logo and privacy-safe visible ShinyStat badge. */
#masthead,
#masthead .bottom-header,
#masthead .site-branding.logo,
#masthead .site-branding.logo .custom-logo-link { background-color: #fff !important; }
#masthead .site-branding.logo .custom-logo-link { display: inline-block; background: #fff url("https://www.agenziagarau.it/wp-content/uploads/2023/05/logo-garau-1-300x275.png") center / contain no-repeat !important; }
#masthead .site-branding.logo .custom-logo-link img { opacity: 0; }
.garau-shinystat-visible { display: flex; justify-content: center; padding: 14px 15px 18px; background: transparent; }
.garau-shinystat-visible a { display: inline-flex; align-items: center; text-decoration: none; }
.garau-shinystat-mark { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; background: #fff; color: #4d4d4d; font: 600 13px/1.2 Arial, sans-serif; letter-spacing: .2px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.garau-shinystat-mark::first-letter { color: #7da517; }
