/* ==========================================================================
   Organizzazione Cattolica — onoranze funebri Roma
   Design system: oro caldo, nero, avorio. Titoli Oswald (maiuscolo),
   testi Montserrat. Font serviti dal sito (niente richieste a Google).
   Tutte le dimensioni dei testi in rem: il widget accessibilità le scala.
   ========================================================================== */

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

:root {
  --gold: #c8891a;          /* linee, icone, dettagli */
  --gold-strong: #b37812;   /* pillole e bottoni con testo grande bianco */
  --gold-text: #8a5a0c;     /* testo oro piccolo (contrasto AA su bianco e avorio) */
  --gold-soft: #f5e9d3;
  --gold-line: #e6cfa5;
  --ink: #111111;
  --text: #262626;
  --muted: #5b5650;
  --line: #e8e0d6;
  --cream: #faf5ef;
  --cream-2: #f4ece2;
  --white: #ffffff;
  --wa: #128c4b;
  --ok: #2f7d4f;
  --danger: #a1281f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(40, 28, 10, .08);
  --shadow-lg: 0 18px 50px rgba(40, 28, 10, .14);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  /* Larghezza intera (dal 17/11/2026): il contenuto occupa tutto lo schermo, con un margine
     laterale che cresce con la finestra (20 px su telefono, fino a 80 px sugli schermi grandi) */
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --header-h: 150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 980px) { html { scroll-padding-top: 92px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(200, 137, 26, .15);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 820px; }
.wrap.narrow { width: min(100% - 2.5rem, 820px); }
/* colonna di testo leggibile, allineata a sinistra con il resto della pagina */
.text-col { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: .01em;
  line-height: 1.1;
}
.section-title.center { text-align: center; }
.title-line { display: block; width: 100px; height: 4px; border-radius: 2px; background: var(--gold); margin: .4rem 0 1.6rem; }
.center .title-line, .title-line.center { margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .7rem; }
.lead { font-size: 1.12rem; color: var(--text); }
.muted { color: var(--muted); }

/* --------------------------------------------------------------- Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; line-height: 1.1;
  color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #2b2b2b; color: #fff; }
.btn-gold { background: var(--gold-strong); border-color: var(--gold-strong); color: #fff; }
.btn-gold:hover { background: var(--gold-text); border-color: var(--gold-text); color: #fff; }
.btn-outline-gold { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-outline-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #0d6e3a; border-color: #0d6e3a; color: #fff; }
.btn-lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.35rem; border-radius: 12px; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn .ico { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
/* l'intestazione è fissa: il corpo riserva sempre la sua altezza piena (misurata da main.js in --hdr-h),
   così quando si compatta scorrendo il contenuto non fa scatti */
body { padding-top: var(--hdr-h, 146px); }
@media (max-width: 980px) { body { padding-top: var(--hdr-h, 77px); } }
/* niente backdrop-filter/transform sull'header: renderebbero il menu mobile (position: fixed) alto quanto l'header */
.hdr { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 3rem; align-items: center; }
.brand { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: .9rem 0; color: var(--ink); }
.brand-mark { width: 78px; height: auto; margin-bottom: .25rem; }
.brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.55rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; margin-top: .15rem; color: var(--text); }
.hdr-info { display: flex; align-items: center; justify-content: flex-end; gap: 1.6rem; padding: 1rem 0 .7rem; }
.hdr-item { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); line-height: 1.25; }
.hdr-item small { display: block; font-size: .85rem; font-weight: 500; }
.hdr-item strong { font-family: var(--font-title); font-size: 1.75rem; font-weight: 600; letter-spacing: .01em; }
.hdr-addr span { font-size: .9rem; }
.hdr-ico { color: var(--gold); flex: none; }
.hdr-sep { width: 2px; height: 46px; background: var(--gold); opacity: .8; }
.hdr-social { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.hdr-social a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); border-radius: 50%; }
.hdr-social a:hover { color: var(--gold-text); }
.main-nav { grid-column: 2; border-top: 1px solid var(--line); }
.nav-list { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
  display: block; padding: 1rem .2rem .9rem; font-family: var(--font-title); font-weight: 600; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink); text-decoration: none; position: relative;
}
.nav-list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .4rem; height: 4px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.sub-toggle { background: none; border: 0; padding: .4rem; margin-left: .1rem; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.sub-toggle .ico { transition: transform .2s; }
.has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 100%; left: -1rem; min-width: 390px; list-style: none; margin: 0; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  font-family: var(--font-title); font-weight: 600; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .03em;
}
.sub-menu a:hover { background: var(--cream); color: var(--gold-text); }
/* Precisazione in minuscolo accanto al nome del servizio (menu, piè di pagina, schede) */
.srv-det { font-family: var(--font); font-weight: 400; font-size: .88em; text-transform: none; letter-spacing: 0; opacity: .85; }
.hdr-call, .burger, .nav-mobile-cta { display: none; }
.site-header.is-reduced .hdr { grid-template-rows: auto; }
.site-header.is-reduced .brand { grid-row: auto; }

