/* ==========================================================================
   Centro Servizi del Funerale — “La cura di esserci.”
   Foglio di stile unico. Nessun framework, nessuna compilazione.
   ========================================================================== */

/* ---------- Font (self-hosted, licenza OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --ivory: #F7F4ED;
  --paper: #FCFAF6;          /* bianco caldo */
  --sage-50: #EDF5F9;        /* salvia chiarissimo */
  --sage-100: #D9EAF2;
  --sage: #A9CFE2;
  --sage-600: #2C6584;
  --green: #03405F;
  --green-800: #023350;
  --green-900: #082C42;
  --brand: #0A8CC0;          /* azzurro del logo: accenti e grafica */
  --peach: #E9C5B3;
  --peach-50: #F7E9E0;
  --peach-600: #B86F4D;
  --text: #1F3341;
  --muted: #4A5C68;
  --line: rgba(3, 64, 95, .16);
  --line-strong: rgba(3, 64, 95, .32);
  --focus: #A3502B;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 14px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-soft: 0 1px 2px rgba(8, 44, 66, .05), 0 12px 32px -12px rgba(8, 44, 66, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, dl, address, figure, blockquote { margin: 0; }
address { font-style: normal; }
ul[role="list"], .plain-list { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--green);
  font-optical-sizing: auto;
  text-wrap-style: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; }
h4 { font-size: 1.2rem; }
p { text-wrap-style: pretty; }
strong { font-weight: 650; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s, text-decoration-thickness .2s; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark { --focus: #F5CDB8; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: var(--ivory); padding: .8rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Elementi tipografici ricorrenti ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1.5px; background: var(--brand); }
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: var(--peach); }

.lead { font-size: clamp(1.18rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--text); max-width: 38em; }
.muted { color: var(--muted); }
.serif-italic { font-family: var(--serif); font-style: italic; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.1rem; color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- Pulsanti ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--green); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .8rem 1.45rem;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1.02rem/1.2 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { border-color: var(--green); box-shadow: 0 8px 22px -12px rgba(8, 44, 66, .45); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon--arrow, .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--green); --btn-fg: var(--ivory); --btn-bd: var(--green); }
.btn--primary:hover { --btn-bg: var(--green-800); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--green); --btn-bd: var(--ivory); }
.btn--light:hover { --btn-bg: #fff; border-color: #fff; }
.btn--outline-light { --btn-fg: var(--ivory); --btn-bd: rgba(247, 244, 237, .45); }
.btn--outline-light:hover { border-color: var(--ivory); background: rgba(247, 244, 237, .08); }
.btn--lg { min-height: 3.6rem; padding: .95rem 1.8rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }

/* collegamento con freccia */
.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; color: var(--green); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--ivory); }

/* ---------- Topbar ---------- */
.topbar { background: var(--green); color: var(--ivory); font-size: .9rem; --focus: #F5CDB8; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.5rem; padding-block: .35rem; white-space: nowrap; }
.topbar__note { display: flex; align-items: center; gap: .55rem; }
.topbar__note .icon { width: 1.05rem; height: 1.05rem; color: var(--peach); }
.topbar__direct { display: flex; gap: 1.4rem; opacity: .9; }
.topbar__direct a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.topbar__direct a:hover { text-decoration: underline; }
@media (max-width: 900px) { .topbar__direct { display: none; } .topbar__inner { justify-content: center; font-size: .86rem; } }
@media (max-width: 520px) { .topbar__long { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 244, 237, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(8, 44, 66, .5); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--green); flex: 0 1 auto; min-width: 0; }
.logo__img { height: 46px; width: auto; max-width: 100%; }
.logo__mark { width: 44px; height: 44px; color: var(--green); }
.logo__mark .art { width: 100%; height: 100%; }
.logo__type { display: flex; flex-direction: column; line-height: 1; margin-left: .8rem; }
.logo__small { font: 650 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sage-600); margin-bottom: .32rem; }
.logo__big { font: italic 400 1.6rem/1 var(--serif); }

/* Voci principali: ogni voce occupa l'intera altezza dell'header (nessun vuoto tra voce e pannello) */
.site-nav { margin-left: auto; margin-right: .4rem; display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.nav-list > li { display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .75rem; color: var(--text); text-decoration: none; font-weight: 560; font-size: 1.02rem; white-space: nowrap;
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-link:hover, .has-sub.is-open > .nav-link { background: var(--sage-50); color: var(--green); }
.nav-link[aria-current="page"], .has-sub.is-active > .nav-link { color: var(--green); }
.nav-link[aria-current="page"]::after, .has-sub.is-active > .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -.15rem; width: .38rem; height: .38rem; margin-left: -.19rem;
  border-radius: 50%; background: var(--brand);
}
.nav-chevron { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.has-sub.is-open .nav-chevron { transform: rotate(180deg); }

/* Pulsante di chiamata nell'header */
.header-call { flex: none; min-height: 3rem; padding: .7rem 1.35rem; gap: .55rem; }
.header-call__num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Pannello "Servizi" a tutta larghezza */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(8, 44, 66, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; }
.has-sub.is-open .mega, html:not(.js) .has-sub:hover .mega, html:not(.js) .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 1.2rem; padding-block: 1.8rem 2rem; }
.mega__list { display: contents; list-style: none; margin: 0; padding: 0; }
.mega__item a {
  display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: .5rem; height: 100%; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); border: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.mega__item a:hover, .mega__item a[aria-current="page"] { background: var(--sage-50); border-color: var(--line); }
.mega__icon { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--brand); color: var(--green); margin-bottom: .4rem; }
.mega__icon .icon { width: 1.5rem; height: 1.5rem; }
.mega__title { font: 400 1.35rem/1.2 var(--serif); color: var(--green); }
.mega__desc { font-size: .98rem; color: var(--muted); }
.mega__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--green); font-size: .95rem; margin-top: .3rem; }
.mega__more .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.mega__item a:hover .mega__more .icon { transform: translateX(4px); }
.mega__aside { background: var(--green); color: var(--ivory); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; display: grid; align-content: start; gap: .45rem; --focus: #F5CDB8; }
.mega__aside p { font-size: .95rem; opacity: .9; }
.mega__aside .mega__label { font: 700 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); opacity: 1; }
.mega__aside .mega__phone { font: 400 2rem/1.1 var(--serif); color: var(--ivory); text-decoration: none; }
.mega__aside .mega__phone:hover { color: var(--peach); }
.mega__aside .link-arrow { color: var(--ivory); margin-top: .5rem; font-size: .98rem; }

.nav-toggle, .nav-panel-extra { display: none; }
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1360px) {
  .site-header__inner { gap: 1.2rem; }
  .nav-link { padding-inline: .6rem; font-size: 1rem; }
  .header-call__label { display: none; }
}

