/* Tecnocasa Mini-Site — design system 21BiT (replica stile tecnocasa.it)
   Fonte di verità: _engine/tecnocasa-minisite-prompt.md */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

:root {
  --tc-green: #158140;
  --tc-green-dark: #0f6a34;
  --tc-orange: #ee7326;
  --tc-orange-dark: #db5600;
  --tc-blue: #365c76;
  --tc-text: #424e5b;
  --tc-muted: #6c757d;
  --tc-line: #e1e1e1;
  --tc-soft: #f8f8f8;
  --tc-footer: #424e5b;
  --tc-white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tc-white);
  color: var(--tc-text);
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Montserrat', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1140px, calc(100% - 30px)); margin: 0 auto; }

/* Top bar */
.tc-top {
  background: var(--tc-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.tc-top .container {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tc-top a:hover { text-decoration: underline; }

/* Header */
.tc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--tc-line);
}
.tc-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.tc-brand { display: flex; align-items: center; gap: 14px; }
.tc-logo { width: 154px; height: auto; }
.tc-brand small {
  display: block;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 1.1;
}
.tc-brand strong {
  display: block;
  color: var(--tc-blue);
  font-size: 17px;
  line-height: 1.15;
}
.tc-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 700;
}
.tc-menu a:hover { color: var(--tc-green); }
.tc-burger {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.tc-burger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: var(--tc-green);
  border-radius: 2px;
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  min-height: 43px;
  padding: 11px 26px;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-cta { color: #fff; background: var(--tc-orange); }
.btn-cta:hover { background: var(--tc-orange-dark); }
.btn-outline { color: var(--tc-green); background: #fff; border: 2px solid var(--tc-green); }
.btn-outline:hover { color: #fff; background: var(--tc-green); }
.btn-white { color: var(--tc-green); background: #fff; }
.btn-white:hover { color: #fff; background: var(--tc-green-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  /* background-image impostato inline sulla sezione (gradient + foto) */
  background-color: #424e5b;
  background-size: cover;
  background-position: center;
}
.hero.compact { min-height: 340px; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(0, 21, 31, .4);
}
.hero p {
  color: rgba(255, 255, 255, .95);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.3;
  max-width: 760px;
  margin: 0 0 28px;
  text-shadow: 0 0 5px rgba(0, 21, 31, .35);
}

/* Sezioni */
.section { padding: 58px 0; }
.section-soft { background: var(--tc-soft); border-top: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); }
.section-title {
  color: var(--tc-blue);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-lead {
  max-width: 880px;
  margin: 0 auto 32px;
  font-size: 18px;
}
.center { text-align: center; }
.center .section-lead { text-align: center; }

/* Card buyer / servizi */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border: 1px solid var(--tc-line);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body {
  padding: 22px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-body h3 {
  color: var(--tc-blue);
  font-size: 24px;
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}
.card-body p { margin: 0; font-size: 16px; flex: 1; }
.card-body .btn { align-self: center; }

/* Due colonne */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.two-col img { width: 100%; }
.copy h2 {
  color: var(--tc-blue);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 800;
}
.copy p { font-size: 18px; margin: 0 0 18px; }

/* Green band */
.green-band {
  background: var(--tc-green);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.green-band h2 {
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
}
.green-band p { max-width: 850px; margin: 0 auto 24px; font-size: 18px; }

/* Numeri */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.number { background: #fff; border: 1px solid var(--tc-line); padding: 28px 18px; }
.number strong {
  display: block;
  color: var(--tc-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}
.number span { display: block; color: var(--tc-blue); margin-top: 10px; font-weight: 800; }

/* Form */
.form-box {
  background: var(--tc-blue);
  color: #fff;
  padding: 36px;
  border-radius: 4px;
}
.form-box h2 { color: #fff; margin: 0 0 10px; font-weight: 800; }
.form-box .form-intro { color: rgba(255, 255, 255, .9); margin: 0 0 8px; }
.form-grid { display: grid; gap: 14px; margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; color: #fff; font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  margin-top: 5px;
}
textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .9); }
.consent input { width: auto; min-height: 0; margin: 3px 0 0; }
.consent a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-feedback { margin-top: 10px; font-weight: 700; display: none; }
.form-feedback.error { display: block; color: #ffd7b0; }

/* FAQ */
.faq details { border-top: 1px solid var(--tc-line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--tc-line); }
.faq summary { color: var(--tc-blue); font-weight: 800; cursor: pointer; }

/* Prosa (pagine buyer, privacy, blog) */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { color: var(--tc-blue); font-weight: 800; margin: 34px 0 12px; }
.prose p, .prose li { font-size: 17px; }
.prose a { color: var(--tc-green); font-weight: 700; }

/* Footer */
.footer {
  background: var(--tc-footer);
  color: #fff;
  padding: 36px 0 24px;
  font-size: 14px;
}
.footer p { margin: 6px 0; color: rgba(255, 255, 255, .78); }
.footer a { color: rgba(255, 255, 255, .9); text-decoration: underline; }
.footer .disclaimer { font-size: 12px; margin-top: 14px; color: rgba(255, 255, 255, .6); }

/* Mobile */
@media (max-width: 880px) {
  .tc-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--tc-line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 0;
  }
  .tc-menu a { padding: 12px 0; border-bottom: 1px solid var(--tc-line); }
  .tc-menu a:last-child { border-bottom: 0; }
  .tc-menu.open { display: flex; }
  .tc-burger { display: block; }
  .tc-nav > .btn { display: none; }
  .card-grid, .two-col, .numbers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tc-top .container { justify-content: center; text-align: center; }
  .tc-top .container span:first-child { display: none; }
  .form-box { padding: 26px 18px; }
}
