/* =========================================================
   Casa Famiglia per Anziani Santa Maria — Vinovo
   Palette dall'insegna (bordeaux) e dall'edificio (mattone),
   crema caldo e verde salvia del giardino.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colori */
  --bordeaux: #7A1E3A;
  --bordeaux-deep: #561328;
  --bordeaux-night: #3A1420;
  --brick: #A8472E;
  --brick-text: #8A3B25;
  --gold: #C99A4B;
  --gold-soft: #E9C9A0;
  --rose-soft: #D9B9C2;
  --sage: #4F6B4A;
  --sage-soft: #DCE5D5;
  --cream: #FBF6EF;
  --paper: #F4ECE0;
  --linen: #EFE4D4;
  --ink: #2A1F1D;
  --muted: #5E514C;
  --line: #E3D6C5;
  --white: #FFFFFF;
  --error: #B42318;
  --success: #2F6B3A;

  /* tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-scale: 1;

  /* spazi (ritmo arioso, 8pt) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* forme */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(58, 20, 32, .06), 0 2px 8px rgba(58, 20, 32, .05);
  --shadow: 0 10px 30px -12px rgba(58, 20, 32, .22), 0 2px 6px rgba(58, 20, 32, .06);
  --shadow-lg: 0 30px 60px -24px rgba(58, 20, 32, .35);

  /* movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* livelli */
  --z-header: 40;
  --z-actionbar: 45;
  --z-nav: 60;
  --z-banner: 80;
  --z-dialog: 100;

  --header-h: 76px;
}

html[data-text="1"] { --text-scale: 1.125; }
html[data-text="2"] { --text-scale: 1.25; }

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--text-scale));
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-2); }
p, li { text-wrap: pretty; }
strong { font-weight: 800; }

.tnum { font-variant-numeric: tabular-nums; }
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--bordeaux); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 16px; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-lead { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick-text);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow .dot { display: none; }
.eyebrow-light { color: var(--gold-soft); }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .75em 1.4em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--bordeaux); --btn-fg: var(--white); box-shadow: 0 8px 20px -10px rgba(122, 30, 58, .7); }
.btn-primary:hover { --btn-bg: var(--bordeaux-deep); box-shadow: 0 12px 26px -10px rgba(122, 30, 58, .8); }
.btn-outline { --btn-fg: var(--bordeaux); --btn-bd: var(--bordeaux); }
.btn-outline:hover { --btn-bg: var(--bordeaux); --btn-fg: var(--white); }
.btn-light { --btn-bg: var(--cream); --btn-fg: var(--bordeaux-deep); }
.btn-light:hover { --btn-bg: var(--white); }
.btn-ghost { --btn-fg: var(--cream); --btn-bd: rgba(251, 246, 239, .55); }
.btn-ghost:hover { --btn-bg: rgba(251, 246, 239, .12); --btn-bd: var(--cream); }
.btn-ghost-dark { --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost-dark:hover:not([disabled]) { --btn-bd: var(--ink); }
.btn-sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.06rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.hero-grid > *, .casa-grid > *, .diurno-grid > *, .lab-grid > *, .guida-grid > *, .visita-grid > *, .faq-grid > *, .contatti-grid > * { min-width: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 800; text-decoration: none; color: var(--bordeaux);
  min-height: 44px;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.link-btn {
  background: none; border: 0; padding: 0; text-align: left;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: calc(var(--z-header) + 1);
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--brick), var(--bordeaux), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 246, 239, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(58, 20, 32, .45); }
.header-inner { display: flex; align-items: center; gap: var(--space-2); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--bordeaux); color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(233, 201, 160, .35);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--bordeaux); }
.brand-sub { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem;
  white-space: nowrap;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
  background: var(--bordeaux); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current="true"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="true"] { color: var(--bordeaux); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.textsize {
  display: none;
  align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); padding: 3px;
}
.textsize-btn {
  min-width: 36px; min-height: 36px; border: 0; background: none; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; color: var(--muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.textsize-btn[data-size="0"] { font-size: .85rem; }
.textsize-btn[data-size="1"] { font-size: 1.05rem; }
.textsize-btn[data-size="2"] { font-size: 1.25rem; }
.textsize-btn[aria-pressed="true"] { background: var(--bordeaux); color: var(--white); }
.textsize-btn:hover:not([aria-pressed="true"]) { background: var(--paper); color: var(--ink); }

.nav-toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 640px) {
  .textsize { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Menu mobile ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-nav);
  background: rgba(42, 31, 29, .5);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav-panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: var(--cream);
  padding: 88px 24px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.mobile-nav.is-open .mobile-nav-panel { transform: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav ul a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.mobile-nav ul a:hover { color: var(--bordeaux); }
.mobile-nav-close {
  position: absolute; top: 16px; right: 20px;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
}
.mobile-nav-close .icon { width: 24px; height: 24px; }
.mobile-nav-foot { display: grid; gap: 12px; margin-top: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(201, 154, 75, .20), transparent 70%),
    radial-gradient(50% 60% at 5% 90%, rgba(168, 71, 46, .12), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--paper));
}
.hero-bg::after {
  /* texture a mattoni, molto leggera */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image:
    linear-gradient(var(--brick) 1px, transparent 1px),
    linear-gradient(90deg, var(--brick) 1px, transparent 1px);
  background-size: 64px 28px, 64px 56px;
  background-position: 0 0, 32px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: var(--space-6); } }