/* ---------- Navigazione su tablet e smartphone ---------- */
@media (max-width: 1179px) {
  :root { --header-h: 72px; }
  .site-header__inner { align-items: center; gap: .8rem; }
  .logo__img { height: 40px; }
  .header-call { margin-left: auto; }
  .mega::before { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    min-height: 2.9rem; padding: .5rem 1rem; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: transparent; color: var(--green);
    font: 600 .98rem/1 var(--sans); cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--green); color: var(--ivory); border-color: var(--green); }
  html:not(.js) .nav-toggle { display: none; }

  .site-nav { margin-left: 0; }
  .js .site-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 40;
    display: block; background: var(--ivory); overflow-y: auto;
    padding: 1.2rem max(16px, var(--gutter)) 7rem;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 4; width: 100%; padding-bottom: 1rem; display: block; }

  .nav-list { flex-direction: column; gap: 0; max-width: 40rem; margin-inline: auto; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1.05rem .2rem; border-radius: 0; font: 400 1.6rem/1.2 var(--serif); color: var(--green); }
  .nav-link:hover, .has-sub.is-open > .nav-link { background: transparent; }
  .nav-link[aria-current="page"]::after, .has-sub.is-active > .nav-link::after { left: auto; right: .3rem; bottom: auto; top: 50%; margin: -.19rem 0 0; }
  .has-sub.is-active > .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { font-style: italic; }

  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; display: none; }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; }
.has-sub.is-open .mega, html:not(.js) .mega { display: block; }
  .mega__inner { display: block; padding: 0 0 1rem; width: auto; max-width: none; }
  .mega__list { display: grid; gap: .3rem; }
  .mega__item a { grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto; align-items: center; gap: .1rem 1rem; padding: .8rem .6rem; }
  .mega__icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; margin: 0; }
  .mega__title { font-size: 1.2rem; }
  .mega__desc { font-size: .92rem; }
  .mega__more, .mega__aside { display: none; }

  .nav-panel-extra { display: grid; gap: .9rem; max-width: 40rem; margin: 2rem auto 0; }
  .nav-panel-call { display: grid; gap: .3rem; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
  .nav-panel-call small { font: 700 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
  .nav-panel-call a { color: var(--ivory); }
  .nav-panel-call .nav-panel-phone { font: 400 2.2rem/1.1 var(--serif); text-decoration: none; }
  .nav-panel-call p { font-size: 1rem; opacity: .92; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .header-call { display: none; }      /* su smartphone la chiamata è nella barra inferiore */
  .nav-toggle { margin-left: auto; }
  .logo__img { height: auto; width: min(100%, 230px); }
}
@media (max-width: 400px) {
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: .5rem .8rem; }
}

/* ---------- Sezioni e passaggi ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage-50); }
.section--green { background: var(--green); color: var(--ivory); }
.section--green h2, .section--green h3 { color: var(--ivory); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Curva di passaggio: profilo di colline */
.curve { display: block; width: 100%; height: clamp(36px, 5vw, 72px); margin-top: -1px; }
.curve--top { margin-bottom: -1px; margin-top: 0; }
.curve path { fill: var(--to, var(--ivory)); }
.bg-ivory { background: var(--ivory); }
.bg-paper { background: var(--paper); }
.bg-sage { background: var(--sage-50); }
.bg-green { background: var(--green); }

/* Linea botanica di continuità */
.vine { position: absolute; pointer-events: none; color: var(--sage); }
.vine path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* ---------- Media (foto / illustrazioni di riserva) ---------- */
.media { position: relative; overflow: hidden; background: var(--sage-50); }
.media img, .media .art { width: 100%; height: 100%; object-fit: cover; }
.media--art .art { position: absolute; inset: 0; }
.media__note {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: 22rem;
  background: rgba(252, 250, 246, .92); color: var(--text); border-radius: 8px;
  padding: .65rem .85rem; font-size: .84rem; line-height: 1.4; box-shadow: var(--shadow-soft);
}
.media__note span { display: block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: #9A5A3A; margin-bottom: .15rem; }
.media--arch { border-radius: var(--arch); }
.media--soft { border-radius: var(--radius-lg); }

/* =========================================================================
   HOME
   ========================================================================= */

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__overline { font: 650 .84rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-600); display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.hero__overline::before { content: ""; width: 2.4rem; height: 1.5px; background: var(--brand); }
.hero__motto {
  font-family: var(--serif); font-weight: 350; color: var(--green);
  font-size: clamp(3.1rem, 8.2vw, 6.6rem); line-height: .98; letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.hero__motto em { display: block; font-style: italic; font-weight: 300; padding-left: .9em; color: var(--green-800); }
.hero__motto em::after { content: ""; display: inline-block; width: .18em; height: .18em; border-radius: 50%; background: var(--peach); margin-left: .06em; vertical-align: .05em; }
.hero h1 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  letter-spacing: 0; line-height: 1.4; color: var(--text); margin-bottom: 1.25rem;
  padding-left: 1rem; border-left: 2px solid var(--peach);
}
.hero__text { max-width: 35em; color: var(--text); }
.hero__text p + p { margin-top: .9rem; }
.hero .btn-row { margin-top: 2rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; color: var(--muted); font-size: 1rem; }
.hero__facts li { display: flex; align-items: center; gap: .55rem; }
.hero__facts li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; border: 1.5px solid var(--sage-600); }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero__visual .media__note { left: auto; right: 1.2rem; max-width: 15rem; }
.hero__visual .media { aspect-ratio: 600 / 760; border-radius: var(--arch); box-shadow: 0 40px 80px -50px rgba(8, 44, 66, .55); }
.hero__seal {
  position: absolute; left: -2.6rem; bottom: 12%; width: 9.5rem; height: 9.5rem;
  border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-soft); color: var(--green);
  display: grid; place-items: center;
}
.hero__seal svg { width: 100%; height: 100%; }
.hero__seal text { font: 600 9.6px var(--sans); letter-spacing: .26em; text-transform: uppercase; fill: var(--green); }
.hero__seal .seal-leaf { fill: none; stroke: var(--green); stroke-width: 1.3; stroke-linecap: round; }
.hero__thread { position: absolute; z-index: 1; pointer-events: none; left: 40%; top: -2%; width: 70%; height: auto; color: var(--brand); opacity: .45; }
.hero__thread path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 420px; order: -1; margin-bottom: .5rem; }
  .hero__visual .media { aspect-ratio: 5 / 4; border-radius: 220px 220px var(--radius) var(--radius); }
  .hero__seal { width: 7rem; height: 7rem; left: -.5rem; bottom: -1.5rem; }
  .hero__visual .media__note { max-width: 52%; right: .8rem; bottom: .8rem; font-size: .78rem; }
  .hero__motto em { padding-left: .5em; }
  .hero__thread { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 1.5rem; }
  .hero__visual .media { aspect-ratio: 4 / 3; }
  .hero .btn { width: 100%; }
}

