/* =========================================================
   RSA Margherita — foglio di stile
   Palette ricavata dal logo: blu petrolio, azzurro anello,
   giallo sole, verde foglia, crema.
   ========================================================= */

:root {
  /* Colori del brand */
  --navy-900: #122c3d;
  --navy-800: #163a50;
  --navy-700: #1e4a66;
  --navy-600: #2a5f80;
  --sky-400: #95acb7;
  --sky-200: #d4e1e7;
  --sky-100: #e9f1f4;
  --sun-400: #fbc747;
  --sun-500: #f0b030;
  --sun-700: #b8741f;
  --leaf-600: #5f774f;
  --leaf-400: #8fa877;
  --leaf-100: #e8eedd;
  --cream-50: #fbfaf6;
  --cream-100: #f5f2ea;
  --ink: #1b2a33;
  --muted: #51606a;
  --line: #dcd8cc;
  --white: #ffffff;

  /* Semantica */
  --bg: var(--cream-50);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--muted);
  --primary: var(--navy-700);
  --accent: var(--sun-400);
  --on-accent: var(--navy-900);

  /* Tipografia */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.125rem;          /* 18px: leggibile anche per familiari anziani */
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.4rem, 5.2vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3: 1.3rem;

  /* Spaziatura e forme */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --radius: 6px;
  --radius-lg: 14px;
  --container: 1200px;
  --shadow: 0 18px 40px -22px rgba(18, 44, 61, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy-800);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  font: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--sun-500); color: var(--on-accent); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-800); }

/* ---------- Etichetta sopra i titoli ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--leaf-600);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; border-radius: 2px;
  background: var(--sun-400);
}
.eyebrow--light { color: var(--sun-400); }

/* ---------- Barra superiore ---------- */
.topbar {
  background: var(--navy-900); color: #d9e4ea;
  font-size: var(--fs-small);
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.55rem;
}
.topbar ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.topbar a, .topbar span {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.topbar a:hover { color: var(--sun-400); }
.topbar .icon { width: 1rem; height: 1rem; color: var(--sun-400); }

/* ---------- Header / navigazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: 84px;
}
.brand {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; color: var(--navy-800);
}
.brand img { width: 62px; height: 62px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 0.9rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none;
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 6px;
  height: 2px; background: var(--sun-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--navy-700); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); color: var(--navy-800);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-2);
    padding: var(--space-2) clamp(1.1rem, 4vw, 2rem) var(--space-3);
    background: var(--cream-50); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav .btn { justify-content: center; }
  .brand img { width: 54px; height: 54px; }
}
@media (max-width: 720px) {
  .topbar .topbar-address { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,44,61,.92) 0%, rgba(18,44,61,.72) 42%, rgba(18,44,61,.15) 100%),
    linear-gradient(0deg, rgba(18,44,61,.85) 0%, rgba(18,44,61,0) 45%);
}
.hero-inner { padding-block: var(--space-7) var(--space-4); width: 100%; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-lead { max-width: 54ch; font-size: 1.2rem; color: #e6eef2; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.stats {
  margin-top: var(--space-6);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  background: rgba(18,44,61,.35);
  backdrop-filter: blur(6px);
}
.stat { padding: var(--space-3); border-left: 1px solid rgba(255,255,255,.22); }
.stat:first-child { border-left: 0; }
.stat-value {
  display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800;
  line-height: 1; color: var(--sun-400); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.98rem; color: #e6eef2; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}

/* Intestazione delle pagine interne */
.page-hero { min-height: 420px; }
.page-hero .hero-inner { padding-block: var(--space-7) var(--space-6); }
.breadcrumb { display: flex; gap: 0.5rem; font-size: var(--fs-small); color: #d4e1e7; margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--sun-400); }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--cream { background: var(--cream-100); }
.section--sky { background: var(--sky-100); }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.15rem; }

/* Griglia "a linee sottili" ispirata al riferimento */
.ruled {
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
  background-position: -1px 0;
}
@media (max-width: 860px) { .ruled { background-image: none; } }

/* Split: immagine + testo */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center;
}
.split--wide-text { grid-template-columns: 5fr 6fr; }
@media (max-width: 900px) { .split, .split--wide-text { grid-template-columns: 1fr; gap: var(--space-5); } }

