/* SCR Media – landing fabbri e serramentisti
   Mobile first. Grafite/acciaio con accento "metallo incandescente". */

:root {
  --bg: #0e1116;
  --bg-alt: #131820;
  --surface: #1a2029;
  --surface-2: #222a35;
  --line: #2c3542;
  --line-soft: rgba(255, 255, 255, 0.07);
  --steel: #8d9aab;
  --steel-light: #c5ceda;
  --text: #eef1f5;
  --text-muted: #a9b3c1;

  --accent: #ff7a1a;
  --accent-2: #ffb13d;
  --accent-strong: #ff9a3d;
  --accent-ink: #1b0f02;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --grad-accent: linear-gradient(135deg, #ff6a13 0%, #ff9a2e 55%, #ffc15a 100%);
  --grad-steel: linear-gradient(180deg, #232b36 0%, #171c24 100%);
  --glow: 0 10px 30px -8px rgba(255, 122, 26, 0.55);

  --danger: #ff8a80;
  --ok: #7fd49a;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sticky-h: 80px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

.container { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 800px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 0.9em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-accent); }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Segnaposto da riempire: ben visibili in anteprima */
.ph {
  display: inline-block;
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 650;
}

/* ---------- Pulsanti ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s, color .15s, filter .15s;
}
.btn--primary { background: var(--grad-accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn--primary:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255,122,26,.7); filter: saturate(1.1); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--steel); color: var(--text); background: rgba(255,255,255,.06); }
.btn--lg { min-height: 58px; padding: 15px 32px; font-size: 1.1rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn::after, .btn__arrow { transition: none; } .btn--primary:hover { transform: none; } }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--text); }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 17, 22, 0.92);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(14, 17, 22, 0.7); backdrop-filter: blur(12px) saturate(1.4); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 850; font-size: 1.15rem; letter-spacing: 0.01em; text-decoration: none;
}
.logo__mark {
  position: relative; width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad-accent); box-shadow: 0 4px 14px -4px rgba(255,122,26,.7);
}
.logo__mark::before {
  content: ""; position: absolute; inset: 7px 6px;
  background:
    linear-gradient(var(--accent-ink), var(--accent-ink)) 0 25% / 100% 2px no-repeat,
    linear-gradient(var(--accent-ink), var(--accent-ink)) 0 75% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--accent-ink) 0 2px, transparent 2px 6px);
}
.site-header__cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 36px 0 0;
  background:
    radial-gradient(70% 55% at 85% 20%, rgba(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(50% 45% at 5% 95%, rgba(90, 130, 190, 0.16), transparent 70%),
    linear-gradient(180deg, #121821 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; right: -180px; top: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,40,.28), rgba(255,140,40,0) 65%);
  filter: blur(10px); pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; align-items: center; padding-bottom: 48px; }
.hero__text { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 20px;
  border: 1px solid rgba(255,154,61,.35); border-radius: 999px;
  background: rgba(255,122,26,.08);
  font-size: 0.85rem; font-weight: 650; color: #ffd2a8;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.2); }

.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 30px 0 24px; }
.hero__hint { margin: 0; color: var(--text-muted); font-size: 0.95rem; text-align: center; }

.hero__media { margin: 0; position: relative; z-index: 1; }
.hero__media img, .about__media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero__media:not([hidden]) + .hero__visual { display: none !important; }

/* Telefono illustrativo */
.hero__visual { position: relative; z-index: 1; display: grid; justify-items: center; padding: 10px 0 0; }
.phone {
  position: relative; width: min(280px, 76vw); aspect-ratio: 9 / 14.5;
  padding: 10px; border-radius: 42px;
  background: linear-gradient(145deg, #3a4452, #151a21 45%, #2a323d);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 40px 80px -24px rgba(0,0,0,.8),
    0 0 90px -20px rgba(255,122,26,.45);
  transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 16px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #07090c; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 33px; overflow: hidden; padding: 44px 12px 12px;
  background: linear-gradient(180deg, #151b24 0%, #0f141b 100%);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 11.5px; line-height: 1.35;
}
.phone__bar { position: absolute; top: 20px; left: 36px; right: 36px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--steel-light); }
.phone__signal { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--steel-light); position: relative; }
.phone__signal::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--steel-light); border-radius: 1px; }
.phone__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.phone__title { font-weight: 800; font-size: 13.5px; color: var(--text); }
.phone__badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--grad-accent); color: var(--accent-ink); }