/* ---------- Due percorsi ---------- */
.paths { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.path { padding: clamp(2rem, 4.5vw, 3.6rem); position: relative; }
.path h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .8rem; }
.path p { max-width: 30em; }
.path--help { background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
.path--help h3 { color: var(--ivory); }
.path--help .eyebrow { color: var(--peach); }
.path__phone { display: inline-block; margin: 1.5rem 0 .4rem; font: 400 clamp(2.3rem, 4.6vw, 3.4rem)/1 var(--serif); color: var(--ivory); text-decoration: none; letter-spacing: -.01em; }
.path__phone:hover { color: var(--peach); }
.path__sub { font-size: .98rem; opacity: .85; }
.path__people { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(247, 244, 237, .2); font-size: 1rem; }
.path__people a { color: var(--ivory); font-weight: 650; }
.path--search { background: var(--paper); }
.path--search::after {
  content: ""; position: absolute; right: -3rem; bottom: -3rem; width: 12rem; height: 12rem; border-radius: 50%;
  background: radial-gradient(circle, var(--peach-50), transparent 70%); pointer-events: none;
}
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* Ricerca */
.search { display: flex; gap: .5rem; margin-top: 1.6rem; position: relative; z-index: 1; }
.search__field { flex: 1; position: relative; }
.search__field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--sage-600); }
.search input {
  width: 100%; min-height: 3.25rem; padding: .7rem 1rem .7rem 3rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--text);
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(169, 207, 226, .55); }
@media (max-width: 520px) { .search { flex-direction: column; } .search .btn { width: 100%; } }

/* ---------- Servizi: elenco editoriale ---------- */
.services { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.services__intro .media { aspect-ratio: 4 / 3; margin-top: 2.2rem; border-radius: 180px 180px var(--radius) var(--radius); }
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.service-item { counter-increment: s; display: grid; grid-template-columns: 4.2rem 1fr; gap: .4rem 1.4rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.service-item::before { content: counter(s, decimal-leading-zero); font: italic 300 2.4rem/1 var(--serif); color: var(--sage-600); grid-row: span 3; padding-top: .15rem; }
.service-item h3 { margin-bottom: .2rem; }
.service-item p { color: var(--muted); max-width: 34em; }
.service-item .link-arrow { margin-top: .6rem; justify-self: start; }
@media (max-width: 899px) {
  .services { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .services__intro .media { display: none; }
  .service-item { grid-template-columns: 3rem 1fr; }
  .service-item::before { font-size: 1.8rem; }
}

/* ---------- Persone: taglio editoriale ---------- */
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.people__portrait { grid-column: 1 / span 5; position: relative; }
.people__portrait .media { aspect-ratio: 5 / 6; border-radius: var(--radius); }
.people__portrait::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--sage); border-radius: var(--radius); z-index: -1; }
.people__caption { margin-top: 1rem; font-size: .92rem; color: var(--muted); padding-left: 1.4rem; }
.people__text { grid-column: 7 / span 6; }
.people__statement { font: 350 clamp(1.7rem, 3.2vw, 2.5rem)/1.22 var(--serif); color: var(--green); letter-spacing: -.01em; margin: 1rem 0 1.6rem; }
.people__statement em { font-style: italic; color: var(--sage-600); }
.people__text > p + p { margin-top: 1rem; }
.people__cards { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.person { padding: 1.4rem 1.2rem 0 0; }
.person + .person { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.person__name { font: italic 400 1.6rem/1.15 var(--serif); color: var(--green); }
.person__role { font-size: .95rem; color: var(--muted); margin: .25rem 0 .6rem; }
.person a { font-weight: 650; display: inline-flex; align-items: center; gap: .45rem; }
.person a .icon { width: 1.05em; height: 1.05em; }
.people__signature { font: italic 300 2.2rem/1 var(--serif); color: var(--sage-600); margin-top: 2rem; }
@media (max-width: 899px) {
  .people__portrait, .people__text { grid-column: 1 / -1; }
  .people__portrait { max-width: 30rem; margin-right: 1.4rem; }
}
@media (max-width: 480px) {
  .people__cards { grid-template-columns: 1fr; }
  .person + .person { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.2rem; }
}

/* ---------- Passi ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: 10%;
  border-top: 1.5px dashed var(--brand); opacity: .55; z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__n {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--brand); color: var(--green);
  font: italic 400 1.35rem/1 var(--serif); margin-bottom: 1.5rem;
}
.step:last-child .step__n { background: var(--green); color: var(--ivory); border-color: var(--green); }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 1.6rem; bottom: 1.6rem; left: 1.6rem; right: auto; border-top: 0; border-left: 1.5px dashed var(--sage); }
  .step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1.3rem; padding-bottom: 2rem; }
  .step__n { grid-row: span 2; margin: 0; }
}

/* ---------- Necrologi (anteprima e archivio) ---------- */
.notices-preview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.notice-mini { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.notice-mini:first-child { border-top: 1px solid var(--line); }
.notice-mini__leaf { width: 3rem; height: 3rem; border-radius: 50%; background: var(--sage-50); display: grid; place-items: center; color: var(--sage-600); }
.notice-mini h3 { font-size: 1.45rem; }
.notice-mini p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .notices-preview { grid-template-columns: 1fr; } }

.empty-state {
  position: relative; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); text-align: center; overflow: hidden;
}
.empty-state__mark { width: 4.2rem; height: 4.2rem; margin: 0 auto 1.2rem; color: var(--sage-600); }
.empty-state h3 { margin-bottom: .6rem; }
.empty-state p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.empty-state .btn-row { justify-content: center; margin-top: 1.5rem; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .65rem; border-radius: 999px; background: var(--peach-50); color: #8A4A2C; border: 1px solid #E8C4B0;
}

/* ---------- Territorio ---------- */
.territory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.territory__map { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); }
.art--map { width: 100%; height: auto; }
.map__contour path { stroke: var(--sage-100); stroke-width: 1.2; }
.map__lines path { stroke: var(--sage); stroke-width: 1.4; stroke-dasharray: 3 6; stroke-linecap: round; }
.map__dot { fill: var(--paper); stroke: var(--green); stroke-width: 2; }
.map__place.is-main .map__dot { fill: var(--green); }
.map__halo { fill: var(--peach); opacity: .45; }
.map__place text { font: 600 18px var(--sans); fill: var(--text); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.map__place.is-main text { font: italic 500 23px var(--serif); fill: var(--green); }
.map__compass path { fill: var(--sage-600); }
.map__compass text { font: 600 11px var(--sans); fill: var(--sage-600); }
.map-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: right; }

.office-main { padding: 1.8rem 0 1.6rem; border-top: 2px solid var(--green); }
.office-main__label { font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600); }
.office-main__town { font: 400 clamp(2rem, 3.6vw, 2.8rem)/1.05 var(--serif); color: var(--green); margin: .5rem 0 .4rem; }
.offices { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.offices li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.offices li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.offices strong { display: block; font: 400 1.25rem/1.2 var(--serif); color: var(--green); }
.offices span { color: var(--muted); font-size: 1rem; }
.availability { display: grid; gap: .8rem; margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--sage-50); border-radius: var(--radius-lg); font-size: 1rem; }
.availability p { display: flex; gap: .7rem; align-items: flex-start; }
.availability .icon { color: var(--sage-600); margin-top: .15rem; }
@media (max-width: 899px) { .territory { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .offices { grid-template-columns: 1fr; } .offices li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 899px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem .2rem; font: 400 clamp(1.2rem, 1.8vw, 1.38rem)/1.35 var(--serif); color: var(--green);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.faq__icon { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: transform .3s var(--ease), background-color .3s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--sage-50); }
.faq__body { padding: 0 .2rem 1.6rem; max-width: 42em; color: var(--text); }
.faq__body p + p { margin-top: .8rem; }

/* ---------- CTA finale ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; }
.cta-final__inner { position: relative; z-index: 1; max-width: 50rem; margin-inline: auto; }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 350; }
.cta-final h2 em { font-style: italic; color: var(--peach); }
.cta-final p { margin: 1.1rem auto 0; max-width: 36em; opacity: .9; }
.cta-final__phone { display: inline-flex; align-items: center; gap: .9rem; margin: 2.2rem 0 .5rem; font: 400 clamp(2.4rem, 6vw, 4.4rem)/1 var(--serif); color: var(--ivory); text-decoration: none; }
.cta-final__phone .icon { width: .7em; height: .7em; color: var(--peach); }
.cta-final__phone:hover { color: var(--peach); }
.cta-final__label { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); font-weight: 650; }
.cta-final__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.cta-final__people { margin-top: 1.6rem; font-size: 1rem; opacity: .88; }
.cta-final__people a { color: var(--ivory); font-weight: 650; }
.cta-final__glow { position: absolute; width: 56rem; height: 34rem; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(233, 197, 179, .16), transparent); pointer-events: none; }
.cta-final .vine { color: rgba(169, 207, 226, .35); }

/* =========================================================================
   PAGINE INTERNE
   ========================================================================= */

.page-hero { position: relative; padding-block: clamp(1.6rem, 3vw, 2.4rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero h1 { margin-bottom: 1.3rem; max-width: 16em; }
.page-hero .lead { color: var(--text); }
.page-hero__visual .media { aspect-ratio: 4 / 5; border-radius: var(--arch); max-height: 26rem; margin-left: auto; width: 100%; }
.page-hero__visual--wide .media { aspect-ratio: 4 / 3; border-radius: 200px 200px var(--radius) var(--radius); }
.page-hero .btn-row { margin-top: 1.8rem; }
@media (max-width: 899px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
}

.breadcrumb { margin-bottom: clamp(1.6rem, 4vw, 3rem); font-size: .95rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--sage); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--green); font-weight: 600; }

/* Prosa */
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--sage-600); }

