/* Philly Match — telefono e tablet (fino a 900 px).
   La pagina nasce come tavola Readymag larga 1024 px: sul telefono veniva ridotta al 38% e testi,
   menu e video diventavano minuscoli. Fino a 900 px si nasconde la tavola e si mostra la stessa
   board riorganizzata in verticale (.philly-mobile in src/pages/philly.html). Sopra i 900 px la
   pagina resta esattamente com'era. */
.philly-mobile {
  display: none;
}

@media (max-width: 900px) {
  .philly-page #portfolio {
    height: auto !important;
  }
  .philly-page #portfolio > .item {
    display: none !important;
  }
  .philly-page .lang-switch--float {
    top: 30px;
    right: 72px;
  }
  .philly-mobile {
    --ink: #11135e;
    --paper: #f5f6fb;
    --gutter: clamp(22px, 6vw, 56px);
    display: block;
    color: var(--ink);
    font-family: 'custom_148379', Arial, sans-serif;
    background: #fff;
  }
  .pm-menu {
    position: fixed;
    z-index: 1001;
    top: 8px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.81));
  }
  .pm-menu img {
    width: 31px;
    height: auto;
  }
  .pm-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82svh;
    padding: 96px var(--gutter) 48px;
    text-align: center;
  }
  .pm-logo {
    width: min(100%, 560px);
    height: auto;
  }
  .pm-quote {
    max-width: 30ch;
    margin: 36px auto 0;
    font-size: clamp(20px, 5.4vw, 30px);
    line-height: 1.28;
  }
  .pm-quote strong {
    font-weight: 700;
  }
  .pm-chef {
    margin: 0;
    background: var(--paper);
  }
  .pm-chef img {
    display: block;
    width: 100%;
    height: auto;
  }
  .pm-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    padding: 56px var(--gutter) 64px;
    background: var(--paper);
    font-size: 16px;
    line-height: 1.5;
  }
  .pm-board h2 {
    margin: 40px 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .pm-col > h2:first-child {
    margin-top: 0;
  }
  .pm-board p + p {
    margin-top: 12px;
  }
  .pm-board strong {
    font-weight: 700;
  }
  .pm-claim {
    margin-top: 32px !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
  }
  .pm-shot {
    margin: 20px 0 0;
  }
  .pm-shot img {
    display: block;
    width: 100%;
    height: auto;
  }
  .pm-film {
    padding: 56px var(--gutter);
    background: #fff;
  }
  .pm-video {
    position: relative;
    aspect-ratio: 903 / 519;
    background: #e9eaf3;
    border-radius: 6px;
    overflow: hidden;
  }
  .pm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .pm-credits {
    padding: 8px var(--gutter) 56px;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
  }
  .pm-credits p + p {
    margin-top: 18px;
  }
  .pm-credits a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 640px) {
  .pm-board {
    grid-template-columns: 1fr;
  }
  .pm-board .pm-col + .pm-col {
    margin-top: 40px;
  }
}