.lead-card {
  padding: 11px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-muted);
}
.lead-card--new {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad-accent) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 26px -12px rgba(255,122,26,.6);
}
.lead-card--faded { opacity: .45; }
.lead-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.lead-card__tag { font-weight: 800; color: var(--text); font-size: 12.5px; }
.lead-card__time { font-size: 10px; color: var(--steel); }
.lead-card--faded .lead-card__top { margin: 0; }
.lead-card__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.lead-card__meta li { display: flex; align-items: center; gap: 6px; }
.lead-card__meta svg { width: 12px; height: 12px; fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead-card__actions { display: flex; gap: 6px; margin-top: 10px; }
.mini-btn { flex: 1; text-align: center; padding: 6px 0; border-radius: 999px; font-weight: 800; font-size: 10.5px; background: rgba(255,255,255,.06); color: var(--text); }
.mini-btn--call { background: var(--grad-accent); color: var(--accent-ink); }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(26, 32, 41, 0.9); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.7);
  font-size: 0.82rem; font-weight: 750; color: var(--text); white-space: nowrap;
}
@supports (backdrop-filter: blur(8px)) { .float-chip { background: rgba(26,32,41,.7); backdrop-filter: blur(8px); } }
.float-chip svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-chip--a { top: 4%; left: 0; }
.float-chip--b { bottom: 14%; right: 0; }
.hero__caption { margin: 18px 0 0; font-size: 0.78rem; color: var(--steel); text-align: center; }

/* Fascia ringhiera */
.railing-band {
  height: 46px; opacity: .55;
  background:
    linear-gradient(180deg, transparent 0 7px, #3a4452 7px 10px, transparent 10px 36px, #3a4452 36px 39px, transparent 39px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46' viewBox='0 0 40 46'%3E%3Cpath d='M10 0l4 7h-8zM30 0l4 7h-8z' fill='%233a4452'/%3E%3Cpath d='M10 7v39M30 7v39' stroke='%233a4452' stroke-width='3'/%3E%3Ccircle cx='20' cy='23' r='6' fill='none' stroke='%23ff7a1a' stroke-width='2' opacity='.8'/%3E%3C/svg%3E") repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.guarantee-line {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0; padding: 14px 16px;
  background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.04));
  border: 1px solid rgba(255,154,61,.3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text);
}
.guarantee-line .icon { width: 24px; height: 24px; color: var(--accent-strong); }
.guarantee-line--center { justify-content: center; text-align: left; margin: 26px auto 0; max-width: 36em; }

