/* Emax Costruzioni — foglio di stile unico, nessuna dipendenza esterna */

@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-800.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1f2226;
  --ink-soft: #4a4f57;
  --muted: #6b717a;
  --line: #e3e0da;
  --paper: #faf8f5;
  --white: #ffffff;
  --brick: #b4532a;
  --brick-dark: #8f3f1e;
  --brick-soft: #f4e6de;
  --brick-light: #f3c3a8;
  --slate: #2b3036;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 34, 38, .08);
  --shadow-lg: 0 22px 50px rgba(31, 34, 38, .16);
  --max: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", var(--font);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick-dark); }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
@media (min-width: 720px) { .container { padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

/* ---------- Intestazione ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 248, 245, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s, height .35s var(--ease), box-shadow .35s;
}
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
/* Trasparente sopra la foto di apertura, solido dopo lo scorrimento */
.has-hero .site-header:not(.scrolled):not(.menu-open) {
  background: linear-gradient(rgba(20, 22, 25, .55), rgba(20, 22, 25, 0));
  border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.menu-open { background: var(--paper); }
.site-header.scrolled { --header-h: 64px; box-shadow: 0 6px 24px rgba(31, 34, 38, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; position: relative; }
.brand-logo { height: 46px; width: auto; transition: height .35s var(--ease), opacity .3s; }
.scrolled .brand-logo { height: 40px; }
.brand-logo--light { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; pointer-events: none; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .brand-logo--light { opacity: 1; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .brand-logo--dark { opacity: 0; }
@media (max-width: 400px) { .brand-logo { height: 40px; } .scrolled .brand-logo { height: 36px; } }

/* barra di avanzamento della lettura (solo browser che supportano le animazioni legate allo scorrimento) */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brick); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .96rem; transition: color .2s, background .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--brick); border-radius: 2px; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--ink); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .nav-links a:not(.btn) { color: rgba(255,255,255,.88); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .nav-toggle { color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle path { transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px; box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a[aria-current] { color: var(--brick); }
  .nav-links .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; border-radius: 10px; }
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brick); color: #fff !important; box-shadow: 0 6px 18px rgba(180, 83, 42, .28); }
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(180, 83, 42, .34); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink) !important; background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-white { background: #fff; color: var(--brick-dark) !important; }
.btn-white:hover { background: #fbe5d9; }
.nav-links .btn-primary { padding: 9px 16px; box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Apertura (hero) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  background: var(--slate);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; animation: kenburns 14s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(24,26,30,.94) 0%, rgba(24,26,30,.80) 45%, rgba(24,26,30,.35) 100%); }
@media (max-width: 860px) { .hero::before { background: linear-gradient(180deg, rgba(24,26,30,.70) 0%, rgba(24,26,30,.88) 60%, rgba(24,26,30,.94) 100%); } }
.hero-inner { padding: calc(var(--header-h) + 40px) 0 80px; max-width: 860px; }
.hero-inner h1 { max-width: 800px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-light); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero p.lead { font-size: 1.2rem; color: #e9e6e1; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .9rem; color: #eee9e3; backdrop-filter: blur(4px); }
.hero-badges svg { width: 16px; height: 16px; color: var(--brick-light); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 560px), (max-height: 640px) { .scroll-cue { display: none; } }

/* entrata a cascata dei testi dell'apertura */
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
.hero-inner > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .hero-inner { padding: calc(var(--header-h) + 36px) 0 56px; } .hero p.lead { font-size: 1.08rem; } .hero-actions .btn { flex: 1 1 100%; } }

.page-hero { position: relative; background: var(--slate); color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -40px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(180,83,42,.35), transparent); pointer-events: none; }
.page-hero p { color: #d7d3cd; max-width: 680px; margin: 0; }
.page-hero .container > * { animation: rise .8s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: .1s; }
.page-hero .container > :nth-child(3) { animation-delay: .2s; }

/* ---------- Numeri ---------- */
.stats { background: var(--ink); color: #fff; padding: 34px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats ul { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
.stats li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 3px solid var(--brick); }
.stats strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { color: #bdb8b1; font-size: .92rem; }

/* ---------- Sezioni ---------- */
section { padding: 88px 0; }
@media (max-width: 560px) { section { padding: 60px 0; } }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head.row > div { max-width: 700px; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* Chi siamo */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.about-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list svg { flex: none; width: 22px; height: 22px; color: var(--brick); margin-top: 3px; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; margin: 0; }
.about-photo img { width: 100%; height: 100%; max-height: 540px; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.about-badge { position: absolute; top: 16px; left: 16px; background: var(--brick); color: #fff; border-radius: 12px; padding: 10px 14px; line-height: 1.2; box-shadow: var(--shadow); }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.about-badge span { font-size: .8rem; opacity: .9; }
@supports (animation-timeline: view()) {
  .about-photo img { animation: drift linear both; animation-timeline: view(); scale: 1.12; }
  @keyframes drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
}

/* Servizi */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brick); border-radius: var(--radius) var(--radius) 0 0; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #d6cfc6; }
.card:hover::before { transform: scaleX(1); }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: var(--brick-soft); color: var(--brick); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s, color .3s, transform .4s var(--ease); }
.card:hover .icon { background: var(--brick); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); margin: 0; }
.card ul { color: var(--ink-soft); margin: 12px 0 0; padding-left: 18px; font-size: .96rem; }
.card ul li { margin-bottom: 4px; }
.card .card-cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--brick-dark); }
.card .card-cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.card .card-cta:hover svg { transform: translateX(4px); }

/* Prima / dopo interattivo */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; max-height: 640px; width: 100%; background: var(--slate); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .label { position: absolute; top: 14px; z-index: 2; background: rgba(31,34,38,.85); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.compare .label.before-l { left: 14px; }
.compare .label.after-l { right: 14px; background: var(--brick); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4532a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.compare:hover .handle::after, .compare.dragging .handle::after { transform: scale(1.1); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare input:focus-visible + .handle::after { outline: 3px solid var(--brick); outline-offset: 3px; }
.compare-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-top: 12px; }
.compare-hint svg { width: 18px; height: 18px; }
.compare-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .compare-wrap { grid-template-columns: 1fr; gap: 28px; } }
.compare.intro .after { transition: clip-path 1.1s var(--ease); }
.compare.intro .handle { transition: left 1.1s var(--ease); }

/* Metodo */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brick-soft); color: var(--brick); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; transition: background .3s, color .3s; }
.step.in::before { background: var(--brick); color: #fff; transition-delay: var(--d, 0s); }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.steps-line { position: absolute; left: 48px; right: 48px; top: 49px; height: 2px; background: var(--line); z-index: -1; }
.steps-line::after { content: ""; position: absolute; inset: 0; background: var(--brick); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.steps.in .steps-line::after { transform: scaleX(1); }
@media (max-width: 900px) { .steps-line { display: none; } }
#metodo { position: relative; z-index: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--brick-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4532a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--brick-dark); }
.faq details > div { color: var(--ink-soft); padding: 0 0 20px; }
.faq details > div p:last-child { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Banda di invito all'azione */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brick-dark), var(--brick)); color: #fff; padding: 60px 0; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border: 40px solid rgba(255,255,255,.06); border-radius: 50%; }
.cta-band .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #fbe5d9; }
.cta-band .btn-ghost { border-color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contatti */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list > li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .2s, transform .2s var(--ease); }
.contact-list > li:hover { border-color: #d6cfc6; transform: translateX(3px); }
.contact-list svg { width: 22px; height: 22px; color: var(--brick); flex: none; margin-top: 2px; }
.contact-list svg.wa-icon { color: #1f9d55; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--brick); }
.contact-list > li:has(.week):hover { transform: none; }
.hours-box { flex: 1; min-width: 0; }
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.hours-head .open-now { margin: 0; }
.week { list-style: none; margin: 0; padding: 0; }
.week li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background .3s; }
.week li:last-child { border-bottom: 0; }
.week li > span:last-child { color: var(--ink-soft); white-space: nowrap; }
.week li.closed > span:last-child { color: var(--muted); }
.week li.today { font-weight: 700; margin: 0 -10px; padding: 9px 10px; border-radius: 8px; border-bottom-color: transparent; background: var(--brick-soft); }
.week li.today > span:last-child { color: var(--ink); }
.week .oggi { margin-left: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.open-now { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.open-now.is-open { color: #1e7a3c; }
.open-now.is-open::before { background: #22a355; box-shadow: 0 0 0 0 rgba(34,163,85,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,163,85,0); } 100% { box-shadow: 0 0 0 0 rgba(34,163,85,0); } }

form.quote { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } form.quote { padding: 22px 18px; } }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d4cfc8; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brick); outline: none; box-shadow: 0 0 0 4px var(--brick-soft); }
input:user-invalid, textarea:user-invalid { border-color: #c0392b; background: #fff7f6; }
.field .err { display: none; color: #b3261e; font-size: .85rem; margin-top: 5px; }
input:user-invalid ~ .err, textarea:user-invalid ~ .err { display: block; }
select.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 6px rgba(180,83,42,.35); border-color: var(--brick); } }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brick); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1e7a3c; }
.form-status.err { color: #b3261e; }
.form-done { display: none; text-align: center; padding: 30px 10px; }
.form-done svg { width: 72px; height: 72px; color: #1e7a3c; margin: 0 auto 10px; }
.form-done circle, .form-done path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .9s var(--ease) forwards; }
.form-done path { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
form.quote.sent > :not(.form-done) { display: none; }
form.quote.sent .form-done { display: block; animation: rise .6s var(--ease) both; }

.map { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; background: #ece6dc; border: 1px solid var(--line); }
@media (max-width: 560px) { .map { aspect-ratio: 4 / 3.4; } .map-cta { padding-top: 24px; } }
.map-ph { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s, transform .8s var(--ease); }
.map:hover .map-ph { transform: scale(1.03); }
.map-ph g:last-child { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { translate: 0 -5px; } }
.map-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; text-align: center; background: linear-gradient(transparent, rgba(236,230,220,.96) 45%); transition: opacity .4s; }
.map-cta p { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; }
.map.loaded iframe { opacity: 1; }
.map.loaded .map-cta, .map.loaded .map-ph { opacity: 0; pointer-events: none; }
.map.loading .map-load { opacity: .7; pointer-events: none; }

/* ---------- Lavori: filtri, galleria, lightbox ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filters button { font: inherit; font-size: .92rem; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; transition: all .2s var(--ease); }
.filters button:hover { border-color: var(--brick); color: var(--brick-dark); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.works { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.work { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work.hide { display: none; }
.work.show { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.work-media { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--slate); position: relative; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work-media img { transform: scale(1.06); }
.work-media .zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .25s var(--ease); }
.work-media .zoom svg { width: 18px; height: 18px; }
.work:hover .zoom, .work-media:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) { .work-media .zoom { opacity: 1; transform: none; } }
.work-media .tag { position: absolute; z-index: 2; left: 14px; top: 14px; background: var(--brick); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .03em; }
.work-body { padding: 22px 24px 26px; }
.work-body h3 { margin-bottom: 6px; }
.work-body p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.note-list { color: var(--ink-soft); }

.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(12, 13, 15, .97); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fade .25s ease both; }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 60px 64px 0; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 8px; animation: pop .3s var(--ease) both; }
.lightbox figcaption { padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; color: #ddd8d2; }
.lightbox figcaption strong { color: #fff; display: block; font-family: var(--font-display); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 560px) { .lightbox figure { padding: 64px 8px 0; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); translate: none; } .lightbox figcaption { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--ink); color: #bdb8b1; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer a { color: #e8e4de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { margin-bottom: 12px; }
.footer-brand img { height: 38px; width: auto; }
.legal { border-top: 1px solid #373b41; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* ---------- Azioni rapide ---------- */
/* Desktop: pulsante WhatsApp flottante */
.fab-wa { position: fixed; right: calc(22px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .25s var(--ease); animation: rise .6s .8s var(--ease) both; }
.fab-wa:hover { color: #fff; transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
/* Telefono: barra fissa in basso (chiama, WhatsApp, preventivo) */
.action-bar { display: none; }
@media (max-width: 860px) {
  .fab-wa { display: none; }
  .action-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px;
    padding: 6px; border-radius: 18px;
    background: rgba(31, 34, 38, .9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.32);
    transition: transform .4s var(--ease), opacity .3s;
  }
  .action-bar.away { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 6px; border-radius: 13px; text-decoration: none; font-weight: 700; font-size: .92rem; color: #f1ede8; transition: background .2s, transform .15s; }
  .action-bar a:active { transform: scale(.96); background: rgba(255,255,255,.08); }
  .action-bar svg { width: 20px; height: 20px; flex: none; }
  .action-bar .ab-wa svg { color: var(--wa); }
  .action-bar .ab-quote { background: var(--brick); color: #fff; }
  .action-bar .ab-quote:active { background: var(--brick-dark); }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* Pagine legali */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--brick-soft); }

/* Comparsa allo scorrimento (miglioramento progressivo: senza JS tutto è visibile) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.center { text-align: center; }
.mt-2 { margin-top: 28px; }
