﻿/* assets/css/custom.css */

/* ------------------ */
/* Typography & text  */
/* ------------------ */
.h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.h3 {
  font-weight: 700;
  font-size: clamp(22px, 3.0vw, 32px);
  line-height: 1.12;
}
.lead {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
}
.eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* -------------- */
/* Core components */
/* -------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: 9999px;
  padding: .9rem 1.3rem;
  font-weight: 600;
}
.btn-primary {
  background: #D62625;
  color: #fff;
}
.btn-primary:hover { opacity: .92; }
.btn-ghost {
  border: 1px solid #e5e7eb;
  color: #111827;
  background: #fff;
}
.btn-ghost:hover { border-color: #d1d5db; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .45rem .8rem;
  background: #f4f4f5;
  font-weight: 600;
  font-size: .9rem;
}

.card {
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.card-quiet {
  border-radius: 1.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

/* --------- */
/* Navigation */
/* --------- */
.nav a { text-underline-offset: 2px; }
.nav a:hover {
  color: #D62625;
  text-decoration: none;
}

/* --------------- */
/* Reveal animation */
/* --------------- */
[data-animate]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].in-view{
  opacity: 1;
  transform: none;
}

/* ------------------------ */
/* Before / After component */
/* ------------------------ */
.ba-wrap{
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}
.ba-after{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ba-divider{
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  mix-blend-mode: overlay;
}
.ba-handle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #111827;
  border-radius: 9999px;
  padding: .45rem .65rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-size: .9rem;
  white-space: nowrap;
}

/* --------------------------- */
/* Offerte: stepper & progress */
/* --------------------------- */
.step-dot{
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background: #fff;
}
.step-dot.active{ border-color: #D62625; }
.step-dot.done{
  background: #D62625;
  border-color: #D62625;
}

.progressbar{
  height: .4rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.progressbar > span{
  display: block;
  height: 100%;
  background: #D62625;
  width: 0%;
}

/* ---------------------- */
/* Offerte: estimator tag */
/* ---------------------- */
.bubble{
  border-radius: .75rem;
  background: #f6f6f7;
  border: 1px solid #e5e7eb;
  padding: .5rem .7rem;
  font-weight: 600;
}

.h1--sm {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em; /* matches .h1 */
}

/* ========================= */
/* Header-specific overrides */
/* ========================= */

/* Ensure Offerte buttons always have white text (and icons) even in dark/light headers */
.btn-primary { color: #fff !important; }
.btn-primary svg { color: inherit; }

/* Force mobile hamburger & close icons to render black (SVGs use currentColor) */
#menuBtn,
#closeNav { color: #111827 !important; } /* zinc-900 */
#menuBtn svg,
#closeNav svg { color: inherit; }
