/* Simone Strozzi — sito personale */

:root {
  /* neutri */
  --cream: #f4efe6;
  --paper: #faf7f1;
  --beige: #e9e1d3;
  --sand: #d6c9b3;
  --stone: #a39c91;
  --grey: #6f6a62;
  --text: #4a4640;
  --ink: #232120;
  --line: rgba(35, 33, 32, .14);

  /* colori da evidenziatore */
  --yellow: #f7e463;     /* sottolineature */
  --green: #a6e07c;      /* call to action */
  --green-deep: #8fd463;
  --violet: #6903dc;     /* Coesiva */
  --violet-deep: #4b03dc;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Evidenziatore ---------- */

.hl {
  background-image: linear-gradient(100deg,
    transparent 0, rgba(247, 228, 99, .75) 2%, var(--yellow) 6%, var(--yellow) 94%, rgba(247, 228, 99, .6) 98%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 46%;
  background-position: 0 86%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .08em;
  transition: background-size 1.1s var(--ease);
}
.js .hl { background-size: 0% 46%; }
.js .hl.on { background-size: 100% 46%; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 24px 15px;
  border-radius: 2px;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.btn i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-deep); }
.btn-coesiva { background: var(--paper); color: var(--violet); }
.btn-coesiva:hover { background: #fff; }
.btn-coesiva:hover i { transform: translate(3px, -3px); }

/* ---------- Apertura ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: var(--cream);
  background: #3b3934;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.78);
  transform: scale(1.04);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.1) translateY(-1.5%); } }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(25, 23, 21, .55) 0%, rgba(25, 23, 21, 0) 26%, rgba(25, 23, 21, .1) 50%, rgba(25, 23, 21, .78) 100%),
    rgba(150, 125, 90, .16);
}
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3.4vw, 40px) var(--gutter);
  z-index: 3;
}
.brand {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-left: .6em;
  vertical-align: middle;
  transform: translateY(-1px);
}
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.hero-body {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(36px, 8vh, 80px);
  padding: 0 var(--gutter);
  z-index: 2;
}
.hero-roles { list-style: none; margin: 0; padding: 0; max-width: 1100px; }
.hero-roles li { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.hero-roles li:nth-child(2) { animation-delay: .25s; }
.hero-roles li:nth-child(3) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.role-main {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.012em;
  margin-bottom: clamp(22px, 3.4vh, 36px);
}
.role-pm { font-style: italic; }
.pmp {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: .36em;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--yellow);
  padding: .32em .55em .26em;
  margin-left: .2em;
  vertical-align: .55em;
  border-radius: 1px;
}
.role-list {
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 230, .28);
  margin-bottom: 14px;
}
.role-list .muted {
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: none;
  opacity: .7;
  margin-left: .4em;
}
.sep {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sand);
  margin: 0 1em;
  vertical-align: middle;
  transform: translateY(-2px);
}
.role-coesiva {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .92;
  transition: opacity .3s;
}
.role-coesiva:hover { opacity: 1; }
.vdot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(105, 3, 220, .3);
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(36px, 8vh, 80px);
  width: 1px;
  height: 64px;
  background: rgba(244, 239, 230, .25);
  overflow: hidden;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 24px;
  background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-24px); } to { transform: translateY(64px); } }

/* ---------- Intro ---------- */

.intro {
  padding-top: clamp(96px, 15vw, 190px);
  padding-bottom: clamp(56px, 9vw, 120px);
}
.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -.01em;
  max-width: 19em;
  margin: 0;
}

/* ---------- Testate di sezione ---------- */

.block {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.block-tight { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }

.sec-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  column-gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.sec-n {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
}
.sec-sub {
  grid-column: 2;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--grey);
  max-width: 34em;
}

/* ---------- Cosa faccio ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(28px, 4vw, 56px);
}
.services li {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}
.services .n {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--stone);
}
.services h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 10px 0 12px;
}
.services p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }

/* ---------- Pausa fotografica ---------- */

.pause {
  margin: 0;
  height: clamp(280px, 56vw, 680px);
  overflow: hidden;
  background: var(--beige);
}
.pause img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  will-change: transform;
}

/* ---------- Lab ---------- */

.lab { border-bottom: 1px solid var(--ink); }
.lab-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.9fr) minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: clamp(22px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.lab-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * min(var(--gutter), 24px));
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
  z-index: -1;
}
.lab-row:hover::before { transform: scaleX(1); }
.lab-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}
.lab-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: .95;
  letter-spacing: -.025em;
  white-space: nowrap;
  transition: transform .55s var(--ease), font-style .3s;
}
.lab-row:hover .lab-title { transform: translateX(14px); font-style: italic; }
.lab-desc { font-size: 15px; color: var(--text); max-width: 22em; }
.lab-go {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lab-go i { font-style: normal; display: inline-block; margin-left: .4em; transition: transform .35s var(--ease); }
.lab-row:hover .lab-go i { transform: translateX(5px); }

/* ---------- Coesiva ---------- */

.coesiva {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px clamp(32px, 6vw, 96px);
  background: var(--violet);
  color: var(--paper);
  padding: clamp(32px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.coesiva::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 65%);
  pointer-events: none;
}
.coesiva-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 18px;
}
.coesiva-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
}
.coesiva-body { position: relative; z-index: 1; }
.coesiva-body p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 36em;
  opacity: .92;
}