.hero h1 { margin-bottom: var(--space-3); }
.hero-rotator {
  display: block;
  margin-top: .35em;
  font-size: .5em; font-weight: 500; letter-spacing: 0;
  color: var(--muted);
}
.rotator {
  position: relative; display: inline-grid; vertical-align: bottom;
  font-style: italic; color: var(--bordeaux);
}
.rotator span {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(.45em);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  white-space: nowrap;
}
.rotator span.is-active { opacity: 1; transform: none; }
.rotator span.is-leaving { opacity: 0; transform: translateY(-.45em); transition-duration: 320ms; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em;
  background: var(--gold); opacity: .45; border-radius: 4px;
}

.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36em; }
.lead strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.hero-pills .icon { color: var(--brick); }

.hero-visual { position: relative; min-height: 460px; }
.hero-photo { margin: 0; overflow: hidden; background: var(--linen); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main {
  position: relative;
  width: min(78%, 420px); aspect-ratio: 4 / 5;
  margin-left: auto;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border: 6px solid var(--white);
}
.hero-photo-house {
  position: absolute; left: 0; bottom: -10px;
  width: min(58%, 320px);
  border-radius: var(--radius);
  border: 5px solid var(--white);
  transform: rotate(-3deg);
}
.hero-photo-house img { aspect-ratio: 4 / 3; }
.hero-photo-house figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(251, 246, 239, .94); color: var(--bordeaux-deep);
  font-size: .82rem; font-weight: 800; text-align: center;
}
.hero-badge {
  position: absolute; top: 8%; left: 4%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .92rem; line-height: 1.3; color: var(--muted);
}
.hero-badge strong { color: var(--ink); }
.hero-badge-pulse {
  position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--sage);
}
.hero-badge-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--bordeaux); border: 1px solid var(--line); background: rgba(255, 255, 255, .6);
}
.scroll-cue .icon { animation: nudge 2s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (min-width: 1024px) { .scroll-cue { display: grid; } }

@media (max-width: 1023px) {
  .hero-visual { min-height: 0; padding-bottom: 60px; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 479px) {
  .hero-badge { top: 4%; left: 0; font-size: .85rem; }
  .hero-photo-main { width: 80%; }
  .hero-photo-house { width: 62%; }
}

/* ---------- Trust band ---------- */
.trust { background: var(--bordeaux); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.trust-item {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(233, 201, 160, .2);
}
.trust-item:last-child { border-bottom: 0; }
.trust-item .icon { width: 34px; height: 34px; color: var(--gold-soft); }
.trust-item p { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.trust-item strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.trust-item span { color: var(--rose-soft); font-size: .98rem; }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .trust-item:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; padding: 30px 0; }
  .trust-item + .trust-item { border-left: 1px solid rgba(233, 201, 160, .2); padding-left: 28px; }
}

/* ---------- La casa ---------- */
.casa-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1024px) { .casa-grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-7); } }
.casa-media { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
@media (min-width: 1024px) { .casa-media { position: sticky; top: calc(var(--header-h) + 32px); } }
.arch {
  margin: 0; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.casa-quote {
  position: absolute; right: -8px; bottom: 28px; margin: 0;
  max-width: 250px; padding: 18px 20px;
  background: var(--bordeaux); color: var(--cream);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.casa-quote .icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 6px; }
.casa-quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.25; }

.pillars-title { margin-top: var(--space-5); font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brick-text); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pillar {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--sage-soft); color: var(--sage);
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h4 { margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Servizi ---------- */
.servizi { background: var(--paper); }
.services-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card-feature { grid-row: span 3; }
  .service-card:last-child { grid-column: span 2; }
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; }
.service-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px;
  background: rgba(122, 30, 58, .08); color: var(--bordeaux);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card-feature { padding: 0; overflow: hidden; background: var(--bordeaux-night); border: 0; color: var(--cream); }
.service-card-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
@media (min-width: 1024px) { .service-card-feature img { aspect-ratio: auto; flex: 1; min-height: 260px; } }
.service-card-body { padding: 28px; display: flex; flex-direction: column; }
.service-card-feature h3 { color: var(--cream); }
.service-card-feature p { color: var(--rose-soft); }
.service-card-feature .link-arrow { color: var(--gold-soft); }
.service-tag {
  align-self: flex-start; margin-bottom: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(233, 201, 160, .16); color: var(--gold-soft);
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Centro diurno ---------- */
.diurno {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(201, 154, 75, .18), transparent 60%),
    var(--bordeaux-night);
  color: var(--cream);
}
.diurno h2, .diurno h3 { color: var(--cream); }
.diurno p { color: var(--rose-soft); }
.diurno-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .diurno-grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-7); } }

