/* ==========================================================================
   Onoranze Funebri Dragano — design system (metodo Crybu)
   Direzione: sobria · rassicurante · elegante. Blu notte, avorio, oro sobrio.
   ========================================================================== */

:root {
  --c-bg: #fbfaf7;        --c-surface: #ffffff;
  --c-text: #1b1f26;      --c-muted: #5a6270;        /* 6.3:1 su --c-bg */
  --c-primary: #1f3a5a;   --c-primary-ink: #ffffff;  /* blu notte */
  --c-primary-soft: #eaf0f6;
  --c-accent: #b08a44;    --c-accent-ink: #1b1f26;   /* oro sobrio: decorativo / su scuro */
  --c-accent-dark: #8a6a2e;                           /* oro come testo: 4.6:1 su --c-bg */
  --c-line: #e4e1da;
  --c-error: #a8281c;

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: clamp(.875rem, .85rem + .1vw, .95rem);
  --fs-base: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --radius: .375rem;
  --shadow: 0 1px 2px rgb(27 31 38 / .06), 0 8px 24px rgb(27 31 38 / .08);
  --max: 72rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 var(--fs-base)/1.65 var(--f-body); }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--sp-4); text-wrap: balance; color: var(--c-primary); }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-base); }
p { margin: 0 0 var(--sp-4); max-width: 65ch; text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; } li { margin-bottom: var(--sp-2); }
a { color: var(--c-primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-dark); }
strong { font-weight: 600; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
::selection { background: var(--c-primary); color: #fff; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(var(--sp-7), 8vw, var(--sp-9)); }
.section--soft { background: var(--c-primary-soft); }
.section--tight { padding-block: clamp(var(--sp-6), 5vw, var(--sp-7)); }
.skip-link { position: absolute; left: var(--sp-4); top: -4rem; z-index: 100; background: var(--c-text); color: var(--c-bg); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); }
.skip-link:focus { top: var(--sp-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: block; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin: 0 0 var(--sp-3); }
.eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 2px; background: var(--c-accent); vertical-align: middle; margin-right: var(--sp-3); }
.lead { font-size: var(--fs-lg); color: var(--c-muted); line-height: 1.5; }
.center { text-align: center; } .center p, .center .eyebrow { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.prose p, .prose li { max-width: 65ch; }
.prose h3 { margin-top: var(--sp-6); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }

/* ---- Pulsanti ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: var(--sp-3) var(--sp-5); border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: var(--fs-base); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--c-primary); color: var(--c-primary-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 85%, black); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn-ghost:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.btn-light { border-color: rgb(255 255 255 / .6); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--c-primary); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 85%, black); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line), 0 6px 20px rgb(0 0 0 / .06); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--sp-5); }
.site-nav a { color: var(--c-text); text-decoration: none; font-weight: 600; padding: var(--sp-2) 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--c-primary); }
.site-nav .nav-cta { margin-left: var(--sp-2); }
.site-nav .nav-cta a, .site-nav .nav-cta a:hover { padding: var(--sp-2) var(--sp-4); color: var(--c-primary-ink); }
.site-nav .nav-cta a::after { display: none; }
.nav-toggle { display: none; }
@media (max-width: 63.99rem) {
  .js .nav-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--radius); }
  .js .site-nav { position: absolute; inset: 100% 0 auto; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: var(--sp-4) var(--sp-4) var(--sp-5); display: none; box-shadow: 0 16px 32px rgb(0 0 0 / .08); }
  .js .site-nav.is-open { display: block; animation: nav-in .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--c-line); }
  .site-nav a { display: block; padding: var(--sp-3) 0; font-size: var(--fs-lg); font-family: var(--f-display); font-weight: 600; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: var(--sp-4) 0 0; border: 0; }
  .site-nav .nav-cta a { font-family: var(--f-body); font-size: var(--fs-base); justify-content: center; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- Hero (home): campo al vento ---- */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, #16293f 0%, var(--c-primary) 55%, #2a4a6c 100%); overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(var(--sp-8), 11vw, 7.5rem) clamp(9rem, 26vw, 15rem); max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero .lead { color: rgb(255 255 255 / .86); margin-bottom: var(--sp-6); }
.hero-note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: rgb(255 255 255 / .8); display: flex; align-items: center; gap: var(--sp-2); }
.hero-note svg { width: 1.1em; height: 1.1em; color: #e7d9b8; }
.hero-field { position: absolute; inset: 0; pointer-events: none; }
.hero-light { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 82% 100%, rgb(223 190 120 / .55) 0%, rgb(223 190 120 / .18) 38%, transparent 70%),
  radial-gradient(40% 30% at 15% 110%, rgb(120 160 200 / .18), transparent 70%);
  animation: hero-breathe 9s ease-in-out infinite alternate; }
.hero-grass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(42%, 420px); color: rgb(190 210 232 / 1); }
.blade { opacity: var(--o); transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--t) ease-in-out var(--d) infinite alternate; }
.blade--warm { color: #e7d9b8; }
.seed { position: absolute; left: var(--x); bottom: 16%; width: calc(5px * var(--s, 1)); height: calc(5px * var(--s, 1)); border-radius: 50%; background: #f1e4c3; box-shadow: 0 0 8px 2px rgb(241 228 195 / .5); opacity: 0; animation: drift var(--t) linear var(--d) infinite; }
.hero.is-paused .blade, .hero.is-paused .seed, .hero.is-paused .hero-light { animation-play-state: paused; }
@keyframes sway { from { transform: rotate(calc(var(--a) * -1)) skewX(-1deg); } to { transform: rotate(var(--a)) skewX(1.5deg); } }
@keyframes hero-breathe { from { opacity: .75; } to { opacity: 1; } }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .95; } 35% { transform: translate(18px, -24vh); } 60% { transform: translate(-30px, -44vh); opacity: .7; } 85% { transform: translate(10px, -62vh); opacity: .35; } 100% { transform: translate(-20px, -78vh); opacity: 0; } }
.js .hero-inner > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.js .hero-inner > :nth-child(2) { animation-delay: .1s; } .js .hero-inner > :nth-child(3) { animation-delay: .2s; } .js .hero-inner > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 47.99rem) { .hero-grass { height: 34%; } .hero-inner { padding-bottom: 40vw; } }
@media (prefers-reduced-motion: reduce) { .blade, .hero-light { animation: none; } .seed { display: none; } }

