.hero-panel-top {
  height: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  position: relative;
  overflow: hidden;
}
.hero-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  z-index: 1;
  display: block;
}
.hero-panel-top > *:not(.hero-panel-img) {
  position: relative;
  z-index: 2;
}
:root {
  --accent: #1f4f85;
  --accent-dark: #16395f;
  --surface: #f5f7fb;
  --ink: #1c2430;
  --muted: #637086;
  --border: rgba(28, 36, 48, 0.1);
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(16, 26, 41, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
* { color: var(--text-color); }
h1 { color: var(--h1-color, var(--text-color)); }
h2 { color: var(--h2-color, var(--text-color)); }
h3 { color: var(--h3-color, var(--text-color)); }
h4 { color: var(--h4-color, var(--text-color)); }
h5 { color: var(--h5-color, var(--text-color)); }
h6 { color: var(--h6-color, var(--text-color)); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h1,h2 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
h3 { font-size: 1.3rem; }
ul { padding-left: 1.2rem; }
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}
.narrow-container { width: min(calc(100% - 2rem), 860px); margin: 0 auto; }
.section-light, .section-white, .section-dark { padding: 5rem 0; }
.section-light { background: var(--surface); }
.section-white { background: var(--white); }
.section-white.has-custom-bg {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.95)),
    var(--section-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-dark {
  background: linear-gradient(180deg, var(--accent-dark), #0e2238 100%);
  color: var(--white);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-dark .eyebrow,
.hero-section .eyebrow { color: rgba(255,255,255,.78); }
.card, .card-lg {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card { padding: 1.5rem; }
.card-lg { padding: 2rem; }
.light-card { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.12); }
.text-center { text-align: center; }
.min-vh-center { min-height: 50vh; display: grid; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,36,48,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.5rem;
}
.site-branding img { max-height: 56px; width: auto; }
.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav a {
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 1rem);
  min-width: 240px;
  padding: .75rem;
  list-style: none;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: .35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s ease;
}
.primary-nav .sub-menu a { display: block; padding: .65rem .8rem; border-radius: 10px; }
.primary-nav .sub-menu a:hover { background: var(--surface); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero-section {
  position: relative;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 55%, #0c2440 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(10px);
}
.hero-section::before { width: 420px; height: 420px; right: -80px; top: -120px; }
.hero-section::after { width: 300px; height: 300px; left: -120px; bottom: -120px; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy p {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.86);
}
.button-group { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .25s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--button-primary-bg, var(--white));
  color: var(--button-primary-text, var(--accent-dark));
}
.button-secondary {
  background: var(--button-secondary-bg, transparent);
  color: var(--button-secondary-text, var(--accent));
  border-color: rgba(28,36,48,.12);
}
.hero-section .button-secondary,
.section-dark .button-secondary {
  border-color: rgba(255,255,255,.28);
  color: var(--button-secondary-text, var(--white));
}
.light-outline { border-color: rgba(255,255,255,.24); }

.secondary-text,
.muted,
.eyebrow {
  color: var(--secondary-text-color, var(--muted)) !important;
}
.hero-panel {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  color: var(--white);
  padding: 0;
  overflow: hidden;
}
.hero-panel-top {
  min-height: 300px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.hero-panel-bottom { padding: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.about-grid { align-items: center; }
.about-showcase-section {
  background: var(--white);
  padding: 0 0 4.5rem;
}
.about-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 470px;
  overflow: hidden;
}
.about-showcase::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  background: var(--surface);
  clip-path: polygon(0 72%, 48% 100%, 100% 42%, 100% 100%, 0 100%);
}
.about-showcase-media img,
.about-showcase-media .placeholder-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.about-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.about-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.about-slider-prev { left: 12px; }
.about-slider-next { right: 12px; }
.about-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.about-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.about-slider-dot.is-active {
  background: var(--white);
}
.about-showcase-content {
  background: #00466c;
  color: var(--white);
  display: flex;
  align-items: center;
}
.about-showcase-inner {
  width: min(100% - 4rem, 580px);
  margin: 0 auto;
}
.about-showcase-inner h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
}
.about-showcase-inner p {
  color: rgba(255,255,255,.9);
  max-width: 46ch;
}
.about-showcase-button {
  margin-top: 1rem;
  border-radius: 999px;
  background: #c5a45a;
  color: var(--white);
  min-width: 130px;
}
.about-showcase-button:hover {
  background: #b99547;
}
.quote-card {
  background: linear-gradient(180deg, rgba(31,79,133,.06), rgba(31,79,133,.03));
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: .7;
  color: var(--accent);
  opacity: .5;
}
blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.25;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.center-heading { text-align: center; justify-content: center; flex-direction: column; align-items: center; }
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-link-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.person-card, .area-card, .blog-card { padding: 0; }
.person-card .card-content,
.area-card .card-content,
.blog-card .card-content { padding: 1.5rem; color: var(--accent-dark);}
.thumb img, .featured-image img, .placeholder-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb { aspect-ratio: 4 / 4.2; overflow: hidden; }
.placeholder-thumb {
  background: linear-gradient(135deg, rgba(31,79,133,.1), rgba(31,79,133,.03));
  min-height: 260px;
}
.placeholder-thumb.tall { min-height: 520px; }
.service-grid .card,
.service-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31,79,133,.08);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

/* Services section (front page) */
.services-section {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  background-image:
    linear-gradient( 180deg, #ffffff 8%, rgba(255,255,255,0.21) 71%, #003e5f 95% ),
    var(--services-bg-image, url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=2000&q=80"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 70% 0%, rgba(31,79,133,.14), transparent 65%);
  pointer-events: none;
}
.services-section > .container { position: relative; z-index: 1; }
.services-section .section-heading { margin-bottom: 2.75rem; }
.services-section .section-heading p { max-width: 70ch; }

.services-section .service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: visible;
  /* background: rgba(255,255,255,.7); 
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 70px rgba(16,26,41,.14); */
}
.services-section .service-card {
  flex: 0 1 245px;
  min-height: 140px;
  /* border: 1px solid rgba(28,36,48,.12); */
  border: none !important;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,var(--service-bg-top, .9)), rgba(255,255,255,var(--service-bg-bottom, .6))),
    linear-gradient(135deg, rgba(31,79,133,var(--service-bg-accent, .09)), rgba(22,57,95,.02));
  padding: 2rem 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  margin: -1px 0 0 -1px;
}
.services-section .service-card:nth-child(8n + 1) { --service-bg-top: .98; --service-bg-bottom: .86; --service-bg-accent: .06; }
.services-section .service-card:nth-child(8n + 2) { --service-bg-top: .92; --service-bg-bottom: .72; --service-bg-accent: .11; }
.services-section .service-card:nth-child(8n + 3) { --service-bg-top: .88; --service-bg-bottom: .63; --service-bg-accent: .16; }
.services-section .service-card:nth-child(8n + 4) { --service-bg-top: .82; --service-bg-bottom: .54; --service-bg-accent: .22; }
.services-section .service-card:nth-child(8n + 5) { --service-bg-top: .95; --service-bg-bottom: .79; --service-bg-accent: .08; }
.services-section .service-card:nth-child(8n + 6) { --service-bg-top: .90; --service-bg-bottom: .68; --service-bg-accent: .13; }
.services-section .service-card:nth-child(8n + 7) { --service-bg-top: .85; --service-bg-bottom: .58; --service-bg-accent: .19; }
.services-section .service-card:nth-child(8n + 8) { --service-bg-top: .78; --service-bg-bottom: .49; --service-bg-accent: .25; }
.services-section .service-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  max-width: 22ch;
  color: rgba(22,57,95,.95);
}
.services-section .service-card p { display: none; }
.services-section .service-icon {
  width: 56px;
  height: 56px;
  /*background: rgba(255,255,255,.72);
  border: 1px solid rgba(28,36,48,.10); */
  background: none !important;
  border: none !important;
  color: #c5a45a;
  font-size: 1.8rem;
  font-weight: 700;
}