.plan-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  margin: var(--space-3) 0 var(--space-3);
  padding: 5px; border-radius: var(--radius-pill);
  background: rgba(251, 246, 239, .08); border: 1px solid rgba(233, 201, 160, .25);
}
.plan-switch button {
  position: relative; z-index: 1;
  min-height: 48px; padding: 0 22px; border: 0; background: none; border-radius: var(--radius-pill);
  color: var(--cream); font-weight: 800; font-size: 1rem;
  transition: color var(--dur) var(--ease-out);
}
.plan-switch button[aria-selected="true"] { color: var(--bordeaux-deep); }
.plan-switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: var(--radius-pill); background: var(--cream);
  transition: transform var(--dur) var(--ease-out);
}
.plan-switch[data-active="1"] .plan-switch-thumb { transform: translateX(100%); }
.plan { animation: fadeUp 380ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan-hours {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600;
  color: var(--gold-soft) !important; line-height: 1.1; margin-bottom: var(--space-3);
}
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream); }
.checklist .icon { color: var(--gold); margin-top: .2em; }
.diurno-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.small-note { font-size: .95rem; margin: 0; max-width: 28em; }

.diurno-media { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.diurno-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.diurno-photo img { width: 100%; height: 100%; object-fit: cover; }
.clock-card {
  position: absolute; left: -18px; bottom: 28px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--cream); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.clock-dial { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); transform: rotate(-90deg); }
.clock-track { fill: none; stroke: var(--linen); stroke-width: 8; }
.clock-arc {
  fill: none; stroke: var(--bordeaux); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.clock-card.is-in .clock-arc { stroke-dashoffset: var(--arc, 75); }
.clock-label { position: relative; text-align: center; line-height: 1.15; color: var(--muted); font-size: .8rem; font-weight: 700; }
.clock-h { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--bordeaux); }

/* ---------- Giornata (timeline) ---------- */
.timeline { position: relative; max-width: 880px; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline-rail {
  position: absolute; top: 8px; bottom: 8px; left: 27px; width: 3px;
  background: var(--line); border-radius: 3px; overflow: hidden;
}
.timeline-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--brick), var(--bordeaux));
  transform-origin: top; transform: scaleY(0);
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 20px;
  align-items: start;
}
.tl-icon {
  grid-column: 1; grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--bordeaux);
  border: 2px solid var(--line);
  transition: background-color var(--dur) var(--ease-out), color var(--dur), border-color var(--dur);
  position: relative; z-index: 1;
}
.tl-icon .icon { width: 26px; height: 26px; }
.tl-item.is-lit .tl-icon { background: var(--bordeaux); color: var(--cream); border-color: var(--bordeaux); }
.tl-time {
  grid-column: 2; font-weight: 800; color: var(--brick-text); font-size: 1rem; letter-spacing: .04em; padding-top: 4px;
}
.tl-body {
  grid-column: 2;
  padding: 16px 22px 18px; margin-top: 6px; margin-bottom: 8px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.tl-body h3 { margin-bottom: 4px; font-size: 1.3rem; }
.tl-body p { margin: 0; color: var(--muted); }

@media (min-width: 900px) {
  .timeline { max-width: none; }
  .timeline-rail { left: 50%; translate: -50% 0; }
  .tl-item { grid-template-columns: 1fr 56px 1fr; column-gap: 32px; }
  .tl-icon { grid-column: 2; grid-row: 1 / span 2; }
  .tl-time { grid-row: 1; padding-top: 14px; }
  .tl-body { grid-row: 1 / span 2; margin-top: 0; }
  .tl-item:nth-child(odd) .tl-time { grid-column: 3; }
  .tl-item:nth-child(odd) .tl-body { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-time { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-body { grid-column: 3; }
  .timeline ol { gap: 8px; }
}

/* ---------- Laboratori ---------- */
.laboratori { background: var(--sage-soft); }
.lab-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .lab-grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-6); } }
.lab-photo { margin: 0; }
.lab-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.lab-photo figcaption { margin-top: 12px; font-size: .95rem; color: var(--sage); font-weight: 700; }
.laboratori .eyebrow { color: var(--sage); }

