/* LCA Impianti e Service — foglio di stile unico */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 500 700; font-style: normal; font-display: swap;
}

:root {
  /* palette dal logo: blu goccia, ciano, arancio ingranaggio su navy tecnico */
  --navy: #0b1d33;
  --navy-2: #12304f;
  --brand: #1a6fbf;
  --brand-dark: #135596;
  --cyan: #19b5e6;
  --accent: #d2421b;
  --accent-dark: #b2350f;
  --accent-soft: #fdeee8;
  --ink: #0b1d33;
  --text: #33465c;
  --muted: #5f7186;
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --line: #dfe7f0;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 29, 51, .06);
  --shadow-md: 0 12px 30px rgba(11, 29, 51, .10);
  --shadow-lg: 0 24px 60px rgba(11, 29, 51, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #c9d6e5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(210, 66, 27, .28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.link-arrow { font-family: var(--font-display); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============ HEADER ============ */
.topbar { background: var(--navy); color: #b8c7d8; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--cyan); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); position: relative; z-index: 95; }
.nav-brand img { width: 44px; height: auto; }
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.05; }
.nav-brand-text small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-brand:hover { color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 10px; color: var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; position: relative;
}
.nav-menu a:not(.btn):hover { color: var(--brand); background: var(--bg-alt); }
.nav-menu a[aria-current="page"] { color: var(--brand); }
.nav-menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 11px 20px; }

/* menu mobile — da templates/menu.css */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  position: relative; z-index: 95;
}
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(11, 29, 51, .5);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: 100px 26px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu a[aria-current="page"] { background: var(--bg-alt); }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ============ ELEMENTI GRAFICI A TEMA ============ */
/* griglia "progetto tecnico" sui fondi scuri */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(25, 181, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 181, 230, .07) 1px, transparent 1px),
    linear-gradient(rgba(25, 181, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 181, 230, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
/* tubazione con flusso animato */
.pipe { display: block; width: 100%; height: 40px; color: var(--line); overflow: visible; }
.pipe .pipe-flow { stroke: var(--cyan); stroke-dasharray: 10 22; animation: flow 2.4s linear infinite; }
.pipe .pipe-hot { stroke: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -64; } }
.gear-spin { animation: spin 60s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ HERO ============ */
.hero { position: relative; color: #c9d6e5; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(26, 111, 191, .35), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cyan), #6fd3f5 40%, #f3925f 75%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b8c7d8; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #e3ecf5; font-size: .9rem;
}
.hero-tags svg { width: 16px; height: 16px; color: var(--cyan); }
.hero-tags li:nth-child(1) svg { color: #f3925f; }
.hero-tags li:nth-child(3) svg { color: #ffc65c; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: center; }
.hero-visual .gear { position: absolute; inset: -4%; width: 108%; height: 108%; color: rgba(25, 181, 230, .22); }
.hero-visual .ph { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .9); }
.hero-visual .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .ph-1 { width: 56%; left: 4%; top: 6%; aspect-ratio: 1; }
.hero-visual .ph-2 { width: 46%; right: 2%; top: 26%; aspect-ratio: 1; }
.hero-visual .ph-3 { width: 42%; left: 18%; bottom: 2%; aspect-ratio: 1; }
.hero-badge {
  position: absolute; right: 0; bottom: 10%; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.25;
}
.hero-badge small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .8rem; }
.hero-badge .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-badge .ic svg { width: 22px; height: 22px; }

/* pagine interne */
.page-hero { position: relative; color: #c9d6e5; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #b8c7d8; max-width: 640px; }
.page-hero .gear { position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; color: rgba(25, 181, 230, .14); }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; color: #8ea3ba; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5f7186; }
.breadcrumb a { color: #fff; }

/* ============ STRISCIA SERVIZI ============ */
.service-strip { position: relative; z-index: 2; margin-top: -44px; }
.service-strip ul {
  list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.service-strip a {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.25; height: 100%;
}
.service-strip a:hover { background: var(--bg-alt); color: var(--brand); }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #e7f2fc; color: var(--brand); }
.ico svg { width: 24px; height: 24px; }
.ico.hot { background: var(--accent-soft); color: var(--accent); }
.ico.sun { background: #fff5e0; color: #c97a00; }
.ico.water { background: #e3f6fc; color: #0e86ad; }

/* ============ CARD ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .ico { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px; }
.feature-card .ico svg { width: 28px; height: 28px; }
.feature-card .num { position: absolute; right: 24px; top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--bg-alt); line-height: 1; }
.feature-card p { color: var(--muted); margin-bottom: 0; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media .main-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-media .frame { position: absolute; inset: 24px -24px -24px 24px; border: 2px dashed rgba(26, 111, 191, .35); border-radius: var(--radius-lg); z-index: -1; }
.split-media .float-card {
  position: absolute; left: -22px; bottom: 34px; background: var(--navy); color: #fff; border-radius: 18px;
  padding: 18px 22px; box-shadow: var(--shadow-lg); font-family: var(--font-display);
}
.split-media .float-card strong { display: block; font-size: 2rem; line-height: 1; color: var(--cyan); }
.split-media .float-card span { font-size: .9rem; color: #b8c7d8; }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* card servizi con immagine */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.service-grid > * { grid-column: span 2; }
.service-grid > :nth-child(4) { grid-column: 2 / span 2; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; color: var(--text);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--text); }
.service-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .media .ico { position: absolute; left: 20px; bottom: -23px; box-shadow: var(--shadow-sm); border: 3px solid #fff; background-color: #fff; }
.service-card .body { padding: 36px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .tag { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card .link-arrow { margin-top: auto; }

/* servizi dettaglio (pagina servizi) */
.service-row { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { position: relative; }
.service-row-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-md); }
.service-row-media .ico { position: absolute; right: -14px; top: -14px; width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.service-row-media .ico svg { width: 30px; height: 30px; }
.service-row .idx { font-family: var(--font-display); font-weight: 700; color: var(--accent); letter-spacing: .1em; font-size: .9rem; }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1.1; }
.stat span { color: #9fb2c7; font-size: .95rem; }

/* blog card */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { display: grid; grid-template-columns: 200px 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--text); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 26px; }
.post-card .meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.18rem; }
.post-card p { font-size: .96rem; color: var(--muted); }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); color: #c9d6e5; isolation: isolate; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: url('../img/texture-blu.webp') center / cover; opacity: .55; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(11, 29, 51, .96) 30%, rgba(11, 29, 51, .7)); z-index: -1; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { margin: 0; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* galleria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery button { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.gallery button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(11, 29, 51, .85)); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.gallery button:hover img { transform: scale(1.06); }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; transform: none; }
.gallery .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); }
.lightbox::backdrop { background: rgba(11, 29, 51, .88); }
.lightbox img { border-radius: var(--radius); width: 100%; }
.lightbox p { color: #fff; text-align: center; font-family: var(--font-display); margin: 12px 0 0; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 500; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-status { margin-top: 14px; font-weight: 500; color: var(--brand); min-height: 1.5em; }

/* articolo / testi legali */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .answer { background: var(--bg-alt); border-left: 4px solid var(--brand); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.prose .post-cover { border-radius: var(--radius-lg); margin: 0 0 32px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { margin: 0; color: var(--muted); }

/* ============ FOOTER ============ */
.site-footer { color: #a9bacd; padding-top: 0; font-size: .96rem; }
.site-footer .pipe { color: rgba(255, 255, 255, .08); height: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.footer-brand img { width: 52px; height: auto; }
.footer-brand small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8ea3ba; margin-top: 3px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #d6e2ef; }
.site-footer a:hover { color: var(--cyan); }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: #8ea3ba; }
.footer-bottom p { margin: 0; }

/* chiamata rapida mobile */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; display: none; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 28px rgba(210, 66, 27, .4);
  font-family: var(--font-display); font-weight: 600;
}
.call-fab svg { width: 18px; height: 18px; }
.call-fab:hover { color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .service-strip ul { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 340px 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid > *, .service-grid > :nth-child(4) { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .topbar-hide { display: none; }
  .split-media { max-width: 520px; }
}
@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; padding: 36px 0; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-media { max-width: 420px; }
  .post-grid { grid-template-columns: 1fr; }
  .call-fab { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid-3, .service-grid, .form-grid { grid-template-columns: 1fr; }
  .service-strip ul { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar { display: none; }
  .split-media .float-card { left: 12px; }
  .split-media .frame { inset: 14px -10px -14px 14px; }
  .cta-actions .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .service-strip ul { grid-template-columns: 1fr; }
  .nav-brand-text small { display: none; }
  .hero-badge { right: -4px; bottom: 4%; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
