/*
Theme Name: Cento21
Theme URI: https://cento21.it
Author: Cento21 S.r.l.
Description: Tema custom per la landing di Cento21 S.r.l. — acquisto diretto di immobili residenziali. Hero scuro, sezioni operative chiare, righello di misura come device di navigazione.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietario
Text Domain: cento21
*/

:root{
  /* dark (hero / footer) */
  --bg-dark: #16223C;
  --ivory: #EDE9E1;
  --ivory-dim: #9BA3B4;
  --brick-on-dark: #C05A48;
  --hairline-dark: rgba(237,233,225,0.14);

  /* light (sezioni operative) */
  --stone-bg: #F5F3EF;
  --navy: #1B2A4A;
  --stone-text: #706C63;
  --brick: #8C3B2E;
  --hairline: rgba(27,42,74,0.16);

  --rail-w: 88px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  font-family: 'Carlito', 'Lato', sans-serif;
  background: var(--stone-bg);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Source Serif 4', 'Charter', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono{
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

a{ color: inherit; text-decoration: none; }

/* ---------- MEASURE RAIL ---------- */
.rail{
  position: fixed;
  top:0; left:0; bottom:0;
  width: var(--rail-w);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}
.rail-line{
  position: relative;
  width: 1px;
  background: rgba(27,42,74,0.35);
  flex: 1;
  margin: 24px 0;
}
.rail-tick{
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: var(--navy);
}
.rail-label{ position: absolute; left: 14px; font-size: 10px; white-space: nowrap; }
.rail-num{ font-size: 10px; color: var(--stone-text); }
.rail-disc{ width: 14px; height:14px; border-radius: 50%; background: var(--navy); }

/* rail on dark hero: mix-blend keeps it readable in both zones */
.rail{ mix-blend-mode: difference; filter: invert(1) hue-rotate(180deg); }
/* fallback semplice: se blend non regge, il rail resta navy su chiaro */
@supports not (mix-blend-mode: difference){
  .rail{ mix-blend-mode: normal; filter:none; }
}

main{ margin-left: var(--rail-w); }
.wrap{ max-width: 760px; padding: 0 56px; }

/* ---------- DARK ZONE (header + hero) ---------- */
.zone-dark{
  background: var(--bg-dark);
  color: var(--ivory);
}
.zone-dark h1, .zone-dark h2, .zone-dark h3{ color: var(--ivory); }

.site-header{ padding: 32px 0; }
.site-header .wrap{
  display:flex; align-items:center; justify-content: space-between;
  max-width: 100%;
}
.brand-name{ font-family:'Source Serif 4', serif; font-size: 18px; }
.site-nav{ display:flex; gap: 32px; font-size: 13px; color: var(--ivory-dim); }
.site-nav a:hover{ color: var(--ivory); }

.hero{ padding: 110px 0 140px; }
.hero .eyebrow{ font-size: 11px; color: var(--brick-on-dark); margin-bottom: 30px; }
.hero h1{ font-size: 58px; line-height: 1.08; max-width: 640px; }
.hero .lead{
  margin-top: 32px; font-size: 18px;
  color: var(--ivory-dim); max-width: 430px;
}
.cta-row{ margin-top: 48px; display:flex; align-items:baseline; gap: 28px; }
.btn-line{
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px; font-size: 15px;
  transition: color .15s ease;
  background:none; border-top:none; border-left:none; border-right:none;
  cursor:pointer; font-family:inherit;
}
.zone-dark .btn-line:hover{ color: var(--brick-on-dark); }
.zone-light .btn-line:hover{ color: var(--brick); }
.cta-note{ font-size: 12.5px; }
.zone-dark .cta-note{ color: var(--ivory-dim); }

/* ---------- LIGHT ZONE ---------- */
.zone-light{ background: var(--stone-bg); color: var(--navy); }

.section{ padding: 100px 0; }
.section + .section{ border-top: 1px solid var(--hairline); }
.section-head{ margin-bottom: 64px; }
.section-head .eyebrow{ font-size: 11px; color: var(--brick); margin-bottom: 16px; }
.section-head h2{ font-size: 34px; max-width: 480px; color: var(--navy); }

/* process */
.process-item{
  display:grid; grid-template-columns: 90px 1fr; gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--hairline);
}
.process-item:last-of-type{ border-bottom: 1px solid var(--hairline); }
.process-num{ font-family: 'Source Serif 4', serif; font-size: 34px; color: rgba(27,42,74,0.22); }
.process-item h3{ font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.process-item p{ font-size: 14.5px; color: var(--stone-text); max-width: 430px; }

/* commitments */
.commit-item{
  padding: 28px 0; border-top: 1px solid var(--hairline);
  display:grid; grid-template-columns: 1fr 1.4fr; gap: 28px;
}
.commit-item:last-of-type{ border-bottom: 1px solid var(--hairline); }
.commit-item h3{ font-family: 'Carlito', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy); }
.commit-item p{ font-size: 14.5px; color: var(--stone-text); }

