/* ==========================================================================
   Tecnoelio — home page
   Token e componenti derivati dal design system Modernist (accento blu).
   Nessun raggio, righe 2px, tutto allineato a sinistra.
   ========================================================================== */

:root {
  --te-bg: #f3f2f2;
  --te-surface: #eae9e9;
  --te-text: #201e1d;
  --te-divider: rgba(32, 30, 29, 0.4);

  --te-accent: #1a5cb8;
  --te-accent-100: #e7effa;
  --te-accent-300: #9dbdea;
  --te-accent-600: #164f9f;
  --te-accent-700: #123f80;
  --te-accent-900: #0a2447;

  --te-font: "Archivo", system-ui, sans-serif;

  --te-pad-x: clamp(20px, 4vw, 40px);
  --te-max: 1180px;
  --te-rule: 2px solid var(--te-divider);
}

.te-home {
  background: var(--te-bg);
  color: var(--te-text);
  font-family: var(--te-font);
  font-size: 15px;
  line-height: 1.55;
}
.te-home h1,
.te-home h2,
.te-home h3 {
  font-family: var(--te-font);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.te-home p { margin: 0; text-wrap: pretty; }
.te-home a:not(.te-btn) { color: var(--te-accent-700); text-decoration: none; }
.te-home a:not(.te-btn):hover { color: var(--te-accent); text-decoration: underline; }
.te-home :focus-visible { outline: 2px solid var(--te-accent); outline-offset: 2px; }
.te-home ::selection { background: var(--te-accent-100); }

.te-wrap { max-width: var(--te-max); margin: 0 auto; }
.te-section { padding: clamp(40px, 6vw, 64px) var(--te-pad-x); border-bottom: var(--te-rule); }
.te-kicker {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--te-accent-700); margin-bottom: 12px;
}

/* — bottoni: etichetta sempre a filo sinistro — */
.te-btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
  font-family: var(--te-font); font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 15px 18px; border: 2px solid transparent; border-radius: 0;
  cursor: pointer; text-decoration: none; transition: background-color 0.15s ease;
}
.te-btn:hover { text-decoration: none; }
.te-btn--primary { background: var(--te-accent); color: var(--te-bg); }
.te-btn--primary:hover { background: var(--te-accent-600); color: var(--te-bg); }
.te-btn--primary:active { background: var(--te-accent-700); }
.te-btn--invert { background: var(--te-bg); color: var(--te-accent-700); }
.te-btn--invert:hover { background: #fff; color: var(--te-accent-700); }
.te-btn--outline-light { border: 2px solid var(--te-bg); color: var(--te-bg); }
.te-btn--outline-light:hover { background: rgba(243, 242, 242, 0.14); color: var(--te-bg); }

/* — header — */
.te-header {
  display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap;
  padding: 20px var(--te-pad-x); border-bottom: var(--te-rule);
}
.te-brand { display: flex; align-items: center; gap: 14px; }
.te-brand__mark { width: 34px; height: 42px; border: 2px solid var(--te-text); position: relative; flex: none; }
.te-brand__mark i { position: absolute; left: 6px; height: 2px; background: var(--te-text); }
.te-brand__mark i:nth-child(1) { right: 6px; top: 8px; background: var(--te-accent); }
.te-brand__mark i:nth-child(2) { right: 6px; top: 16px; }
.te-brand__mark i:nth-child(3) { right: 14px; top: 24px; }
.te-brand__name { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1; color: var(--te-text); }
.te-brand__name:hover { text-decoration: none; color: var(--te-text); }
.te-tagline {
  border-left: var(--te-rule); padding-left: 24px; max-width: 220px;
  display: flex; align-items: center; font-size: 15px; line-height: 1.25;
}
.te-nav {
  margin-left: auto; display: flex; align-items: center; gap: 28px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.te-nav a.te-btn--primary { color: var(--te-bg); }

/* — hero — */
.te-hero { background: var(--te-accent); color: var(--te-bg); padding: clamp(40px, 6vw, 56px) var(--te-pad-x); }
.te-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px; align-items: end;
}
.te-hero__eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 20px;
}
.te-hero h1 { font-size: clamp(38px, 5.2vw, 74px); line-height: 0.98; letter-spacing: -0.03em; }
.te-hero__lede { font-size: clamp(18px, 2vw, 26px); margin-top: 20px; max-width: 22ch; font-weight: 500; }
.te-hero__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding-bottom: 6px; }
.te-hero__note { font-size: 13px; line-height: 1.4; opacity: 0.9; }

/* — immagini a tutta larghezza, sempre in bianco e nero — */
.te-bleed { border-bottom: var(--te-rule); overflow: hidden; }
.te-bleed__img {
  display: block; width: 100%; height: clamp(320px, 46vw, 560px);
  object-fit: cover; filter: grayscale(1) contrast(1.08);
}

