/* PCC 2027 · pre-launch. Il cantiere del logo: fondo arancio pieno, inchiostro, gru 3D. */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/barlow-condensed-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/barlow-condensed-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --brand: #E05106;           /* l'arancio del logo */
  --ink: #1A1612;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'Schibsted Grotesk', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 2.38vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--brand); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; b}

/* ---------- il primo schermo ---------- */
.pl { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.pl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: pan-y; }
.is-grab .pl-canvas { cursor: grab; }
.is-grabbing, .is-grabbing .pl-canvas { cursor: grabbing; }
.pl-top, .pl-main { position: relative; pointer-events: none; }
.pl-top > *, .pl-main > * { position: relative; z-index: 1; }
.pl-main > .sr-only { position: absolute; }
.pl-top a, .pl-main a { pointer-events: auto; }
.pl-stage { pointer-events: none; }

.pl-logo { display: block; }
.pl-logo img { width: 100%; height: 100%; object-fit: contain; }
.pl-date { margin: 0; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }

.pl-h1 { margin: 0; display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0; font-synthesis: none; }
.pl-sub { margin: 0; font-weight: 400; color: var(--ink); text-wrap: pretty; }
.pl-dateline { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.pl-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pl-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .pl-cta:hover { box-shadow: 0 0.6em 1.4em -0.5em rgb(26 22 18 / 0.55); transform: translateY(-2px); }
  .pl-cta:hover:active { transform: scale(0.97); }
}


/* senza WebGL: il logo in barre piatte, nella stessa posizione */
.pl-fallback { display: none; }
.no-webgl .pl-fallback { display: grid; gap: 4%; align-content: end; height: 100%; padding: 0 14% 6% 6%; }
.no-webgl .pl-fallback span { display: block; aspect-ratio: 2.58 / 1; background: var(--ink); }
.no-webgl .pl-fallback span:nth-child(2) { background: var(--brand); }
.no-webgl .pl-canvas { display: none; }

/* ---------- desktop: le misure della composizione approvata (1344 × 752), in vw ---------- */
@media (min-width: 761px) {
  .pl { min-height: max(100svh, 52vw); }
  .pl-top, .pl-main { position: static; }
  .pl-logo { position: absolute; left: 2.38vw; top: 1.64vw; width: 22.92vw; height: 6.7vw; }
  .pl-date { position: absolute; right: 2.53vw; top: 2.05vw; font-size: 2.95vw; line-height: 1; }
  .pl-h1 { position: absolute; left: 2.38vw; top: 11.6vw; font-size: 7.4vw; line-height: 0.88; letter-spacing: -0.03em; }
  .pl-sub { position: absolute; left: 2.6vw; top: 34.2vw; font-size: 1.8vw; line-height: 1.25; white-space: nowrap; letter-spacing: -0.01em; }
  .pl-dateline { position: absolute; left: 2.6vw; top: 38.7vw; font-size: 3vw; line-height: 1.1; letter-spacing: -0.02em; }
  .pl-cta { position: absolute; left: 2.83vw; top: 44.4vw; width: 21.95vw; height: 5.73vw; font-size: 2.55vw; }
  .pl-stage { position: absolute; left: 51.34vw; top: 6.25vw; width: 46.43vw; height: 45.98vw; }
}

/* ---------- telefono: tutto in colonna, il cantiere tra titolo e azione ---------- */
@media (max-width: 760px) {
  .pl { display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); }
  .pl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .pl-logo { width: 46vw; max-width: 220px; aspect-ratio: 1720 / 502; }
  .pl-date { font-size: clamp(1rem, 4.6vw, 1.35rem); }
  .pl-main { display: flex; flex-direction: column; flex: 1; }
  .pl-h1 { margin-top: 7vw; font-size: clamp(2.6rem, 13.4vw, 4.6rem); line-height: 0.84; }
  .pl-stage { flex: 1; min-height: 38svh; margin: 1vh -18px 1vh; }
  .pl-sub { font-size: 1.0625rem; line-height: 1.35; font-weight: 500; max-width: 30ch; }
  .pl-dateline { margin-top: 0.4rem; font-size: 1.25rem; }
  .pl-cta { margin-top: 1rem; min-height: 56px; width: 100%; font-size: 1.25rem; }
}

/* ---------- piede ---------- */
.pl-foot { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 56px); display: grid; gap: 14px 40px; grid-template-columns: 1fr auto; align-items: end; }
.pl-foot__lead { margin: 0; grid-column: 1 / -1; color: var(--brand); font: 900 clamp(2.25rem, 5.2vw, 4.5rem)/0.9 var(--font-display); text-transform: uppercase; }
.pl-foot__who { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.45; color: #FFB48A; }
.pl-foot__marks { display: flex; align-items: center; gap: 20px; }
.pl-foot__marks img { height: 52px; width: auto; }
@media (max-width: 760px) {
  .pl-foot { grid-template-columns: 1fr; padding-inline: 18px; }
  .pl-foot__marks img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-cta { transition-duration: 1ms !important; }
}
