/* ============================================================
   Ylenia Pomodoro — Interior Design · Como
   Foglio di stile unico. CSS custom, zero framework.
   ============================================================ */

/* ---------- Font self-hosted (variabili, nessuna richiesta a terzi) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design system ---------- */
:root {
  /* palette: terracotta del logo + sabbia + neutri caldi (60-30-10) */
  --brand: #7C3C13;
  --brand-dark: #5E2D0E;
  --accent: #C9AB81;
  --accent-soft: #E7D7BC;
  --ink: #2B2119;
  --text: #4A3F35;
  --muted: #8A7B6C;
  --bg: #FAF7F2;
  --bg-alt: #F3ECE1;
  --bg-dark: #2B2119;
  --card: #FFFFFF;
  --line: #E8DFD2;
  /* tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(43, 33, 25, .06);
  --shadow-md: 0 10px 30px rgba(43, 33, 25, .10);
  --shadow-lg: 0 24px 60px rgba(43, 33, 25, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  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; }
a:hover { color: var(--brand-dark); }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 640; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.015em; font-weight: 620; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 470; color: var(--brand); }
.cta-banner h2 em, .section-dark h2 em { color: var(--accent); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-dark h2, .section-dark h3 { color: #FBF6EE; }
.section-dark p { color: #D9CDBF; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  flex: none;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  flex: none;
}
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--brand); color: #FFF9F2; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #FFF9F2; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #FFF9F2; transform: translateY(-2px); }
.btn-light { background: #FBF6EE; color: var(--brand-dark); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-dark); transform: translateY(-2px); }
.btn-primary::after, .btn-outline::after, .btn-light::after {
  content: "\2192";
  font-size: 1.02em;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(250, 247, 242, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.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: 13px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }
.nav { display: flex; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: .98rem; border-radius: 10px; transition: color .2s, background .2s; }
.nav-menu a:hover { color: var(--brand); background: rgba(124, 60, 19, .06); }
.nav-menu a[aria-current="page"]:not(.nav-cta) { color: var(--brand); font-weight: 600; }
.nav-menu .nav-cta { margin-left: 10px; padding: 13px 24px; color: #FFF9F2; }
.nav-menu .nav-cta:hover, .nav-menu .nav-cta[aria-current="page"] { background: var(--brand-dark); color: #FFF9F2; }

/* ---------- Menu mobile (pattern Royaletiger collaudato) ---------- */
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;
}
.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(43, 33, 25, .45);
    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;
    z-index: 95;
    width: min(86vw, 360px);
    background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 110px 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 { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu .nav-cta { margin: 14px 0 0; justify-content: center; }
}

/* ---------- Hero home ---------- */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle at center, rgba(201, 171, 129, .30), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.22rem; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 10000px 10000px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 5.7;
  object-fit: cover;
  width: 100%;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--accent);
  border-radius: 10000px 10000px calc(var(--radius-lg) + 8px) calc(var(--radius-lg) + 8px);
  opacity: .6;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: -18px; bottom: 26px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
}
.hero-badge svg { width: 26px; height: 26px; flex: none; }
.hero-stats {
  display: flex; gap: 38px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand);
  font-weight: 700;
}
.hero-stats .stat span { font-size: .86rem; color: var(--muted); }