.services-section .center-button { margin-top: 2.25rem; }
.services-section .center-button .button {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
  padding: .95rem 1.6rem;
  min-height: 52px;
  box-shadow: 0 18px 40px rgba(31,79,133,.24);
}
.services-section .center-button .button:hover { background: var(--accent-dark); }

.activities-section {
  margin-top: -1px;
  background: linear-gradient(180deg, #003e5f 0%, #002f49 100%);
}
.activities-section .eyebrow,
.activities-section h2,
.activities-section h3{
  color: var(--white);
}
.activities-section .stack-item {
  border-bottom-color: rgba(255,255,255,.2);
}
.activities-section .text-link {
  color: #c5a45a;
}
.activities-section .area-toggle-icon {
  border-color: rgba(255,255,255,.3);
}
.activities-section .area-toggle-icon::before,
.activities-section .area-toggle-icon::after {
  background: var(--white);
}

@media (max-width: 1024px) {
  .services-section .service-card { flex-basis: 245px; }
}

@media (max-width: 640px) {
  .services-section .service-grid {
    border-radius: 16px;
    overflow: hidden;
  }
  .services-section .service-card { padding: 1.6rem 1.25rem; }
}
.center-button { margin-top: 2rem; text-align: center; }
.areas-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}
.image-side { padding: 0; overflow: hidden;}
.stack-list { display: grid; gap: 1.25rem; }
.stack-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.area-toggle {
  border-radius: 12px;
  padding: .9rem 1rem;
  transition: background .25s ease, box-shadow .25s ease;
}
.area-toggle[open] {
  /* background: rgba(31,79,133,.04); */
  background: white;
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(31,79,133,.12);
}
.area-toggle[open] h3, p{
  color: var(--accent-dark);
}
.area-toggle-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: .2rem 0;
}
.area-toggle-summary::-webkit-details-marker { display: none; }
.area-toggle-summary h3 {
  margin: 0;
  font-size: 1.2rem;
}
.area-toggle-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.area-toggle-icon::before,
.area-toggle-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.area-toggle-icon::after {
  width: 2px;
  height: 12px;
}
.area-toggle[open] .area-toggle-icon::after {
  opacity: 0;
}
.area-toggle-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .35s ease, opacity .28s ease, transform .28s ease, padding-top .28s ease;
  padding-top: 0;
}
.area-toggle[open] .area-toggle-content {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  padding-top: .85rem;
  color: var(--accent-dark) !important;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  font-weight: 700;
}
.text-link svg { width: 16px; height: 16px; }
.blog-card .badge {
  display: inline-flex;
  padding: .4rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: .82rem;
  margin-bottom: .8rem;
}
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}
.no-sidebar .content-with-sidebar,
body.no-sidebar .content-with-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
.primary-column { min-width: 0; }
.page-hero.compact-hero { padding: 3rem 0 2rem; }
.entry-content-wrap .page-entry,
.single-entry { padding: 0; overflow: hidden; }
.content-body { padding: 2rem; }
.content-body > *:last-child { margin-bottom: 0; }
.widget { margin-bottom: 1.5rem; }
.widget-title { margin-bottom: .75rem; }
.archive-grid .blog-card, .archive-grid .area-card, .archive-grid .person-card { min-height: 100%; }
.footer-cta { padding: 0 0 4rem; background: var(--surface); }
.footer-cta-grid { transform: translateY(-2.5rem); }
.newsletter-box, .contact-box { height: 100%; }