@media (max-width: 1180px) {
  .hdr { column-gap: 1.6rem; }
  .hdr-social, .hdr-sep { display: none; }
  .nav-list > li > a { font-size: 1.15rem; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .hdr { display: flex; align-items: center; gap: .8rem; min-height: 76px; }
  .brand { flex-direction: row; gap: .6rem; padding: .6rem 0; margin-right: auto; align-items: center; }
  .brand-mark { width: 52px; margin: 0; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
  .hdr-info { display: none; }
  .site-header.is-reduced .hdr-info { display: flex; padding: 0; }
  .site-header.is-reduced .hdr-item small { display: none; }
  .site-header.is-reduced .hdr-item strong { font-size: 1.2rem; }
  .hdr-call { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; text-decoration: none; font-family: var(--font-title); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--hdr-h, 77px) 0 0 0; background: #fff; border-top: 1px solid var(--line);
    overscroll-behavior: contain;
    padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; font-size: 1.35rem; padding: .9rem 0; }
  .nav-list > li > a::after { display: none; }
  .nav-list > li > a[aria-current="page"] { color: var(--gold-text); }
  .sub-toggle { width: 46px; height: 46px; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .8rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open:hover .sub-menu { display: block; }
  .nav-mobile-cta { display: grid; gap: .7rem; margin-top: 1.5rem; }
}


/* intestazione compatta quando si scorre (solo desktop) */
.nav-list > li.nav-phone { display: none; }
@media (min-width: 981px) {
  .site-header { transition: box-shadow .2s; }
  .site-header.is-compact { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
  .site-header.is-compact .hdr-info { display: none; }
  .site-header.is-compact .hdr { grid-template-rows: auto; }
  .site-header.is-compact .brand { grid-row: auto; flex-direction: row; gap: .7rem; padding: .45rem 0; }
  .site-header.is-compact .brand-mark { width: 54px; margin: 0; }
  .site-header.is-compact .brand-name { font-size: 1.2rem; }
  .site-header.is-compact .brand-sub { display: none; }
  .site-header.is-compact .main-nav { grid-row: 1; border-top: 0; }
  .site-header.is-compact .nav-list > li > a { padding: .8rem .2rem .75rem; font-size: 1.15rem; }
  .site-header.is-compact .nav-list > li.nav-phone { display: flex; }
  .nav-phone a { display: inline-flex !important; align-items: center; gap: .4rem; color: var(--gold-text) !important; }
  .nav-phone a::after { display: none; }
}


@media (max-width: 520px) {
  .hdr { gap: .5rem; }
  .brand { min-width: 0; }
  .brand-mark { width: 44px; }
  .brand-name { font-size: .95rem; white-space: normal; line-height: 1.05; max-width: 8.5em; }
  .hdr-call { padding: .5rem .75rem; }
  .hdr-call span { display: none; }
  .burger { width: 44px; height: 44px; flex: none; }
  .hero .btn-lg { width: 100%; font-size: 1.15rem; padding: .9rem 1rem; }
  .btn { white-space: normal; text-align: center; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ Hero home */
/* Rifatta il 18/11/2026: sul computer sta tutta nello schermo, sfondo avorio caldo come nel
   mockup, foto sfumata nell'avorio, vantaggi in un riquadro, WhatsApp accanto al telefono.
   Sul telefono i bottoni salgono subito dopo i vantaggi e il testo lungo va in fondo. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, #fffdfa 0%, var(--cream) 46%);
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 820px; height: 820px; left: -300px; top: -360px;
  background: radial-gradient(circle, rgba(200, 137, 26, .11) 0%, rgba(200, 137, 26, 0) 65%);
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 54%; z-index: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 28%; filter: saturate(.9);
  /* la foto sfuma da sola nell'avorio dello sfondo: nessuna giuntura visibile */
  --hero-fade: transparent 0%, rgba(0, 0, 0, .06) 7%, rgba(0, 0, 0, .2) 16%, rgba(0, 0, 0, .45) 27%, rgba(0, 0, 0, .75) 39%, #000 52%;
  -webkit-mask-image: linear-gradient(90deg, var(--hero-fade));
  mask-image: linear-gradient(90deg, var(--hero-fade));
}
.hero-inner {
  position: relative; z-index: 2; display: flex; align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 780px);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.hero-text { width: min(100%, 640px); }
.hero h1 { margin: 0 0 1rem; }
.hero-kicker { display: block; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -.005em; color: var(--text); margin-bottom: .3rem; }
/* il titolo segue anche l'altezza dello schermo: sui portatili bassi resta il bottone in vista */
.hero-title { display: block; font-size: clamp(3rem, min(6.2vw, 9.5vh), 5rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.hero-title::after { content: ""; display: block; width: 96px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-strong), #e0b25a); margin: .9rem 0 .85rem; }
.hero-pill {
  display: inline-block; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.005em; color: #fff;
  /* da #9e6a10 a --gold-text: testo bianco sempre sopra 4.5:1, anche quando la pillola è piccola */
  background: linear-gradient(135deg, #9e6a10 0%, var(--gold-text) 100%);
  padding: .32rem 1.15rem .4rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(138, 90, 12, .22);
}
.hero-lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); font-weight: 700; color: var(--ink); margin: 0 0 .45rem; }
/* testo in grassetto e giustificato (richiesta del cliente del 16/11), senza parole spezzate */
.hero-text .hero-desc { font-size: 1.06rem; line-height: 1.65; font-weight: 700; color: #3a352f; text-align: justify; hyphens: manual; -webkit-hyphens: manual; max-width: 37em; margin: 0; }
.hero-points {
  list-style: none; margin: 1rem 0 0; padding: .75rem 1.1rem; display: grid; gap: .6rem; max-width: 37em;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--gold-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-points li { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.04rem; line-height: 1.35; color: var(--ink); }
.hero-point-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.hero-actions .btn-lg { font-size: 1.25rem; padding-inline: 1.6rem; }
.hero-text .hero-note { display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; font-size: .98rem; font-weight: 600; color: var(--muted); }
.hero-note .ico { flex: none; color: var(--gold-text); }
/* schermi grandi: testi un po' più grandi, la colonna non resta piccola accanto alla foto */
@media (min-width: 1600px) {
  .hero-text { width: min(100%, 720px); }
  .hero-points, .hero-text .hero-desc { max-width: 40em; }
  .hero-title { font-size: clamp(3rem, min(6.2vw, 9.5vh), 5.8rem); }
  .hero-lead { font-size: 1.42rem; }
  .hero-text .hero-desc { font-size: 1.16rem; }
  .hero-points li { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-zoom 1.8s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 860px) {
  .hero { background: var(--cream); }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; width: 100%; height: clamp(220px, 58vw, 380px); }
  .hero-media img {
    object-position: 62% 22%;
    -webkit-mask-image: linear-gradient(0deg, var(--hero-fade));
    mask-image: linear-gradient(0deg, var(--hero-fade));
  }
  .hero-inner { min-height: 0; padding: 0 0 2.6rem; margin-top: -1.4rem; }
  .hero-text { display: flex; flex-direction: column; }
  .hero h1 { order: 0; }
  .hero-lead { order: 1; }
  .hero-points { order: 2; margin-top: .9rem; }
  .hero-actions { order: 3; }
  .hero-text .hero-note { order: 4; }
  /* sul telefono il giustificato apre buchi tra le parole: testo allineato a sinistra */
  .hero-text .hero-desc { order: 5; margin-top: 1.3rem; text-align: left; }
}
@media (max-width: 520px) {
  .hero-pill { font-size: 1.15rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-lg { font-size: 1.15rem; padding: .9rem 1rem; }
}

/* ------------------------------------------------------------ Fascia guida */
.guide-band { background: var(--cream); border-block: 1px solid var(--cream-2); }
.guide-band-inner { display: flex; align-items: center; gap: 2rem; padding: 2.2rem 0; }
.guide-band .ico-big { color: var(--gold); flex: none; }
.guide-band-text { border-left: 2px solid var(--gold); padding-left: 2rem; flex: 1; }
.guide-band h2 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: 0 0 .3rem; }
.guide-band p { margin: 0; font-size: 1.1rem; }
@media (max-width: 860px) {
  .guide-band-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .guide-band-text { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------- Servizi (icone) */
.services-row { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 2.5rem; }
.service-cell { text-align: center; padding: .5rem 1.4rem 1rem; border-left: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; transition: background .2s; border-radius: 4px; }
.service-cell:first-child { border-left: 0; }
.service-cell:hover { background: var(--cream); color: var(--ink); }
.service-cell .ico { color: var(--gold); margin-bottom: 1.1rem; }
.service-cell h3 { font-size: 1.28rem; font-weight: 600; margin: 0 0 .9rem; }
.service-cell p { font-size: .95rem; color: var(--muted); margin: 0 0 .8rem; }
.service-cell .service-detail { margin: -.5rem 0 .8rem; font-size: .92rem; line-height: 1.4; }
.price-badge { display: inline-block; background: var(--gold-soft); color: var(--ink); font-weight: 600; font-size: 1.1rem; padding: .35rem 1.2rem; border-radius: 999px; margin-top: auto; }
@media (max-width: 1000px) {
  .services-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .service-cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem; }
  .service-cell:first-child { border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .services-row { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .service-cell { padding: 1rem .6rem 1.1rem; }
  .service-cell .ico { width: 46px; height: 46px; margin-bottom: .6rem; }
  .service-cell h3 { font-size: 1.02rem; margin-bottom: .5rem; }
  .service-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .price-badge { font-size: .95rem; padding: .25rem .9rem; }
}

/* ------------------------------------------------------ Card servizi (pagina) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.card-media { aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h2, .card-body h3 { margin: 0; font-size: 1.3rem; }
.card-body p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-title); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }

/* ------------------------------------------------------------- Chi siamo home */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split-media .badge-years {
  position: absolute; left: -1.2rem; bottom: 1.6rem; background: var(--ink); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius);
  font-family: var(--font-title); text-transform: uppercase; line-height: 1.05; box-shadow: var(--shadow-lg);
}
.badge-years strong { display: block; font-size: 2.6rem; color: #f0c56b; }
.signature { font-family: var(--font-title); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 0 0 .2rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .split-media .badge-years { left: 1rem; } }

/* ---------------------------------------------------------------- Liste check */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }
.check-list li { position: relative; padding-left: 2.1rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a0c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
@media (max-width: 700px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- Punti di forza */
.values-band { background: var(--ink); color: #eee; }
.values-band .section-title { color: #fff; }
.values-band .lead { color: #d9d2c8; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: 2.2rem; }
.value { background: var(--ink); padding: 1.8rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.value .ico { color: #f0c56b; flex: none; }
.value h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .25rem; }
.value p { margin: 0; color: #cfc8bd; font-size: .95rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Citazione */
.quote-block { text-align: center; }
.quote-block .ico { color: var(--gold); margin: 0 auto 1rem; }
.quote-block blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-title); text-transform: uppercase; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; color: var(--ink); }
.quote-block cite { display: block; margin-top: 1rem; font-style: normal; color: var(--muted); }

/* ----------------------------------------------------- Guide e approfondimenti */
.guides { position: relative; background: var(--cream-2); overflow: hidden; }
.guides-media { position: absolute; inset: 0 0 0 auto; width: 52%; }
.guides-media img { width: 100%; height: 100%; object-fit: cover; }
.guides-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream-2) 0%, rgba(244,236,226,0) 45%); }
.guides-inner { position: relative; padding: clamp(3rem, 6vw, 5rem) 0; }
.guides-text { max-width: 470px; }
.guides-text p { font-size: 1.1rem; }
@media (max-width: 860px) {
  .guides-media { position: relative; width: 100%; height: 240px; }
  .guides-media::before { background: linear-gradient(0deg, var(--cream-2) 0%, rgba(244,236,226,0) 40%); }
}

/* ------------------------------------------------------------- Blog: card */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.post-card .post-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-card .post-body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-meta { font-size: .85rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.post-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-card .card-link { font-size: .95rem; }
.post-grid.compact { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .post-grid, .post-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid, .post-grid.compact { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Pagine interne */
.page-hero { background: linear-gradient(90deg, #fff 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.8rem); }
.page-hero-inner.no-media { grid-template-columns: minmax(0, 860px); }
.page-hero h1 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: .005em; margin-bottom: .2rem; }
.page-hero h1::after { content: ""; display: block; width: 100px; height: 4px; border-radius: 2px; background: var(--gold); margin: 1.1rem 0 1.1rem; }
.page-hero .lead { font-size: 1.15rem; max-width: 36em; }
.page-hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero .btn-row { margin-top: 1.3rem; }
@media (max-width: 860px) { .page-hero-inner { grid-template-columns: 1fr; } .page-hero-media { order: -1; } .page-hero-media img { aspect-ratio: 16 / 9; } }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.breadcrumb a { color: var(--muted); }
.breadcrumb li:last-child { min-width: 0; max-width: 100%; }
.breadcrumb li:last-child span { display: inline-block; max-width: 34em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@media (max-width: 700px) {
  /* negli articoli il titolo è subito sotto: niente doppione lungo */
  .article-head .breadcrumb li:last-child { display: none; }
  .breadcrumb li:last-child span { max-width: 70vw; }
}
.breadcrumb a:hover { color: var(--gold-text); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 420px); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
/* a larghezza intera le righe di testo restano leggibili (circa 85 caratteri) */
.content-grid .rich > p, .content-grid .rich > ul, .content-grid .rich > ol, .content-grid .rich > blockquote { max-width: 85ch; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } }
.content-block + .content-block { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.content-block > h2 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.content-block > h2::after { content: ""; display: block; width: 70px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: .7rem; }
.content-block .block-img { margin: 0 0 1.4rem; }
.content-block .block-img img { border-radius: var(--radius); width: 100%; }

/* testo formattato (articoli, sezioni) */
.rich { font-size: 1.05rem; }
.rich h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2rem; }
.rich h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.rich h4 { font-size: 1.08rem; margin-top: 1.3rem; }
.rich > :first-child { margin-top: 0; }
.rich ul { list-style: none; padding-left: 0; }
.rich ul li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; }
.rich ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); }
.rich blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.rich blockquote p { margin: 0; }
.rich strong { color: var(--ink); }
.md-figure { margin: 1.8rem 0; }
.md-figure img { border-radius: var(--radius); margin-inline: auto; }
.md-figure figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .5rem; }

/* riquadro laterale contatti */
.aside-box { position: relative; background: var(--ink); color: #eee; border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.aside-box h2 { color: #fff; font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: 1.5rem; }
.aside-box p { color: #d6cfc4; font-size: .98rem; }
.aside-box .btn { width: 100%; margin-top: .6rem; }
.aside-box .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.aside-box .btn-outline-light:hover { border-color: #fff; color: #fff; }
.aside-box .aside-small { font-size: .85rem; color: #b9b1a5; margin: 1rem 0 0; }
.aside-links { margin-top: 1.4rem; }
.aside-links h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.aside-links ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem .2rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-links a:hover { color: var(--gold-text); }
.aside-links a[aria-current="page"] { color: var(--gold-text); }


/* galleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; margin-top: 1.2rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.88); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; object-fit: contain; }
.lightbox img { max-height: 85vh; width: auto; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }

/* prezzo in evidenza */
.price-box { display: flex; gap: 1.4rem; align-items: center; background: var(--cream); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.price-box .price { font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1; white-space: nowrap; }
.price-box .price small { display: block; font-family: var(--font); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-text); margin-bottom: .35rem; }
.price-box p { margin: 0; }
@media (max-width: 560px) { .price-box { flex-direction: column; align-items: flex-start; } }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--gold); flex: none; transition: transform .2s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.2rem; }
.section-cream .faq-item { border-color: var(--cream-2); }

/* -------------------------------------------------------------- Articolo blog */
.article-head { padding: clamp(1.8rem, 4vw, 3rem) 0 1.5rem; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.article-head .post-meta { font-size: .95rem; margin-bottom: 0; }
.article-cover { margin: 0 0 2rem; }
.article-cover img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.article-body { padding-bottom: 2rem; }
.article-services { margin-top: 2.5rem; }
.article-services h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.article-services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.article-services a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; height: 100%;
  padding: .8rem 1.1rem; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: #fff;
  font-family: var(--font-title); text-transform: uppercase; font-weight: 600; letter-spacing: .03em; font-size: 1.02rem;
  color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s;
}
.article-services a:hover { border-color: var(--gold); background: var(--gold-soft); }
.article-services .srv-det { display: block; font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; color: var(--muted); }
.article-services .ico { flex: none; color: var(--gold-text); }
.article-cta { margin-top: 2.5rem; background: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.8rem; border-left: 4px solid var(--gold); }
.article-cta h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ------------------------------------------------------------------ Contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-grid > *, .content-grid > *, .split > *, .ftr > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); }
a.contact-card:hover { border-color: var(--gold-line); box-shadow: var(--shadow); color: var(--text); }
.contact-card .ico { color: var(--gold); flex: none; margin-top: .15rem; }
.contact-card strong { display: block; color: var(--ink); font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-card > div { min-width: 0; }
.contact-card span { color: var(--muted); font-size: .95rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-card h2 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: 1.7rem; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cfc6ba; border-radius: var(--radius-sm); padding: .8rem .9rem; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(200,137,26,.35); border-color: var(--gold); }
.privacy-field { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.privacy-field input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--gold-strong); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.notice-ok { background: #e8f4ec; color: #1f5a37; }
.notice-err { background: #fbe9e7; color: var(--danger); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.map-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 600; }

/* ----------------------------------------------------------- Thank you page */
.thanks-hero { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 2rem; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.thanks-check { width: 76px; height: 76px; border-radius: 50%; background: #e8f4ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.thanks-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.thanks-hero .lead { max-width: 640px; margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; margin-bottom: .8rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.urgent-box { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--ink); color: #eee; border-radius: var(--radius); padding: 1.8rem 2rem; }
.urgent-box h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.5rem; }
.urgent-box p { margin: 0; color: #d6cfc4; }

/* ------------------------------------------------------------- Pagine legali */
.legal-page h1 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-owner-box { display: grid; gap: .2rem; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.legal-owner-box strong { color: var(--ink); }

/* --------------------------------------------------------- Fascia contatti */
.cta-band { background: var(--gold-soft); border-top: 1px solid var(--gold-line); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; padding: 2rem 0; }
.cta-band-text { display: flex; align-items: center; gap: 1.2rem; }
.cta-band-ico { color: var(--gold-text); flex: none; }
.cta-band h2 { font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0; }
.cta-band p { margin: .2rem 0 0; color: var(--text); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: #141312; color: #cfc8bd; font-size: .95rem; }
.ftr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.8rem; }
.site-footer a { color: #e9e3da; text-decoration: none; }
.site-footer a:hover { color: #f0c56b; }
.brand-light { align-items: flex-start; padding: 0 0 .8rem; color: #fff; }
.brand-light .brand-mark { width: 70px; }
.brand-light .brand-name { color: #fff; font-size: 1.4rem; }
.brand-light .brand-sub { color: #d9d2c8; }
.ftr-brand p { margin: .4rem 0 1rem; }
.ftr-title { color: #fff; font-family: var(--font-title); text-transform: uppercase; font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; margin-bottom: 1rem; }
.ftr-col ul, .ftr-social { list-style: none; padding: 0; margin: 0; }
.ftr-col li { margin-bottom: .55rem; }
.ftr-contacts a { display: flex; gap: .6rem; align-items: flex-start; overflow-wrap: anywhere; }
.ftr-contacts .ico { color: #f0c56b; flex: none; margin-top: .2rem; }
.ftr-social { display: flex; gap: .5rem; }
.ftr-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.ftr-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 5.5rem; font-size: .85rem; }
.ftr-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.legal-links a, .legal-link-btn { color: #cfc8bd; font-size: .85rem; }
.legal-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-link-btn:hover { color: #f0c56b; }
@media (max-width: 960px) { .ftr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- Assistente virtuale */
.oc-chat { position: fixed; right: max(1.2rem, env(safe-area-inset-right)); bottom: calc(max(1.2rem, env(safe-area-inset-bottom)) + var(--oc-lift, 0px)); z-index: 90; font-size: 1rem; transition: bottom .2s; }
.oc-chat-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: var(--gold-strong); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--gold), 0 10px 26px rgba(0,0,0,.25); transition: transform .2s;
}
.oc-chat-fab:hover { transform: scale(1.05); }
.oc-chat-fab::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #23a25f; border: 2px solid #fff; }
.oc-chat[data-state="open"] .oc-chat-fab { display: none; }

.oc-chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(410px, calc(100vw - 2rem));
  height: min(680px, calc(100vh - 2.5rem - var(--oc-lift, 0px))); height: min(680px, calc(100dvh - 2.5rem - var(--oc-lift, 0px)));
  background: #fff; border-radius: 18px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 70px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden;
}
.oc-chat-panel[hidden] { display: none; }
.oc-chat-head { flex: none; display: flex; align-items: center; gap: .7rem; padding: .8rem .6rem .8rem 1rem; background: var(--ink); color: #fff; }
.oc-chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.oc-chat-avatar img { width: 31px; height: auto; }
.oc-chat-id { flex: 1; min-width: 0; }
.oc-chat-head h2 { color: #fff; font-family: var(--font); font-weight: 700; font-size: 1.06rem; line-height: 1.2; margin: 0; }
.oc-chat-head p { margin: .2rem 0 0; font-size: .82rem; color: #ddd6cc; display: flex; align-items: center; gap: .4rem; }
.oc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf73; flex: none; }
.oc-chat-iconbtn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.oc-chat-iconbtn:hover { background: rgba(255,255,255,.14); }

.oc-chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem .9rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; background: #f5f0e9; }
.oc-msg { max-width: 88%; padding: .75rem .95rem; border-radius: 16px; font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.oc-msg p { margin: 0 0 .55em; }
.oc-msg p:last-child { margin-bottom: 0; }
.oc-msg ul { margin: .35em 0 .55em; padding-left: 1.15em; }
.oc-msg li { margin-bottom: .25em; }
.oc-msg strong { font-weight: 700; }
.oc-msg-bot { align-self: flex-start; background: #fff; color: #1f1f1f; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(40,28,10,.08); }
.oc-msg-bot a { color: var(--gold-text); font-weight: 600; }
.oc-msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.oc-msg-note { align-self: stretch; max-width: none; display: flex; gap: .55rem; align-items: flex-start; background: #ebe2d4; color: #3f3a34; font-size: .86rem; line-height: 1.45; border-radius: 12px; padding: .65rem .8rem; }
.oc-msg-note .ico { flex: none; color: var(--gold-text); margin-top: .1rem; }
.oc-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.oc-actions a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .45rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.oc-actions .oc-act-link { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-line); }
.oc-actions .oc-act-link:hover { background: var(--gold-line); color: var(--ink); }
.oc-actions .oc-act-tel { background: var(--ink); color: #fff; }
.oc-actions .oc-act-tel:hover { background: #333; color: #fff; }
.oc-actions .oc-act-wa { background: var(--wa); color: #fff; }
.oc-actions .oc-act-wa:hover { background: #0d6e3a; color: #fff; }

.oc-menu { align-self: stretch; background: #fff; border-radius: 16px; padding: .85rem; box-shadow: 0 1px 3px rgba(40,28,10,.08); }
.oc-menu h3 { font-family: var(--font); font-size: .9rem; font-weight: 700; color: var(--ink); margin: .1rem .15rem .6rem; }
.oc-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .6rem; min-height: 48px; text-align: left; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--ink); background: #faf7f2; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; cursor: pointer; }
.oc-menu button + button { margin-top: .45rem; }
.oc-menu button:hover, .oc-menu button:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.oc-menu button .ico { flex: none; color: var(--gold-text); }

.oc-typing { display: inline-flex; gap: 5px; padding: .2rem 0; }
.oc-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: ocDot 1s infinite ease-in-out; }
.oc-typing span:nth-child(2) { animation-delay: .15s; }
.oc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ocDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.oc-chat-bar { flex: none; padding: .55rem .8rem 0; background: #fff; border-top: 1px solid var(--line); }
.oc-chat-bar[hidden] { display: none; }
.oc-chat-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--gold-text); background: #fff; border: 1px solid var(--gold-line); border-radius: 999px; padding: .3rem .85rem; cursor: pointer; }
.oc-chat-more:hover { background: var(--gold-soft); }
.oc-chat-form { flex: none; display: flex; gap: .55rem; align-items: flex-end; padding: .6rem .8rem .45rem; background: #fff; }
.oc-chat-bar[hidden] + .oc-chat-form { border-top: 1px solid var(--line); }
.oc-chat-form textarea { flex: 1; min-height: 48px; max-height: 130px; resize: none; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background: #fff; border: 1.5px solid #cbbfb0; border-radius: 14px; padding: .72rem .9rem; }
.oc-chat-form textarea::placeholder { color: #7a736b; }
.oc-chat-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,137,26,.22); }
.oc-chat-send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-strong); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.oc-chat-send:hover { background: var(--gold-text); }
.oc-chat-send:disabled { background: #d9d0c4; cursor: default; }
.oc-chat-foot { flex: none; margin: 0; padding: .15rem .9rem .75rem; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: .3rem .8rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.oc-chat-foot a { display: inline-flex; align-items: center; gap: .3rem; color: var(--gold-text); font-weight: 700; text-decoration: none; min-height: 32px; }

@media (max-width: 560px) {
  .oc-chat { right: .8rem; bottom: calc(.8rem + var(--oc-lift, 0px)); }
  .oc-chat-fab { width: 58px; height: 58px; }
  .oc-chat[data-state="open"] { inset: 0; right: 0; bottom: 0; z-index: 99995; }
  .oc-chat-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .oc-chat-head { padding-top: max(.8rem, env(safe-area-inset-top)); }
  .oc-chat-foot { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .oc-msg { max-width: 92%; font-size: 1rem; }
}

/* ------------------------------------------------ Telefono: aree di tocco e leggibilità */
@media (max-width: 700px) {
  .ftr-col li { margin: 0; }
  .ftr-col a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem 0; }
  .ftr-contacts a { align-items: center; }
  .ftr-contacts .ico { margin-top: 0; }
  .legal-links { gap: 0 1.1rem; }
  .legal-links a, .legal-link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb a { display: inline-block; padding: .55rem 0; }
  .breadcrumb ol { margin-bottom: .6rem; }
  .card-link, .post-card .card-link { min-height: 44px; display: inline-flex; align-items: center; }
  .section { padding: 3rem 0; }
  .page-hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); overflow-wrap: anywhere; hyphens: auto; }
  .article-head h1 { font-size: clamp(1.65rem, 7.2vw, 2.2rem); }
  .rich { font-size: 1.02rem; }
  .hero-title { font-size: clamp(2.6rem, 13.5vw, 3.4rem); }
  .services-row { margin-top: 1.6rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .price-box .price { font-size: 2.2rem; }
  .aside-box { padding: 1.5rem 1.25rem; }
  .form-card { padding: 1.25rem; }
}
/* iOS ingrandisce la pagina se un campo ha il testo sotto i 16 px: mai sotto 1rem */
@media (max-width: 980px) {
  input, select, textarea, .oc-chat-form textarea { font-size: max(1rem, 16px) !important; }
}

/* ------------------------------------------------------------- Varie */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.section-head.center .lead { max-width: 720px; margin-inline: auto; }
.two-col-text { columns: 2 320px; column-gap: 3rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; }
.error-page { text-align: center; }