/* ---------- Card feature ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: var(--card);
  border: 1px solid rgba(201, 171, 129, .30);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 1px 2px rgba(43, 33, 25, .04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 171, 129, .24), rgba(124, 60, 19, .10));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .94rem; }

/* ---------- Split about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-figure:not(.landscape) img {
  border-radius: 10000px 10000px var(--radius-lg) var(--radius-lg);
}
.split-figure.landscape img { aspect-ratio: 4 / 3; }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 21px; height: 21px; flex: none; margin-top: 3px; }

/* ---------- Servizi ---------- */
.service-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card .service-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card .service-body p { flex: 1; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent);
}
@supports not (-webkit-text-stroke: 1px black) {
  .step-num { color: var(--accent); }
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Pacchetti ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--brand);
  background: linear-gradient(175deg, #FFFFFF 55%, #F8EEDF);
  box-shadow: var(--shadow-md);
}
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #FFF9F2;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.price-sub { color: var(--muted); font-size: .94rem; min-height: 48px; }
.price-value { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; color: var(--brand); margin: 16px 0 4px; }
.price-value small { font-size: .95rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 11px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.price-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.price-list .optional { color: var(--muted); font-style: italic; }
.price-card .btn { justify-content: center; }

/* ---------- Galleria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.045); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43, 33, 25, .38), transparent 45%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.gallery-grid a:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(23, 17, 12, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(250, 247, 242, .12);
  border: 0; color: #FBF6EE;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(250, 247, 242, .25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonianze / quote ---------- */
.quote-card { padding: 38px 34px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote-card figcaption { font-size: .92rem; color: var(--muted); font-weight: 600; }
.stars { color: var(--brand); letter-spacing: 2px; margin-bottom: 14px; display: block; }

/* ---------- Blog card ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 10px; }
.post-body h3 { font-size: 1.2rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { font-size: .95rem; flex: 1; }

/* ---------- Articolo blog ---------- */
.article-hero { padding: calc(var(--nav-h) + 56px) 0 28px; }
.article-hero .post-meta { margin-bottom: 14px; }
.article-cover { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 24px 0 0; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body .faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--card);
}
.article-body .faq summary { font-weight: 600; color: var(--ink); cursor: pointer; }
.article-body .faq p { margin: 12px 0 0; }

/* breadcrumb */
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* ---------- Pagina interna hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; right: -50px; top: -30px;
  width: 320px; height: 320px;
  background: url('../img/logo-mark.png') center / contain no-repeat;
  opacity: .06;
  transform: rotate(10deg);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 680px; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #FBF6EE;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -36px; bottom: -58px;
  width: 280px; height: 280px;
  background: url('../img/logo-mark-light.png') center / contain no-repeat;
  opacity: .10;
  transform: rotate(-8deg);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 15%, rgba(201, 171, 129, .25), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #FBF6EE; margin-bottom: 12px; }
.cta-banner p { color: #E7D7BC; max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-items { display: grid; gap: 18px; margin-top: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-icon { width: 46px; height: 46px; margin: 0; flex: none; }
.contact-item strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-item a, .contact-item span { font-size: .98rem; }

/* form */
.form-card { padding: 38px 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 60, 19, .12);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; grid-column: 1 / -1; }
.form-privacy input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.form-status { min-height: 24px; font-size: .95rem; font-weight: 600; grid-column: 1 / -1; }
.form-status.ok { color: #2E7D43; }
.form-status.err { color: #B3261E; }
/* honeypot: fuori vista, non display:none (alcuni bot lo saltano) */
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #CBBFAF; padding: 72px 0 0; position: relative; }
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-row img { width: 42px; height: 42px; }
.footer-brand-row span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #FBF6EE; }
.footer-col p { font-size: .94rem; }
.footer-col h4 { color: var(--accent); font-size: .8rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #CBBFAF; font-size: .95rem; }
.footer-col a:hover { color: #FBF6EE; }
.footer-col li { font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(251, 246, 238, .12);
  padding: 22px 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #CBBFAF; }
.footer-bottom a:hover { color: #FBF6EE; }
.footer-credit a { color: var(--accent); font-weight: 600; }

/* ---------- Reveal (il contenuto parte VISIBILE: il JS aggiunge solo l'animazione) ---------- */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 72vh; display: flex; align-items: center; text-align: center; padding-top: var(--nav-h); }
.error-page .err-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: var(--accent); line-height: 1; margin: 0; }

/* ---------- Pagine legali ---------- */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal-body ul { margin-bottom: 1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .split { gap: 44px; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 1 / 1.04; }
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-banner { padding: 48px 26px; }
  .hero-badge { left: 10px; bottom: 14px; padding: 11px 16px; font-size: .82rem; }
  .hero-stats { gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .nav-menu, .nav-overlay, .btn, .card, .price-card, .gallery-grid img { transition: none; }
}
