/*
Theme Name: FacilityHub Commercial
Theme URI: https://facilityhub.it
Author: FacilityHub
Description: Tema commerciale FacilityHub per clienti, amministratori e rete manutentori.
Version: 1.0.0
Text Domain: facilityhub-commercial
*/

:root {
  --fh-navy: #10233d;
  --fh-blue: #1763b1;
  --fh-light: #f3f7fb;
  --fh-text: #35465b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fh-commercial {
  margin: 0;
  color: var(--fh-navy);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.fh-container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.fh-header {
  background: #fff;
  border-bottom: 1px solid #e5ebf2;
}

.fh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
}

.fh-brand img {
  width: 112px;
  height: 74px;
  object-fit: contain;
}

.fh-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.fh-nav a {
  color: var(--fh-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.fh-nav a:hover { color: var(--fh-blue); }

.fh-button {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  color: #fff;
  background: var(--fh-blue);
  text-decoration: none;
  font-weight: 700;
}

.fh-button-small { padding: 10px 18px; }

.fh-button-outline {
  color: var(--fh-blue);
  background: transparent;
  border: 1px solid var(--fh-blue);
}

.fh-hero {
  padding: 90px 0;
  background: linear-gradient(120deg, #f5f9fd, #fff);
}

.fh-hero-grid,
.fh-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

.fh-eyebrow {
  color: var(--fh-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(38px, 5vw, 65px);
  margin: 20px 0;
}

h2 {
  font-size: clamp(30px, 3.5vw, 45px);
  margin: 15px 0 25px;
}

h3 { font-size: 21px; }

p {
  color: var(--fh-text);
  font-size: 17px;
}

.fh-hero p {
  max-width: 550px;
  font-size: 19px;
}

.fh-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.fh-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.fh-section { padding: 90px 0; }

.fh-section-muted { background: var(--fh-light); }

.fh-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 45px;
}

.fh-card {
  padding: 35px;
  border: 1px solid #e4eaf1;
  border-radius: 16px;
  background: #fff;
}

.fh-card-icon {
  color: var(--fh-blue);
  font-size: 24px;
  font-weight: 800;
}

.fh-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.fh-steps strong {
  color: var(--fh-blue);
  font-size: 30px;
}

.fh-text-link {
  color: var(--fh-blue);
  font-weight: 700;
}

.fh-collabora {
  background: var(--fh-navy);
}

.fh-collabora h2,
.fh-collabora h3,
.fh-collabora p {
  color: #fff;
}

.fh-collabora .fh-eyebrow { color: #8dc5ff; }

.fh-collabora-action {
  padding: 40px;
  border: 1px solid #496079;
  border-radius: 16px;
}

.fh-contact { text-align: center; }

.fh-contact-note {
  font-size: 14px;
  color: #66788b;
}

.fh-footer {
  padding: 30px 0;
  background: #09192d;
  color: #fff;
}

.fh-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .fh-header-inner { flex-wrap: wrap; padding: 12px 0; }
  .fh-nav { order: 3; width: 100%; gap: 14px; }
  .fh-hero-grid, .fh-split { grid-template-columns: 1fr; gap: 35px; }
  .fh-cards { grid-template-columns: 1fr; }
  .fh-steps { grid-template-columns: 1fr 1fr; }
  .fh-section, .fh-hero { padding: 60px 0; }
}

@media (max-width: 520px) {
  .fh-container { width: min(100% - 28px, 1160px); }
  .fh-nav { gap: 10px 15px; }
  .fh-nav a { font-size: 12px; }
  .fh-steps { grid-template-columns: 1fr; }
  .fh-footer-inner { flex-direction: column; }
  .fh-collabora-action { padding: 25px; }
}

/* STEP 836 — Identità visiva FacilityHub */
.fh-header-inner {
  min-height: 108px;
}

.fh-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 160px;
  min-width: 0;
}

.fh-brand img {
  display: block;
  width: 155px;
  height: 100px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .fh-header-inner {
    min-height: 92px;
  }
  .fh-brand {
    flex-basis: 135px;
  }
  .fh-brand img {
    width: 135px;
    height: 88px;
  }
}

.fh-partner-hero {
  padding: 85px 0;
  background: linear-gradient(125deg,#10233d,#174c79);
  color: #fff;
}

.fh-partner-hero h1 {
  max-width: 850px;
  font-size: clamp(38px,5vw,60px);
}

.fh-partner-hero p {
  max-width: 720px;
  color: #e0ebf6;
  font-size: 19px;
}

.fh-partner-hero .fh-eyebrow {
  color: #92d5ff;
}

.fh-partner-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  margin-top: 35px;
}

.fh-partner-card {
  border: 1px solid #e1e9f2;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
}

.fh-partner-card h3 {
  margin: 0 0 12px;
}

.fh-partner-note {
  padding: 24px 28px;
  background: #f3f7fb;
  border-left: 4px solid #1763b1;
  border-radius: 8px;
}

.fh-partner-cta {
  padding: 40px;
  border-radius: 18px;
  background: #10233d;
  color: #fff;
}

.fh-partner-cta h2,
.fh-partner-cta p {
  color: #fff;
}

@media (max-width: 800px) {
  .fh-partner-grid {
    grid-template-columns: 1fr;
  }
  .fh-partner-hero {
    padding: 60px 0;
  }
  .fh-partner-cta {
    padding: 26px;
  }
}

/* STEP 838 — Modulo candidature */
.fh-candidate-form {
  max-width: 950px;
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.fh-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.fh-candidate-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #10233d;
}

.fh-candidate-form input:not([type=checkbox]),
.fh-candidate-form select,
.fh-candidate-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd7e5;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: #10233d;
}

.fh-candidate-form input:focus,
.fh-candidate-form select:focus,
.fh-candidate-form textarea:focus {
  outline: 2px solid #1763b1;
  outline-offset: 2px;
}

.fh-privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  font-weight: 400 !important;
}

.fh-privacy-check input {
  margin-top: 6px;
}

.fh-form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fh-candidate-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

@media (max-width: 700px) {
  .fh-form-grid {
    grid-template-columns: 1fr;
  }
}
