/* ==========================================================================
   Menhir S.r.l. — Stylesheet principale
   ========================================================================== */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #0f2a4d;
  --navy-700: #163a63;
  --navy-600: #1d4b7f;
  --teal-500: #0f9b8e;
  --teal-400: #14b8a6;
  --teal-100: #e3f7f4;
  --ink: #16212e;
  --slate-600: #55657a;
  --slate-400: #8a97a8;
  --slate-200: #dfe5ec;
  --slate-100: #eef2f6;
  --bg: #f7f9fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif Pro', Georgia, serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Accessibilità: skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: var(--navy-900);
  color: #fff;
  padding: 14px 22px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ---------- Accessibilità: modificatori font/contrasto ---------- */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-contrast { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-contrast img,
html.a11y-contrast svg,
html.a11y-contrast video,
html.a11y-contrast iframe {
  filter: invert(1) hue-rotate(180deg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--slate-600); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.bg-alt { background: var(--white); }
.bg-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: #fff; }
.bg-teal-soft { background: var(--teal-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--teal-500);
  display: inline-block;
}
.bg-navy .eyebrow { color: var(--teal-400); }
.bg-navy .eyebrow::before { background: var(--teal-400); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.align-left { margin: 0 0 48px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 155, 142, 0.32);
}
.btn-primary:hover { background: var(--teal-400); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 155, 142, 0.38); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 56px; width: auto; display: block; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--teal-500); background: var(--teal-100); }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-800);
  white-space: normal;
}
.dropdown li a:hover { background: var(--teal-100); color: var(--teal-500); }

.header-cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; margin: 0 auto; background: var(--navy-900); transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-600) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.28), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(20, 184, 166, 0.14), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; }
.hero-stats .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-visual-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hero-visual-card:last-child { margin-bottom: 0; }
.hero-visual-card .icon-badge { flex-shrink: 0; }
.hero-visual-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy-900); }
.hero-visual-card p { margin: 0; font-size: 0.86rem; color: var(--slate-600); }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 36px 0; background: var(--white); border-bottom: 1px solid var(--slate-200); border-top: 1px solid var(--slate-200); }
.logo-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-strip-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; }
.logo-strip-items { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.logo-strip-items span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate-400); }

/* ---------- Icon badge ---------- */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.icon-badge svg { width: 26px; height: 26px; stroke: currentColor; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-badge { margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 16px; }
.card-link { font-weight: 700; color: var(--teal-500); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: '\2192'; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(4px); }

.service-card { display: flex; flex-direction: column; }

/* ---------- Feature list ---------- */
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-200);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  margin-top: 2px;
}
.feature-list h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy-900); }
.feature-list p { margin: 0; font-size: 0.9rem; }

/* ---------- Process / Timeline ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 30px 24px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); }
.process-step .step-num {
  position: absolute; top: -18px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-band .stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--teal-400); }
.stats-band .stat-label { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--teal-100); line-height: 1; }
.testimonial-card p.quote { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-800), var(--teal-500)); flex-shrink: 0; }
.testimonial-author strong { display: block; color: var(--navy-900); font-size: 0.92rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--slate-400); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-500), var(--navy-800));
  border-radius: var(--radius);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 74px 0 68px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumb a:hover { color: var(--teal-400); }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 680px; font-size: 1.08rem; }

/* ---------- Two column content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Values ---------- */
.value-item { display: flex; gap: 18px; }
.value-item .icon-badge { margin-top: 2px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
}
.team-card h4 { margin-bottom: 2px; }
.team-role { color: var(--teal-500); font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.72); }
.contact-info-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.contact-info-list a:hover { color: var(--teal-400); }
.social-row { display: flex; gap: 12px; margin-top: 26px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.social-row a:hover { background: var(--teal-500); }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.86rem; color: var(--navy-900); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--slate-600); }
.form-check input { width: auto; margin-top: 3px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; font-size: 0.92rem; }
.alert-success { background: #e3f9ee; color: #0f7a4f; border: 1px solid #b6ecd2; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f7c6c4; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate-200); margin-top: 40px; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Legal content ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: 2.2em;
  font-size: 1.4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}
.legal-content p { color: var(--slate-600); }
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}
.legal-content ul li { color: var(--slate-600); margin-bottom: 8px; }
.legal-content a { color: var(--teal-500); font-weight: 600; }
.legal-content .updated-note {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 2.4em;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--slate-200); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--teal-500); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand-logo-footer { height: 40px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.66); }
.footer-col a:hover { color: var(--teal-400); }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
}
.footer-legal a { color: rgba(255,255,255,0.66); }
.footer-legal a:hover { color: var(--teal-400); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
  font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-500); }

/* ---------- Simple icons (inline svg color inherit) ---------- */
.ic { display: inline-block; width: 16px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 12px;
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
  .main-nav.open .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; display: none; margin-top: 4px; background: var(--slate-100);
  }
  .main-nav.open .has-dropdown.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 88px 0 64px; }
  .cta-banner { padding: 36px 24px; flex-direction: column; text-align: center; }
  .form-card, .contact-info-card { padding: 26px; }
}

/* ==========================================================================
   Widget Accessibilità
   ========================================================================== */
.a11y-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 900;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease;
}
.a11y-toggle:hover { background: var(--teal-500); transform: translateY(-2px); }
.a11y-toggle svg { width: 26px; height: 26px; }

.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.a11y-panel h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1.05rem;
}

.a11y-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.a11y-btn:hover { background: var(--teal-100); border-color: var(--teal-500); }

.a11y-btn-reset {
  background: transparent;
  border-color: transparent;
  color: var(--slate-600);
  text-decoration: underline;
}
.a11y-btn-reset:hover { background: var(--slate-100); }

.a11y-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .a11y-widget { right: 14px; bottom: 84px; }
  .a11y-panel { width: 230px; }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(11, 31, 58, 0.25);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 380px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-inner p a {
  color: var(--teal-400);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 700px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ==========================================================================
   Cookie Preferences Modal
   ========================================================================== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal[hidden],
.cookie-banner[hidden],
.a11y-panel[hidden] {
  display: none !important;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.6);
}

.cookie-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
}

.cookie-modal-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1.4rem;
}

.cookie-modal-box > p {
  margin: 0 0 20px;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.cookie-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--slate-200);
}
.cookie-modal-option:first-of-type { border-top: none; }

.cookie-modal-option strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.cookie-modal-option p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.85rem;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--slate-200);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .slider { background: var(--teal-500); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   Map consent placeholder
   ========================================================================== */
.map-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  background: var(--slate-100);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--slate-600);
}
