/* =========================================================
   CAME Comunicazione — Landing recruiting agenti
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* --- colore --- */
  --ink:        #15171c;
  --ink-soft:   #1c1f26;
  --ink-line:   rgba(237,234,224,0.14);
  --ink-text:   #ece8dd;
  --ink-muted:  #9c988c;

  --paper:      #eae6da;
  --paper-soft: #e0dbcb;
  --paper-line: rgba(29,27,22,0.14);
  --paper-text: #1d1b16;
  --paper-muted:#655c4c;

  --gold:       #b3872c;
  --gold-bright:#c79a3d;
  --gold-deep:  #8f6b1f;
  --sage:       #3f6e56;

  /* --- tipografia --- */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1160px;
  --measure: 62ch;

  --dur-1: 550ms;
  --ease-out: cubic-bezier(.19,1,.22,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--paper-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,p,ul{ margin: 0; }
ul{ padding: 0; list-style: none; }
button{ font: inherit; }

::selection{ background: var(--gold); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px){
  .wrap{ padding: 0 2.5rem; }
}

.section{ padding: 5rem 0; }
@media (min-width: 900px){
  .section{ padding: 8rem 0; }
}
.section--tight{ padding-top: 3.5rem; padding-bottom: 3.5rem; }

.on-ink{ background: var(--ink); color: var(--ink-text); }
.on-paper{ background: var(--paper); color: var(--paper-text); }

.measure{ max-width: var(--measure); }

/* --- tipografia elementi --- */
.kicker{
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.h1{
  font-family: var(--f-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  max-width: 16ch;
}

.h2{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 1.3rem;
  max-width: 20ch;
}

.h3{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}

.lede{
  font-size: 1.15rem;
  line-height: 1.6;
  color: inherit;
}
.on-ink .lede{ color: var(--ink-muted); }
.on-paper .lede{ color: var(--paper-muted); }

p + p{ margin-top: 1rem; }

/* --- header --- */
.brand-bar{
  padding: 1.6rem 0;
}
.brand{
  font-family: var(--f-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

/* --- hero --- */
.hero{
  padding-top: 3rem;
  padding-bottom: 5.5rem;
}
@media (min-width: 900px){
  .hero{ padding-top: 4rem; padding-bottom: 9rem; }
}
.hero-sub{
  max-width: 46ch;
}

/* --- credibility --- */
.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.6rem 0 3rem;
}
@media (max-width: 640px){
  .stat-row{ grid-template-columns: 1fr; gap: 2rem; }
}
.stat{ border-top: 1px solid var(--ink-line); padding-top: 1.1rem; }
.stat-num{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--ink-text);
}
.stat-label{
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.proof-panel{
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  background: var(--paper);
  color: var(--paper-text);
  border-radius: 6px;
  padding: 1.3rem 1.6rem;
  max-width: 560px;
}
.proof-panel img.badge{ width: 150px; flex: none; }
.proof-copy{ font-size: 0.95rem; color: var(--paper-muted); max-width: 30ch; }
.proof-copy strong{ color: var(--paper-text); }
.tp-mark{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.tp-mark img{ height: 14px; width: auto; opacity: 0.85; }
.tp-mark span{ font-size: 0.82rem; color: var(--ink-muted); }

/* --- liste benefici --- */
.benefit-list{ margin-top: 1.6rem; }
.benefit-list li{
  padding: 0.95rem 0;
  border-top: 1px solid var(--paper-line);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
.benefit-list li:last-child{ border-bottom: 1px solid var(--paper-line); }
.benefit-list li::before{
  content: '';
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
}
.benefit-list p{ margin: 0; }

/* --- cosa offriamo: blocchi con foto --- */
.offer-block{
  margin-top: 4rem;
  display: grid;
  gap: 2.2rem;
}
.offer-block:first-child{ margin-top: 3rem; }
@media (min-width: 860px){
  .offer-block--media{
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3rem;
  }
  .offer-block--media.flip .offer-media{ order: 2; }
}
.offer-media{
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
}
.offer-media img{
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.offer-media img.is-loaded{ opacity: 1; transform: scale(1); }
.offer-caption{
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--paper-muted);
}

.money-list li::before{ background: var(--sage); }

/* --- prima di continuare --- */
.pledge{
  text-align: left;
}
.pledge .h2{
  max-width: 22ch;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.34;
}

/* --- due card --- */
.situations{
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--paper-line);
}
@media (min-width: 760px){
  .situations{ grid-template-columns: 1fr 1fr; }
}
.situation{
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--paper-line);
}
@media (min-width: 760px){
  .situation{ padding: 2.6rem 2.8rem 2.6rem 0; }
  .situation + .situation{ padding-left: 2.8rem; border-left: 1px solid var(--paper-line); }
}
.situation-label{
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.situation p{ color: var(--paper-muted); }

/* --- faq --- */
.faq{ margin-top: 2.5rem; border-top: 1px solid var(--paper-line); }
.faq-item{ border-bottom: 1px solid var(--paper-line); }
.faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--paper-text);
}
.faq-icon{
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after{
  content: '';
  position: absolute;
  background: var(--paper-text);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-icon::before{ width: 14px; height: 1.5px; }
.faq-icon::after{ width: 1.5px; height: 14px; transition: transform 300ms var(--ease-out); }
.faq-item[data-open="true"] .faq-icon::after{ transform: translate(-50%,-50%) rotate(90deg); }

.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-out);
}
.faq-a p{
  padding-bottom: 1.4rem;
  color: var(--paper-muted);
  max-width: 58ch;
}

/* --- test / cta finale --- */
.test-block .kicker{ color: var(--gold); }
.test-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.2rem 0 2.6rem;
  max-width: 520px;
}
@media (max-width: 560px){
  .test-stats{ grid-template-columns: 1fr; gap: 1rem; }
}
.test-stats div{ border-top: 1px solid var(--ink-line); padding-top: 0.8rem; }
.test-stats .num{
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--ink-text);
}
.test-stats .lbl{ font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.2rem; }

.closing-line{ margin-top: 2rem; font-size: 1.05rem; }

.cta-row{
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 3px;
  text-decoration: none;
  border: 0;
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.btn:hover{ background: #d8ab4c; transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.person-chip{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.avatar{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.person-chip small{ display:block; color: var(--ink-muted); font-size: 0.8rem; }

/* --- fine print / footer --- */
.fine-print{
  padding: 2.4rem 0 3.2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-line);
}

/* --- sticky cta bar --- */
.sticky-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  transform: translateY(100%);
  transition: transform 380ms var(--ease-out);
}
.sticky-cta.is-visible{ transform: translateY(0); }
.sticky-cta .wrap{
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta p{
  color: var(--ink-text);
  font-size: 0.92rem;
  margin: 0;
}
.sticky-cta .btn{ padding: 0.7rem 1.4rem; font-size: 0.92rem; flex: none; }
@media (max-width: 560px){
  .sticky-cta p{ display: none; }
}

/* --- reveal on scroll --- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .offer-media img{ opacity: 1; transform: none; transition: none; }
}