/* Miglioramento modulo contatti/footer */
.contact-form, .newsletter-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.contact-form label, .newsletter-form label {
  display: grid;
  gap: .45rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea,
.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font: inherit;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(31,79,133,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1.08rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus,
.newsletter-form input:focus,
.newsletter-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(31,79,133,0.13);
}
.contact-form textarea,
.newsletter-form textarea {
  min-height: 48px;
  max-height: 220px;
  resize: vertical;
}
.contact-form .form-group,
.newsletter-form .form-group {
  margin-bottom: 0;
}
.contact-form .checkbox-field,
.newsletter-form .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 500;
  font-size: .98rem;
  margin-top: .2rem;
}
.contact-form .checkbox-field input[type="checkbox"],
.newsletter-form .checkbox-field input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1.1em;
  height: 1.1em;
  margin-top: 3px;
}
.contact-form button[type="submit"],
.newsletter-form button[type="submit"] {
  margin-top: .5rem;
  min-width: 140px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(31,79,133,0.10);
  letter-spacing: 0.01em;
}
.contact-form input:disabled,
.contact-form textarea:disabled {
  background: #f2f2f2;
  color: #b0b0b0;
  border-style: dashed;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .9rem;
  align-items: start;
}
.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: .2rem;
}
.contact-list strong { display: block; margin-bottom: .25rem; }
.site-footer {
  padding: 2rem 0;
  background: #0e1723;
  color: rgba(255,255,255,.78);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}
.breadcrumbs,
.archive-description { color: var(--muted); margin-bottom: 1rem; }
.pagination,
.nav-links {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.nav-links .current { background: var(--accent); color: var(--white); border-color: var(--accent); }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-showcase { min-height: 420px; }
  .hero-grid,
  .grid-2,
  .areas-layout,
  .content-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 88px 1rem auto 1rem;
    background: rgba(255,255,255,.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: .5rem 0 0 1rem;
  }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4,
  .form-row,
  .footer-inner { grid-template-columns: 1fr; display: grid; }
}

@media (max-width: 640px) {
  .section-light, .section-white, .section-dark { padding: 4rem 0; }
  .hero-section { padding: 5.5rem 0 4rem; }
  .about-showcase-section { padding-bottom: 3.25rem; }
  .about-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .about-showcase::after { height: 24px; }
  .about-showcase-media { min-height: 280px; }
  .about-showcase-content { padding: 3rem 0 3.5rem; }
  .about-showcase-inner { width: min(100% - 2.5rem, 580px); }
  .card, .card-lg { padding: 1.25rem; }
  .person-card, .area-card, .blog-card { padding: 0; }
  .person-card .card-content,
  .area-card .card-content,
  .blog-card .card-content,
  .content-body { padding: 1.25rem; }
}



.mt-50 {
  margin-top: 50px;
}