/* Layout con indice laterale */
.toc-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); font-size: .98rem; }
.toc__title { font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600); margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--sage-100); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--green); border-left-color: var(--green); }
@media (max-width: 960px) {
  .toc-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 1.4rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 1.5rem; border: 0; }
  .toc a { padding-left: 0; border: 0; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* Blocchi di servizio dettagliati */
.detail { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 1.4rem; padding: 2.4rem 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail__n { font: italic 300 2rem/1 var(--serif); color: var(--sage-600); padding-top: .25rem; }
.detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .9rem; }
.detail p { max-width: 40em; }
.detail p + p, .detail ul { margin-top: .9rem; }
.detail ul { padding-left: 1.2rem; max-width: 40em; }
.detail li + li { margin-top: .35rem; }
.detail li::marker { color: var(--sage-600); }
.detail--feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; margin-top: 1rem; }
@media (max-width: 560px) { .detail { grid-template-columns: 1fr; } .detail__n { margin-bottom: .6rem; } }

.note {
  display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--sage-50); border-left: 3px solid var(--sage-600); font-size: 1.02rem;
}
.note .icon { color: var(--sage-600); margin-top: .2rem; }

/* Divisione impresa / enti */
.split-roles { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.split-roles > div { padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.split-roles > div:first-child { background: var(--paper); }
.split-roles > div:last-child { background: var(--sage-50); border-left: 1px solid var(--line); }
.split-roles h3 { margin-bottom: 1rem; }
.split-roles ul { padding-left: 1.2rem; }
.split-roles li + li { margin-top: .5rem; }
.split-roles li::marker { color: var(--sage-600); }
@media (max-width: 760px) { .split-roles { grid-template-columns: 1fr; } .split-roles > div:last-child { border-left: 0; border-top: 1px solid var(--line); } }

/* Scale del trasporto */
.scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.scale { padding: 2rem clamp(1rem, 2.5vw, 2rem) 2rem 0; }
.scale + .scale { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.scale__kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; color: var(--sage-600); }
.scale__kicker span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--sage), transparent); }
.scale__ring { width: var(--r, 1rem); height: var(--r, 1rem); border-radius: 50%; border: 1.5px solid var(--green); flex: none; }
.scale h2, .scale h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-bottom: .7rem; }
.scale p { color: var(--muted); }
@media (max-width: 820px) {
  .scales { grid-template-columns: 1fr; }
  .scale, .scale + .scale { padding: 1.8rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Valori */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.value { border-top: 2px solid var(--green); padding-top: 1.4rem; }
.value__word { font: italic 350 clamp(2rem, 3.4vw, 2.6rem)/1 var(--serif); color: var(--green); margin-bottom: .9rem; }
.value p { color: var(--muted); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* Due colonne editoriali */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.duo--top { align-items: start; }
.duo .media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.duo .media--arch { aspect-ratio: 4 / 5; border-radius: var(--arch); }
@media (max-width: 899px) { .duo { grid-template-columns: 1fr; } .duo--reverse-mobile > :first-child { order: 2; } }

.dropcap::first-letter { float: left; font: 400 4.6em/.8 var(--serif); color: var(--green); padding: .08em .12em 0 0; }

/* ---------- In caso di decesso ---------- */
.emergency {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg);
  background: #FFF7F2; border: 2px solid #C9734F; color: var(--text);
}
.emergency__icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #C9734F; color: #fff; display: grid; place-items: center; }
.emergency__icon .icon { width: 1.6rem; height: 1.6rem; }
.emergency p { font-size: clamp(1.1rem, 1.8vw, 1.28rem); font-weight: 550; line-height: 1.5; }
.emergency .btn { --btn-bg: #8E3F1F; --btn-bd: #8E3F1F; --btn-fg: #fff; }
.emergency .btn:hover { --btn-bg: #74321A; }
@media (max-width: 760px) { .emergency { grid-template-columns: 1fr; } .emergency__icon { display: none; } }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); counter-reset: c; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); position: relative; }
.case--urgent { border-color: #D9A58D; background: #FFF9F5; }
.case__label { font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600); margin-bottom: .9rem; }
.case--urgent .case__label { color: #8E3F1F; }
.case h3 { margin-bottom: .8rem; }
.case ol { padding-left: 1.2rem; margin-top: .8rem; }
.case li + li { margin-top: .5rem; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 1.2rem; height: 1.2rem; margin-top: .3rem; border-radius: 50%; border: 1.5px solid var(--sage-600); background: radial-gradient(circle, var(--sage) 35%, transparent 38%); }

.assist-phone { display: grid; gap: .3rem; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
.assist-phone__label { font: 700 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.assist-phone a { color: var(--ivory); }
.assist-phone__number { font: 400 2.4rem/1.1 var(--serif); text-decoration: none; }
.assist-phone__number:hover { color: var(--peach); }
.assist-phone small { opacity: .85; font-size: .95rem; }

/* ---------- Necrologi: archivio ---------- */
.archive-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-strong); }
.archive-bar .search { margin-top: 0; flex: 1 1 26rem; max-width: 40rem; }
.archive-count { color: var(--muted); font-size: 1rem; }
.notices { list-style: none; margin: 0; padding: 0; }
.notice { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.notice__poster { position: relative; }
.notice__poster a { display: block; text-decoration: none; }
.notice__frame { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft); }
.notice__poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
.notice__poster a:hover img { transform: scale(1.03); }
.notice__zoom { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; margin-top: .6rem; font-weight: 600; }
.notice__poster--none { aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--sage-50); display: grid; place-items: center; color: var(--sage-600); }
.notice__poster--none svg { width: 3.4rem; height: 3.4rem; }
.notice__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .4rem; }
.notice__name { font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--serif); color: var(--green); }
.notice__meta { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.notice__ceremony { padding: 1rem 1.2rem; background: var(--sage-50); border-radius: var(--radius-lg); }
.notice__ceremony dt { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-600); margin-bottom: .35rem; }
.notice__ceremony dd { margin: 0; }
.notice__ceremony dd + dt { margin-top: .9rem; }
.notice details { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.notice details > summary { cursor: pointer; padding: .9rem 0; font-weight: 650; color: var(--green); list-style: none; display: inline-flex; gap: .4rem; align-items: center; }
.notice details > summary::-webkit-details-marker { display: none; }
.notice details > summary .icon { transition: transform .3s var(--ease); }
.notice details[open] > summary .icon { transform: rotate(180deg); }
.notice__detail { display: grid; gap: 1.6rem; padding-bottom: .6rem; }
.notice__text { font: italic 350 1.2rem/1.6 var(--serif); color: var(--text); max-width: 40em; }
@media (max-width: 640px) {
  .notice { grid-template-columns: 1fr; }
  .notice__poster, .notice__poster--none { max-width: 11rem; }
}
.no-results { padding: 3rem 0; text-align: center; }
.no-results p { color: var(--muted); }

/* Finestra modale manifesto */
.modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.modal::backdrop { background: rgba(8, 44, 66, .78); backdrop-filter: blur(3px); }
.modal__inner { background: var(--paper); border-radius: var(--radius-lg); padding: 1rem; position: relative; }
.modal img { max-height: calc(92vh - 6rem); width: auto; margin: 0 auto; border-radius: var(--radius); }
.modal__title { font: italic 400 1.2rem/1.3 var(--serif); color: var(--green); padding: .4rem 3.5rem .8rem .4rem; }
.modal__close { position: absolute; top: .6rem; right: .6rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { background: var(--sage-50); }

/* ---------- Moduli ---------- */
.form { display: grid; gap: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 650; font-size: 1rem; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3.2rem; padding: .75rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(169, 207, 226, .6); }
.field.has-error input, .field.has-error textarea { border-color: #A8432A; }
.field__hint { font-size: .92rem; color: var(--muted); }
.field__error { font-size: .95rem; color: #9A3A22; font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: start; font-size: 1rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1.1rem 1.3rem; border-radius: var(--radius-lg); font-size: 1.02rem; display: flex; gap: .8rem; align-items: flex-start; }
.form-status .icon { margin-top: .15rem; }
.form-status--ok { background: #E6F2F8; border: 1px solid #93C3DB; }
.form-status--warn { background: #FFF6EC; border: 1px solid #E2B48F; }
.form-status--error { background: #FCEEEA; border: 1px solid #DA9E8B; }
.form-status strong { display: block; }
.demo-flag { font-size: .92rem; color: #7A4127; background: var(--peach-50); border: 1px dashed #D9A58D; padding: .8rem 1rem; border-radius: 10px; }

.condolence { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.condolence h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.condolence > p { color: var(--muted); font-size: 1rem; margin-bottom: 1.2rem; }

/* ---------- Contatti ---------- */
.contact-hero-cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.contact-card { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--paper); }
.contact-card + .contact-card { border-left: 1px solid var(--line); }
.contact-card--main { background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
.contact-card--main a { color: var(--ivory); }
.contact-card__label { font: 700 .76rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-600); margin-bottom: .8rem; }
.contact-card--main .contact-card__label { color: var(--peach); }
.contact-card__big { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); text-decoration: none; display: inline-block; }
.contact-card__big:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact-card ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
.contact-card li a { font-weight: 650; display: inline-flex; gap: .5rem; align-items: center; }
@media (max-width: 960px) {
  .contact-hero-cards { grid-template-columns: 1fr; }
  .contact-card + .contact-card { border-left: 0; border-top: 1px solid var(--line); }
}

.office-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.office-card { padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: .4rem; align-content: start; transition: border-color .3s, box-shadow .3s; }
.office-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.office-card--main { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--sage-50); }
.office-card h3, .office-card h4 { font-size: 1.6rem; }
.office-card h4 { font: 400 1.5rem/1.15 var(--serif); color: var(--green); }
.office-list--four { grid-template-columns: repeat(4, 1fr); }
.office-list__title { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600); margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.2rem; }
@media (max-width: 1023px) { .office-list--four { grid-template-columns: repeat(2, 1fr); } }
.office-card--main h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.office-card address { color: var(--muted); }
.office-card .link-arrow { margin-top: .6rem; }
@media (max-width: 720px) { .office-list, .office-list--four { grid-template-columns: 1fr; } .office-card--main { grid-template-columns: 1fr; } }

.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-soft); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { color: var(--ivory); position: relative; margin-top: -1px; --focus: #F5CDB8; }
.site-footer__edge { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.site-footer__edge path { fill: var(--green-900); }
.site-footer__body { background: var(--green-900); padding: clamp(2rem, 5vw, 4rem) 0 2rem; margin-top: -1px; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--peach); }
.footer-hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(247, 244, 237, .14); }
.footer-logo { display: inline-block; margin-bottom: 1.4rem; }
.footer-logo img { height: 52px; width: auto; max-width: 100%; }
.footer-hero__motto { font: 300 clamp(2.6rem, 7vw, 5.4rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ivory); }
.footer-hero__motto em { font-style: italic; color: var(--peach); }
.footer-hero__line { width: min(100%, 26rem); height: auto; overflow: visible; }
.footer-hero__line path { fill: none; stroke: var(--sage); stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); }
.footer-title { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-title--sub { margin-top: 1.6rem; }
.footer-phone { display: inline-block; font: 400 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); text-decoration: none; margin-bottom: 1.2rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: 1.02rem; color: rgba(247, 244, 237, .9); }
.footer-list--offices strong { font-weight: 650; color: var(--ivory); margin-right: .25rem; }
.footer-list--links a { text-decoration: none; }
.footer-list--links a:hover { text-decoration: underline; }
.footer-address { font-size: 1.1rem; line-height: 1.5; }
.footer-small { margin-top: 1.2rem; font-size: .95rem; color: rgba(247, 244, 237, .75); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(247, 244, 237, .14); font-size: .92rem; color: rgba(247, 244, 237, .78); }
.footer-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-demo { flex-basis: 100%; color: var(--peach); font-size: .88rem; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--call { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barra mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .site-footer__body { padding-bottom: calc(6.2rem + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(252, 250, 246, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -20px rgba(8, 44, 66, .4);
  }
  .mobile-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3.1rem; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 1rem;
    color: var(--green); border: 1.5px solid var(--line-strong);
  }
  .mobile-bar__btn small { font-weight: 500; opacity: .85; font-size: .82rem; margin-left: .2rem; }
  .mobile-bar__btn--call { background: var(--green); color: var(--ivory); border-color: var(--green); }
  .mobile-bar__btn[aria-current="page"] { background: var(--sage-50); }
}


/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Stampa ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .site-footer__edge, .curve, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; padding: 0; }
  .site-footer__body { background: #fff; color: #000; }
}

/* Raccordo del footer con la sezione che lo precede */
.site-footer__edge { background: var(--ivory); }
main:has(> .cta-final:last-child) + .site-footer .site-footer__edge { background: var(--green); }
main:has(> .section--paper:last-child) + .site-footer .site-footer__edge { background: var(--paper); }
main:has(> .section--sage:last-child) + .site-footer .site-footer__edge { background: var(--sage-50); }
.curve.bg-green + .cta-final, .cta-final { margin-top: 0; }


/* =========================================================================
   HOME · Panorama a tutta larghezza + header trasparente
   ========================================================================= */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay .logo__dark { display: none; }
.site-header--overlay .logo__light, .site-header--overlay .logo__dark { display: contents; }
.site-header--overlay .logo__dark { display: none; }

/* Stato "sopra il panorama": testi chiari */
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) { --focus: #F5CDB8; }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .nav-link { color: var(--ivory); }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .nav-link:hover { background: rgba(247, 244, 237, .14); color: #fff; }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .header-call { --btn-bg: var(--ivory); --btn-fg: var(--green); --btn-bd: var(--ivory); }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .nav-toggle { color: var(--ivory); border-color: rgba(247, 244, 237, .5); }
/* Stato "dopo lo scorrimento" o con menu aperto: header pieno, logo blu */
.site-header--overlay.is-scrolled, .site-header--overlay:has(.is-open) { background: rgba(247, 244, 237, .97); }
.site-header--overlay.is-scrolled .logo__light, .site-header--overlay:has(.is-open) .logo__light { display: none; }
.site-header--overlay.is-scrolled .logo__dark, .site-header--overlay:has(.is-open) .logo__dark { display: contents; }
.site-header--overlay { transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }

.hero-pano {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 100svh, 980px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(8rem, 13vw, 11rem);
  background: #062F48; color: var(--ivory); --focus: #F5CDB8;
}
.hero-pano__bg { position: absolute; inset: 0; z-index: -2; }
.hero-pano__bg img, .hero-pano__bg .art--pano { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-pano__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 38, 58, .72) 0%, rgba(3, 38, 58, .42) 42%, rgba(3, 38, 58, 0) 72%),
    linear-gradient(180deg, rgba(3, 38, 58, .55) 0%, rgba(3, 38, 58, 0) 22%, rgba(3, 38, 58, 0) 55%, rgba(3, 38, 58, .6) 100%);
}
.hero-pano__content { position: relative; width: 100%; }
.hero-pano__overline { display: flex; align-items: center; gap: .9rem; font: 650 .86rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: 1.2rem; }
.hero-pano__overline::before { content: ""; width: 3rem; height: 1.5px; background: var(--peach); }
.hero-pano__motto {
  font-family: var(--serif); font-weight: 300; color: var(--ivory);
  font-size: clamp(3.6rem, 11vw, 10.5rem); line-height: .9; letter-spacing: -.035em;
  text-shadow: 0 2px 40px rgba(3, 38, 58, .35);
}
.hero-pano__motto em { display: block; font-style: italic; color: #FBE3D2; padding-left: .55em; }
.hero-pano__bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; margin-top: clamp(2rem, 4vw, 3.2rem); padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid rgba(247, 244, 237, .28); }
.hero-pano__text h1 { font: 650 clamp(1.1rem, 1.6vw, 1.3rem)/1.4 var(--sans); color: var(--ivory); margin-bottom: .9rem; letter-spacing: 0; }
.hero-pano__text p { color: rgba(247, 244, 237, .92); max-width: 36em; }
.hero-pano__text p + p { margin-top: .7rem; }
.hero-pano__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.hero-pano__facts { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.4rem; font-size: .95rem; color: rgba(247, 244, 237, .85); width: 100%; }
.hero-pano__facts li { display: flex; align-items: center; gap: .5rem; }
.hero-pano__facts li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--peach); }
.hero-pano__seal {
  position: absolute; right: clamp(1rem, 5vw, 5rem); top: calc(var(--header-h) + 2.5rem);
  width: 9.5rem; height: 9.5rem; border-radius: 50%; color: var(--ivory);
  border: 1px solid rgba(247, 244, 237, .35); background: rgba(3, 38, 58, .25); backdrop-filter: blur(4px);
}
.hero-pano__seal svg { width: 100%; height: 100%; }
.hero-pano__seal text { font: 600 9.6px var(--sans); letter-spacing: .26em; text-transform: uppercase; fill: var(--ivory); }
.hero-pano__seal .seal-leaf { fill: none; stroke: var(--ivory); stroke-width: 1.3; stroke-linecap: round; }