/* ---------- Prodotti ---------- */
.products { padding: 28px 0 8px; }
.products__title { font-size: 0.8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); text-align: center; margin-bottom: 18px; }
.products__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px; border-radius: var(--radius);
  background: var(--grad-steel); border: 1px solid var(--line);
  font-weight: 750; font-size: 0.95rem;
  transition: border-color .2s, transform .2s;
}
.product:hover { border-color: rgba(255,154,61,.5); transform: translateY(-2px); }
.product__icon { width: 46px; height: 46px; fill: none; stroke: url(#g-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra di fiducia ---------- */
.trust { padding: 28px 0 8px; }
.trust__list {
  display: grid; gap: 1px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--line);
}
.trust__item { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px; background: var(--surface); }
.trust__value { font-size: 1.2rem; font-weight: 850; }
.trust__label { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: 64px 0; }
.section--alt {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255,122,26,.07), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.section__head { max-width: 720px; margin-bottom: 32px; }

.cards { display: grid; gap: 16px; }
.card, .case {
  position: relative;
  background: var(--grad-steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover, .case:hover { border-color: rgba(255,154,61,.45); transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.8); }
.card p { color: var(--text-muted); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--grad-accent); box-shadow: var(--glow);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .card, .case, .product { transition: none; } .card:hover, .case:hover, .product:hover { transform: none; } }

/* Problema: tono più freddo */
.section--problem .card__icon { background: linear-gradient(135deg, #3a4452, #232b36); box-shadow: none; border: 1px solid #4a5566; }
.section--problem .card__icon svg { stroke: var(--steel-light); }

/* Passi */
.steps { display: grid; gap: 18px; counter-reset: none; }
.step {
  position: relative;
  background: var(--grad-steel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 24px;
}
.step p { color: var(--text-muted); }
.step__art { margin: 0 -4px 18px; }
.step__art svg { width: 100%; height: auto; display: block; }
.step__num {
  position: absolute; top: 26px; left: 26px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-accent); color: var(--accent-ink); font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--glow);
}
.art-bg { fill: #0f141b; stroke: #2c3542; }
.art-road { fill: none; stroke: #2a3340; stroke-width: 9; stroke-linecap: round; }
.art-road--thin { stroke-width: 5; }
.art-radius { fill: rgba(255,122,26,.10); stroke: #ff8a24; stroke-width: 1.5; stroke-dasharray: 5 5; }
.art-radius--inner { fill: rgba(255,122,26,.12); stroke-dasharray: none; stroke-opacity: .4; }
.art-dot { fill: #ffb13d; }
.art-dot--off { fill: #3a4452; }
.art-panel { fill: #1a2029; stroke: #36404e; }
.art-card { fill: #222a35; stroke: #ff8a24; stroke-width: 1.2; }
.art-line { fill: #3a4452; }
.art-line--accent { fill: #ff9a2e; }
.art-chip { fill: #26303c; stroke: #3a4452; }
.art-chip--on { fill: rgba(255,122,26,.22); stroke: #ff8a24; }
.art-check { fill: none; stroke: #1b0f02; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-phone { fill: none; stroke: #1b0f02; stroke-width: 2.4; stroke-linejoin: round; }
.art-wave { fill: none; stroke: #ff9a2e; stroke-width: 3; stroke-linecap: round; opacity: .7; }

/* Noi / Tu */
.roles { display: grid; gap: 16px; }
.roles__col { position: relative; background: var(--grad-steel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.roles__col--us {
  background: linear-gradient(160deg, #26201b, #1a1d23 60%) padding-box, var(--grad-accent) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(255,122,26,.45);
}
.roles__tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad-accent); color: var(--accent-ink);
}
.roles__tag--muted { background: #2c3542; color: var(--steel-light); }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.12em;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-accent);
}
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: calc(0.12em + 6px);
  width: 6px; height: 11px;
  border-right: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink);
  transform: rotate(45deg);
}
.checklist--muted li::before { background: #2c3542; }
.checklist--muted li::after { border-color: var(--steel-light); }

/* Casi studio */
.case { padding: 0; overflow: hidden; }
.case__main {
  display: grid; gap: 8px; padding: 22px 24px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,26,.22), transparent 60%), #1c222b;
  border-bottom: 1px solid var(--line);
}
.case__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); font-weight: 800; }
.case__big { font-size: 1.2rem; }
.case dl { margin: 0; display: grid; gap: 14px; padding: 20px 24px 24px; }
.case dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel); font-weight: 800; margin-bottom: 4px; }
.case dd { margin: 0; }

/* Garanzia */
.section--guarantee { padding-top: 72px; padding-bottom: 72px; }
.guarantee {
  position: relative; overflow: hidden;
  display: grid; gap: 22px; justify-items: start;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255,122,26,.25), transparent 55%),
    linear-gradient(160deg, #241d17, #181c22 70%) padding-box,
    var(--grad-accent) border-box;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 30px 22px;
  box-shadow: 0 40px 90px -40px rgba(255,122,26,.6);
}
.guarantee::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,177,61,.18), transparent 65%); pointer-events: none;
}
.guarantee h2 { font-size: clamp(1.45rem, 4.4vw, 2.2rem); }
.guarantee__body > p:not(.eyebrow):not(.guarantee__note) { color: #d6dbe2; font-size: 1.05rem; }
.guarantee__note { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,154,61,.3); }

.seal { width: 118px; height: 118px; flex: none; filter: drop-shadow(0 12px 24px rgba(255,122,26,.45)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__ring { fill: url(#g-accent); }
.seal__inner { fill: #1b140e; stroke: rgba(27,15,2,.5); stroke-width: 2; }
.seal__text { font-size: 13.5px; font-weight: 900; letter-spacing: 2.2px; fill: #1b0f02; }
.seal__shield { fill: none; stroke: #ffb13d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .seal svg text { transform-origin: 80px 80px; animation: seal-spin 40s linear infinite; }
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* Chi siamo */
.about { display: grid; gap: 28px; align-items: center; }
.about p { color: var(--text-muted); max-width: 40em; }
.about__media { margin: 0; }
.about__card {
  position: relative; padding: 28px; border-radius: 22px;
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(255,122,26,.25), transparent 60%),
    linear-gradient(160deg, #222a35, #151a21);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(255,122,26,.35);
}
.about__brand { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.logo__mark--lg { width: 58px; height: 58px; border-radius: 16px; flex: none; }
.logo__mark--lg::before { inset: 14px 12px; }
.about__name { display: block; font-size: 1.35rem; font-weight: 850; }
.about__place { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .95rem; }
.about__place svg, .about__chips svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about__chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about__chips li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); font-weight: 700;
}
.about__media:not([hidden]) + .about__card { display: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--grad-steel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(255,154,61,.45); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 20px; font-weight: 750; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: #2c3542; transition: background .2s;
}
.faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 8px; height: 8px;
  border-right: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::before { background: var(--grad-accent); }
.faq details[open] summary::after { border-color: var(--accent-ink); transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--text-muted); padding: 0 20px 20px; margin: 0; }

/* Chiamata finale */
.final { padding: 24px 0 72px; }
.final__panel {
  position: relative; overflow: hidden; text-align: center;
  padding: 48px 22px 0;
  border-radius: 24px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(255,122,26,.35), transparent 65%),
    linear-gradient(180deg, #1e2530, #12171e);
  border: 1px solid rgba(255,154,61,.35);
  box-shadow: 0 50px 100px -50px rgba(255,122,26,.7);
}
.final__glow { position: absolute; left: 50%; top: -120px; width: 420px; height: 240px; margin-left: -210px; background: radial-gradient(closest-side, rgba(255,177,61,.35), transparent); pointer-events: none; }
.final__panel > :not(.final__glow) { position: relative; }
.final__panel p { color: #cfd6df; max-width: 32em; margin-left: auto; margin-right: auto; }
.final .btn { margin-top: 14px; width: 100%; }
.railing-band--panel { margin: 36px -22px 0; opacity: .5; }

/* Footer */
.site-footer { padding: 28px 0 calc(28px + var(--sticky-h)); border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--text-muted); }
.site-footer__inner { display: grid; gap: 14px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Pulsante fisso mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(14,17,22,0), rgba(14,17,22,.92) 30%);
  transform: translateY(0); transition: transform .25s ease;
}
.sticky-cta.is-off { transform: translateY(120%); }
.sticky-cta[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Comparsa sezioni (solo con JS e senza "riduci movimento") */
.fx .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fx .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Dialog / form ---------- */
.modal {
  padding: 0; border: 0; color: var(--text); background: var(--bg);
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(5, 7, 10, 0.75); backdrop-filter: blur(4px); }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px var(--gutter);
  background: radial-gradient(90% 180% at 0% 0%, rgba(255,122,26,.25), transparent 60%), var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.modal__head h2 { font-size: 1.35rem; margin: 0; }
.modal__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,.08); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal__body { padding: 22px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; flex: 1; }

.form-intro { color: var(--text-muted); }
.req-note { display: block; font-size: 0.875rem; margin-top: 4px; }

.group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.group legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 12px; }
.hint { font-size: 0.9rem; color: var(--text-muted); margin: -6px 0 10px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.975rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; /* 16px: evita lo zoom su iOS */
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #6f7b8a; }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field--inline { margin-top: 12px; }

.options { display: grid; gap: 8px; }
.options--row { grid-template-columns: repeat(3, 1fr); }
.option {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 550; transition: border-color .15s, background .15s;
}
.option:hover { border-color: #4a5566; }
.option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.05)); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.option input:focus-visible { outline: none; }
.group[aria-invalid="true"] .option { border-color: rgba(255,138,128,.55); }

.option--consent { align-items: flex-start; font-size: 0.95rem; font-weight: 400; }
.option--consent input { margin-top: 2px; }

.field__error { color: var(--danger); font-size: 0.9rem; margin: 6px 0 0; font-weight: 650; }
.form-error {
  color: var(--text); background: rgba(255,138,128,.12); border: 1px solid var(--danger);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.95rem;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 40px 0; }
.success:focus { outline: none; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 16px; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(127,212,154,.4)); }
.success p { color: var(--text-muted); font-size: 1.1rem; }
.success__demo { font-size: 0.9rem !important; color: var(--accent-strong) !important; }
.success .btn { margin-top: 16px; }

/* ---------- Banner cookie ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
}
.cookie[hidden] { display: none; }
.cookie__inner {
  max-width: 720px; margin: 0 auto;
  background: rgba(26,32,41,.97); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.55); font-size: 0.925rem;
}
.cookie__title { font-size: 1rem; margin-bottom: 6px; }
.cookie__inner p { color: var(--text-muted); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- Pagine legali ---------- */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.925rem; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 20px; }
  .hero__hint { text-align: left; }
  .products__list { grid-template-columns: repeat(4, 1fr); }
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .final .btn { width: auto; }
  .final__panel { padding: 64px 48px 0; }
  .railing-band--panel { margin: 44px -48px 0; }
  .modal {
    width: min(660px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px);
    margin: auto; border-radius: 20px; border: 1px solid var(--line);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
  }
  .options:not(.options--row) { grid-template-columns: 1fr 1fr; }
  .guarantee { grid-template-columns: auto 1fr; align-items: center; gap: 36px; padding: 44px; }
  .seal { width: 150px; height: 150px; }
}

@media (min-width: 768px) {
  :root { --sticky-h: 0px; }
  .site-header__cta { display: inline-flex; }
  .sticky-cta { display: none !important; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding-top: 64px; }
  .hero__grid { padding-bottom: 64px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .roles { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .phone { width: 300px; aspect-ratio: 9 / 17; }
  .float-chip--a { left: -10px; }
  .float-chip--b { right: -10px; }
  .about { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}
