/* ============================================================
   Telemarketing 2.0 · PRIME ACADEMY
   Colori, caratteri e pulsanti del nuovo sito Prime Immobiliare.
   ============================================================ */
:root {
  --ink:        #15171c;
  --ink-soft:   #3a3d45;
  --ink-2:      #5a5d66;
  --muted:      #93969e;

  --gold:       #d3af00;
  --gold-hover: #e8c200;
  --gold-deep:  #8a6f1f;
  --gold-tint:  #f7eed7;
  --gold-tint2: #efe0b4;
  --gold-ink:   #5c4a12;

  --green:      #2f9e5f;
  --green-deep: #1e7a46;
  --green-tint: #e2f4e9;
  --green-tint2:#cdedd7;
  --green-ink:  #14532d;

  --paper:      #f3f3f1;
  --card:       #ffffff;
  --line:       #e2e2df;
  --line-2:     #efefec;

  --st-recente: #2f9e5f;
  --st-media:   #d4a017;
  --st-vecchia: #e07b39;
  --st-mai:     #c2beb4;

  --ok-bg:#e2f4e9; --ok-ink:#1e7a46;
  --err-bg:#fdecea; --err-ink:#a12b1e;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-s: 0 1px 2px rgba(21,23,28,.05), 0 2px 8px rgba(21,23,28,.04);
  --shadow-m: 0 2px 6px rgba(21,23,28,.06), 0 12px 32px rgba(21,23,28,.10);
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-titoli: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
a { color: inherit; }
h1,h2,h3 { margin: 0; font-family: var(--font-titoli); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- animazioni (additive: il contenuto è sempre visibile) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop  { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes glowring { from { box-shadow: 0 0 0 0 rgba(211,175,0,.45); } to { box-shadow: 0 0 0 12px rgba(211,175,0,0); } }

.reveal.in { animation: rise .5s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 22px; height: 72px;
}
.topbar .logo img { height: 45px; width: auto; display: block; }
.topbar .tag {
  font-family: var(--font-titoli);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); padding-left: 16px; border-left: 1px solid var(--line);
}
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  position: relative; text-decoration: none; color: var(--ink);
  padding: 8px 14px; font-size: 14px;
  transition: color .2s;
}
.topbar nav a::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s ease;
}
.topbar nav a.active { font-weight: 600; }
.topbar nav a:hover::after, .topbar nav a.active::after { width: calc(100% - 28px); }
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 16px; height: 60px; }
  .topbar .tag { display: none; }
  .topbar .logo img { height: 34px; }
  .topbar nav a { padding: 8px 8px; font-size: .86rem; }
}

/* ---------- HERO (above the fold) ---------- */
.hero {
  position: relative;
  /* tinta unita come la prima sezione del sito (pagina Il Metodo Prime) */
  background: linear-gradient(180deg, #2a2d36 0%, #1b1d23 45%, #15171c 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 22px clamp(40px, 6vw, 64px); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.1; letter-spacing: -0.02em; }
.hero .sub { color: rgba(255,255,255,.78); margin-top: 12px; font-size: clamp(1rem, 1.4vw, 1.1rem); font-weight: 300; line-height: 1.6; max-width: 60ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 30px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden;
}
.hero-stats .s { background: rgba(15,16,20,.6); padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.hero-stats .n { font-family: var(--font-titoli); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats .n.gold { color: var(--gold); }
.hero-stats .l { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 2px; }
@media (max-width: 680px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 30px 16px 26px; }
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 70px; }

/* ---------- board: sezioni ben separate ---------- */
.board {
  margin-top: 28px; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-s);
}
.board + .board { margin-top: 22px; }
.board-alt { background: linear-gradient(180deg, #fbf9f4, #fff); }
.board-head { margin-bottom: 18px; }
.board-kicker {
  display: block; font-family: var(--font-titoli); font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold-deep); margin-bottom: 6px;
}
.board-head h2 { font-size: 1.35rem; }
.board-head p { margin-top: 4px; font-size: .92rem; }
@media (max-width: 640px) { .board { padding: 18px 14px; } }

.pill {
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2);
}
.pill.gold { background: var(--gold-tint); color: var(--gold-ink); }

/* ---------- tabella ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-s); }
.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.grid th, table.grid td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.grid thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700; background: #fbfaf7;
}
table.grid tbody tr { transition: background .12s; }
table.grid tbody tr:last-child td { border-bottom: 0; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-family: var(--font-titoli); font-weight: 600; cursor: pointer; text-decoration: none;
  padding: 12px 24px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--line-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: 0 10px 20px rgba(21,23,28,.25); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); box-shadow: 0 10px 24px rgba(211,175,0,.4); }
.btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.85); }
.btn-danger { border-color: #e3b7b1; color: #a12b1e; background: #fff; }
.btn-danger:hover { background: var(--err-bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { padding: 7px 12px; font-size: .86rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ---------- alert / vari ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .93rem; font-weight: 600; animation: rise .4s ease; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: var(--err-bg); color: var(--err-ink); }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