/* Alba: il sole sale una sola volta al caricamento */
.js .pano__sun { animation: sunrise 2.4s var(--ease) both; }
.js .pano__glow { animation: glow 2.8s var(--ease) both; }
@keyframes sunrise { from { transform: translateY(70px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes glow { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .pano__sun, .js .pano__glow { animation: none; } }

/* I due percorsi "salgono" sopra il panorama */
.paths-section { margin-top: clamp(-6.5rem, -9vw, -4rem); position: relative; z-index: 2; }
.paths { box-shadow: 0 40px 80px -40px rgba(3, 38, 58, .55); }

@media (max-width: 1023px) {
  .hero-pano__bottom { grid-template-columns: 1fr; }
  .hero-pano__actions, .hero-pano__facts { justify-content: flex-start; }
  .hero-pano__seal { display: none; }
}
@media (max-width: 560px) {
  .hero-pano { min-height: 0; padding-top: calc(var(--header-h) + 5rem); }
  .hero-pano__motto em { padding-left: .3em; }
  .hero-pano__actions .btn { width: 100%; }
  .hero-pano__shade { background: linear-gradient(180deg, rgba(3, 38, 58, .5) 0%, rgba(3, 38, 58, .25) 35%, rgba(3, 38, 58, .75) 100%); }
}
html:not(.js) .site-header--overlay { position: absolute; }
/* Sul panorama il telefono è già nel primo pulsante: quello dell'header compare scorrendo */
.site-header--overlay .header-call { transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s; }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .header-call { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(247, 244, 237, .5); }
.site-header--overlay:not(.is-scrolled):not(:has(.is-open)) .header-call:hover { --btn-bg: rgba(247, 244, 237, .12); border-color: var(--ivory); }

/* Hero: tutto allineato a sinistra, in un'unica colonna */
.hero-pano__bottom { grid-template-columns: minmax(0, 46rem); }
.hero-pano__actions { justify-content: flex-start; align-items: center; margin-top: .6rem; }
.hero-pano__facts { justify-content: flex-start; width: auto; margin: 0; flex-basis: 100%; padding-top: .4rem; }

/* Header: logo e menu ben separati e sulla stessa linea ottica.
   La parte "bassa" della scritta corsiva fa sembrare il logo più in basso:
   lo compensiamo spostandolo leggermente verso l'alto. */
.site-header .logo__img { transform: translateY(-14%); }
.site-nav { margin-left: auto; margin-right: 0; }
.site-header__inner { gap: 2.2rem; }

/* Fotografie reali */
.territory__photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.side-photo { aspect-ratio: 3 / 2; margin-top: 2rem; box-shadow: var(--shadow-soft); }
.side-photo:first-child { margin-top: 0; }
.media--photo img { transition: transform 1.2s var(--ease); }
.media--photo:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .media--photo:hover img { transform: none; } }
.people__portrait .media--photo { aspect-ratio: 5 / 6; }
.page-hero__visual .media--photo img { object-position: center; }

/* Con una fotografia vera la cornice decorativa sfalsata non serve (sembrava storta) */
.people__portrait:has(.media--photo)::before { display: none; }
.people__portrait .media--photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.people__portrait .people__caption { padding-left: 0; }

.map__place text { font: 600 17px var(--sans); }
.map__place.is-main text { font: italic 500 24px var(--serif); }
.map-note { text-align: left; }
@media (max-width: 560px) { .map__place text { font-size: 24px; } .map__place.is-main text { font-size: 30px; } .map__compass text { font-size: 15px; } }

/* =========================================================================
   IN CASO DI DECESSO · percorso guidato, flusso, promemoria
   ========================================================================= */
.hero-assist { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding: .8rem 1.4rem .8rem .8rem; border-radius: 999px; background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
.hero-assist__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 244, 237, .14); }
.hero-assist small { display: block; font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.hero-assist a { color: var(--ivory); font: 400 1.7rem/1.1 var(--serif); text-decoration: none; }
.hero-assist a:hover { color: var(--peach); }

.guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.guide__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.guide__intro h2 { margin-bottom: .8rem; }
.guide__tabs { display: grid; gap: .6rem; margin-top: 1.8rem; }
.guide__tab {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  padding: 1rem 1.2rem; border-radius: var(--radius-lg); border: 1.5px solid var(--line);
  background: var(--paper); color: var(--text); font: 600 1.05rem/1.3 var(--sans); cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.guide__tab .icon { width: 1.3rem; height: 1.3rem; color: var(--brand); flex: none; }
.guide__tab:hover { border-color: var(--line-strong); transform: translateX(3px); }
.guide__tab[aria-selected="true"] { background: var(--green); color: var(--ivory); border-color: var(--green); }
.guide__tab[aria-selected="true"] .icon { color: var(--peach); }
html:not(.js) .guide__tabs { display: none; }

.guide__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-soft); }
.guide__panel + .guide__panel { margin-top: 1.4rem; }
.js .guide__panel + .guide__panel { margin-top: 0; }
.guide__panel[hidden] { display: none; }
.guide__panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 1.6rem; }

