/* ==========================================================================
   EURONORM — Finestre & Porte
   Design system: navy (#16304A) + brick red (#A02C3A) su carta calda
   Stack: HTML5 + CSS3 vanilla. Mobile-first.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #16304a;
  --navy-700: #1e4063;
  --navy-900: #0d2135;
  --red: #a02c3a;
  --red-600: #8a2531;
  --red-100: #f3e3e4;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --sand: #e9e3d6;
  --ink: #19222e;
  --muted: #6d7682;
  --muted-2: #9aa2ab;
  --line: #e3ddd0;
  --line-dark: rgba(255, 255, 255, .14);
  --white: #ffffff;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 10px rgba(20, 40, 65, .06);
  --shadow: 0 18px 50px -22px rgba(13, 33, 53, .35);
  --shadow-lg: 0 40px 90px -40px rgba(13, 33, 53, .5);

  --container: 1240px;
  --gap: clamp(1.25rem, 3.5vw, 2.75rem);

  --ff-display: 'Archivo', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
}

::selection { background: var(--navy); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .8rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--sand { background: var(--sand); }

/* signature "measure ruler" divider — riferimento al misurare le finestre */
.ruler {
  height: 16px;
  background-image: repeating-linear-gradient(
    to right,
    var(--navy) 0 1.5px,
    transparent 1.5px 14px
  );
  opacity: .28;
}
.ruler--red {
  background-image: repeating-linear-gradient(
    to right, var(--red) 0 1.5px, transparent 1.5px 14px);
  opacity: .5;
}

/* ---------- Eyebrow / two-tone heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}
.h-xl {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.1rem);
}
.h-lg { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
.h-md { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); }
.tone { color: var(--muted-2); }
.tone-navy { color: var(--navy); }
.lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  min-height: 52px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, box-shadow .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn--red { --bg: var(--red); }
.btn--ghost {
  --bg: transparent; --fg: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light {
  --bg: var(--paper); --fg: var(--navy); border-color: var(--paper);
}
.btn--lg { min-height: 58px; padding: 1.05rem 2rem; font-size: 1.05rem; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy);
}
.arrow-link svg { transition: transform .3s; }
.arrow-link:hover svg { transform: translateX(5px); }
.arrow-link:hover { color: var(--red); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy);
  position: relative;
  padding: .4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .85rem; }

/* nav dropdown (Servizi/Prodotti) */
.has-dd { position: relative; display: inline-flex; align-items: center; }
.dd {
  position: absolute; top: calc(100% + .4rem); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: .4rem; min-width: 250px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 120;
}
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dd a { padding: .6rem .75rem; border-radius: 8px; font-size: .95rem; font-weight: 500; white-space: nowrap; color: var(--navy); }
.dd a::after { display: none; }
.dd a:hover, .dd a[aria-current="page"] { background: var(--paper-2); color: var(--red); }

/* language switcher */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .8rem;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--navy);
  text-transform: uppercase;
}
.lang__btn:hover { border-color: var(--navy); }
.lang__btn svg { width: 14px; height: 14px; transition: transform .3s; }
.lang[aria-expanded="true"] .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: .35rem;
  min-width: 140px;
  display: none;
}
.lang[aria-expanded="true"] .lang__menu { display: block; }
.lang__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: 0;
  padding: .55rem .7rem;
  border-radius: 7px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.lang__menu button:hover { background: var(--paper-2); }
.lang__menu button[aria-current="true"] { color: var(--red); font-weight: 600; }

.tel-cta {
  display: none;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--navy);
}
.tel-cta svg { width: 18px; height: 18px; color: var(--red); }

/* burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: var(--navy);
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
}
.burger span {
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--paper);
  z-index: 95;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.5,0,.2,1);
  padding: 2rem 1.5rem 3rem;
  overflow-y: auto;
  visibility: hidden;
}
.nav-open .mobile-menu { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .m-contact { margin-top: 2rem; display: grid; gap: .9rem; }
.mobile-menu a.m-sub { font-size: 1.15rem; font-weight: 600; padding: .55rem 0 .55rem 1.1rem; color: var(--muted); }
.mobile-menu a.m-sub:hover { color: var(--red); }

/* yellow callout (certifications) */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fdf6e3; border: 1px solid #e6c878; border-left: 5px solid #d9a441;
  border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 1.8rem;
}
.callout svg { flex: 0 0 auto; width: 30px; height: 30px; color: #b6831f; margin-top: 2px; }
.callout strong { display: block; font-family: var(--ff-display); font-weight: 800; color: #8a5a00; font-size: 1.08rem; letter-spacing: -.01em; }
.callout p { color: #7a5a1a; font-size: .92rem; margin-top: .3rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero__copy { align-self: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__trust {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .92rem;
}
.hero__trust strong { color: var(--navy); }
.hero__media { position: relative; }
.hero__img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
/* floating product card */
.float-card {
  position: absolute;
  left: -10px;
  bottom: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 270px;
}
.float-card__icn {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
}
.float-card__icn svg { width: 24px; height: 24px; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card strong { display: block; color: var(--navy); font-family: var(--ff-display); }
.float-badge {
  position: absolute;
  top: 18px; right: -8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--paper); padding: 1.6rem 1.4rem; }
.stat__n {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  color: var(--navy);
  line-height: 1;
}
.stat__n span { color: var(--red); }
.stat__l { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

/* ==========================================================================
   SPLIT (asymmetric text + image)
   ========================================================================== */
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.split__media--tall img { aspect-ratio: 4/5; }
.split p + p { margin-top: 1rem; }
.split .lead { margin-block: 1.2rem 1.6rem; }
.check-list { display: grid; gap: .85rem; margin-top: 1.6rem; }
.check-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-weight: 500;
}
.check-list svg {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  color: var(--red);
  margin-top: 1px;
}
/* small image accent badge over split media */
.media-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(13,33,53,.78);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}

/* ==========================================================================
   PRODUCTS — bento (asimmetrico, non 3-col generico)
   ========================================================================== */
.bento {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.pcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.pcard__icn {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--navy);
  margin-bottom: 1.1rem;
  transition: background .35s, color .35s;
}
.pcard__icn svg { width: 28px; height: 28px; }
.pcard:hover .pcard__icn { background: var(--navy); color: #fff; }
.pcard h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.pcard p { color: var(--muted); font-size: .96rem; margin-bottom: 1.1rem; }
.pcard .arrow-link { margin-top: auto; font-size: .92rem; }
.pcard--feature {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pcard--feature h3 { color: #fff; }
.pcard--feature p { color: rgba(255,255,255,.74); }
.pcard--feature .pcard__icn { background: var(--red); color: #fff; }
.pcard--feature:hover .pcard__icn { background: #fff; color: var(--red); }
.pcard--feature .arrow-link { color: #fff; }
.pcard--feature .arrow-link:hover { color: var(--red-100); }
.pcard--img {
  padding: 0;
  min-height: 280px;
  border: 0;
}
.pcard--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard--img .pcard__overlay {
  position: relative;
  margin-top: auto;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(13,33,53,.92), rgba(13,33,53,0));
  color: #fff;
}
.pcard--img h3 { color: #fff; }
.pcard--img p { color: rgba(255,255,255,.8); margin-bottom: 0; }

/* ==========================================================================
   SYSTEMS (schede tecniche prodotto — NormPro / Norm Fusion)
   ========================================================================== */
.sys-group + .sys-group { margin-top: clamp(2rem, 4vw, 3rem); }
.sys-group__head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.sys-group__head h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.sys-group__head .tag {
  font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: .3rem .7rem; border-radius: 999px;
}
.sys-group > p { color: var(--muted); max-width: 62ch; margin-bottom: 1.6rem; }
.sys-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.sys-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.sys-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sys-card__img {
  background: radial-gradient(circle at 60% 40%, #fff, var(--paper-2));
  padding: 1rem; display: grid; place-items: center; aspect-ratio: 4 / 3;
}
.sys-card__img img { width: 100%; height: 100%; object-fit: contain; }
.sys-card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.sys-card__tier { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .35rem; }
.sys-card h4 { font-family: var(--ff-display); font-weight: 800; color: var(--navy); font-size: 1.18rem; line-height: 1.05; }
.sys-card .sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; margin-bottom: .9rem; }
.specs { display: grid; gap: 0; margin-top: auto; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.specs div:first-child { border-top: 0; }
.specs dt, .specs .k { color: var(--muted); }
.specs dd, .specs .v { color: var(--navy); font-weight: 600; text-align: right; }
@media (min-width: 620px) { .sys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sys-grid { grid-template-columns: repeat(4, 1fr); } }

/* RAL palette */
.ral { margin-top: clamp(2rem, 4vw, 3rem); }
.ral h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.ral > p { color: var(--muted); max-width: 60ch; margin-bottom: 1.4rem; }
.ral-list { display: flex; flex-wrap: wrap; gap: 1rem 1.1rem; }
.swatch { width: 84px; text-align: center; }
.swatch i {
  display: block; width: 56px; height: 56px; border-radius: 14px; margin: 0 auto .45rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), var(--shadow-sm);
}
.swatch b { display: block; font-size: .78rem; color: var(--navy); font-weight: 600; line-height: 1.2; }
.swatch span { display: block; font-size: .72rem; color: var(--muted); }
.ral-note { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }

/* category image cards (sliding / accessories) */
.cat-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); display: flex;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body {
  position: relative; margin-top: auto; width: 100%; padding: 1.3rem;
  background: linear-gradient(to top, rgba(13,33,53,.94) 12%, rgba(13,33,53,.5) 55%, transparent);
  color: #fff;
}
.cat-card__meta { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f0b9bf; margin-bottom: .35rem; }
.cat-card h4 { color: #fff; font-size: 1.2rem; line-height: 1.05; }
.cat-card p { color: rgba(255,255,255,.84); font-size: .88rem; margin-top: .35rem; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.6rem 1.6rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step__n {
  counter-increment: step;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--navy);
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.gallery figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem .85rem;
  border-radius: 999px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.tgrid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard__stars { display: flex; gap: 3px; color: var(--red); margin-bottom: 1rem; }
.tcard__stars svg { width: 18px; height: 18px; }
.tcard blockquote { font-size: 1.04rem; color: var(--ink); line-height: 1.55; margin-bottom: 1.4rem; }
.tcard figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.tcard__av {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem;
}
.tcard__who strong { display: block; color: var(--navy); font-family: var(--ff-display); }
.tcard__who span { font-size: .88rem; color: var(--muted); }
@media (min-width: 760px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border: 28px solid rgba(160,44,58,.5);
  border-radius: 50%;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 48ch; margin-top: 1rem; }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; gap: 2.5rem; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-card__icn {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--navy);
  display: grid; place-items: center;
}
.info-card__icn svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.info-card a, .info-card p { color: var(--muted); font-size: .96rem; }
.info-card a:hover { color: var(--red); }
.info-stack { display: grid; gap: 1rem; }

/* form */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,48,74,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; gap: 1.1rem; }
.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.consent input { margin-top: .25rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.consent a { color: var(--navy); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  margin-bottom: 1.2rem;
}
.alert--error { background: var(--red-100); color: var(--red-600); }

/* map embed wrapper */
.map-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.74);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-col h4 {
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a:hover { color: #fff; }
.footer-col a { font-size: .95rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); flex: 0 0 auto; margin-top: 2px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.8rem 2.4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ==========================================================================
   FLOATING WHATSAPP + COOKIE
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }

#cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 95;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
}
#cookie-banner p { font-size: .9rem; color: var(--ink); }
#cookie-banner a { color: var(--navy); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; }
.cookie-actions .btn { flex: 1; min-height: 46px; padding: .6rem 1rem; font-size: .9rem; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { max-width: 820px; margin-inline: auto; }
.legal h1 { margin-bottom: 1rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--navy-700); }
.legal p, .legal li { color: #38424f; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: .4rem; }
.legal a { color: var(--red); text-decoration: underline; }
.legal strong { color: var(--navy); }
.todo {
  background: #fff7e6;
  border: 1px dashed #d9a441;
  color: #8a5a00;
  padding: .15rem .5rem;
  border-radius: 5px;
  font-size: .92em;
}

/* page hero (interior pages) */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero .lead { margin-top: 1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--muted-2); }

/* ==========================================================================
   REVEAL (GSAP fallback-safe)
   ========================================================================== */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  .field--row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  #cookie-banner { flex-direction: row; align-items: center; max-width: 720px; }
  #cookie-banner > p { flex: 1; }
  .cookie-actions { flex: 0 0 auto; }
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
  .bento .pcard--tall { grid-row: span 2; }
  .bento .pcard--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .tel-cta { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
  .split--40 { grid-template-columns: 1.3fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
  .cta-band__inner { grid-template-columns: 1.1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .gallery--3 figure:nth-child(2) { transform: translateY(28px); }
}
