/*
 * Fernanda Petrechen — composição fotográfica editorial desktop V18.
 * Escopo estrito: dermatologia, apresentação e fechamento.
 * Hero aprovado, header, copy, imagens de origem e mobile intactos.
 */
@media (min-width: 741px) {
  /* Dermatologia: fotografia como luz e atmosfera, não painel retangular. */
  .derm-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #e9f2f1;
  }
  .derm-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
      #e9f2f1 0%,
      #e9f2f1 28%,
      rgb(233 242 241 / .99) 36%,
      rgb(233 242 241 / .86) 44%,
      rgb(233 242 241 / .42) 57%,
      rgb(233 242 241 / 0) 76%);
  }
  .derm-layout {
    position: relative;
    z-index: auto;
    min-height: clamp(790px, 58vw, 890px);
    padding-block: clamp(83px, 8.3vw, 119px);
  }
  .derm-photo {
    z-index: 0;
    top: 0;
    right: calc(-1 * max(var(--edge), (100vw - var(--max)) / 2));
    width: min(65vw, 940px);
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .derm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 7%;
    filter: none;
  }
  .derm-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, #e9f2f1 0%, rgb(233 242 241 / .0) 16%, rgb(233 242 241 / .0) 84%, #e9f2f1 100%);
  }
  .derm-copy {
    z-index: 3;
    width: min(47%, 535px);
  }
  .skin-signs {
    z-index: 3;
    width: min(42%, 470px);
    margin-top: clamp(30px, 3.2vw, 44px);
  }

  /* Retrato: a cena começa fora da margem esquerda e desaparece
     gradualmente dentro do fundo lilás. Texto sem caixa sobreposta. */
  .about-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f3eef4;
  }
  .about-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
      rgb(243 238 244 / 0) 0%,
      rgb(243 238 244 / 0) 28%,
      rgb(243 238 244 / .40) 40%,
      rgb(243 238 244 / .89) 53%,
      #f3eef4 67%,
      #f3eef4 100%);
  }
  .about-inner {
    position: relative;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: clamp(750px, 55vw, 820px);
    padding-block: clamp(90px, 7.5vw, 116px);
  }
  .about-photo {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: calc(-1 * max(var(--edge), (100vw - var(--max)) / 2));
    width: min(66vw, 940px);
    height: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 10%;
    filter: none;
  }
  .about-photo::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgb(243 238 244 / .18) 0%,
      rgb(243 238 244 / 0) 16%,
      rgb(243 238 244 / 0) 76%,
      rgb(243 238 244 / .44) 92%,
      #f3eef4 100%);
  }
  .about-copy {
    position: relative;
    z-index: 3;
    flex: 0 0 min(49%, 555px);
    width: min(49%, 555px);
    max-width: 555px;
    min-width: 0;
    margin-left: auto;
  }

  /* Encerramento: o retrato avança para dentro do fundo roxo
     e desaparece em um degradê atmosférico, sem divisória vertical. */
  .closing-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #392642;
  }
  .closing-section::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg,
        #392642 0%,
        #392642 24%,
        rgb(57 38 66 / .98) 34%,
        rgb(57 38 66 / .84) 41%,
        rgb(57 38 66 / .49) 50%,
        rgb(57 38 66 / .16) 61%,
        rgb(57 38 66 / .02) 76%),
      linear-gradient(0deg,
        rgb(57 38 66 / .52) 0%,
        rgb(57 38 66 / 0) 20%);
  }
  .closing-inner {
    position: static;
    z-index: auto;
    min-height: clamp(670px, 54vw, 810px);
  }
  .closing-photo {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(73vw, 1070px);
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .closing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 23%;
    filter: none;
  }
  .closing-copy {
    position: relative;
    z-index: 3;
    width: min(48%, 540px);
  }
}

@media (min-width: 741px) and (max-width: 1049px) {
  /* Tablets: menos sobreposição das áreas de leitura. */
  .derm-section::after {
    background: linear-gradient(90deg,
      #e9f2f1 0%,
      #e9f2f1 32%,
      rgb(233 242 241 / .98) 42%,
      rgb(233 242 241 / .75) 51%,
      rgb(233 242 241 / 0) 78%);
  }
  .derm-photo { width: 65%; }
  .derm-copy { width: 46%; }
  .skin-signs { width: 43%; }
  .about-photo { width: 65vw; }
  .about-copy { flex-basis: 49%; width: 49%; }
  .closing-photo { width: 72vw; }
  .closing-section::after {
    background: linear-gradient(90deg,
      #392642 0%,
      rgb(57 38 66 / .99) 29%,
      rgb(57 38 66 / .85) 40%,
      rgb(57 38 66 / .49) 51%,
      rgb(57 38 66 / .12) 69%,
      rgb(57 38 66 / 0) 84%);
  }
}