.path-steps { list-style: none; margin: 0; padding: 0; counter-reset: ps; }
.path-steps li { counter-increment: ps; position: relative; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem 1.1rem; padding-bottom: 1.6rem; }
.path-steps li::before {
  content: counter(ps); grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--brand); background: var(--ivory);
  font: italic 400 1.15rem/1 var(--serif); color: var(--green); position: relative; z-index: 1;
}
.path-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: 0; border-left: 1.5px dashed var(--sage); }
.path-steps li:last-child { padding-bottom: 0; }
.path-steps li.is-us::before { background: var(--green); color: var(--ivory); border-color: var(--green); }
.path-steps__who { font: 700 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-600); padding-top: .2rem; }
.path-steps li.is-us .path-steps__who { color: var(--green); }
.path-steps p { max-width: 38em; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: 2rem; border-top: 1.5px dashed var(--brand); opacity: .5; }
.flow__item { position: relative; padding-right: clamp(1rem, 2.5vw, 2rem); }
.flow__icon { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--brand); color: var(--green); margin-bottom: 1.3rem; position: relative; }
.flow__icon .icon { width: 1.5rem; height: 1.5rem; }
.flow__item:last-child .flow__icon { background: var(--green); color: var(--ivory); border-color: var(--green); }
.flow__item h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.flow__item p { color: var(--muted); font-size: 1.02rem; }