.promise-box{ margin-top: 52px; border-left: 2px solid var(--brick); padding-left: 26px; }
.promise-box .label{ font-size: 11px; color: var(--brick); margin-bottom: 10px; display:block; }
.promise-box p{ font-size: 15.5px; max-width: 490px; color: var(--navy); }

/* who */
.who-lead{ font-size: 15.5px; color: var(--stone-text); max-width: 470px; margin-bottom: 18px; }
.network-row{
  padding: 20px 0; border-top: 1px solid var(--hairline);
  display:grid; grid-template-columns: 1fr 1.3fr; gap: 24px;
}
.network-row:last-of-type{ border-bottom: 1px solid var(--hairline); }
.network-role{ font-size: 15px; }
.network-desc{ font-size: 13.5px; color: var(--stone-text); }

/* diff */
.diff-label{ font-size: 11px; color: var(--stone-text); margin-bottom: 10px; display:block; }
.diff p{ font-size: 15.5px; max-width: 490px; margin-bottom: 26px; color: var(--navy); }

/* ---------- CONTACT FORM ---------- */
.contact{ padding: 100px 0 120px; }
.contact h2{ font-size: 40px; max-width: 480px; margin-bottom: 22px; color: var(--navy); }
.contact .contact-sub{ color: var(--stone-text); font-size: 15.5px; max-width: 400px; margin-bottom: 44px; }

.c21-form{ max-width: 520px; }
.c21-field{ margin-bottom: 26px; }
.c21-field label{
  display:block; font-size: 12px; margin-bottom: 8px;
  font-family:'IBM Plex Mono', monospace; letter-spacing:.06em; text-transform:uppercase;
  color: var(--stone-text);
}
.c21-field input, .c21-field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 2px;
  font-family: 'Carlito', sans-serif;
  font-size: 16px;
  color: var(--navy);
  border-radius: 0;
}
.c21-field input:focus, .c21-field textarea:focus{
  outline: none;
  border-bottom-color: var(--navy);
}
.c21-field textarea{ min-height: 110px; resize: vertical; }
.c21-consent{
  display:flex; gap:10px; align-items:flex-start;
  font-size: 13px; color: var(--stone-text); margin-bottom: 34px; max-width: 520px;
}
.c21-consent input{ margin-top: 3px; }
.c21-hp{ position:absolute; left:-9999px; opacity:0; height:0; overflow:hidden; }

.c21-notice{
  padding: 16px 20px;
  border-left: 2px solid var(--navy);
  background: #fff;
  font-size: 14.5px;
  margin-bottom: 36px;
  max-width: 520px;
}
.c21-notice.error{ border-left-color: var(--brick); }

/* ---------- FOOTER ---------- */
.site-footer{
  padding: 44px 0 60px;
  font-size: 12.5px;
}
.site-footer .wrap{
  display:flex; justify-content:space-between; width:100%;
  max-width:100%; color: var(--ivory-dim);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .rail{ display:none; }
  main{ margin-left: 0; }
  .wrap{ padding: 0 24px; }
  .hero{ padding: 64px 0 90px; }
  .hero h1{ font-size: 38px; }
  .process-item, .commit-item, .network-row{ grid-template-columns: 1fr; gap: 10px; }
  .site-nav{ gap: 18px; flex-wrap: wrap; }
}

:focus-visible{ outline: 2px solid var(--navy); outline-offset: 2px; }
.zone-dark :focus-visible{ outline-color: var(--ivory); }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ transition:none !important; } }