/* ---------- Voce ---------- */
.voice {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--bordeaux);
  color: var(--cream);
  text-align: center;
  position: relative; overflow: hidden;
}
.voice::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%;
  background: radial-gradient(closest-side, rgba(201, 154, 75, .25), transparent);
  pointer-events: none;
}
.voice-inner { position: relative; max-width: 860px; }
.voice-quote-icon { width: 48px; height: 48px; color: var(--gold); margin: 0 auto var(--space-3); }
.voice blockquote { margin: 0; }
.voice blockquote p {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; font-weight: 500; color: var(--cream);
}
.voice blockquote em { color: var(--gold-soft); }
.voice footer { color: var(--rose-soft); font-size: 1.1rem; margin-top: var(--space-3); }

/* ---------- Guida / quiz ---------- */
.guida-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1024px) { .guida-grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-6); } }
.guida-photo { margin: var(--space-3) 0 0; display: none; }
.guida-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 25%; border-radius: var(--radius-lg); }
@media (min-width: 1024px) { .guida-photo { display: block; } }

.quiz {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quiz-progress { height: 6px; border-radius: 6px; background: var(--linen); overflow: hidden; margin-bottom: 14px; }
.quiz-progress span {
  display: block; height: 100%; width: 100%; background: var(--bordeaux); border-radius: 6px;
  transform-origin: left; transform: scaleX(.3333); transition: transform 420ms var(--ease-out);
}
.quiz-step-label { font-size: .9rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.quiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step.is-active { animation: fadeUp 380ms var(--ease-out); }
.quiz-step legend {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2; margin-bottom: var(--space-3); padding: 0;
}
.quiz-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 14px 20px; margin-bottom: 12px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--cream); cursor: pointer; font-weight: 700;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.quiz-option:hover { border-color: var(--bordeaux); }
.quiz-option:active { transform: scale(.99); }
.quiz-option input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 24px; height: 24px; margin: 0; border-radius: 50%;
  border: 2px solid var(--muted); background: var(--white);
  display: grid; place-items: center;
}
.quiz-option input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bordeaux); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.quiz-option input:checked { border-color: var(--bordeaux); }
.quiz-option input:checked::after { transform: scale(1); }
.quiz-option:has(input:checked) { border-color: var(--bordeaux); background: rgba(122, 30, 58, .06); }
.quiz-option:has(input:focus-visible) { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.quiz-option input:focus-visible { outline: none; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--space-2); flex-wrap: wrap; }
.quiz-hint { margin: 0; font-size: .95rem; color: var(--muted); }
.quiz-result { animation: fadeUp 420ms var(--ease-out); }
.quiz-result:focus { outline: none; }
.quiz-result-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--sage); }
.quiz-result h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--bordeaux); }
.quiz-result p { color: var(--muted); font-size: 1.1rem; }
.quiz-result-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }
.quiz.is-done .quiz-nav, .quiz.is-done .quiz-step-label { display: none; }

/* ---------- Galleria ---------- */
.galleria { background: var(--paper); }
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; } }
.g-item {
  position: relative; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--linen);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251, 246, 239, .92); color: var(--bordeaux);
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
@media (hover: none) { .g-zoom { opacity: 1; transform: none; } }
.gallery-note { margin-top: var(--space-3); font-size: .95rem; color: var(--muted); }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(26, 12, 16, .94); color: var(--cream);
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn var(--dur) var(--ease-out); }
.lightbox::backdrop { background: rgba(26, 12, 16, .6); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; font-size: 1.05rem; color: var(--rose-soft); }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(251, 246, 239, .3); background: rgba(251, 246, 239, .08); color: var(--cream);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(251, 246, 239, .18); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 22px; translate: none; }
}