.memo-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.memo {
  position: relative; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg);
  background: linear-gradient(var(--ivory), var(--ivory)) padding-box; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(3, 38, 58, .45); transform: rotate(-.6deg);
}
.memo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(233, 197, 179, .75); border-radius: 3px; transform: rotate(2deg); }
.memo__label { font: 700 .78rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--peach-600); margin-bottom: .6rem; }
.memo h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.4rem; }
.memo__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.memo__list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .7rem; padding: .85rem 0; border-bottom: 1px dashed var(--line-strong); font-size: 1.08rem; }
.memo__list li::before { content: ""; width: 1.3rem; height: 1.3rem; margin-top: .2rem; border-radius: 4px; border: 1.5px solid var(--green); background: linear-gradient(135deg, transparent 45%, var(--brand) 45%, var(--brand) 55%, transparent 55%) no-repeat center / 60% 60%; }
.memo__foot { margin-top: 1.3rem; color: var(--muted); font-size: 1rem; }
.memo-aside { display: grid; gap: 1.2rem; }
.memo-aside .media { aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.memo-aside p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .memo { transform: none; } }

@media (max-width: 960px) {
  .guide, .memo-layout { grid-template-columns: 1fr; }
  .guide__intro { position: static; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .flow::before { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow__item { display: grid; grid-template-columns: 4rem 1fr; gap: 0 1.1rem; padding: 0; }
  .flow__icon { grid-row: span 2; margin: 0; }
  .hero-assist a { font-size: 1.45rem; }
  .memo { transform: none; }
}
/* Foto di gruppo (orizzontale) nella sezione persone della home */
.people__portrait--wide { grid-column: 1 / span 6; }
.people__portrait--wide .media--photo { aspect-ratio: 4 / 3; }
.people__portrait--wide + .people__text { grid-column: 7 / span 6; padding-left: clamp(0rem, 2vw, 1.5rem); }
@media (max-width: 899px) { .people__portrait--wide, .people__portrait--wide + .people__text { grid-column: 1 / -1; padding-left: 0; } .people__portrait--wide { max-width: none; margin-right: 0; } }

/* =========================================================================
   CREMAZIONE · apertura fotografica, ruoli, fasi, destinazione ceneri
   ========================================================================= */
.banner { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); background: #062F48; --focus: #F5CDB8; min-height: clamp(520px, 72svh, 760px); display: flex; align-items: flex-end; padding-block: 3rem clamp(3.5rem, 7vw, 6rem); }
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg .media { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.banner__bg .media img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg .media--photo:hover img { transform: none; }
.banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 38, 58, .86) 0%, rgba(3, 38, 58, .6) 45%, rgba(3, 38, 58, .1) 80%), linear-gradient(0deg, rgba(3, 38, 58, .55), rgba(3, 38, 58, 0) 50%); }
.banner__content { position: relative; width: 100%; }
.banner .breadcrumb ol, .banner .breadcrumb a, .banner .breadcrumb [aria-current] { color: rgba(247, 244, 237, .85); }
.banner .breadcrumb li + li::before { color: rgba(247, 244, 237, .5); }
.banner__eyebrow { display: flex; align-items: center; gap: .8rem; font: 650 .84rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: 1rem; }
.banner__eyebrow::before { content: ""; width: 2.6rem; height: 1.5px; background: var(--peach); }
.banner h1 { color: var(--ivory); font-weight: 350; font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 14em; line-height: 1.05; }
.banner__lead { margin-top: 1.2rem; max-width: 36em; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: rgba(247, 244, 237, .92); }
.banner .btn-row { margin-top: 2rem; }