/* — fascia numeri — */
.te-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--te-rule); }
.te-stat { padding: 28px var(--te-pad-x); border-right: var(--te-rule); }
.te-stat:last-child { border-right: 0; }
.te-stat__n { font-weight: 800; font-size: 40px; line-height: 1; }
.te-stat__l { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }

/* — vantaggi — */
.te-benefits__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.te-benefits__intro { position: sticky; top: 24px; }
.te-benefits__intro h2 { font-size: clamp(30px, 3.4vw, 46px); }
.te-benefits__intro p { margin-top: 18px; font-size: 16px; max-width: 34ch; }
.te-benefit {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 24px;
  padding: 24px 0; border-top: var(--te-rule);
}
.te-benefit:last-child { border-bottom: var(--te-rule); }
.te-benefit__n { font-weight: 800; font-size: 26px; color: var(--te-accent); }
.te-benefit h3 { font-size: 24px; }
.te-benefit p { margin-top: 8px; font-size: 16px; }

/* — promo — */
.te-promo { background: var(--te-text); color: var(--te-bg); padding: 40px var(--te-pad-x); }
.te-promo__inner { display: flex; gap: 32px; align-items: baseline; flex-wrap: wrap; }
.te-promo__tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--te-accent-300); }
.te-promo__text { font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.1; flex: 1; min-width: 260px; }

/* — zona servita — */
.te-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: var(--te-rule); }
.te-area__text { padding: clamp(40px, 6vw, 64px) var(--te-pad-x); border-right: var(--te-rule); }
.te-area__text h2 { font-size: clamp(28px, 3.2vw, 42px); }
.te-area__text > p { margin: 18px 0 28px; font-size: 16px; max-width: 40ch; }
.te-area__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--te-rule); list-style: none; margin: 0; padding: 0; }
.te-area__list li { padding: 14px 0; border-bottom: 1px solid var(--te-divider); font-weight: 600; }
.te-area__list li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--te-divider); }
.te-area__media { min-height: 420px; overflow: hidden; }
.te-area__media .te-bleed__img { height: 100%; min-height: 420px; }

/* — preventivo — */
.te-quote { padding: clamp(40px, 6vw, 64px) var(--te-pad-x); }
.te-quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.te-quote__grid h2 { font-size: clamp(30px, 3.4vw, 46px); }
.te-quote__grid > div > p { margin: 18px 0 24px; font-size: 16px; max-width: 36ch; }
.te-quote__contacts { border-top: var(--te-rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.te-quote__form { border-top: var(--te-rule); padding-top: 24px; }

/* Fluent Forms sui token del tema */
.te-quote__form .ff-el-input--label label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.te-quote__form .ff-el-form-control {
  background: var(--te-surface); border: 1px solid var(--te-divider); border-radius: 0;
  font-family: var(--te-font); font-size: 15px; padding: 10px 12px; color: var(--te-text);
}
.te-quote__form .ff-el-form-control:focus { border-color: var(--te-accent); box-shadow: none; outline: 2px solid var(--te-accent); outline-offset: 1px; }
.te-quote__form .ff-btn-submit {
  background: var(--te-accent); color: var(--te-bg); border: 0; border-radius: 0;
  font-family: var(--te-font); font-weight: 800; font-size: 16px; padding: 16px 20px; text-align: left;
}
.te-quote__form .ff-btn-submit:hover { background: var(--te-accent-600); }

/* — footer — */
.te-footer { background: var(--te-text); color: var(--te-bg); }
.te-footer a { color: var(--te-bg) !important; }
.te-footer__grid {
  max-width: var(--te-max); margin: 0 auto; padding: 32px var(--te-pad-x);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 15px;
}
.te-footer__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.te-footer__bar { border-top: 1px solid rgba(243, 242, 242, 0.25); }
.te-footer__bar > div {
  max-width: var(--te-max); margin: 0 auto; padding: 16px var(--te-pad-x);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7;
}

/* — responsive — */
@media (max-width: 960px) {
  .te-hero__grid,
  .te-benefits__grid,
  .te-quote__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .te-benefits__intro { position: static; }
  .te-area { grid-template-columns: minmax(0, 1fr); }
  .te-area__text { border-right: 0; border-bottom: var(--te-rule); }
  .te-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .te-tagline { border-left: 0; padding-left: 0; max-width: none; }
  .te-nav { gap: 16px; width: 100%; }
  .te-stats { grid-template-columns: minmax(0, 1fr); }
  .te-stat { border-right: 0; border-bottom: var(--te-rule); }
  .te-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media print { .te-hero, .te-promo, .te-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
