/* =============================================================
   Benessere in Armonia — Anna Murano | Shiatsu
   Foglio di stile unico. Nessun framework, nessuna dipendenza.
   ============================================================= */

/* --- Font self-hosted: niente richieste a terzi, niente cookie banner --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette — nasce dal logo: blu elettrico #062AF2 + inchiostro nero */
  --brand: #1226C9;
  --brand-deep: #0A1578;
  --brand-soft: #EEF1FF;
  --accent: #A97A4E;          /* bronzo caldo: scalda il blu, marca i dettagli */
  --accent-soft: #F4EBE1;

  --ink: #0C1020;
  --text: #434A5C;
  --muted: #767D91;
  --bg: #FFFFFF;
  --bg-alt: #F7F5F1;
  --line: #E6E3DD;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(12, 16, 32, .05);
  --shadow-md: 0 10px 30px rgba(12, 16, 32, .07);
  --shadow-lg: 0 24px 60px rgba(12, 16, 32, .13);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  overflow-x: hidden;                 /* il pannello del menu non deve allargare il documento */
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0125rem;
  line-height: 1.72;
  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 var(--ease); }
a:hover { color: var(--brand-deep); }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #C9CEDC; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.section-dark .eyebrow { color: #8FA0FF; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--text); max-width: 62ch; }
.section-head { max-width: 66ch; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.text-center { text-align: center; }

/* --- Bottoni ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 100px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  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:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(18, 38, 201, .26); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 14px 32px rgba(18, 38, 201, .32); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--brand); }
.btn-ghost-light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.09); }
.btn-wa { background: #1FA855; color: #fff; box-shadow: 0 8px 22px rgba(31, 168, 85, .26); }
.btn-wa:hover { background: #178A46; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) 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); }
/* CRITICA: con il menu aperto la sfocatura va spenta, altrimenti l'header
   diventa il containing block del pannello position:fixed (vedi SKILL.md). */
.site-header.has-menu-open {
  backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.nav-brand img { width: 38px; height: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.nav-brand-name { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; color: var(--ink); }
.nav-brand-sub { font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav { display: flex; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a { padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: .93rem; font-weight: 500; }
.nav-menu a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 12px 24px; }
.nav-menu .nav-cta a:hover { background: var(--brand-deep); color: #fff; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8, 13, 48, .88) 0%, rgba(10, 21, 120, .74) 46%, rgba(12, 30, 140, .38) 100%);
}
.hero-inner { position: relative; padding: clamp(96px, 15vw, 172px) 0 clamp(74px, 11vw, 128px); max-width: 780px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #9FB0FF; }
.hero .lead { color: #D7DDF4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 30px 0 0; color: #AAB5DC; font-size: .88rem; }
.hero-note svg { width: 17px; height: 17px; color: #8FA0FF; flex: none; }

.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(52px, 8vw, 92px) 0 clamp(42px, 6vw, 66px); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { margin-bottom: 0; }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* --- Barra fiducia ------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 30px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 25px; height: 25px; color: var(--brand); flex: none; margin-top: 3px; }
.trust-item strong { display: block; color: var(--ink); font-size: .98rem; font-weight: 600; }
.trust-item span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* --- Griglie e card ------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card-icon svg { width: 25px; height: 25px; color: var(--brand); }
.card-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--accent); line-height: 1; margin-bottom: 14px; display: block; }

/* card trattamento con foto */
.treat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.treat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.treat-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.treat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.treat:hover .treat-media img { transform: scale(1.045); }
.treat-body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.treat-body .eyebrow { margin-bottom: .6rem; }
.treat-body p { flex: 1; font-size: .96rem; }
.treat-link { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; }
.treat-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.treat-link:hover svg { transform: translateX(4px); }

/* --- Split immagine + testo ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split.is-reverse .split-media { order: 2; }
.split-badge {
  position: absolute; left: 22px; bottom: 22px; background: rgba(255,255,255,.95);
  border-radius: var(--radius); padding: 15px 20px; box-shadow: var(--shadow-md); max-width: 76%;
}
.split-badge strong { display: block; font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); }
.split-badge span { font-size: .82rem; color: var(--muted); }

.tick-list { list-style: none; display: grid; gap: 13px; margin: 26px 0 0; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.tick-list svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.section-dark .tick-list svg { color: #8FA0FF; }

/* --- Percorso / passi ---------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.22rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* --- Attestati ----------------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; text-align: left; cursor: zoom-in; font: inherit; color: inherit; width: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert img { border-radius: 9px; aspect-ratio: 3 / 2; object-fit: contain; background: #FBFAF7; width: 100%; height: auto; }
.cert-label { display: block; padding: 13px 6px 5px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.cert-org { display: block; padding: 0 6px 6px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* --- Galleria ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border: 0; padding: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; }
.gallery-item.is-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 26px; background: rgba(8, 11, 26, .92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(96vw, 1180px); max-height: 88vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.18); }
.lightbox-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #C9CEDC; font-size: .88rem; padding: 0 26px; }

/* --- Blog ---------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card { color: var(--text); }
.post-card:hover h3 { color: var(--brand); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.post-body h3 { font-size: 1.32rem; }
.post-body p { font-size: .95rem; flex: 1; }

.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: clamp(1.62rem, 3vw, 2.1rem); margin-top: 2em; }
.article h3 { font-size: 1.24rem; margin-top: 1.7em; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article li { margin-bottom: .55em; }
.article-lead { font-size: 1.14rem; color: var(--ink); font-weight: 500; }
.article-answer { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 0 0 2em; }
.article-answer p:last-child { margin-bottom: 0; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius-lg); }
.article figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; text-align: center; }

.faq { border-top: 1px solid var(--line); margin-top: 2em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-q::after { content: '+'; font-family: var(--font-body); font-size: 1.4rem; color: var(--brand); flex: none; transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 22px; }
.faq-a.is-open { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* --- CTA banner ---------------------------------------------------------- */
.cta-band { background: var(--brand-deep); color: #D3D9F6; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 140, 255, .28), transparent 68%);
}
.cta-inner { position: relative; text-align: center; max-width: 680px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #9FB0FF; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 30px; }

/* --- Contatti ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 62px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list svg { width: 21px; height: 21px; color: var(--brand); flex: none; margin-top: 4px; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--ink); font-size: 1.02rem; }
.contact-list a:hover { color: var(--brand); }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: .97rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 38, 201, .13);
}
.field textarea { min-height: 132px; resize: vertical; }
.field-check { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--muted); margin-bottom: 22px; }
.field-check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.form-status { margin: 14px 0 0; font-size: .9rem; color: var(--brand); min-height: 1.3em; }
.form-alt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.map-link { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); padding: 22px 24px; }
.map-link:hover { border-color: var(--brand); }
.map-link strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.map-link span { font-size: .88rem; color: var(--muted); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9BA3B9; padding: clamp(56px, 7vw, 84px) 0 34px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 42px; height: auto; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; line-height: 1.15; }
.footer-brand-sub { display: block; font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: #7C859F; font-family: var(--font-body); }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: .76rem; letter-spacing: .15em; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #9BA3B9; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; }
.footer-social a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #7C859F;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #7C859F; }
.footer-credit a { color: #9BA3B9; }

/* --- Legale -------------------------------------------------------------- */
.legal { max-width: 800px; }
.legal h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.9em; }
.legal h3 { font-size: 1.14rem; margin-top: 1.5em; }
.legal ul { padding-left: 1.3em; margin-bottom: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }

/* --- Reveal -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

/* --- WhatsApp flottante -------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(31, 168, 85, .4);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* =============================================================
   MENU MOBILE — pattern collaudato Royaletiger (SKILL.md, FASE 5-bis)
   ============================================================= */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.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(8, 11, 26, .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; z-index: 95;
    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-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* rete di sicurezza: se lo stato "menu aperto" sopravvive a un cambio di
   larghezza (rotazione col menu aperto), sopra la soglia il blocco dello
   scorrimento si spegne da solo, senza aspettare il JS */
@media (min-width: 901px) {
  body.is-locked { position: static; width: auto; overflow: visible; }
}

/* --- Breakpoint ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-grid .footer-col:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .grid-3, .steps, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .trust-item:last-child { border-bottom: 0; }
}
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:nth-child(3) { display: block; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .cert-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 34px, var(--container)); }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .gallery-item.is-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.is-wide { grid-column: span 1; aspect-ratio: 1 / 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .nav-menu, .nav-overlay { transition: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .cta-band, .nav-overlay { display: none !important; }
  body { color: #000; }
}