/* ---- Testata pagine interne ---- */
.page-head { background: var(--c-primary-soft); border-bottom: 1px solid var(--c-line); padding-block: clamp(var(--sp-6), 6vw, var(--sp-8)); }
.page-head h1 { margin-bottom: var(--sp-3); }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--sp-4); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--c-accent-dark); }

/* ---- Griglie e card ---- */
.grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-5); transition: transform .2s var(--ease), box-shadow .2s; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color .2s; }
.card-link:hover h3 { text-decoration-color: var(--c-accent); }
.card-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: var(--sp-4); }
.card-icon svg { width: 1.4rem; height: 1.4rem; }
.card .more { display: inline-block; margin-top: var(--sp-2); font-weight: 600; color: var(--c-primary); }
@media (hover: hover) { .card-link:hover, .nec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }

/* ---- Split testo + immagine ---- */
.split { display: grid; gap: var(--sp-6); align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split figure { margin: 0; }
.split figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--sp-2); }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }

/* ---- Fascia a colore pieno ---- */
.band { background: var(--c-primary); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgb(255 255 255 / .86); }
.band a:not(.btn) { color: #e7d9b8; }
.band .eyebrow { color: #e7d9b8; }
.band-inner { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 48rem) { .band-inner { grid-template-columns: 1.4fr 1fr; } .band-inner .btn-row { justify-content: flex-end; } }

/* ---- Elenco "perché" / valori ---- */
.points { list-style: none; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.points li { margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--c-accent); }
.points h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.points p { margin: 0; color: var(--c-muted); }

/* ---- Fasi (ordinate) ---- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps li { counter-increment: step; margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-display); font-size: var(--fs-xl); color: var(--c-accent-dark); line-height: 1; margin-bottom: var(--sp-2); }
.steps h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.steps p { margin: 0; color: var(--c-muted); }

/* ---- Sedi / contatti ---- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.contact-list li { margin: 0; display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-list svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-accent-dark); margin-top: .2em; }
.contact-list a { font-weight: 600; }
.contact-list--big { gap: var(--sp-4); font-size: var(--fs-lg); }
.contact-list--big svg { width: 1.5rem; height: 1.5rem; }
.sede { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-5); }
.sede h3 { margin-bottom: var(--sp-2); }
.sede address { color: var(--c-muted); margin-bottom: var(--sp-4); }

/* ---- Barra rapida mobile ---- */
.quick-bar { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 40; background: var(--c-primary); padding-bottom: env(safe-area-inset-bottom); }
.quick-bar a { color: #fff; text-align: center; padding: var(--sp-4); font-weight: 600; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: var(--sp-2); }
.quick-bar a + a { border-left: 1px solid rgb(255 255 255 / .2); }
.quick-bar svg { width: 1.1em; height: 1.1em; }
body { padding-bottom: 3.5rem; }
@media (min-width: 48rem) { .quick-bar { display: none; } body { padding-bottom: 0; } }

/* ---- FAQ / accordion ---- */
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; padding: var(--sp-4) 0; font-weight: 600; font-family: var(--f-display); font-size: var(--fs-lg); color: var(--c-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--c-accent-dark); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-bottom: var(--sp-5); }
.faq-body h3 { font-size: var(--fs-base); font-family: var(--f-body); margin-top: var(--sp-4); }

/* ---- Galleria + lightbox ---- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); }
.gallery img { aspect-ratio: 3/4; object-fit: contain; width: 100%; background: #fff; transition: transform .3s var(--ease); }
.gallery--wide img { aspect-ratio: 4/3; }
@media (hover: hover) { .gallery a:hover img { transform: scale(1.03); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-height: 85vh; width: auto; max-width: 92vw; border-radius: var(--radius); background: #fff; }
.lightbox-close { position: fixed; top: .75rem; right: .75rem; min-height: 44px; min-width: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--c-text); font-weight: 600; padding: 0 var(--sp-4); cursor: pointer; }

/* ---- Necrologi ---- */
.nec-year { font-size: var(--fs-xl); margin: var(--sp-7) 0 var(--sp-4); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--c-line); }
.nec-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.nec-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.nec-card a { display: block; }
.nec-card img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: #fff; border-bottom: 1px solid var(--c-line); }
.nec-body { padding: var(--sp-4); }
.nec-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.nec-body p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.nec-body details { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.nec-body summary { cursor: pointer; font-weight: 600; color: var(--c-primary); }
.nec-body details p { margin-top: var(--sp-2); color: var(--c-text); }

.nec-single { margin: 0; }
.nec-single img { width: 100%; aspect-ratio: auto; object-fit: contain; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nec-body h3 a { text-decoration: none; } .nec-body h3 a:hover { text-decoration: underline; }

/* ---- Frasi ---- */
.phrases { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--sp-4); counter-reset: fr; }
.phrases li { break-inside: avoid; margin: 0 0 var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-4) 3.25rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); font-family: var(--f-display); font-style: italic; position: relative; counter-increment: fr; }
.phrases li::before { content: counter(fr); position: absolute; left: var(--sp-4); top: var(--sp-4); width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--c-accent); color: var(--c-accent-dark); font: 600 var(--fs-sm) var(--f-body); }
@media (max-width: 47.99rem) { .phrases { columns: 1; } }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tags li { margin: 0; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--c-line); border-radius: 999px; font-size: var(--fs-sm); background: var(--c-surface); }