.intro-title { max-width: 20ch; margin-bottom: var(--space-5); }
.lead-strong { font-weight: 600; color: var(--navy-800); font-size: 1.2rem; }
.text-muted { color: var(--text-muted); }

.media-frame { position: relative; }
.media-frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg);
}
.media-frame .badge-round {
  position: absolute; right: -18px; bottom: -26px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  padding: 6px;
}
@media (max-width: 600px) { .media-frame .badge-round { width: 96px; height: 96px; right: 8px; bottom: -22px; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* Elenco con icone */
.feature-list { margin-top: var(--space-5); border-top: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3);
  padding-block: var(--space-3); border-bottom: 1px solid var(--line);
}
.feature h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 1.02rem; }
.icon-tile {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--leaf-100); color: var(--leaf-600);
}
.icon-tile .icon { width: 28px; height: 28px; }

/* ---------- Sezione scura: cosa comprende la retta ---------- */
.section--dark {
  background: var(--navy-900); color: #d9e4ea;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 96px 96px;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .section-head p { color: #b9cad3; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { border-color: var(--sun-400); background: rgba(255,255,255,.07); transform: translateY(-3px); }
.service-card .icon-tile { background: rgba(251,199,71,.14); color: var(--sun-400); margin-bottom: var(--space-3); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { margin: 0; color: #b9cad3; font-size: 1.02rem; }
.service-card--photo { padding: 0; overflow: hidden; grid-row: span 2; }
.service-card--photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.service-card--photo:hover { transform: none; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--photo { grid-row: auto; grid-column: 1 / -1; }
  .service-card--photo img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.included-strip {
  margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2);
}
.included-strip p { margin: 0; color: var(--white); font-weight: 600; }

/* ---------- Eventi e vita in residenza ---------- */
.events-layout {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start;
}
@media (max-width: 960px) { .events-layout { grid-template-columns: 1fr; gap: var(--space-5); } }

.event-list { border-top: 1px solid var(--line); margin-top: var(--space-4); }
.event-item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3);
  padding-block: var(--space-3); border-bottom: 1px solid var(--line);
}
.event-num {
  font-weight: 800; color: var(--sun-700); font-size: 0.95rem;
  font-variant-numeric: tabular-nums; padding-top: 0.2rem;
}
.event-item h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.event-item p { margin: 0; color: var(--text-muted); font-size: 1.02rem; }

.press-note {
  margin-top: var(--space-4); display: flex; gap: var(--space-2); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sun-400);
  border-radius: var(--radius); padding: var(--space-3);
}
.press-note .icon { color: var(--navy-700); width: 28px; height: 28px; margin-top: 2px; }
.press-note p { margin: 0; font-size: 1.02rem; }

