/* ==========================================================================
   ASSOMEDA APS — Design System
   Istituzionale & caloroso · Accessibile (WCAG AA)
   Palette derivata dal logo: blu istituzionale, oro, accenti rosso/verde
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue */
  --brand-900: #14224f;
  --brand-800: #1a2b63;
  --brand:     #1e2f6f;   /* primary */
  --brand-700: #26399a;
  --brand-600: #2e46b0;   /* links / interactive */
  --brand-100: #e7ebf7;
  --brand-50:  #f2f5fc;

  /* Gold (stelle) */
  --gold-700: #b8841a;
  --gold-600: #d99a1c;
  --gold:     #f0b429;
  --gold-200: #f8e3a6;
  --gold-100: #fbeecb;

  /* Accenti (tricolore / icona) — usati con parsimonia */
  --red:   #cf3a31;
  --green: #1f8a52;

  /* Neutrals (caldi) */
  --ink:    #181a26;
  --ink-2:  #474b5c;
  --muted:  #6a6e7d;
  --cream:  #f7f4ee;
  --cream-2:#efe9dd;
  --paper:  #ffffff;
  --line:   #e7e1d4;
  --line-2: #d9d2c2;

  /* Effetti */
  --shadow-sm: 0 1px 2px rgba(20,34,79,.06), 0 2px 6px rgba(20,34,79,.05);
  --shadow:    0 6px 18px rgba(20,34,79,.08), 0 2px 6px rgba(20,34,79,.05);
  --shadow-lg: 0 20px 50px rgba(20,34,79,.14), 0 8px 18px rgba(20,34,79,.08);
  --ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--gold);

  /* Raggi */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[id] { scroll-margin-top: 96px; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-700); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select, button { font: inherit; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { text-wrap: pretty; }

/* ---------- Accessibility helpers ---------- */
.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;
}
:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--brand); color: #fff; padding: .8rem 1.4rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color:#fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--cream2 { background: var(--cream-2); }
.section--paper { background: var(--paper); }
.section--brand { background: var(--brand); color: #d7ddf2; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Section header ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
.kicker--center::after {
  content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
.section-head { max-width: 64ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-2); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.6rem; min-height: 50px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #2a2207; --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-600); --btn-bd: var(--gold-600); color:#2a2207; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--line-2); }
.btn--outline:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); background: var(--brand-50); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg:#fff; --btn-bd:#fff; }
.btn--lg { padding: 1.05rem 2rem; min-height: 56px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600;
  text-decoration: none; color: var(--brand-600);
}
.textlink svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brand); letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu a {
  display: inline-flex; align-items: center; padding: .55rem .85rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a:hover { color: var(--brand); background: var(--brand-50); }
.nav-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-menu a[aria-current="page"]::after {
  content: ""; display: block;
}
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: .5rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--brand);
}
.nav-toggle:hover { background: var(--brand-50); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapse {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid; gap: 1.25rem; padding: 1.5rem var(--gutter) 2rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-collapse.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-menu a { padding: .9rem 1rem; font-size: 1.1rem; border-radius: var(--r-sm); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-left: 0; }
  .nav-actions .btn { width: 100%; }
}
@media (min-width: 941px) {
  .nav-collapse { display: flex; align-items: center; gap: 1.5rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,24,58,.55) 0%, rgba(15,24,58,.35) 35%, rgba(15,24,58,.78) 100%),
    linear-gradient(90deg, rgba(20,34,79,.72) 0%, rgba(20,34,79,.18) 70%);
}
.hero-inner { padding-block: clamp(4.5rem, 12vw, 9rem); max-width: 760px; }
.hero .kicker { color: var(--gold-200); }
.hero .kicker::before { background: var(--gold); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); margin-top: 1.25rem; max-width: 56ch; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill); font-size: .9rem; font-weight: 500; color:#fff;
  backdrop-filter: blur(4px);
}
.hero-badge svg { width: 1.05em; height: 1.05em; color: var(--gold-200); }

/* Emblema logo sulla foto dell'hero (solo desktop largo: evita sovrapposizioni col testo) */
.hero-logo {
  position: absolute; z-index: 1;
  top: 50%; right: clamp(1.25rem, 3vw, 4.5rem);
  transform: translateY(-50%);
  width: clamp(210px, 22vw, 340px); height: auto;
  filter: drop-shadow(0 16px 38px rgba(10, 18, 45, .55));
  pointer-events: none; user-select: none;
  animation: heroLogoFade 1s var(--ease) both;
}
@keyframes heroLogoFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) { .hero-logo { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(240,180,41,.20), transparent 70%); pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; left: -100px; bottom: -160px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(46,70,176,.45), transparent 70%); pointer-events: none;
}
.page-hero-inner { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 760px; }
.page-hero .kicker { color: var(--gold-200); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); margin-top: 1.1rem; font-size: 1.15rem; max-width: 60ch; }

/* Breadcrumb */
.breadcrumb { padding-block: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--line-2); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: var(--r); margin-bottom: 1.2rem;
  background: linear-gradient(150deg, var(--brand-50), var(--brand-100));
  color: var(--brand); border: 1px solid var(--brand-100);
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--gold { background: linear-gradient(150deg, var(--gold-100), var(--gold-200)); color: var(--gold-700); border-color: var(--gold-200); }

