*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terracotta: #d09f79;
  --terracotta-dark: #b8845c;
  --dark: #0d0d0d;
  --dark-2: #161616;
  --dark-3: #1f1f1f;
  --cream: #f5f0eb;
  --white: #ffffff;
  --gray: #888;
  --gray-light: #bbb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(208,159,121,0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}

.logo-text .tagline {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gray);
  text-transform: uppercase;
}

nav .nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav .nav-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

nav .nav-links a:hover { color: var(--terracotta); }

.btn-nav {
  background: var(--terracotta);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-nav:hover { background: var(--terracotta-dark); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 60px 90px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(208,159,121,0.08) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(208,159,121,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 28px;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--terracotta);
  display: block;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── HERO PANEL (numeri) ─── */
.hero-panel {
  background: var(--dark-3);
  border: 1px solid rgba(208,159,121,0.18);
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.hero-panel-k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 26px;
}

.hero-stat {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }

.hero-stat b {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 42px;
  display: block;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.hero-stat span {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.5;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ─── SECTION BASE ─── */
section { padding: 100px 60px; }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head .section-h2 { margin-bottom: 18px; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-h2 em {
  font-style: normal;
  color: var(--terracotta);
}

.section-sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.75;
}

/* ─── PROBLEMA ─── */
#problema {
  background: var(--cream);
  color: var(--dark);
}

#problema .section-label { color: var(--terracotta-dark); }
#problema .section-sub { color: #555; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.pain-card {
  background: var(--white);
  border: 1px solid rgba(13,13,13,0.06);
  padding: 32px 28px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.pain-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.pain-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* ─── TIMECHART ─── */
.timechart {
  background: var(--white);
  border: 1px solid rgba(13,13,13,0.06);
  padding: 44px 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

.timechart > h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.timechart-sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 34px;
}

.tc-row { margin-bottom: 30px; }
.tc-row:last-of-type { margin-bottom: 0; }

.tc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.tc-label b { font-size: 15px; font-weight: 600; color: var(--dark); }
.tc-label span { font-size: 13px; color: #888; }

.tc-bar {
  display: flex;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(13,13,13,0.08);
}

.tc-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  min-width: 0;
}

.tc-seg small { font-weight: 500; opacity: 0.85; margin-left: 6px; }

.seg-sale { background: #a8a8a8; }
.seg-admin { background: #d6d6d6; color: var(--dark); }
.seg-waste { background: #ededed; color: var(--dark); }
.seg-sale-hi { background: var(--terracotta); color: var(--dark); }

.tc-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.dot { width: 11px; height: 11px; display: inline-block; }

/* ─── METODO / ECOSISTEMA ─── */
#metodo {
  background: var(--dark-2);
}

.eco-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}

.eco-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.eco-card {
  background: var(--dark-3);
  padding: 44px 36px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s;
}

.eco-card:hover { border-top-color: var(--terracotta); }

.eco-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: rgba(208,159,121,0.2);
  line-height: 1;
  margin-bottom: 20px;
}

.eco-step {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.eco-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 16px;
  line-height: 1.25;
}

.eco-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

.eco-badge {
  display: inline-block;
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid rgba(208,159,121,0.35);
  padding: 6px 14px;
}

/* ─── RUOLI: NON SOLO AGENTI ─── */
#ruoli {
  background: var(--dark);
}

.ruoli-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ruolo-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  padding: 32px 30px;
  transition: border-color 0.3s;
}

.ruolo-card:hover { border-color: rgba(208,159,121,0.4); }

.ruolo-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.ruolo-card h3 span {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}

.ruolo-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

/* ─── PERCORSO ─── */
#percorso {
  background: var(--cream);
  color: var(--dark);
}

#percorso .section-label { color: var(--terracotta-dark); }
#percorso .section-sub { color: #555; }

.percorso-header {
  text-align: center;
  margin-bottom: 70px;
}

.percorso-header .section-label,
.percorso-header .section-h2,
.percorso-header .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
}

.step-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: rgba(208,159,121,0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.step-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
}

/* ─── FONDATORI ─── */
#fondatori {
  background: var(--dark-2);
  text-align: center;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 800px;
  margin: 60px auto 0;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid rgba(208,159,121,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  overflow: hidden;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

.founders-quote {
  margin-top: 60px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--gray-light);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ─── CANDIDATURA ─── */
#candidatura {
  background: var(--dark);
  padding: 100px 60px;
}

.candidatura-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.candidatura-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.candidatura-left h2 em {
  font-style: normal;
  color: var(--terracotta);
}

.candidatura-left p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 36px;
}

.punti-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.punti-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-light);
}

.punti-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  flex-shrink: 0;
}

.form-box {
  background: var(--dark-3);
  padding: 48px;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
}

.form-group select option { background: var(--dark-2); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--terracotta);
}

.form-checkbox label {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.form-checkbox a { color: var(--terracotta); }

.btn-submit {
  width: 100%;
  background: var(--terracotta);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot anti-spam: fuori dallo schermo, invisibile agli utenti */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messaggio di stato del form (successo / errore) */
.form-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-success {
  color: var(--terracotta);
  font-weight: 600;
}

.form-status.is-error { color: #e57373; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .footer-copy {
  font-size: 12px;
  color: var(--gray);
}

footer .footer-legal {
  font-size: 12px;
  color: var(--gray);
}

footer .footer-legal a {
  color: var(--terracotta);
  text-decoration: none;
}

footer .footer-brand { color: var(--white); font-weight: 600; }

/* ─── MOTION ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav .nav-links { display: none; }
  section { padding: 70px 24px; }
  #hero { padding: 130px 24px 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { padding: 34px 28px; }
  .pain-grid { grid-template-columns: 1fr; }
  .eco-cards { grid-template-columns: 1fr; }
  .eco-header { grid-template-columns: 1fr; }
  .ruoli-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; max-width: 400px; }
  .candidatura-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  #candidatura { padding: 70px 24px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
  .timechart { padding: 30px 22px; }
  .tc-seg { font-size: 11px; }
  .tc-seg small { display: none; }
}
