/* Psicoincuffia — design editoriale rosa / lime, isolato dal resto del sito.
   Questo foglio viene caricato DOPO styles.css, soltanto in progetto.html. */

body.project-site {
  --pic-rosa: #efc6d5;
  --pic-rosa-chiaro: #f8eef1;
  --pic-lime: #dce9a5;
  --pic-crema: #fffcf9;
  --pic-prugna: #43263e;
  --pic-testo: #574b54;
  background: var(--pic-crema);
  color: var(--pic-prugna);
}
body.project-site main {overflow: hidden;}
body.project-site h1,
body.project-site h2 {color: var(--pic-prugna);}
body.project-site .eyebrow,
body.project-site .project-kicker {color: #82566d;}
body.project-site .site-header {background: #fff; color: var(--ink);}
/* 00 — Hero: il logo originale è il protagonista */
body.project-site .project-hero-original {
  background: var(--pic-crema);
  min-height: min(705px, calc(100vh - 92px));
  padding: 68px 9% 74px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 6%;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.project-site .project-hero-original::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -175px;
  top: -140px;
  background: var(--pic-rosa);
  border-radius: 55% 45% 60% 40%;
  opacity: .65;
  z-index: -1;
}
body.project-site .project-hero-copy,
body.project-site .project-visual {position: relative; z-index: 1;}
body.project-site .project-hero-original h1 {
  font-size: clamp(3.8rem, 7vw, 7.2rem);
  line-height: 1;
  color: var(--pic-prugna);
  margin: 24px 0 30px;
  overflow: visible;
}
body.project-site .project-hero-original h1 em {
  background: linear-gradient(transparent 72%, var(--pic-lime) 72%);
  color: var(--pic-prugna);
  padding: 0 .08em .12em 0;
  white-space: nowrap;
  -webkit-text-fill-color: var(--pic-prugna);
}
body.project-site .project-kicker {margin: 18px 0 0;}
body.project-site .project-hero-description {
  color: var(--pic-testo);
  border: 0;
  max-width: 470px;
  font-size: 1.08rem;
  line-height: 1.7;
  padding: 0;
}
body.project-site .project-visual {
  min-width: 0;
  height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
/* Bolla lime sullo sfondo: forma organica e movimento indipendente */
body.project-site .project-visual::before {
  content: "";
  position: absolute;
  width: 335px;
  height: 320px;
  background: var(--pic-lime);
  border-radius: 58% 42% 46% 54% / 45% 57% 43% 55%;
  transform: translate(-29px, 22px) rotate(-14deg);
  z-index: 0;
  animation: picLimeDrift 9s ease-in-out infinite alternate;
}
/* Bolla rosa in primo piano: non è più il quadrato incorporato nel logo */
body.project-site .project-page-mark {
  position: relative;
  width: 275px;
  height: 265px;
  margin: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: var(--pic-rosa);
  border-radius: 46% 54% 61% 39% / 53% 43% 57% 47%;
  z-index: 1;
  transform: rotate(7deg);
  animation: picPinkMorph 8s ease-in-out infinite alternate;
}
/* Due piccole bolle decorative, parte della composizione */
body.project-site .project-page-mark::before,
body.project-site .project-page-mark::after {
  content: "";
  position: absolute;
  border-radius: 55% 45% 63% 37% / 42% 56% 44% 58%;
  pointer-events: none;
}
body.project-site .project-page-mark::before {
  width: 56px;
  height: 53px;
  background: var(--pic-rosa);
  top: -18px;
  right: -30px;
  z-index: -1;
  animation: picBubbleFloat 5.8s ease-in-out infinite alternate;
}
body.project-site .project-page-mark::after {
  width: 38px;
  height: 40px;
  background: var(--pic-lime);
  bottom: 3px;
  left: -49px;
  z-index: -1;
  animation: picBubbleFloat 7s ease-in-out -2s infinite alternate-reverse;
}
body.project-site .project-visual .project-logo {
  display: block;
  width: 94%;
  height: 94%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
  clip-path: none;
  border-radius: 0;
  position: relative;
  z-index: 2;
  animation: picLogoBreathe 6s ease-in-out infinite;
}
body.project-site .project-scroll-label {
  color: var(--pic-testo);
  left: 9%;
  bottom: 24px;
}

/* 01 — Il progetto: composizione editoriale libera, senza riquadro */
body.project-site .project-manifesto {
  max-width: 1220px;
  margin: 18px auto 70px;
  padding: 56px 5% 42px;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
  background: transparent;
  border: none;
  position: relative;
}
body.project-site .project-manifesto::before {
  content: "";
  display: block;
  position: absolute;
  width: 105px;
  height: 92px;
  left: 3%;
  bottom: 12px;
  background: var(--pic-lime);
  opacity: .66;
  border-radius: 62% 38% 45% 55% / 52% 61% 39% 48%;
  transform: rotate(-17deg);
  pointer-events: none;
  z-index: 0;
  animation: picDecorFloat 10s ease-in-out infinite alternate;
}
body.project-site .manifesto-index,
body.project-site .manifesto-content {position: relative; z-index: 1;}
body.project-site .manifesto-index {color: #82566d; padding-top: 42px;}
body.project-site .manifesto-content {
  padding: 0 5% 0 0;
  margin-left: clamp(20px, 5vw, 72px);
  max-width: 790px;
}
body.project-site .manifesto-content .eyebrow {margin-left: 22px;}
body.project-site .manifesto-content h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.45rem);
  line-height: 1.17;
  margin: 26px 0 36px -20px;
  max-width: 760px;
}
body.project-site .manifesto-content > p:not(.eyebrow) {
  color: var(--pic-testo);
  background: #f4dbe4;
  border-radius: 18px 39px 22px 43px;
  max-width: 640px;
  margin: 0 0 0 clamp(28px, 5vw, 70px);
  padding: 30px 36px;
  font-size: 1.03rem;
  line-height: 1.75;
}

/* 02 — Tre schede sfalsate per "Come nasce un post" */
body.project-site .project-story {
  width: min(90%, 1190px);
  margin: 18px auto 84px;
  padding: 64px 6% 76px;
  background: #e9efc8;
  border-radius: 36px 70px 44px 64px;
  color: var(--pic-prugna);
  position: relative;
  isolation: isolate;
}
body.project-site .project-story::before,
body.project-site .storyline::before {display: none;}
body.project-site .project-story::after {
  content: "";
  display: block;
  position: absolute;
  width: clamp(90px, 13vw, 190px);
  height: clamp(85px, 12vw, 180px);
  right: 3%;
  top: 16px;
  background: #f7f8ed;
  opacity: .55;
  border-radius: 41% 59% 63% 37% / 56% 43% 57% 44%;
  transform: rotate(17deg);
  pointer-events: none;
  z-index: 0;
  animation: picDecorFloat 11s ease-in-out -3s infinite alternate-reverse;
}
body.project-site .project-story > * {position: relative; z-index: 1;}
body.project-site .story-intro {max-width: 850px; margin: 0 0 42px;}
body.project-site .story-intro h2 {font-size: clamp(2.2rem, 4vw, 4rem);}
body.project-site .story-intro > p:not(.eyebrow) {max-width: 710px; color: var(--pic-testo); font-size: 1.07rem; line-height: 1.7;}
body.project-site .storyline {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  align-items: center;
  gap: 12px;
}
body.project-site .story-step {
  min-height: 290px;
  padding: 28px;
  border: 1px solid rgba(67,38,62,.08);
  border-radius: 17px 38px 18px 32px;
  background: #f7f8ee;
  box-shadow: 0 12px 28px rgba(67,38,62,.065);
  color: var(--pic-prugna);
  transform: rotate(-1.5deg);
}
body.project-site .story-step-two {background: #f7f8ee; transform: translateY(30px) rotate(1.5deg);}
body.project-site .story-step-three {background: #f7f8ee; transform: rotate(-.8deg);}
body.project-site .story-step-number {font: 500 2.5rem/1 var(--serif); color: #80546d;}
body.project-site .story-step-label {
  margin: 20px 0 8px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #82566d;
}
body.project-site .story-step strong {display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500;}
body.project-site .story-step > p:last-child {color: var(--pic-testo); line-height: 1.6; margin-top: 14px;}
body.project-site .story-arrow {color: #a46b85; font-size: 1.5rem; text-align: center;}

/* 03 — Spotify: cuffie decorative e pulsante originale */
body.project-site .playlist-section {
  margin: 0 auto 77px;
  max-width: 1320px;
  padding: 52px 8%;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 5%;
  background: transparent;
  border: 0;
  position: relative;
  overflow: visible;
}
body.project-site .playlist-section::before {display: none;}
body.project-site .playlist-section > * {position: relative; z-index: 1;}
body.project-site .playlist-copy {padding: 15px 0;}
body.project-site .playlist-copy::before {display: none;}
body.project-site .playlist-section h2 {font-size: clamp(2rem, 3.2vw, 3.5rem); white-space: normal;}
body.project-site .playlist-section p:not(.eyebrow) {color: var(--pic-testo); font-size: 1.05rem; line-height: 1.72;}
body.project-site .playlist-composition {
  min-height: 375px;
  display: grid;
  place-items: end center;
  position: relative;
}
body.project-site .playlist-headphones {
  display: block;
  width: min(88%, 340px);
  height: auto;
  max-height: 325px;
  object-fit: contain;
  position: absolute;
  top: -15px;
  right: 0;
  z-index: 2;
  pointer-events: none;
}
body.project-site .playlist-card {
  justify-self: start;
  align-self: end;
  display: block;
  position: relative;
  width: min(83%, 365px);
  min-height: 222px;
  margin: 135px 0 10px;
  padding: 24px;
  background: #f6e5eb;
  border: 2px solid #e6cdd5;
  border-radius: 24px 40px 28px 37px;
  box-shadow: 0 14px 30px rgba(89,64,44,.12);
  color: #171717;
  cursor: pointer;
  transform: rotate(-2deg);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
body.project-site .playlist-card::before,
body.project-site .playlist-card::after {border-color: rgba(116,81,59,.14);}
body.project-site .playlist-card:hover,
body.project-site .playlist-card:focus-visible {
  background: #faedf1;
  transform: translateY(-5px) rotate(0deg);
  box-shadow: 0 20px 36px rgba(89,64,44,.18);
}
body.project-site .playlist-card:focus-visible {outline: 3px solid #8a6048; outline-offset: 5px;}
body.project-site .playlist-lines {
  position: absolute;
  inset: 14% 16% 26%;
  height: 47%;
}
body.project-site .playlist-lines i {
  background: #fffdf6;
  box-shadow: 0 0 10px rgba(255,255,255,.55);
}
body.project-site .playlist-card-label {
  position: absolute;
  left: 24px;
  bottom: 23px;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .015em;
  color: #171717;
}
body.project-site .playlist-card-arrow {
  position: absolute;
  right: 23px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e4eac6;
  color: #171717;
  font-size: 1.3rem;
  transition: transform .3s ease;
}
body.project-site .playlist-card:hover .playlist-card-arrow {transform: translateX(3px);}

/* 04 — Social: una zona rosa tenue distinta dal blocco playlist */
body.project-site .social-section {
  position: relative;
  isolation: isolate;
  width: min(90%, 1180px);
  margin: 18px auto 75px;
  padding: 70px 7%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 8%;
  background: #f9edf1;
  border: 0;
  border-radius: 56px 28px 65px 34px;
  color: #171717;
}
body.project-site .social-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 96px;
  height: 91px;
  top: -24px;
  right: 8%;
  border-radius: 56% 44% 49% 51% / 48% 61% 39% 52%;
  background: var(--pic-lime);
  transform: rotate(-15deg);
  pointer-events: none;
}
body.project-site .social-heading > p:not(.eyebrow) {
  color: var(--pic-testo);
  font-size: 1.05rem;
  line-height: 1.7;
}
body.project-site .social-heading h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  max-width: 480px;
}
body.project-site .social-links {display: grid; gap: 18px;}
body.project-site .social-card,
body.project-site .social-card:nth-child(2) {
  position: relative;
  background: #fffaf6;
  border: 1px solid rgba(129,94,69,.14);
  border-radius: 18px 32px 20px 28px;
  color: #171717;
  padding: 26px 72px 26px 28px;
  box-shadow: 0 9px 20px rgba(129,94,69,.06);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
body.project-site .social-card:hover,
body.project-site .social-card:nth-child(2):hover,
body.project-site .social-card:focus-visible {
  background: #f7f8ee;
  transform: translateX(5px);
  box-shadow: 0 12px 25px rgba(129,94,69,.11);
}
body.project-site .social-card:focus-visible {
  outline: 3px solid #815e45;
  outline-offset: 4px;
}
body.project-site .social-label {color: #171717;}
body.project-site .social-card strong {
  color: #171717;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}
body.project-site .social-arrow {
  right: 23px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--pic-lime);
  color: #171717;
  border-radius: 50%;
  font-size: 1.25rem;
}
body.project-site footer {border-top: 1px solid rgba(129,94,69,.12); background: #fff;}

@media (max-width: 900px) {
  body.project-site .project-hero-original {padding-left: 6%; padding-right: 6%;}
  body.project-site .project-story {width: 92%; padding-left: 6%; padding-right: 6%;}
  body.project-site .storyline {grid-template-columns: 1fr; gap: 15px;}
  body.project-site .story-arrow {transform: rotate(90deg);}
  body.project-site .story-step,
  body.project-site .story-step-two,
  body.project-site .story-step-three {transform: none; min-height: auto;}
  body.project-site .playlist-section {grid-template-columns: 1fr; margin-bottom: 70px;}
  body.project-site .playlist-composition {min-height: 390px;}
}
@media (max-width: 760px) {
  body.project-site .project-hero-original {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 62px 6% 76px;
    gap: 5px;
  }
  body.project-site .project-hero-original h1 {font-size: clamp(3.4rem, 14vw, 5.6rem);}
  body.project-site .project-visual {height: 300px; width: 100%;}
  body.project-site .project-visual::before {width: 255px; height: 255px;}
  body.project-site .project-visual .project-page-mark {width: 250px; height: 250px; margin: 0;}
  body.project-site .project-scroll-label {left: 6%; bottom: 25px;}
  body.project-site .project-manifesto {
    display: block;
    margin: 15px 4% 52px;
    padding: 48px 6%;
  }
  body.project-site .manifesto-index {padding: 0 0 26px;}
  body.project-site .manifesto-content {padding: 0; margin-left: 0;}
  body.project-site .manifesto-content .eyebrow {margin-left: 14px;}
  body.project-site .manifesto-content h2 {
    font-size: clamp(1.65rem, 7vw, 2.3rem);
    margin: 20px 0 28px;
  }
  body.project-site .manifesto-content > p:not(.eyebrow) {
    margin: 0 0 0 12px;
    padding: 24px 22px;
    border-radius: 16px 31px 17px 28px;
  }
  body.project-site .project-story {
    width: 92%;
    margin: 10px auto 58px;
    padding: 38px 7% 50px;
    border-radius: 26px 43px 29px 40px;
  }
  body.project-site .story-intro {margin-bottom: 28px;}
  body.project-site .playlist-section {margin: 0 3% 60px; padding: 40px 7%;}
  body.project-site .playlist-section::before {display: none;}
  body.project-site .playlist-composition {min-height: 320px;}
  body.project-site .playlist-headphones {width: 260px; top: -12px;}
  body.project-site .playlist-card {min-height: 195px; width: min(87%, 350px); margin-top: 130px;}
  body.project-site .social-section {
    display: block;
    width: 92%;
    margin: 15px auto 62px;
    padding: 44px 7% 48px;
    border-radius: 35px 22px 40px 25px;
  }
  body.project-site .social-section::before {
    width: 62px;
    height: 60px;
    right: 10%;
    top: -18px;
  }
  body.project-site .social-card,
  body.project-site .social-card:nth-child(2) {
    padding: 23px 65px 23px 21px;
  }
  body.project-site .social-links {margin-top: 32px;}
}
@media (prefers-reduced-motion: reduce) {
  body.project-site .playlist-lines i {animation: none;}
}
/* Composizione del logo: prevale sulle regole legacy di styles.css. */
body.project-site .project-hero .project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  height: 460px;
}
body.project-site .project-hero .project-visual .project-page-mark {
  width: 275px;
  height: 265px;
  margin: 0;
  inset: auto;
  z-index: 1;
  transform: rotate(7deg);
}
body.project-site .project-hero .project-page-mark .project-logo {
  width: 94%;
  height: 94%;
  object-fit: contain;
  border-radius: 0;
  clip-path: none;
  filter: none;
  mix-blend-mode: normal;
}
@keyframes picLimeDrift {
  0% {transform: translate(-29px,22px) rotate(-14deg) scale(1); border-radius: 58% 42% 46% 54% / 45% 57% 43% 55%;}
  100% {transform: translate(-17px,9px) rotate(-5deg) scale(1.035); border-radius: 48% 52% 57% 43% / 57% 43% 52% 48%;}
}
@keyframes picPinkMorph {
  0% {transform: translateY(0) rotate(7deg); border-radius: 46% 54% 61% 39% / 53% 43% 57% 47%;}
  100% {transform: translateY(-9px) rotate(-3deg); border-radius: 57% 43% 47% 53% / 43% 57% 48% 52%;}
}
@keyframes picLogoBreathe {
  0%,100% {transform: translateY(0) rotate(-3deg) scale(1);}
  50% {transform: translateY(-4px) rotate(1deg) scale(1.025);}
}
@keyframes picBubbleFloat {
  0% {transform: translate(0,0) rotate(-8deg);}
  100% {transform: translate(7px,-12px) rotate(12deg);}
}
@media (max-width: 760px) {
  body.project-site .project-hero .project-visual {height: 310px; min-height: 310px;}
  body.project-site .project-hero .project-visual::before {width: 255px; height: 245px;}
  body.project-site .project-hero .project-visual .project-page-mark {width: 215px; height: 208px; margin: 0;}
  body.project-site .project-page-mark::before {width: 40px; height: 39px; right: -18px; top: -12px;}
  body.project-site .project-page-mark::after {width: 28px; height: 30px; left: -30px;}
}
/* Accessibilità: nessun movimento quando richiesto dal dispositivo. */
@media (prefers-reduced-motion: reduce) {
  body.project-site .project-visual::before,
  body.project-site .project-page-mark,
  body.project-site .project-page-mark::before,
  body.project-site .project-page-mark::after,
  body.project-site .project-page-mark .project-logo {animation: none !important;}
}
/* Menu coerente con le altre pagine. */
body.project-site .site-header {background: #fff; color: #234936; border-bottom: 1px solid rgba(35,73,54,.18);}
body.project-site .site-header .nav-cta {background: #fff; color: #234936; border: 1px solid #234936;}
body.project-site .site-header .nav-cta:hover {background: #234936; color: #fff;}
body.project-site .site-header .main-nav a[href="progetto.html"] {
  background: linear-gradient(90deg,#ef4444 0%,#f59e0b 20%,#eab308 38%,#22c55e 55%,#06b6d4 72%,#3b82f6 86%,#a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Bolle editoriali discrete negli spazi liberi. */
@keyframes picDecorFloat {
  from {transform: translateY(0) rotate(-12deg);}
  to {transform: translateY(-11px) rotate(6deg);}
}
@media (max-width: 760px) {
  body.project-site .project-manifesto::before {width: 62px; height: 59px; left: auto; right: 0; bottom: -14px; opacity: .55;}
  body.project-site .project-story::after {width: 84px; height: 78px; right: -24px; top: 10px; opacity: .36;}
  body.project-site .playlist-composition {min-height: 300px;}
}
@media (prefers-reduced-motion: reduce) {
  body.project-site .project-manifesto::before,
  body.project-site .project-story::after {animation: none;}
}

/* Palette tipografica Psicoincuffia: testi neri, titoli marrone caldo. */
body.project-site {
  --pic-testo: #171717;
  --pic-prugna: #815e45;
  color: #171717;
}
body.project-site h1,
body.project-site h2,
body.project-site h3,
body.project-site .project-hero-original h1,
body.project-site .project-hero-original h1 em,
body.project-site .manifesto-content h2,
body.project-site .story-intro h2,
body.project-site .playlist-section h2,
body.project-site .social-heading h2,
body.project-site .story-step strong {
  color: #815e45;
}
body.project-site .project-hero-original h1 em {-webkit-text-fill-color: #815e45;}
body.project-site .eyebrow,
body.project-site .project-kicker,
body.project-site .project-scroll-label,
body.project-site .manifesto-index,
body.project-site .story-step-label,
body.project-site .story-step-number,
body.project-site .story-arrow,
body.project-site .social-label,
body.project-site .social-card,
body.project-site .social-card strong,
body.project-site .project-hero-description,
body.project-site .manifesto-content > p:not(.eyebrow),
body.project-site .story-intro > p:not(.eyebrow),
body.project-site .story-step > p:last-child,
body.project-site .playlist-section p:not(.eyebrow),
body.project-site .social-heading > p:not(.eyebrow),
body.project-site footer,
body.project-site .site-header,
body.project-site .site-header .main-nav a:not([href="progetto.html"]),
body.project-site .site-header .nav-cta {
  color: #171717;
}
body.project-site .site-header .nav-cta {border-color: #171717;}
body.project-site .site-header .nav-cta:hover {background: #171717; color: #fff;}
body.project-site .story-step-number {color: #815e45;}
/* Le due schede social condividono lo stesso colore. */
@media (prefers-reduced-motion: reduce) {
  body.project-site .playlist-card,
  body.project-site .playlist-card-arrow {transition: none;}
  body.project-site .playlist-card:hover {transform: none;}
}
