/* =========================================================
   GOGO PONTEGGI — style.css
   ========================================================= */
:root {
  --orange: #e0662a;
  --orange-dark: #c2521b;
  --red: #a8142c;
  --ink: #16181b;
  --ink-2: #23262b;
  --steel: #5b636e;
  --muted: #6b7280;
  --line: #e5e1dc;
  --paper: #f7f4f0;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1200px;
  --shadow: 0 20px 40px -20px rgba(22, 24, 27, .35);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* protezione extra: nessun elemento può creare scroll orizzontale (clip non rompe position: sticky) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--orange); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9ccd1; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar a:hover { color: var(--orange); }
.topbar-info { display: flex; gap: 24px; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: var(--orange); }
@media (max-width: 760px) { .topbar-hide { display: none !important; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.35); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--head); font-size: 1.65rem; letter-spacing: .04em; color: var(--red); }
.logo-text small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-family: var(--head); font-weight: 600; font-size: 1.08rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; color: var(--ink-2);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--orange); }
.nav .btn { margin-left: 12px; padding: 11px 20px; }
.nav .btn::after { display: none; }
.nav .btn.active { color: var(--white); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--ink); border-radius: var(--radius); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: .25s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-extra { display: none; }
@media (max-width: 960px) {
  /* backdrop-filter crea un contenitore per gli elementi fixed: va tolto su mobile */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .header .wrap { height: 70px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-text strong { font-size: 1.45rem; }
  .burger { display: block; flex: none; }
  .burger span { transition: transform .25s, top .25s, opacity .2s; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 70px); height: calc(100dvh - 70px);
    background: var(--white); border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 20px 28px; gap: 0;
    /* chiuso: nascosto sul posto (niente translateX, che allargava la pagina e creava scroll orizzontale) */
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s ease, transform .25s ease; }
  .nav a { font-size: 1.55rem; padding: 15px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .nav a:not(.btn)::after { content: "→"; position: static; display: block; height: auto; background: none; transform: none; color: var(--orange); font-size: 1.2rem; }
  .nav a.active { color: var(--orange); }
  .nav .btn { margin: 22px 0 0; justify-content: center; border-bottom: 0; font-size: 1.15rem; padding: 16px; }
  .nav .btn-primary, .nav .btn-primary.active { color: var(--white); }
  .nav-extra { display: grid; gap: 10px; margin-top: 14px; }
  .nav-extra a { border: 0; justify-content: center; gap: 10px; font-size: 1.1rem; padding: 14px; border-radius: var(--radius); }
  .nav-extra a::after { display: none !important; }
  .nav-extra .call { background: var(--ink); color: #fff; }
  .nav-extra .wa { background: #25d366; color: #fff; }
  .nav-extra svg { width: 20px; height: 20px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .wa-float { display: none; }
}
@media (max-width: 760px) { .topbar { display: none; } }
@media (max-width: 380px) { .logo-text small { display: none; } .logo-text strong { font-size: 1.3rem; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(calc(100vh - 118px), 880px); min-height: min(calc(100svh - 118px), 880px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,27,.25) 0%, rgba(22,24,27,.35) 40%, rgba(22,24,27,.92) 100%),
              linear-gradient(90deg, rgba(22,24,27,.7) 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; color: #e3e5e8; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; color: #d3d6da; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--orange); }
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 70px); }
  .hero .wrap { padding-top: 90px; padding-bottom: 40px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-badges { margin-top: 28px; padding-top: 20px; gap: 8px 18px; font-size: .85rem; }
  .page-hero .wrap { padding-top: 64px; padding-bottom: 48px; }
  .page-hero p { font-size: 1rem; }
  .cta-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  .cta-band .hero-cta, .cta-band .hero-cta .btn { width: 100%; justify-content: center; }
  .section-head .btn { width: 100%; justify-content: center; }
  .form-actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact-list a, .contact-list strong { font-size: 1.25rem; word-break: break-word; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 28px; padding: 0 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .map iframe { height: 320px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,27,.9), rgba(22,24,27,.3)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.page-hero p { max-width: 560px; color: #d9dce0; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; color: #aeb3ba; margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { margin: 0 8px; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #d3d6da; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }
.bg-ink .section-head p { color: #a9aeb5; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.split-media .stamp {
  position: absolute; right: -24px; bottom: 40px; background: var(--orange); color: var(--white);
  padding: 22px 26px; font-family: var(--head); text-transform: uppercase; line-height: 1; box-shadow: var(--shadow);
}
.stamp b { display: block; font-size: 3.4rem; }
.stamp span { font-size: 1rem; letter-spacing: .1em; }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-media .stamp { right: 16px; bottom: 16px; }
}
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 40px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(2.8rem, 5vw, 4rem); color: var(--white); line-height: 1; }
.stat b i { font-style: normal; color: var(--orange); }
.stat > span { font-size: .92rem; color: #a9aeb5; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.12); padding: 28px 16px; }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.service { background: var(--white); padding: 40px 34px; position: relative; transition: background .25s, color .25s; }
.service:hover { background: var(--ink); color: #c9ccd1; }
.service:hover h3 { color: var(--white); }
.service .num { font-family: var(--head); font-size: .95rem; color: var(--orange); letter-spacing: .15em; }
.service svg.ico { width: 48px; height: 48px; color: var(--orange); margin: 18px 0 22px; }
.service p { color: var(--muted); margin: 0; }
.service:hover p { color: #a9aeb5; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { padding: 32px 24px; } }

/* service detail (servizi page) */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.svc-row .num { font-family: var(--head); font-size: 4.5rem; line-height: 1; color: var(--line); display: block; margin-bottom: 4px; }
.svc-row ul { padding-left: 0; list-style: none; margin: 20px 0 0; }
.svc-row li { padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 3px; background: var(--orange); }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
}

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); aspect-ratio: 4/5; color: var(--white); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .92; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(22,24,27,.92)); }
.project-card:hover img { transform: scale(1.06); opacity: 1; }
.project-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; }
.project-card .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--orange); padding: 5px 10px; margin-bottom: 12px; }
.project-card h3 { margin: 0 0 6px; font-size: 1.7rem; }
.project-card .meta { font-size: .85rem; color: #bfc3c9; display: flex; gap: 14px; }
.project-card .arrow { position: absolute; top: 20px; right: 20px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .3s; }
.project-card:hover .arrow { transform: scale(1) rotate(0); }
.project-card .arrow svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; gap: 16px; }
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font-family: var(--head); font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  border-radius: 999px; cursor: pointer; transition: .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters button small { color: var(--orange); margin-left: 6px; }

/* ---------- Project detail ---------- */
.proj-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.proj-aside { position: sticky; top: 110px; background: var(--paper); padding: 32px; border-top: 4px solid var(--orange); }
.proj-aside dl { margin: 0 0 24px; }
.proj-aside dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proj-aside dd { margin: 2px 0 18px; font-family: var(--head); font-size: 1.35rem; text-transform: uppercase; }
.proj-aside .btn { width: 100%; justify-content: center; }
.proj-text p { font-size: 1.1rem; color: #3a3f46; }
.proj-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proj-points li { background: var(--paper); padding: 16px 18px; display: flex; gap: 10px; font-weight: 500; }
.proj-points svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }
.gallery { columns: 3 260px; column-gap: 14px; margin-top: 56px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); position: relative; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); margin-top: 80px; }
.proj-nav a { background: var(--white); padding: 28px; display: block; transition: background .2s; }
.proj-nav a:hover { background: var(--paper); }
.proj-nav a:last-child { text-align: right; }
.proj-nav small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.proj-nav strong { display: block; font-family: var(--head); font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; margin-top: 6px; }
@media (max-width: 960px) {
  .proj-layout { grid-template-columns: 1fr; gap: 40px; }
  .proj-aside { position: static; }
}
@media (max-width: 600px) {
  .proj-points { grid-template-columns: 1fr; }
  .proj-nav { grid-template-columns: 1fr; }
  .proj-nav a:last-child { text-align: left; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,11,13,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--orange); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #aeb3ba; font-size: .9rem; letter-spacing: .1em; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 3px solid rgba(255,255,255,.15); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--orange); font-size: 0; }
.step b { font-family: var(--head); font-size: 3rem; color: var(--orange); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.45rem; }
.step p { color: #a9aeb5; margin: 0; font-size: .95rem; }
.bg-paper .step { border-top-color: var(--line); }
.bg-paper .step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Video band ---------- */
.video-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9/12; max-height: 640px; box-shadow: var(--shadow); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .video-band { grid-template-columns: 1fr; gap: 40px; } .video-frame { aspect-ratio: 4/5; } }

/* ---------- Values / team cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); padding: 36px 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.card svg { width: 40px; height: 40px; color: var(--orange); margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--orange); color: var(--white); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(var(--white) 2px, transparent 2px),
    linear-gradient(90deg, var(--white) 2px, transparent 2px);
  background-size: 64px 64px;
}
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band p { margin: 10px 0 0; color: #ffe7dc; max-width: 520px; }
.cta-band .btn-dark:hover { background: var(--white); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0; }
.contact-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 50px; height: 50px; flex: none; background: var(--ink); color: var(--orange); display: grid; place-items: center; border-radius: var(--radius); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list strong { font-family: var(--head); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; }
.contact-list a.lower { text-transform: none; font-size: 1.3rem; }
.contact-list a:hover { color: var(--orange); }
.form { background: var(--paper); padding: 44px; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border: 1px solid #d8d3cc; border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(224,102,42,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; flex-direction: row; gap: 10px; font-size: .85rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--orange); }
.form-actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn[disabled] { opacity: .65; cursor: wait; }
.form-msg { display: none; padding: 16px 18px; border-radius: var(--radius); margin-top: 18px; color: #fff; }
.form-msg.ok { display: block; background: #1f7a3f; }
.form-msg.err { display: block; background: var(--red); }
.form-msg a { text-decoration: underline; font-weight: 600; }
.map { margin-top: 0; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .form { padding: 28px 18px; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-family: var(--head); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 18px; font-size: 2rem; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #0f1113; color: #9ca2aa; padding: 88px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer .logo-text strong { color: var(--white); }
.footer h4 { color: var(--white); font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 22px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }
.footer-about p { margin: 22px 0 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 5px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } .footer { padding-top: 64px; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* demo ribbon */
.demo-ribbon { background: var(--red); color: #fff; text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 16px; }

/* ---------- Map placeholder (consenso) ---------- */
.map-placeholder { background: var(--paper); border-top: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; }
.map-placeholder svg { width: 40px; height: 40px; color: var(--orange); margin-bottom: 12px; }
.map-placeholder p { max-width: 520px; color: var(--muted); font-size: .95rem; }
.map-placeholder a { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 300; width: min(400px, calc(100vw - 32px));
  background: var(--white); color: var(--ink); border-radius: 8px; padding: 22px 22px 18px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.45); border-top: 4px solid var(--orange);
  font-size: .9rem; line-height: 1.55; transform: translateY(20px); opacity: 0; transition: transform .3s, opacity .3s;
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-bar h4 { font-size: 1.25rem; margin: 0 0 8px; padding-right: 28px; }
.cookie-bar p { margin: 0 0 14px; color: #3a3f46; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar .cb-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.cookie-bar .cb-close:hover { background: var(--paper); color: var(--ink); }
.cookie-bar .cb-close svg { width: 18px; height: 18px; }
.cookie-bar .cb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-bar .btn { justify-content: center; padding: 12px 10px; font-size: .95rem; }
.cookie-bar .cb-reject { background: var(--white); border-color: var(--ink); color: var(--ink); }
.cookie-bar .cb-reject:hover { background: var(--ink); color: var(--white); }
body.has-cookie-bar .wa-float { bottom: 20px; }
@media (max-width: 600px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- Pagine legali ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.7rem; margin: 48px 0 14px; padding-top: 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #3a3f46; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange-dark); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper); font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.legal .note { background: var(--paper); border-left: 4px solid var(--orange); padding: 16px 18px; margin: 20px 0; }
.legal .updated { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.footer-bottom button:hover { color: var(--orange); }

/* ---------- Video player personalizzato ---------- */
.vplayer { position: relative; user-select: none; -webkit-user-select: none; }
.vplayer video { cursor: pointer; }
.vp-big {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: var(--orange); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(224,102,42,.25); transition: transform .2s, opacity .25s;
}
.vp-big:hover { transform: translate(-50%, -50%) scale(1.08); }
.vp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.vplayer.playing .vp-big { opacity: 0; pointer-events: none; }
.vp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; transition: opacity .3s;
}
.vplayer.playing.idle .vp-bar { opacity: 0; }
.vp-bar button { width: 38px; height: 38px; flex: none; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.vp-bar button:hover { background: rgba(255,255,255,.15); }
.vp-bar svg { width: 20px; height: 20px; }
.vp-track { flex: 1; height: 6px; background: rgba(255,255,255,.3); border-radius: 3px; cursor: pointer; position: relative; }
.vp-fill { height: 100%; width: 0; background: var(--orange); border-radius: 3px; }
.vp-time { font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 34px; }
.vplayer .i-pause, .vplayer.playing .i-play, .vplayer .i-vol, .vplayer.unmuted .i-muted { display: none; }
.vplayer.playing .i-pause, .vplayer.unmuted .i-vol { display: block; }
.vplayer:fullscreen { border-radius: 0; max-height: none; aspect-ratio: auto; width: 100%; height: 100%; }
.vplayer:fullscreen video { object-fit: contain; }
.vp-badge { position: absolute; top: 16px; left: 16px; background: rgba(22,24,27,.8); color: #fff; font-family: var(--head); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 3px; pointer-events: none; transition: opacity .3s; }
.vplayer.playing .vp-badge { opacity: 0; }

/* ---------- Griglia progetti in evidenza (home): nessuno spazio vuoto ---------- */
.projects.featured { grid-auto-rows: 290px; grid-auto-flow: dense; }
.projects.featured .project-card { aspect-ratio: auto; height: 100%; }
.projects.featured .project-card:first-child { grid-column: span 2; grid-row: span 2; }
.projects.featured .project-card:first-child h3 { font-size: 2.3rem; }
@media (max-width: 960px) {
  .projects.featured { grid-auto-rows: 300px; }
  .projects.featured .project-card:first-child { grid-row: span 1; }
  .projects.featured .project-card:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .projects.featured { grid-auto-rows: 340px; }
  .projects.featured .project-card:first-child, .projects.featured .project-card:last-child { grid-column: auto; }
  .projects.featured .project-card:first-child h3 { font-size: 1.7rem; }
}