/* ---------- Appunti ---------- */

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
}
.note-card { display: flex; flex-direction: column; }
.note-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 20px;
}
.note-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform .9s var(--ease), filter .6s;
}
.note-card:hover .note-img img { transform: scale(1.04); }
.note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}
.tag {
  color: var(--ink);
  font-weight: 600;
  padding: 3px 7px 2px;
  background: var(--yellow);
}
.note-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.1vw, 29px);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 14px 0 12px;
}
.note-card h3 a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease);
}
.note-card:hover h3 a { background-size: 100% 1px; }
.abstract { font-weight: 500; color: var(--ink); font-size: 15px; margin: 0 0 8px; }
.note-card p { font-size: 15px; color: var(--text); margin: 0 0 18px; }
.more {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.more i { font-style: normal; display: inline-block; margin-left: .4em; transition: transform .35s var(--ease); }
.note-card:hover .more i { transform: translateX(5px); }

/* ---------- Bio ---------- */

.bio {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.portrait {
  width: 132px;
  height: 132px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.bio-text { max-width: 40em; }
.bio-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
}
.bio-text .bio-first {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.25;
  letter-spacing: -.008em;
  color: var(--ink);
  margin-bottom: 32px;
}
.bio-text em { font-style: normal; font-weight: 500; color: var(--ink); }
.bio-text .btn { margin-top: 16px; }

/* ---------- Contatti ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.contact-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0;
}
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 6px 0; }
.contact-list a {
  font-size: 16px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: border-color .3s;
}
.contact-list a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: .04em;
}
.footer a:hover { color: var(--ink); }

/* ---------- Pagine Lab ---------- */

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3.4vw, 40px);
  padding-bottom: clamp(20px, 3.4vw, 40px);
}
.page-top .brand { color: var(--ink); }
.page-top .nav a { opacity: .75; }
.page-head { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.crumb {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
}
.crumb a:hover { color: var(--ink); }
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 13vw, 200px);
  line-height: .9;
  letter-spacing: -.035em;
  margin: 18px 0 32px;
}
.page-intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  max-width: 24em;
  margin: 0;
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 56px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.case { display: flex; flex-direction: column; }
.case-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--beige);
  overflow: hidden;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.case-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .6s, transform .9s var(--ease);
}
.case:hover .case-img img { filter: grayscale(0); transform: scale(1.03); }
.case-ph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--grey);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}
.case h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.02;
  letter-spacing: -.012em;
  margin: 12px 0 12px;
}
.case p { margin: 0 0 18px; color: var(--text); font-size: 15px; max-width: 34em; }
.case .more { margin-top: auto; }
.case .more:hover i { transform: translate(3px, -3px); }

.other-labs { border-top: 1px solid var(--ink); padding-top: 18px; padding-bottom: 32px; }
.other-labs .crumb { display: block; margin-bottom: 8px; }

/* ---------- Rivelazione allo scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr 1fr; }
  .lab-row { grid-template-columns: 40px 1fr auto; row-gap: 6px; }
  .lab-desc { grid-column: 2; grid-row: 2; }
  .lab-go { grid-column: 3; grid-row: 1; }
  .sec-head { grid-template-columns: 40px 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .role-list .sep { margin: 0 .55em; }
  .role-list .muted { display: block; margin: 6px 0 0; }
  .scroll-cue { display: none; }

  .sec-head { grid-template-columns: 1fr; row-gap: 14px; }
  .sec-sub { grid-column: 1; margin-top: 4px; }

  .services { grid-template-columns: 1fr; }
  .services li { padding-bottom: 28px; }

  .lab-row { grid-template-columns: 1fr auto; padding: 24px 0; }
  .lab-k { display: none; }
  .lab-title { grid-column: 1; grid-row: 1; }
  .lab-desc { grid-column: 1 / -1; grid-row: 2; }
  .lab-go { grid-column: 2; grid-row: 1; }
  .lab-go { font-size: 0; }
  .lab-go i { font-size: 22px; }

  .coesiva { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-roles li { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hl { background-size: 100% 46%; }
}

.page-top .dot { background: var(--ink); }

/* Link testuale con sottolineatura a evidenziatore */
.textlink {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.textlink:hover { background-size: 100% 100%; }
.textlink i { font-style: normal; }
.bio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 16px;
}
.bio-text .bio-actions .btn { margin-top: 0; }
.bio-text .bio-note { font-size: 13px; color: var(--grey); margin: 22px 0 0; }

/* Privacy */
.privacy p { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 24px; }
.privacy strong { color: var(--ink); font-weight: 600; }
.privacy a { border-bottom: 1px solid var(--sand); }