.mosaic {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 260px 260px;
}
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(18,44,61,.85); color: var(--white);
  font-size: 0.875rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px;
}
.press-tile {
  border-radius: var(--radius-lg); background: var(--navy-800); color: var(--white);
  padding: var(--space-4); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3);
}
.press-tile .icon { width: 44px; height: 44px; color: var(--sun-400); }
.press-tile p { margin: 0; font-size: 1.15rem; line-height: 1.45; }
.press-tile strong { color: var(--sun-400); }
@media (max-width: 600px) {
  .press-tile { aspect-ratio: auto; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaic figure:first-child { grid-row: auto; }
  .mosaic figure { aspect-ratio: 4 / 3; }
}

/* ---------- Valori (Chi siamo) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value {
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  border-right: 1px solid var(--line);
}
.value + .value { padding-left: var(--space-3); }
.value:last-child { border-right: 0; }
.value-num { display: block; font-weight: 800; color: var(--sun-700); margin-bottom: var(--space-2); }
.value h3 { font-size: 1.2rem; }
.value p { margin: 0; color: var(--text-muted); font-size: 1.02rem; }
@media (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0 var(--space-3) !important; }
}
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 700px) { .wide-photo img { aspect-ratio: 4 / 3; } }

.numbers-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
}
.numbers-band .stat { border-left: 1px solid var(--line); }
.numbers-band .stat:first-child { border-left: 0; }
.numbers-band .stat-value { color: var(--navy-700); }
.numbers-band .stat-label { color: var(--text-muted); }
@media (max-width: 860px) {
  .numbers-band { grid-template-columns: repeat(2, 1fr); }
  .numbers-band .stat:nth-child(3) { border-left: 0; }
  .numbers-band .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Servizi dettaglio ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 72px 1fr 1.4fr; gap: var(--space-4);
  padding-block: var(--space-4); border-bottom: 1px solid var(--line); align-items: start;
}
.service-row .icon-tile { width: 64px; height: 64px; background: var(--sky-100); color: var(--navy-700); }
.service-row h3 { margin: 0.6rem 0 0; }
.service-row p { margin: 0.4rem 0 0; color: var(--text-muted); }
.tag {
  display: inline-block; margin-top: 0.6rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf-600); background: var(--leaf-100); padding: 0.25rem 0.6rem; border-radius: 999px;
}
@media (max-width: 800px) {
  .service-row { grid-template-columns: 64px 1fr; gap: var(--space-2) var(--space-3); }
  .service-row > p { grid-column: 2; }
}

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); display: flex; flex-direction: column; gap: 0.4rem;
}
.contact-card .icon-tile { margin-bottom: var(--space-2); }
.contact-card h3 { margin: 0; font-size: 1.1rem; }
.contact-card a, .contact-card .contact-value {
  font-size: 1.2rem; font-weight: 700; color: var(--navy-700); text-decoration: none;
  word-break: break-word;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin: 0; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.map-wrap {
  margin-top: var(--space-5);
  display: grid; grid-template-columns: 2fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
}
.map-frame { position: relative; min-height: 460px; background: var(--sky-100); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: var(--space-4);
  background:
    radial-gradient(circle at 50% 45%, rgba(251,199,71,.25), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(30,74,102,.08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(30,74,102,.08) 39px 40px),
    var(--sky-100);
}
.map-consent .pin {
  width: 64px; height: 64px; margin: 0 auto var(--space-2);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--navy-700); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.map-consent .pin span { width: 22px; height: 22px; border-radius: 50%; background: var(--sun-400); }
.map-consent p { max-width: 42ch; margin: 0 auto var(--space-3); color: var(--text-muted); font-size: 1rem; }
.map-info { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.map-info h3 { margin: 0; }
.map-info address { font-style: normal; font-size: 1.1rem; }
.map-info ul { display: grid; gap: var(--space-2); }
.map-info li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); font-size: 1rem; }
.map-info li .icon { color: var(--leaf-600); margin-top: 3px; }
@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-frame { min-height: 380px; }
}

/* ---------- CTA finale ---------- */
.cta-band {
  background: var(--sun-400); color: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 36px solid rgba(255,255,255,.28);
}
.cta-band h2 { color: var(--navy-900); margin-bottom: 0.5rem; }
.cta-band p { margin: 0; font-size: 1.15rem; }
.cta-band .btn-row { justify-content: flex-end; margin: 0; position: relative; z-index: 1; }
.cta-band .btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.cta-band .btn-outline:hover { background: var(--navy-900); color: var(--white); }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cad3; padding-block: var(--space-6) var(--space-3); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.footer-brand { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand strong { color: var(--white); font-size: 1.2rem; display: block; }
.site-footer h3 { color: var(--white); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { color: #d9e4ea; text-decoration: none; }
.site-footer a:hover { color: var(--sun-400); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  font-size: 0.9rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animazioni di comparsa ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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