/* dmichali.gr - compatible home CSS */

body.home,
body.home #page,
body.home #content,
body.home .site-content,
body.home .content-area,
body.home .site-main {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body.home .page-header,
body.home .entry-header,
body.home .entry-title,
body.home .comments-area,
body.home .post-navigation {
  display: none !important;
}

.dm-old-home {
  color: #2d3b3d;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.dm-old-home * {
  box-sizing: border-box;
}

.dm-old-home img {
  display: block;
  max-width: 100%;
}

.dm-old-home a {
  text-decoration: none;
}

.dm-shell {
  width: calc(100% - 42px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.dm-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.dm-copy p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 7px;
}

.dm-copy h1 {
  font-size: 39px;
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 34px;
  color: #2d3b3d;
}

/* TOP */

.dm-top {
  padding: 0 0 26px;
  background: #ffffff;
}

.dm-top .dm-art img {
  width: 100%;
  height: 530px;
  object-fit: cover;
}

.dm-top-copy {
  background: #f7f4ef;
  padding: 65px 45px 24px 0;
}

.dm-btn {
  display: inline-block;
  margin-top: 56px;
  padding: 13px 18px;
  background: #174f43;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 2px;
}

/* ABOUT */

.dm-about {
  padding: 20px 0 24px;
  background: #ffffff;
}

.dm-about .dm-two {
  align-items: center;
}

.dm-about-copy {
  padding: 24px 20px 24px 16px;
}

.dm-about-copy .dm-btn {
  margin-top: 62px;
}

.dm-about .dm-art img {
  width: 100%;
  height: 530px;
  object-fit: cover;
}

/* SERVICES */

.dm-services {
  background: #f7f4ef;
  padding: 18px 0 40px;
}

.dm-services h2 {
  text-align: center;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 400;
  margin: 8px 0 18px;
  color: #2d3b3d;
}

.dm-service-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.dm-card {
  height: 300px;
  border: 3px solid #6f927c;
  color: #2d3b3d !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: 24px;
}

.dm-card.active {
  background: #789783;
  border-color: #789783;
}

.dm-card svg {
  width: 58px;
  height: 58px;
  fill: #789783;
  stroke: #789783;
  stroke-width: 4;
  margin-bottom: 24px;
}

.dm-card.active svg {
  display: none;
}

.dm-card h3 {
  font-size: 31px;
  line-height: 1.03;
  font-weight: 400;
  margin: 0;
}

.dm-card span {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 28px;
  background: #b39b91;
  color: #ffffff;
  font-size: 14px;
}

.dm-online-title {
  margin-top: 34px !important;
  margin-bottom: 12px !important;
  font-size: 34px !important;
}

.dm-office-title {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  font-size: 34px !important;
}

/* OFFICE */

.dm-office {
  padding: 0 0 30px;
  background: #ffffff;
}

.dm-gallery {
  width: calc(100% - 42px);
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300px 145px 175px 330px;
  grid-template-areas:
    "a c d"
    "b c d"
    "b c e"
    ". f e";
  gap: 20px;
}

.dm-gallery .g {
  overflow: hidden;
}

.dm-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-gallery .g1 { grid-area: a; }
.dm-gallery .g2 { grid-area: b; }
.dm-gallery .g3 { grid-area: c; }
.dm-gallery .g4 { grid-area: d; }
.dm-gallery .g5 { grid-area: e; }
.dm-gallery .g6 { grid-area: f; }

/* FAQ */

.dm-faq {
  padding: 0 0 20px;
  background: #ffffff;
}

.dm-faq-title {
  background: #f1f5ec;
  text-align: center;
  font-size: 35px;
  line-height: 1;
  padding: 4px 10px;
  margin-bottom: 32px;
}

.dm-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.dm-faq details {
  border: 1px solid #d7d7d7;
  border-bottom: 0;
  background: #faf9f7;
}

.dm-faq details:last-child {
  border-bottom: 1px solid #d7d7d7;
}

.dm-faq summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 15px 18px 15px 46px;
  font-size: 16px;
  min-height: 52px;
}

.dm-faq summary::-webkit-details-marker {
  display: none;
}

.dm-faq summary::before {
  content: "+";
  position: absolute;
  left: 16px;
  top: 8px;
  color: #31433d;
  font-size: 30px;
  line-height: 1;
}

.dm-faq details[open] summary::before {
  content: "-";
}

.dm-faq .answer {
  padding: 0 22px 20px 46px;
  background: #ffffff;
}

.dm-faq .answer p,
.dm-faq .answer li {
  font-size: 15px;
  line-height: 1.65;
}

/* CUSTOM FOOTER */

.dm-custom-footer {
  background: #f7f4ef;
  padding: 18px 0 32px;
  margin-top: 20px;
}

.dm-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.1fr;
  gap: 35px;
  align-items: start;
}