/* Numbered card (servizi) */
.card-num { position: relative; }
.card-num .num {
  position: absolute; top: clamp(1.2rem,2vw,1.8rem); right: clamp(1.2rem,2vw,1.8rem);
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--cream-2);
  line-height: 1;
}
.card-num:hover .num { color: var(--gold-200); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag {
  font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); object-fit: cover; }
.media-frame { position: relative; border-radius: var(--r-lg); }
.media-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20,34,79,.08); pointer-events: none; z-index: 1;
}
.media-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--brand); backdrop-filter: blur(6px);
  padding: .55rem 1rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-sm); display: inline-flex; align-items:center; gap:.45rem;
}
.media-tag svg { width: 1.05em; height: 1.05em; color: var(--gold-600); }

.feature-list { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.feature-list .ic {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-700);
}
.feature-list .ic svg { width: 18px; height: 18px; }
.feature-list strong { color: var(--ink); font-weight: 600; }
.feature-list span { display: block; color: var(--ink-2); font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,3vw,2rem); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; }
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem,1.5rem+2vw,3.2rem); color: var(--brand); line-height: 1; }
.section--brand .stat .n { color: var(--gold); }
.stat .l { margin-top: .5rem; font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.section--brand .stat .l { color: #c3ccec; }

/* ---------- Gallery (attività) ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem,1.6vw,1.2rem); grid-auto-flow: dense; }
.gallery figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cream-2); }
.gallery figure > picture { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(0deg, rgba(15,24,58,.82), transparent);
  color: #fff; font-size: .9rem; font-weight: 500;
}
.g-tall { grid-column: span 4; grid-row: span 2; min-height: 0; }
.g-wide { grid-column: span 8; aspect-ratio: 16/9; }
.g-sq   { grid-column: span 4; aspect-ratio: 1/1; }
.g-half { grid-column: span 6; aspect-ratio: 4/3; }
@media (max-width: 860px) {
  .g-tall, .g-wide, .g-sq, .g-half { grid-column: span 6; grid-row: auto; aspect-ratio: 4/3; }
  .gallery .g-wide:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .g-tall, .g-wide, .g-sq, .g-half { grid-column: 1; aspect-ratio: 4/3; }
}

/* Campaign cards */
.campaign { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.campaign:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.campaign-img { display: block; aspect-ratio: 2/3; background: var(--cream-2); overflow: hidden; }
.campaign-img picture { display: block; width: 100%; height: 100%; }
.campaign-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.campaign:hover .campaign-img img { transform: scale(1.03); }
.campaign-body { padding: 1.4rem; }
.campaign-body h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.cta::before {
  content:""; position:absolute; right:-80px; top:-80px; width:320px; height:320px;
  background: radial-gradient(circle, rgba(240,180,41,.25), transparent 70%);
}
.cta-inner { position: relative; max-width: 640px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); margin-top: 1rem; font-size: 1.15rem; }
.cta .btn-row { margin-top: 2rem; }

/* ---------- Values / quote ---------- */
.pull {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.35; color: var(--ink);
  text-wrap: balance;
}
.pull .hl { color: var(--brand); background: linear-gradient(180deg, transparent 62%, var(--gold-200) 62%); padding-inline: .1em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: grid; gap: 1.4rem; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-item .ic { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); display:inline-flex; align-items:center; justify-content:center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.info-item a { text-decoration: none; font-weight: 500; }
.info-item a:hover { text-decoration: underline; }
.info-item p, .info-item address { color: var(--ink-2); font-style: normal; }

.hours { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; font-size: .95rem; }
.hours li:nth-child(odd) { background: var(--cream); }
.hours .day { color: var(--ink); font-weight: 600; }
.hours .time { color: var(--ink-2); text-align: right; }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .45rem; font-size: .95rem; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-600); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-100);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.field .error-msg { display: none; color: var(--red); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(207,58,49,.12); }
.field.has-error .error-msg { display: block; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; color: var(--ink-2); }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); font-weight: 500; display: none; }
.form-status.ok { display: block; background: #e7f5ee; color: #166534; border: 1px solid #b7e0c8; }
.form-status.err { display: block; background: #fdeceb; color: #9b1c14; border: 1px solid #f3c4c0; }

/* Map */
.map-embed { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
  font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .chev { flex: none; width: 24px; height: 24px; color: var(--brand); transition: transform .3s var(--ease); }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion summary:hover { color: var(--brand); }
.accordion .acc-body { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #b9c2e0; }
.footer-main { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; text-decoration: none; }
.footer-brand img { width: 50px; height: 50px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8d97bd; }
.footer-about { font-size: .95rem; line-height: 1.7; color: #9aa4c8; max-width: 38ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: #b9c2e0; text-decoration: none; font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; margin-bottom: .8rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .2rem; }
.footer-contact a { color: #b9c2e0; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #8d97bd; }
.footer-bottom a { color: #8d97bd; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-700); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

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

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 75ch; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; margin-bottom: .8rem; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: .4rem; }
.prose ul li { padding-left: .2rem; }
.prose a { font-weight: 500; }
.prose strong { color: var(--ink); }
.prose .toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.prose .toc h2 { margin-top: 0; font-size: 1.1rem; }
.prose .toc ul { list-style: none; padding-left: 0; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center-x { margin-inline: auto; }
.maxw-60 { max-width: 60ch; }
.divider-stars { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--gold); margin: 1.5rem 0; }
.divider-stars svg { width: 14px; height: 14px; }
.divider-stars::before, .divider-stars::after { content:""; height:1px; width:48px; background: var(--line-2); }
