/*
Theme Name: De Masi Divi Home Definitiva
Theme URI: https://example.com/
Description: Child theme Divi con homepage minimale in stile museale per fotografo di opere d'arte.
Author: OpenAI
Template: Divi
Version: 1.0.0
Text Domain: de-masi-divi-home
*/

:root {
  --dm-text: #1a1a1a;
  --dm-muted: #6f6f6f;
  --dm-line: #d9d9d9;
  --dm-bg: #ffffff;
  --dm-soft: #f2f2f2;
  --dm-max: 1320px;
}

body.page-template-page-home-definitiva {
  background: var(--dm-bg);
  color: var(--dm-text);
}

body.page-template-page-home-definitiva #main-content,
body.page-template-page-home-definitiva #et-main-area,
body.page-template-page-home-definitiva .container,
body.page-template-page-home-definitiva .et_pb_section {
  background: var(--dm-bg);
}

body.page-template-page-home-definitiva #left-area {
  width: 100%;
  padding-right: 0;
  float: none;
}

body.page-template-page-home-definitiva #sidebar,
body.page-template-page-home-definitiva .et_right_sidebar #main-content .container:before {
  display: none;
}

.dm-home {
  background: var(--dm-bg);
  padding-bottom: 70px;
}

.dm-wrap {
  width: min(calc(100% - 60px), var(--dm-max));
  margin: 0 auto;
}

.dm-hero {
  padding-top: 20px;
}

.dm-hero-box {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #ececec;
}

.dm-hero-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-intro {
  padding: 42px 0 28px;
  text-align: center;
}

.dm-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-transform: uppercase;
}

.dm-subtitle {
  margin: 14px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  color: var(--dm-text);
}

.dm-lead {
  margin: 16px auto 0;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--dm-text);
}

.dm-section {
  border-top: 1px solid var(--dm-line);
  padding: 30px 0 36px;
}

.dm-section-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dm-grid {
  display: grid;
  gap: 16px;
}

.dm-portfolio {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dm-work {
  text-decoration: none;
  color: inherit;
}

.dm-work-box {
  aspect-ratio: 1 / 0.62;
  background: #e7e7e7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: transform .22s ease, opacity .22s ease;
}

.dm-work:hover .dm-work-box {
  transform: translateY(-2px);
  opacity: .92;
}

.dm-work-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-work-label {
  font-size: 15px;
  color: #555;
}

.dm-center-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.dm-list {
  margin: 0;
  padding: 0;
  list-style: disc;
  display: inline-block;
  text-align: left;
}

.dm-list li {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

.dm-tech {
  max-width: 760px;
  margin: 0 auto;
}

.dm-tech .dm-list {
  min-width: 320px;
}

.dm-cta p,
.dm-center-copy p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
}

.dm-button {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 24px;
  border: 1px solid var(--dm-text);
  color: var(--dm-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  transition: all .22s ease;
}

.dm-button:hover {
  background: var(--dm-text);
  color: #fff;
}

.dm-help {
  margin: 12px auto 0;
  text-align: center;
  color: var(--dm-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .dm-wrap {
    width: min(calc(100% - 40px), var(--dm-max));
  }

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

@media (max-width: 767px) {
  .dm-wrap {
    width: min(calc(100% - 28px), var(--dm-max));
  }

  .dm-intro {
    padding: 30px 0 22px;
  }

  .dm-section {
    padding: 24px 0 30px;
  }

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

  .dm-list {
    display: block;
  }

  .dm-tech .dm-list {
    min-width: 0;
  }
}