.statement { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2rem 4rem; align-items: center; }
.statement__text { font: 350 clamp(1.6rem, 3vw, 2.4rem)/1.3 var(--serif); color: var(--green); letter-spacing: -.01em; }
.statement__text em { font-style: italic; color: var(--brand); }
.statement__chips { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.statement__chips li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.statement__chips .icon { color: var(--brand); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.roles__card { border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.roles__card--us { background: var(--green); color: var(--ivory); --focus: #F5CDB8; }
.roles__card--us h2 { color: var(--ivory); }
.roles__card--them { background: var(--paper); border: 1px solid var(--line); }
.roles__card h2, .roles__card h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 1.2rem; }
.roles__tag { display: inline-flex; align-items: center; gap: .5rem; font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.roles__card--us .roles__tag { color: var(--peach); }
.roles__card--them .roles__tag { color: var(--sage-600); }
.roles__tag .icon { width: 1.1rem; height: 1.1rem; }
.roles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.roles__list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; padding: .7rem 0; border-top: 1px solid rgba(127, 160, 180, .25); }
.roles__list li::before { content: ""; width: .55rem; height: .55rem; margin: .55rem 0 0 .3rem; border-radius: 50%; background: var(--brand); }
.roles__card--us .roles__list li::before { background: var(--peach); }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; counter-reset: st; position: relative; }
.stepper::before { content: ""; position: absolute; top: 1.75rem; left: 1.75rem; right: 8%; border-top: 1.5px dashed var(--brand); opacity: .5; }
.stepper li { position: relative; }
.stepper__n { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--brand); font: italic 400 1.4rem/1 var(--serif); color: var(--green); margin-bottom: 1.2rem; position: relative; }
.stepper li:last-child .stepper__n { background: var(--green); color: var(--ivory); border-color: var(--green); }
.stepper h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.stepper p { color: var(--muted); font-size: 1rem; }

.ashes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ashes__item { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); }
.ashes__icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--sage-50); color: var(--green); margin-bottom: .4rem; }
.ashes__item h3 { font-size: 1.4rem; }
.ashes__item p { color: var(--muted); }
.ashes__badge { margin-top: auto; align-self: flex-start; font: 700 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px; background: var(--peach-50); color: #7A4127 !important; border: 1px solid #E8C4B0; }
.ashes__badge--ok { background: var(--sage-50); color: var(--green) !important; border-color: var(--line); }
.urns-photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }

@media (max-width: 1023px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper::before { top: 1.75rem; bottom: 1.75rem; left: 1.75rem; right: auto; border-top: 0; border-left: 1.5px dashed var(--brand); }
  .stepper li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.2rem; padding-bottom: 1.6rem; }
  .stepper__n { grid-row: span 2; margin: 0; }
}
@media (max-width: 899px) {
  .statement, .roles, .ashes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .banner { min-height: 0; padding-top: 2rem; }
  .banner .btn { width: 100%; }
}

/* Panorama interattivo: i piani si muovono appena con il mouse e lo scorrimento */
.pano__layer { transform-box: view-box; transform-origin: 50% 100%; will-change: transform; }
.hero-pano__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 60%), rgba(255, 233, 216, .16), transparent 70%);
}
.hero-pano.is-pointer .hero-pano__light { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pano__layer { transform: none !important; } .hero-pano__light { display: none; } }
.footer-credit { display: flex; justify-content: flex-end; margin-top: 1.4rem; }
.footer-credit a, .footer-credit > span { display: inline-flex; align-items: center; gap: .6rem; color: rgba(247, 244, 237, .7); text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; transition: color .25s var(--ease), opacity .25s; }
.footer-credit img { height: 22px; width: auto; opacity: .85; transition: opacity .25s; }
.footer-credit a:hover { color: var(--ivory); }
.footer-credit a:hover img { opacity: 1; }
@media (max-width: 560px) { .footer-credit { justify-content: flex-start; } }

/* Leggibilità: nessuna etichetta sotto i 13px (pensato anche per persone anziane) */
.office-main__label, .assist-phone__label, .hero-assist small, .toc__title, .roles__tag, .ashes__badge,
.path-steps__who, .contact-card__label, .case__label, .memo__label, .footer-title, .mega__aside .mega__label,
.nav-panel-call small, .tag, .office-list__title, .header-call__text small, .notice__ceremony dt { font-size: .84rem !important; }
.footer-credit a, .footer-credit > span { font-size: .84rem; }