/* ---------- Prenota visita / form ---------- */
.visita-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1024px) { .visita-grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-6); } }
.steps { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.steps span {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bordeaux); color: var(--cream);
  font-family: var(--font-display); font-weight: 600;
}
.visita-direct { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.visita-direct p { margin-bottom: 8px; font-weight: 700; }
.contact-line {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
}

.form {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.field-group { border: 0; padding: 0; margin: 0 0 var(--space-3); min-width: 0; }
.field-group legend {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; padding: 0;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 1rem; }
.req { color: var(--error); }
.optional { font-weight: 600; color: var(--muted); font-size: .92rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  font-size: 1.05rem;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bordeaux); background: var(--white);
  box-shadow: 0 0 0 4px rgba(122, 30, 58, .14);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #FDF3F2 !important; }
.field-help { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .95rem; font-weight: 700; color: var(--error); }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--line); border-radius: var(--radius-pill);
  background: var(--cream); font-weight: 700; font-size: .98rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover span { border-color: var(--bordeaux); }
.chip input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.chips.is-invalid .chip span { border-color: var(--error); }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--bordeaux); cursor: pointer; }
.field-check label { font-weight: 600; margin: 0; }
.field-check .field-error { grid-column: 2; }

.form-submit { display: grid; gap: 12px; margin-top: var(--space-3); }
.form-note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }
.form-error-summary {
  padding: 14px 18px; margin-bottom: var(--space-3);
  border-radius: 14px; background: #FDF3F2; border: 2px solid var(--error); color: var(--error); font-weight: 700;
}
.form-error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.form-error-summary a { color: var(--error); }
.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: var(--space-3); padding: 18px; border-radius: 14px;
  background: var(--sage-soft); color: var(--ink);
  animation: fadeUp 400ms var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success .icon { width: 28px; height: 28px; color: var(--success); }
.form-success p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: var(--space-6); } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-list { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; background: var(--white); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 22px;
  font-weight: 800; font-size: 1.1rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--bordeaux); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Contatti ---------- */
.contatti { background: var(--bordeaux-night); color: var(--cream); }
.contatti h2 { color: var(--cream); }
.contatti-grid { display: grid; gap: var(--space-5); align-items: stretch; }
@media (min-width: 1024px) { .contatti-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.contact-list { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4); display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.contact-list span, .contact-list a { color: var(--cream); font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration-color: rgba(233, 201, 160, .5); }
.contact-list a:hover { color: var(--gold-soft); }
.contatti-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.map-wrap { min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bordeaux-deep); border: 1px solid rgba(233, 201, 160, .2); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-placeholder {
  height: 100%; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 32px;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 154, 75, .22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(251, 246, 239, .03) 0 12px, transparent 12px 24px);
}
.map-placeholder .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 8px; }
.map-placeholder p { margin: 0; color: var(--cream); }
.map-note { color: var(--rose-soft) !important; font-size: .95rem; margin-bottom: 14px !important; }

/* ---------- Footer ---------- */
.site-footer { background: #24100F; color: var(--rose-soft); padding: var(--space-6) 0 calc(var(--space-4) + 76px); font-size: 1rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--space-4); } }
.footer-grid { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(233, 201, 160, .15); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); line-height: 1.2; }
.footer-name span { font-style: italic; color: var(--gold-soft); }
.footer-brand p { margin-bottom: 6px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-nav a, .footer-nav .link-btn { color: var(--cream); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.footer-nav a:hover, .footer-nav .link-btn:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-nav .link-btn { text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: var(--space-3); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Action bar mobile ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-actionbar);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px; border-radius: 20px;
  background: rgba(58, 20, 32, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform var(--dur) var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; border-radius: 14px;
  color: var(--cream); text-decoration: none; font-weight: 800; font-size: .85rem;
}
.action-bar a:active { background: rgba(251, 246, 239, .12); }
.action-bar .icon { width: 22px; height: 22px; }
.action-bar .action-primary { background: var(--cream); color: var(--bordeaux-deep); }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-banner);
  max-width: 560px; margin-inline: auto;
  padding: 22px; border-radius: var(--radius);
  background: var(--bordeaux-night); color: var(--cream);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 400ms var(--ease-out);
}
.cookie-banner h2 { font-size: 1.3rem; color: var(--cream); margin-bottom: 8px; }
.cookie-banner p { font-size: .98rem; color: var(--rose-soft); }
.cookie-banner a { color: var(--gold-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 180px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Pagine legali ---------- */
.legal-header { background: var(--bordeaux-night); color: var(--cream); padding: var(--space-4) 0; }
.legal-header a { color: var(--gold-soft); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.legal-header h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 0; }
.legal-page { max-width: 780px; padding-block: var(--space-5) var(--space-6); }
.legal-page h2 { font-size: 1.6rem; margin-top: var(--space-4); }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin-bottom: 6px; }
.legal-page .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-badge-pulse::after { display: none; }
}
