/* =========================================================================
   Playmedia Group — rèplica de www.playmedia.biz
   Colors i tipografies extrets del lloc original (Elementor kit #5).
   ========================================================================= */
:root {
  --c-primary: #020101;     /* fons global */
  --c-dark: #222222;        /* seccions */
  --c-header: #070707;
  --c-white: #ffffff;
  --c-grey: #9fa4a6;        /* textos secundaris */
  --c-menu: #999999;
  --c-footer: #cccccc;
  --c-footer-text: #444444;
  --f-dots: "relway-dots2", "Abel", sans-serif;
  --f-abel: "Abel", sans-serif;
  --f-roboto: "Roboto", sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-primary);
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 .9rem; }
.center { text-align: center; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.container--wide { max-width: none; }
.bg-dark { background: var(--c-dark); }
.spacer-50 { height: 50px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: #000; padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }
.divider { border: 0; border-top: 1px solid rgba(255,255,255,.25); margin: 10px 0; }
.divider--grey { border-top-color: #333; margin: 10px 10px 0; }
.divider--dotted { border-top: 1px dotted #fff; margin: 12px 0; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: relative;
  height: 55px;
  background: var(--c-header);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.site-logo img { width: 200px; height: 35px; object-fit: contain; }
.menu-toggle {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 58px; height: 55px; padding: 4px 7px 5px;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  mix-blend-mode: difference;
}
.menu-toggle svg { width: 32px; height: 32px; }
.lang-switch { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; font-family: var(--f-abel); font-size: 13px; }
.lang-switch a { color: #777; text-decoration: none; letter-spacing: .05em; }
.lang-switch a.is-active, .lang-switch a:hover { color: #fff; }

/* Off-canvas menu (ElementsKit) */
.offcanvas { position: fixed; inset: 0; z-index: 100; }
.offcanvas[hidden] { display: block; visibility: hidden; pointer-events: none; }
.offcanvas__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .4s; }
.offcanvas__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 360px; max-width: 90vw;
  background: #000; padding: 30px 30px 40px; overflow-y: auto;
  transform: translateX(-100%); transition: transform .4s ease;
}
.offcanvas.is-open { visibility: visible; pointer-events: auto; }
.offcanvas.is-open .offcanvas__overlay { opacity: 1; }
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__close { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; width: 20px; height: 20px; margin-bottom: 140px; }
.offcanvas__close svg { width: 18px; height: 18px; }
.offcanvas__menu ul { list-style: none; margin: 0; padding: 0; }
.offcanvas__menu a { display: block; padding: 13px 0; font-family: var(--f-abel); font-size: 16px; line-height: 16px; color: var(--c-menu); text-decoration: none; transition: color .3s; }
.offcanvas__menu a:hover, .offcanvas__menu a[aria-current] { color: #fff; }
.offcanvas__langs { margin-top: 24px; display: flex; gap: 14px; font-family: var(--f-abel); font-size: 14px; }
.offcanvas__langs a { color: #666; text-decoration: none; }
.offcanvas__langs a.is-active, .offcanvas__langs a:hover { color: #fff; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; text-decoration: none; transition: color .3s; }
.social svg { width: 16px; height: 16px; }
.social--menu a { color: #aaa; }
.social--menu a:hover { color: #fff; }
.social--footer { justify-content: center; }
.social--footer a { color: #666; }
.social--footer a:hover { color: #000; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-block; font-family: var(--f-abel); text-decoration: none; cursor: pointer; transition: all .3s; }
.btn--white { background: #fff; color: #000; border: 2px solid #000; border-radius: 6px; padding: 15px 30px; font-size: 18px; font-weight: 700; line-height: 1; }
.btn--white:hover { background: #000; color: #fff; border-color: #fff; }
.btn--dark { background: #343a40; color: #fff; border: 0; border-radius: 4px; padding: 10px 16px; font-size: 20px; line-height: 1; }
.btn--dark:hover { background: #fff; color: #000; }
/* FIX: al lloc original el text d'aquest botó era #020101 sobre fons negre (invisible) */
.btn--outline { background: #000; color: #fff; border: 1px solid #fff; padding: 15px 30px; font-size: 18px; font-weight: 700; line-height: 1; border-radius: 0; }
.btn--outline:hover { background: #fff; color: #000; }
.btn-round { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; padding: 15px 12px 15px 18px; text-decoration: none; transition: background .3s; }
.btn-round svg { width: 26px; height: 26px; margin-left: -6px; }
.btn-round:hover { background: rgba(255,255,255,.35); }

/* Titles with the dotted font */
.dots-title { font-family: var(--f-dots); color: #fff; font-size: 80px; line-height: 100px; font-weight: 400; text-align: center; }
.dots-title--page { font-size: 41px; line-height: 100px; text-align: left; }

/* ---------------------------------------------------------------- Slideshow (Ken Burns) */
.slideshow { position: absolute; inset: 0; overflow: hidden; background: #000; }
.slideshow__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.slideshow__slide.is-active { opacity: 1; z-index: 1; }
.slideshow__img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); }
.slideshow__slide.is-active .slideshow__img { animation: kenburns 5.5s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .slideshow__slide.is-active .slideshow__img { animation: none; } }

/* ---------------------------------------------------------------- Home */
.home-hero { position: relative; height: 720px; }
.home-hero__actions { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 52px; padding-bottom: 32px; transform: translateY(0); }
.home-hero__actions { bottom: -1px; }
.internal-menu { background: #000; padding: 32px; }
.internal-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
.internal-menu a { display: block; font-family: var(--f-abel); font-size: 16px; line-height: 18px; font-weight: 700; color: #fff; border: 1px solid #f8f9fa; border-radius: 4px; padding: 12px 48px; text-decoration: none; transition: all .3s; }
.internal-menu a:hover { background: #fff; color: #000; }

.home-intro { background: #000; padding: 40px 20px 80px; text-align: center; }
.home-intro .dots-title { margin-bottom: 20px; }
.home-intro__quote { font-family: var(--f-abel); font-size: 32px; line-height: 38px; font-weight: 600; color: #fff; margin: 30px 0 60px; }
.home-intro__sectors { font-family: var(--f-abel); font-size: 12px; line-height: 18px; color: #fbfcfd; max-width: 1140px; margin: 0 auto; }

.home-brand { background: var(--c-dark); padding: 100px 20px 90px; text-align: center; }
.home-brand img { width: 399px; margin: 0 auto 60px; }
.home-brand p { font-family: var(--f-abel); font-size: 24px; line-height: 36px; color: #fff; max-width: 1140px; margin: 0 auto; }

.home-stats { background: var(--c-dark); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1425px; margin: 0 auto; padding: 0 10px 60px; }
.home-stats { max-width: none; }
.home-stats__item { text-align: center; color: #fff; padding: 0 20px; }
.home-stats__item img { width: 217px; height: 152px; object-fit: contain; margin: 0 auto 20px; }
.home-stats__item h2 { font-family: var(--f-abel); font-size: 32px; line-height: 32px; color: #fff; margin: 10px 0; }
.home-stats__item p { font-family: var(--f-roboto); font-size: 16px; line-height: 24px; margin: 0; }

.home-news { background: var(--c-dark); padding: 0 0 60px; }
.home-news .dots-title { margin: 40px 0 50px; }
.home-news .btn { margin-top: 50px; }

/* News cards (grid + overlay title) */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 40px; }
.news-card a { position: relative; display: block; text-decoration: none; overflow: hidden; background: #000; }
.news-card__thumb { display: block; aspect-ratio: 321 / 212; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease, transform .6s ease; opacity: .55; }
.news-card__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--f-abel); font-size: 26px; line-height: 1.25; color: #fbfcfd; font-weight: 400; }
.news-card a:hover img { opacity: .25; transform: scale(1.04); }
.news-list { background: var(--c-dark); padding: 10px 0 0; }

/* ---------------------------------------------------------------- Page titles */
.page-title { background: var(--c-dark); padding: 50px 0 10px; }
.page-title .container--wide { padding: 0 10px; }

/* ---------------------------------------------------------------- Projects mosaic */
.projects-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 10px; padding: 10px; background: var(--c-primary); }
.item-project { position: relative; margin: 0; overflow: hidden; height: 100%; }
.item-project a { display: block; height: 100%; text-decoration: none; position: relative; isolation: isolate; }
.item-project img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: relative; z-index: 1; transition: opacity .4s ease-in-out; }
.item-project figcaption {
  position: absolute; inset: 0; z-index: 0; margin: 0; padding: 2rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #000; color: #fff; font-family: var(--f-roboto); font-size: 1.2rem; font-weight: 400;
}
.item-project a:hover img, .item-project a:focus-visible img { opacity: .2; }
.item-project a:hover figcaption, .item-project a:focus-visible figcaption { z-index: 2; background: transparent; }
.tile-xs { grid-column: span 3; }
.tile-s  { grid-column: span 4; }
.tile-m  { grid-column: span 6; }
.tile-l  { grid-column: span 8; }
.tile-xl { grid-column: span 12; }
.tile-s:nth-child(1), .tile-l:nth-child(2) { grid-row: span 1; }

/* ---------------------------------------------------------------- Project detail */
.detail-hero { position: relative; height: 720px; background: #000; }
.notice-lang { background: #333; color: #ddd; font-family: var(--f-abel); text-align: center; padding: 8px; margin: 0; }
.project-intro { background: var(--c-primary); display: grid; grid-template-columns: 32% 68%; padding: 70px 0 70px; }
.project-intro__meta { text-align: right; padding: 5px 30px 0 30px; border-right: 1px solid #333; }
.project-title { font-family: var(--f-abel); font-size: 33px; line-height: 58px; color: #fff; font-weight: 400; margin-bottom: 20px; }
.project-client { font-family: var(--f-roboto); color: var(--c-grey); font-size: 16px; margin: 0 0 20px; }
.project-client small { font-size: 12.8px; }
.project-services { font-family: var(--f-roboto); color: var(--c-grey); font-size: 16px; line-height: 24px; }
.project-intro__text { padding: 30px; color: #fff; font-family: var(--f-roboto); font-size: 16px; line-height: 24px; text-align: justify; }
.rich p:last-child { margin-bottom: 0; }
.rich a { color: inherit; }
.rich h3 { font-family: var(--f-abel); font-size: 22px; color: #fff; margin: 1.2em 0 .6em; }
.rich ul { padding-left: 1.2em; }

.detail-videos { background: var(--c-primary); display: grid; gap: 20px; padding: 10px; }
.detail-videos:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
.ratio-16x9 { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ratio-16x9 iframe, .ratio-16x9 video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.detail-gallery { background: var(--c-primary); padding: 0 0 10px; }
.detail-gallery__row { display: grid; gap: 20px; padding: 10px; }
.detail-gallery__row.cols-1 { grid-template-columns: 1fr; }
.detail-gallery__row.cols-2 { grid-template-columns: 1fr 1fr; }
.detail-gallery__row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.detail-gallery__item { display: block; overflow: hidden; cursor: zoom-in; background: #111; }
.detail-gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .5s ease; }
.detail-gallery__row.cols-1 .detail-gallery__item img { aspect-ratio: 16 / 7; }
.detail-gallery__item:hover img { transform: scale(1.03); }

.item-footer { background: var(--c-primary); text-align: center; padding: 70px 10px 50px; max-width: var(--container); margin: 0 auto; }
.post-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; min-height: 30px; }
.post-nav a { display: inline-flex; align-items: center; gap: 15px; color: var(--c-grey); text-decoration: none; font-family: var(--f-abel); font-size: 16px; text-transform: uppercase; transition: color .3s; }
.post-nav a:hover { color: #fff; }
.post-nav__arrow svg { width: 18px; height: 30px; }

/* ---------------------------------------------------------------- News detail */
.page-news-item .site-main { background: var(--c-dark); }
.news-item__image { background: var(--c-dark); height: 630px; }
.news-item__image img { width: 100%; height: 100%; object-fit: contain; }
.news-item__body { max-width: 551px; margin: 0 auto; padding: 50px 10px 0; }
.news-item__title { font-family: var(--f-abel); font-size: 38px; line-height: 48px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.news-item__date { font-family: var(--f-abel); color: #777; font-size: 15px; margin-bottom: 20px; }
.news-item__content { font-family: var(--f-roboto); font-size: 16px; line-height: 24px; color: var(--c-grey); text-align: justify; }
.news-item__content strong { color: #ccc; }
.news-item__related { margin-top: 24px; font-family: var(--f-abel); font-size: 17px; }
.news-item__related a { color: #fff; }
.news-item .detail-videos, .news-item .detail-gallery, .news-item .item-footer { background: transparent; padding-left: 0; padding-right: 0; }
.news-item .detail-gallery__row { padding: 10px 0; }

/* ---------------------------------------------------------------- About */
.about-text { background: var(--c-primary); padding: 40px 10px 50px; }
.about-text .rich { max-width: 1004px; margin: 0 auto; font-family: var(--f-abel); font-size: 18px; line-height: 27px; color: var(--c-grey); text-align: justify; }
.about-text strong { color: #c9cdcf; }
.about-boxes { background: var(--c-dark); display: flex; justify-content: center; gap: 120px; padding: 10px; }
.about-boxes p { font-family: var(--f-abel); font-size: 25px; line-height: 37.5px; color: var(--c-grey); text-align: center; margin: 0; padding: 10px 20px; min-width: 232px; }

/* ---------------------------------------------------------------- Speakers */
.speakers { background: var(--c-dark); display: grid; grid-template-columns: repeat(2, 1fr); padding: 10px 10px 22px 19px; row-gap: 20px; }
.speaker { display: grid; grid-template-columns: 1fr 1fr; min-height: 270px; }
.speaker__img { background-size: cover; background-position: center; margin: 10px; min-height: 250px; }
.speaker__text { padding: 0 50px 0 15px; color: #fff; font-family: var(--f-abel); font-size: 16px; line-height: 24px; }
.speaker__event { font-size: 26px; line-height: 31.2px; font-weight: 700; margin-bottom: 20px; }

/* ---------------------------------------------------------------- Contact */
.offices { background: var(--c-dark); display: grid; grid-template-columns: repeat(3, 1fr); gap: 100px; padding: 10px 10px 50px; }
.office__country { font-family: var(--f-dots); font-size: 28px; line-height: 33.6px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.office__country img { width: 20px; height: 20px; }
.office__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.office__address { font-style: normal; font-family: var(--f-abel); font-size: 16px; line-height: 30px; font-weight: 700; color: #fff; }
.office__address a, .office__email a { color: #fff; text-decoration: none; }
.office__email { font-family: var(--f-abel); font-size: 16px; line-height: 16px; margin: 0; }

/* ---------------------------------------------------------------- Partners */
.partners { background: var(--c-dark); display: grid; grid-template-columns: 480px 800px; justify-content: center; padding: 40px 10px 50px; }
.partners__list { font-family: var(--f-abel); font-size: 16px; line-height: 19.2px; color: #fff; padding: 10px; }
.partners__list ul { list-style: disc; padding-left: 20px; }
.partners__list li { margin-bottom: 14px; }
.partners__list a { color: #fff; }
.partners__title { font-size: 70px; text-align: right; }
.partners__text { padding: 10px; }
.partners__text .rich { font-family: var(--f-abel); font-size: 18px; line-height: 27px; color: var(--c-grey); text-align: justify; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--c-footer); color: var(--c-footer-text); }
.footer__spacer { height: 43px; }
.footer__logo { padding: 21px; border-top: 1px solid #bbb; }
.footer__logo img { height: 149px; width: auto; margin: 0 auto; }
.footer__offices { display: flex; justify-content: center; gap: 20px; padding: 21px; border-top: 1px solid #bbb; }
.footer__office { width: 322px; text-align: center; }
.footer__city { font-family: var(--f-abel); font-size: 22px; line-height: 33px; font-weight: 600; color: #000; margin-bottom: 10px; }
.footer__address { font-family: var(--f-abel); font-size: 16px; line-height: 24px; color: var(--c-footer-text); }
.footer__address p { margin: 0 0 12px; }
.footer__address a { color: var(--c-footer-text); text-decoration: none; }
.footer__bottom { padding: 21px; border-top: 1px solid #bbb; }
.footer__copyright { height: 42px; width: auto; margin: 20px auto 0; }

/* ---------------------------------------------------------------- Lightbox / video modal */
.lightbox, .video-modal { position: fixed; inset: 0; z-index: 200; }
.lightbox { background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden], .video-modal[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: 90vw; max-height: 88vh; }
.lightbox__stage img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox button, .video-modal__close { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; }
.lightbox button svg, .video-modal__close svg { width: 26px; height: 26px; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.video-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.video-modal__box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, 92vw); }
.video-modal__close { top: -48px; right: -12px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .dots-title { font-size: 56px; line-height: 70px; }
  .home-hero, .detail-hero { height: 520px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .projects-mosaic { grid-auto-rows: 240px; }
  .tile-xs, .tile-s { grid-column: span 6; }
  .tile-m, .tile-l { grid-column: span 6; }
  .project-intro { grid-template-columns: 1fr; padding: 40px 0; }
  .project-intro__meta { text-align: left; border-right: 0; border-bottom: 1px solid #333; padding-bottom: 20px; }
  .speakers { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr 1fr; gap: 40px; }
  .partners { grid-template-columns: 1fr; }
  .partners__title { text-align: left; }
  .about-boxes { gap: 20px; }
}
@media (max-width: 767px) {
  .lang-switch { right: 10px; font-size: 12px; gap: 6px; }
  .site-logo img { width: 150px; }
  .dots-title { font-size: 40px; line-height: 52px; }
  .dots-title--page { font-size: 34px; line-height: 60px; }
  .home-hero, .detail-hero { height: 420px; }
  .home-intro__quote { font-size: 24px; line-height: 30px; }
  .home-brand img { width: 260px; }
  .home-brand p { font-size: 20px; line-height: 30px; }
  .home-stats { grid-template-columns: 1fr; gap: 40px; }
  .internal-menu a { padding: 12px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .projects-mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .projects-mosaic > * { grid-column: auto !important; }
  .item-project figcaption { z-index: 2; inset: auto 0 0 0; background: rgba(0,0,0,.65); padding: 12px; font-size: 1rem; }
  .detail-gallery__row.cols-2, .detail-gallery__row.cols-3, .detail-videos:has(> :nth-child(2)) { grid-template-columns: 1fr; }
  .news-item__image { height: auto; }
  .speaker { grid-template-columns: 1fr; }
  .speaker__text { padding: 10px 15px; }
  .offices { grid-template-columns: 1fr; }
  .about-boxes { flex-direction: column; align-items: center; }
  .footer__offices { flex-direction: column; align-items: center; }
}
