/* Termotecnica di Fanni Emanuele — pagina "sito in costruzione" — testata, hero e contatti */

/* ---------- Testata ---------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1rem, 0.6rem + 1.4vw, 1.75rem) 0;
}

.topbar picture {
  display: block;
}

.brand {
  width: clamp(8.25rem, 6rem + 7vw, 12.5rem);
  height: auto;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgb(251 249 244 / 0.75);
  color: var(--ink-soft);
  font: 500 var(--text-label) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color var(--duration-normal) ease;
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 2.4s var(--ease-out-expo) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 1rem + 2.4vw, 3rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font: 500 var(--text-label) / 1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.headline {
  margin: 0;
  color: var(--ink);
}

.headline__main {
  display: block;
  font-size: var(--text-hero);
  font-weight: 820;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.045em;
  word-spacing: 0.1em;
}

.headline__main > span {
  display: block;
}

.headline__sub {
  display: block;
  margin-top: 0.55em;
  color: var(--ink-soft);
  font-size: var(--text-hero-sub);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline__sub em {
  color: var(--brand-green);
  font-style: normal;
  font-weight: 620;
}

.lead {
  max-width: 36rem;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.62;
  text-wrap: pretty;
}

.lead strong {
  color: var(--ink);
  font-weight: 620;
}

/* ---------- Contatti ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.4rem;
  padding: 0 1.45rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.02rem;
  font-weight: 640;
  font-stretch: 104%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-normal) ease,
    color var(--duration-normal) ease,
    box-shadow var(--duration-normal) ease;
}

.btn svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--whatsapp {
  --btn-bg: var(--brand-green);
  --btn-fg: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 16px 30px -16px rgb(11 116 67 / 0.75);
}

.btn--call {
  box-shadow: inset 0 0 0 1.5px rgb(15 29 43 / 0.82);
}

@media (hover: hover) {
  .btn--whatsapp:hover {
    --btn-bg: var(--brand-green-deep);
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.22),
      0 22px 36px -16px rgb(11 116 67 / 0.8);
  }

  .btn--call:hover {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
  }
}

.contact-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-alt a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.35rem;
  color: var(--ink-soft);
  font-weight: 520;
  text-decoration: underline;
  text-decoration-color: rgb(15 29 43 / 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color var(--duration-fast) ease, text-decoration-color var(--duration-fast) ease;
}

.contact-alt a:hover {
  color: var(--brand-green);
  text-decoration-color: currentColor;
}

.contact-alt svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .btn {
    flex: 1 1 100%;
  }
}