.dm-footer-logo {
  text-align: center;
}

.dm-footer-logo .custom-logo-link {
  display: block;
}

.dm-footer-logo .custom-logo {
  max-width: 160px !important;
  height: auto !important;
  margin: 0 auto 26px;
}

.dm-footer-logo p {
  font-size: 16px;
}

.dm-footer-links {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 74px;
  text-align: center;
}

.dm-footer-links a,
.dm-footer-contact a {
  color: #2d3b3d !important;
  font-size: 16px;
}

.dm-footer-contact {
  text-align: center;
  padding-top: 0;
}

.dm-footer-contact p {
  font-size: 16px;
  margin: 0 0 8px;
}

.dm-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.dm-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-socials svg {
  width: 32px;
  height: 32px;
  fill: #111111;
  stroke: #111111;
  stroke-width: 1.7;
}

.dm-map iframe {
  width: 100%;
  height: 165px;
  border: 0;
}

.dm-map p {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* TABLET */

@media (max-width: 1100px) {

  .dm-copy h1 {
    font-size: 32px;
  }

  .dm-top-copy {
    padding: 42px 28px;
  }

  .dm-top .dm-art img,
  .dm-about .dm-art img {
    height: 440px;
  }

  .dm-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dm-footer-links {
    padding-top: 10px;
  }
}

/* MOBILE */

@media (max-width: 767px) {

  .dm-shell {
    width: calc(100% - 28px);
  }

  .dm-two {
    grid-template-columns: 1fr;
  }

  .dm-top-copy {
    padding: 30px 22px;
  }

  .dm-copy h1 {
    font-size: 29px;
  }

  .dm-copy p {
    font-size: 16px;
  }

  .dm-btn {
    margin-top: 24px;
  }

  .dm-about-copy {
    padding: 18px 0;
  }

  .dm-about-copy .dm-btn {
    margin-top: 24px;
  }

  .dm-top .dm-art img,
  .dm-about .dm-art img {
    height: auto;
  }

  .dm-service-grid {
    grid-template-columns: 1fr;
  }

  .dm-card {
    height: 235px;
  }

  .dm-online-title,
  .dm-office-title {
    font-size: 27px !important;
  }

  .dm-gallery {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
  }

  .dm-gallery .g1,
  .dm-gallery .g2,
  .dm-gallery .g3,
  .dm-gallery .g4,
  .dm-gallery .g5,
  .dm-gallery .g6 {
    grid-area: auto;
  }

  .dm-gallery .g {
    height: auto;
  }

  .dm-gallery img {
    height: auto;
  }

  .dm-faq-grid {
    grid-template-columns: 1fr;
  }

  .dm-footer-grid {
    grid-template-columns: 1fr;
  }

  .dm-footer-links {
    gap: 14px;
    padding: 0;
  }
/* HEADER / LOGO FINAL FIX */

body.home #masthead .LgoNav-Strip {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: none !important;
}

body.home #masthead .logo {
    float: none !important;
    width: 130px !important;
    max-width: 130px !important;
    flex: 0 0 130px !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home #masthead .logo img {
    width: 130px !important;
    max-width: 130px !important;
    height: 130px !important;
    max-height: 130px !important;
    object-fit: contain !important;
    display: block !important;
}

body.home #masthead .site_branding {
    display: none !important;
}

body.home #masthead .RightNavMenu {
    float: none !important;
    width: auto !important;
    flex: 1 !important;
    margin-left: 50px !important;
}

body.home #masthead #navigationpanel {
    width: 100% !important;
}
}