/* ---- Avviso ---- */
.notice { display: flex; gap: var(--sp-3); align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-block: var(--sp-5); background: var(--c-primary-soft); }
.notice svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-accent-dark); margin-top: .2em; }
.notice p { margin: 0; }

/* ---- Campi (area riservata) ---- */
.form { display: grid; gap: var(--sp-4); max-width: 28rem; }
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; }
.field input { font: inherit; padding: var(--sp-3); min-height: 44px; border: 1.5px solid var(--c-muted); border-radius: .5rem; background: var(--c-surface); color: var(--c-text); width: 100%; }

/* ---- Contenuti esterni al clic ---- */
.embed { display: grid; place-content: center; gap: var(--sp-3); text-align: center; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.embed p { max-width: 36ch; margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

/* ---- Footer ---- */
.site-footer { background: var(--c-primary); color: rgb(255 255 255 / .82); padding-block: var(--sp-8) var(--sp-5); margin-top: var(--sp-7); }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-family: var(--f-body); font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e7d9b8; }
.site-footer .brand img { height: 48px; }
.site-footer p { color: rgb(255 255 255 / .82); }
.footer-note { margin-top: var(--sp-4); font-size: var(--fs-sm); }
.legal { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgb(255 255 255 / .18); font-size: var(--fs-sm); color: rgb(255 255 255 / .7); max-width: none; }

/* ---- Comparsa allo scroll ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- 404 ---- */
.err { text-align: center; padding-block: var(--sp-9); }
.err .code { font-family: var(--f-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--c-accent); line-height: 1; margin-bottom: var(--sp-4); }

/* ---- Tabelle ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table th { font-weight: 600; color: var(--c-primary); }

/* ---- Movimento ridotto ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
