/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #eafdff;
  --color-surface-2: #f5fbfd;
  --color-text: #0a0a0a;
  --color-muted: #737373;
  --color-border: #e1ecef;
  --color-accent: #f7662e;
  --color-accent-dark: #d8521e;
  --color-brand: #28a9e0;
  --color-brand-dark: #1e8cc0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-serif: "Fraunces", "Times New Roman", Georgia, serif;

  --max-width: 1240px;
  --radius: 14px;
  --radius-sm: 8px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--color-muted);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3rem 0;
  }
  .container {
    padding: 0 1.25rem;
  }
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .header {
    z-index: 250;
    background: var(--color-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .nav {
    height: 64px;
  }
}

@media (max-width: 600px) {
  .nav {
    height: 60px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.footer-brand .logo {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-links a.active {
  color: var(--color-text);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 45, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms;
  z-index: 195;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw, 380px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(10, 15, 45, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 200;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 500;
  }

  .nav-links a.active {
    color: var(--color-accent);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn.nav-cta,
  .nav-cta {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-bg);
}

@media (min-width: 1025px) {
  .btn-primary:hover {
    background: var(--color-brand-dark);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

@media (min-width: 1025px) {
  .btn-secondary:hover {
    border-color: var(--color-text);
  }
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

@media (min-width: 1025px) {
  .btn-accent:hover {
    background: var(--color-accent-dark);
  }
}

.btn .arrow {
  transition: transform var(--transition);
}

@media (min-width: 1025px) {
  .btn:hover .arrow {
    transform: translateX(3px);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  max-width: 920px;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-meta-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1025px) {
  .service-card:hover {
    border-color: var(--color-text);
    transform: translateY(-4px);
  }
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Featured / Union ---------- */
.featured {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

.featured h2,
.featured h3 {
  color: var(--color-bg);
}

.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.featured .eyebrow {
  color: var(--color-accent);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.price-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.price-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.price-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.25rem;
}

.bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

/* ---------- Team / Offices ---------- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.office-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.office-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.office-card .city {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.office-card p {
  font-size: 0.95rem;
}

/* ---------- CTA strip ---------- */
.cta {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin: 0 auto 2rem;
  max-width: 540px;
}

.cta-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer ul a {
  color: var(--color-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

@media (min-width: 1025px) {
  .footer ul a:hover {
    color: var(--color-text);
  }
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--color-muted);
}

@media (min-width: 1025px) {
  .breadcrumbs a:hover {
    color: var(--color-text);
  }
}

/* ---------- Service detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
}

.service-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail-aside .service-icon {
  width: 64px;
  height: 64px;
}

.service-detail-aside .service-icon svg {
  width: 32px;
  height: 32px;
}

.service-detail h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-detail ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--color-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.9rem;
}

/* ---------- Pricing detail ---------- */
.pricing-hero {
  text-align: center;
  padding: 5rem 0 2rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.pricing-card.featured-card {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

.pricing-card.featured-card h3,
.pricing-card.featured-card .price-big {
  color: var(--color-bg);
}

.pricing-card.featured-card p {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.price-big {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin: 1.5rem 0;
}

.price-big small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.pricing-card.featured-card .price-big small {
  color: rgba(255, 255, 255, 0.6);
}

.referral {
  margin-top: 4rem;
  padding: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .referral {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.referral-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.referral h3 {
  margin-bottom: 0.25rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-block h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-block p,
.contact-block a {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-block a {
  display: block;
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}

@media (min-width: 1025px) {
  .contact-block a:hover {
    color: var(--color-text);
  }
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-submit {
  justify-self: start;
}

/* ---------- Home hero with background image ---------- */
.home-hero {
  position: relative;
  background-image: url('../assets/union-offerta-hero.jpg');
  background-size: cover;
  background-position: 80% center;
  min-height: 620px;
  padding: 6rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0.3) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.home-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero-content {
  max-width: 640px;
}

.home-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.home-hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-text);
  opacity: 0.75;
  max-width: 540px;
}

.home-hero .hero-eyebrow-row {
  margin-bottom: 1.5rem;
}

.home-hero .hero-actions {
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .home-hero {
    background-position: 75% center;
    min-height: 480px;
    padding: 3rem 0 4rem;
  }
  .home-hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 60%,
      rgba(255, 255, 255, 0.8) 100%
    );
  }
  .home-hero h1 {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }
}

@media (max-width: 600px) {
  .home-hero {
    min-height: 420px;
    padding: 2.5rem 0 3.5rem;
  }
  .home-hero .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .home-hero .hero-actions .btn {
    width: auto;
  }
}

/* ---------- Hero media (legacy / inner pages) ---------- */
.hero {
  padding: 2rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.25);
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero slideshow ---------- */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 28s infinite;
}

.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 7s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 14s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 21s; }

@keyframes heroFade {
  0%, 22% { opacity: 1; }
  25%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-slideshow-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}

.hero-slideshow-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: heroDot 28s infinite;
}

.hero-slideshow-dots span:nth-child(1) { animation-delay: 0s; }
.hero-slideshow-dots span:nth-child(2) { animation-delay: 7s; }
.hero-slideshow-dots span:nth-child(3) { animation-delay: 14s; }
.hero-slideshow-dots span:nth-child(4) { animation-delay: 21s; }

@keyframes heroDot {
  0%, 22% { background: #fff; transform: scale(1.4); }
  25%, 97% { background: rgba(255, 255, 255, 0.5); transform: scale(1); }
  100% { background: #fff; transform: scale(1.4); }
}

/* ---------- Floating stat card on hero ---------- */
.hero-stat-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--color-bg);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(10, 15, 45, 0.25);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 240px;
}

.hero-stat-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-stat-card .label {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .hero-stat-card {
    bottom: -1rem;
    left: 0;
  }
}

.hero-media-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  z-index: 2;
}

.hero-media-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(247, 102, 46, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Service card image ---------- */
.service-card {
  overflow: hidden;
}

.service-card:has(.service-card-media) {
  padding: 0;
}

.service-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
  .service-card:hover .service-card-media img {
    transform: scale(1.05);
  }
}

.service-card-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-body .service-icon {
  margin-top: -3rem;
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.08);
  position: relative;
  z-index: 2;
}

/* ---------- Service detail image ---------- */
.service-detail {
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.service-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-aside {
  position: sticky;
  top: 100px;
}

@media (max-width: 768px) {
  .service-detail-aside {
    position: static;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .gallery-item:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }
  .gallery-item:first-child {
    grid-column: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

@media (min-width: 1025px) {
  .gallery-item:hover img {
    transform: scale(1.04);
  }
}

.gallery-item-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Office image ---------- */
.office-card {
  padding: 0;
  overflow: hidden;
}

.office-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.office-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card-body {
  padding: 2rem;
}

/* ---------- Featured media (energy section) ---------- */
.featured-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.featured-media img,
.featured-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- About image ---------- */
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Team avatar with image ---------- */
.team-avatar {
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Video section ---------- */
.video-section {
  padding: 6rem 0;
}

.video-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-text);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.4);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  color: #fff;
}

.video-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.video-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ---------- Top banner ---------- */
.top-banner {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.6rem 0;
  overflow: hidden;
}

.top-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-banner-inner > div {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.top-banner a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}

@media (min-width: 1025px) {
  .top-banner a:hover {
    color: var(--color-accent);
  }
}

.top-banner svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .top-banner-inner > div:nth-child(2) {
    display: none;
  }
}

/* ---------- Editorial hero ---------- */
.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

.hero-eyebrow-row .since {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}

.hero h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 .serif,
h3 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions {
  align-items: center;
}

.hero-phone {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}

.hero-phone .label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-phone .number {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .hero-phone {
    display: none;
  }
}

/* ---------- Partners marquee ---------- */
.partners {
  padding: 3rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 2rem;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  padding-right: 4rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--color-text);
  opacity: 0.4;
  transition: opacity var(--transition);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

@media (min-width: 1025px) {
  .marquee-item:hover {
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Editorial services ---------- */
.editorial-services {
  padding: 6rem 0;
}

.editorial-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .editorial-section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.editorial-section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.editorial-section-header p {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 480px;
}

.editorial-row {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1.5fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.editorial-row:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .editorial-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
}

.editorial-row .row-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}

.editorial-row .row-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.editorial-row .row-content p {
  font-size: 1rem;
  line-height: 1.6;
}

.editorial-row .row-content .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  list-style: none;
}

.editorial-row .row-content .tag-list li {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
}

.editorial-row .row-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.editorial-row .row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

@media (min-width: 1025px) {
  .editorial-row:hover .row-media img {
    transform: scale(1.04);
  }
}

/* ---------- Showcase video full-bleed ---------- */
.showcase-video {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  background: var(--color-text);
}

@media (max-width: 600px) {
  .showcase-video {
    height: 60vh;
    min-height: 380px;
  }
  .showcase-video-content {
    padding: 2rem 0;
  }
}

.showcase-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.showcase-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.showcase-video-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
}

.showcase-video-content .container {
  width: 100%;
}

.showcase-video-content h2 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
  max-width: 720px;
  margin-bottom: 1rem;
}

.showcase-video-content h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.showcase-video-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 560px;
}

/* ---------- Big stats strip ---------- */
.big-stats {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 5rem 0;
}

.big-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .big-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.big-stat {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.big-stat:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .big-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .big-stat:nth-child(2) {
    border-right: none;
  }
  .big-stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

.big-stat .value {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-bg);
  display: block;
  margin-bottom: 0.5rem;
}

.big-stat .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 6rem 0;
  background: var(--color-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-author-info span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ---------- Big editorial union/energy ---------- */
.energy-feature {
  padding: 6rem 0;
}

.energy-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .energy-feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.energy-feature h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.energy-feature h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.energy-feature .price-display {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.energy-feature .price-cell {
  padding: 2rem;
  border-right: 1px solid var(--color-border);
}

.energy-feature .price-cell:last-child {
  border-right: none;
}

.energy-feature .price-cell .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: block;
}

.energy-feature .price-cell .num small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1rem;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.energy-feature .price-cell .label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.energy-feature-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-surface);
}

.energy-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.energy-feature-media .badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Footer enhancements ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.footer .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer h4 {
  color: var(--color-bg);
}

.footer ul a {
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 1025px) {
  .footer ul a:hover {
    color: var(--color-bg);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Union partnership display ---------- */
.partnership-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.partnership-badge .label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.partnership-badge img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .partnership-badge img {
    height: 38px;
  }
}

/* ---------- Union hero with background photo ---------- */
.union-hero {
  position: relative;
  padding: 6rem 0 7rem;
  background-image: url('../assets/union-hero.jpg');
  background-size: cover;
  background-position: center right;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.union-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 45, 0.92) 0%,
    rgba(10, 15, 45, 0.78) 40%,
    rgba(10, 15, 45, 0.45) 70%,
    rgba(10, 15, 45, 0.15) 100%
  );
  z-index: 0;
}

.union-hero > .container {
  position: relative;
  z-index: 1;
}

.union-hero-content {
  max-width: 620px;
}

.union-hero h1 {
  color: #fff;
}

.union-hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.union-hero .breadcrumbs,
.union-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1025px) {
  .union-hero .breadcrumbs a:hover {
    color: #fff;
  }
}

.union-hero .partnership-badge img {
  height: 56px;
}

@media (max-width: 600px) {
  .union-hero .partnership-badge img {
    height: 42px;
  }
}

.union-hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1025px) {
  .union-hero .btn-secondary:hover {
    border-color: #fff;
  }
}

@media (max-width: 900px) {
  .union-hero {
    padding: 3.5rem 0 4rem;
  }
  .union-hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 45, 0.88) 0%,
      rgba(10, 15, 45, 0.75) 100%
    );
  }
  .union-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 600px) {
  .union-hero {
    padding: 3rem 0 3.5rem;
  }
  .union-hero .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ---------- Union azzera bolletta ---------- */
.union-azzera {
  padding: 5rem 0;
  background: var(--color-surface);
}

.union-azzera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .union-azzera-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.union-azzera-media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
}

.union-azzera-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Union world referral ---------- */
.union-world {
  padding: 5rem 0;
}

.union-world-card {
  background: linear-gradient(135deg, #2b1f4f 0%, #1e3a7f 100%);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}

@media (max-width: 900px) {
  .union-world-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.union-world-card h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.union-world-card h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.union-world-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.union-world-card .big-bonus {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  display: inline-block;
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

.union-world-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Service detail page hero (full-bleed bg) ---------- */
.service-page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 580px;
  padding: 5rem 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.service-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 45, 0.92) 0%,
    rgba(10, 15, 45, 0.75) 40%,
    rgba(10, 15, 45, 0.4) 70%,
    rgba(10, 15, 45, 0.1) 100%
  );
  z-index: 0;
}

.service-page-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.service-page-hero-content {
  max-width: 640px;
}

.service-page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 1.25rem 0 1.5rem;
  color: #fff;
}

.service-page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.service-page-hero .eyebrow {
  color: var(--color-accent);
}

.service-page-hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1025px) {
  .service-page-hero .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
}

.service-page-hero-bullets {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0;
}

.service-page-hero-bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.service-page-hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3 8 7 12 13 4' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 900px) {
  .service-page-hero {
    min-height: 460px;
    padding: 3.5rem 0;
  }
  .service-page-hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 45, 0.88) 0%,
      rgba(10, 15, 45, 0.75) 100%
    );
  }
  .service-page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 600px) {
  .service-page-hero {
    padding: 3rem 0;
  }
  .service-page-hero .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .service-page-hero-bullets {
    margin: 1.25rem 0;
  }
  .service-page-hero-bullets li {
    font-size: 0.92rem;
  }
}

/* ---------- Benefits cards ---------- */
.benefits-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.benefit-stat {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

/* ---------- Service detail content section ---------- */
.service-content {
  padding: 5rem 0;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .service-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.service-content-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.service-content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.service-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.service-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  line-height: 1.5;
}

.service-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Incentives box ---------- */
.incentives {
  padding: 5rem 0;
}

.incentives-box {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .incentives-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.incentives-box h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.incentives-box h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.incentives-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.incentives-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.incentives-list li {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.incentives-list li strong {
  font-weight: 600;
  color: #fff;
}

.incentives-list li span {
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ---------- Brands row ---------- */
.brands-row {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.brands-row-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-text);
  opacity: 0.4;
}

.brands-row-inner .label {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  opacity: 1;
}

/* ---------- Related services ---------- */
.related-services {
  padding: 5rem 0;
  background: var(--color-surface);
}

/* ---------- Compact services grid (home) ---------- */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-overview-grid {
    grid-template-columns: 1fr;
  }
}

.service-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 1025px) {
  .service-tile:hover {
    border-color: var(--color-text);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(10, 15, 45, 0.15);
  }
}

.service-tile-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.service-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
  .service-tile:hover .service-tile-media img {
    transform: scale(1.04);
  }
}

.service-tile-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.service-tile-body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.service-tile-body p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.service-tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
}

@media (min-width: 1025px) {
  .service-tile:hover .service-tile-arrow svg {
    transform: translateX(3px);
  }
}

.service-tile-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

/* ---------- Generic page hero with bg ---------- */
.page-hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 480px;
  padding: 5rem 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.page-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 45, 0.88) 0%,
    rgba(10, 15, 45, 0.7) 45%,
    rgba(10, 15, 45, 0.3) 75%,
    rgba(10, 15, 45, 0.05) 100%
  );
  z-index: 0;
}

.page-hero-bg > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero-bg-content {
  max-width: 680px;
}

.page-hero-bg h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.25rem;
  color: #fff;
}

.page-hero-bg .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 560px;
}

.page-hero-bg .eyebrow {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .page-hero-bg {
    min-height: 380px;
    padding: 3.5rem 0;
  }
  .page-hero-bg::before {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 45, 0.88) 0%,
      rgba(10, 15, 45, 0.7) 100%
    );
  }
  .page-hero-bg h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }
}

@media (max-width: 600px) {
  .page-hero-bg {
    min-height: 340px;
    padding: 3rem 0;
  }
}

/* ---------- Big contact methods cards ---------- */
.contact-methods {
  padding: 5rem 0;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .contact-methods-grid {
    grid-template-columns: 1fr;
  }
}

.contact-method-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

@media (min-width: 1025px) {
  .contact-method-card:hover {
    border-color: var(--color-text);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(10, 15, 45, 0.15);
  }
}

.contact-method-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  margin-bottom: 0.25rem;
}

.contact-method-card .icon svg {
  width: 28px;
  height: 28px;
}

.contact-method-card h3 {
  font-size: 1.15rem;
}

.contact-method-card .big-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.1;
  word-break: break-word;
}

.contact-method-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---------- Office cards big ---------- */
.offices-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.office-card-big {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  margin-bottom: 1.5rem;
}

.office-card-big:last-child {
  margin-bottom: 0;
}

.office-card-big.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.office-card-big.reverse .office-card-big-media {
  order: 2;
}

.office-card-big.reverse .office-card-big-body {
  order: 1;
}

@media (max-width: 900px) {
  .office-card-big,
  .office-card-big.reverse {
    grid-template-columns: 1fr;
  }
  .office-card-big.reverse .office-card-big-media,
  .office-card-big.reverse .office-card-big-body {
    order: unset;
  }
}

.office-card-big-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.office-card-big-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card-big-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .office-card-big-body {
    padding: 2rem 1.5rem;
  }
}

.office-card-big-body .city-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.office-card-big-body h3 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.office-card-big-body p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.office-card-big-body .office-meta {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.office-card-big-body .office-meta a {
  color: var(--color-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 1025px) {
  .office-card-big-body .office-meta a:hover {
    color: var(--color-accent);
  }
}

.office-card-big-body .office-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Value props grid (chi-siamo) ---------- */
.value-props {
  padding: 5rem 0;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .value-props-grid {
    grid-template-columns: 1fr;
  }
}

.value-prop-card {
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-prop-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
}

.value-prop-icon svg {
  width: 32px;
  height: 32px;
}

.value-prop-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.value-prop-card p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Extended benefit rows (chi-siamo) ---------- */
.benefit-rows {
  padding: 5rem 0;
  background: var(--color-bg);
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.benefit-row:last-child {
  border-bottom: none;
}

.benefit-row.reverse .benefit-row-media {
  order: 2;
}

@media (max-width: 900px) {
  .benefit-row,
  .benefit-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .benefit-row.reverse .benefit-row-media {
    order: unset;
  }
}

.benefit-row-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.benefit-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-row-content .small-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.benefit-row-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.benefit-row-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.benefit-row-content ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.benefit-row-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.benefit-row-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- FAQ accordion ---------- */
.faq-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item-body {
  padding: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Mega menu ---------- */
.nav {
  position: relative;
}

.has-megamenu {
  position: static;
}

.has-megamenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.has-megamenu > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
  display: inline-block;
}

@media (min-width: 1025px) {
  .has-megamenu:hover > a::after,
  .has-megamenu:focus-within > a::after {
    transform: rotate(225deg) translateY(-2px);
  }
}

.megamenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(960px, calc(100vw - 3rem));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(10, 15, 45, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  z-index: 100;
}

@media (min-width: 1025px) {
  .has-megamenu:hover .megamenu,
  .has-megamenu:focus-within .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.megamenu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.megamenu-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  transition: background var(--transition);
}

/* hover removed — items stay flat */

.megamenu-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
}

.megamenu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.megamenu-item-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.megamenu-item-text span {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.megamenu-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.megamenu-footer a {
  color: var(--color-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* footer link hover removed */

@media (max-width: 1024px) {
  /* ----- accordion container ----- */
  .megamenu {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0.75rem 0 1rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    display: none;
    overflow: hidden;
  }

  .has-megamenu.open .megamenu {
    display: block;
    animation: accordionFade 260ms ease-out;
  }

  @keyframes accordionFade {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 800px;
    }
  }

  /* ----- 2-column grid of image cards ----- */
  .megamenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    border: none;
  }

  /* ----- card: image fills entire card, label overlays bottom ----- */
  .megamenu-item {
    display: block;
    position: relative;
    padding: 0;
    border-radius: 14px;
    border: none;
    background: transparent !important;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    grid-template-columns: none;
    transition: transform 150ms ease;
    isolation: isolate;
  }

  .megamenu-item:active {
    transform: scale(0.97);
  }

  /* image fills the whole card */
  .megamenu-item-thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #cfdbe0;
    z-index: 0;
  }

  .megamenu-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* dark gradient overlay for label legibility */
  .megamenu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(10, 15, 45, 0) 35%,
      rgba(10, 15, 45, 0.45) 70%,
      rgba(10, 15, 45, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* label overlay */
  .megamenu-item-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.7rem 0.85rem 0.85rem;
    z-index: 2;
    display: flex;
    align-items: flex-end;
  }

  .megamenu-item-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  .megamenu-item-text span {
    display: none;
  }

  /* no chevron in this layout */
  .megamenu-item::after {
    display: none;
  }

  /* ----- footer link ----- */
  .megamenu-footer {
    display: block;
    margin: 0.85rem 0 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  .megamenu-footer span {
    display: none;
  }

  .megamenu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: auto;
    padding: 0.4rem 0;
    justify-content: flex-start;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.92rem;
  }

  /* ----- the "Servizi" parent link ----- */
  .has-megamenu > a {
    justify-content: space-between;
  }

  .has-megamenu > a::after {
    content: "";
    width: 9px;
    height: 9px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    opacity: 0.5;
    transition: transform 220ms ease;
  }

  .has-megamenu.open > a {
    color: var(--color-accent);
  }

  .has-megamenu.open > a::after {
    transform: rotate(225deg) translateY(-3px);
    opacity: 1;
  }

  /* remove the bottom border of the Servizi li when accordion open */
  .nav-links > li.has-megamenu.open {
    border-bottom-color: transparent;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

.bg-surface {
  background: var(--color-surface);
}

.bg-dark {
  background: var(--color-text);
  color: var(--color-bg);
}

.bg-dark h2,
.bg-dark h3 {
  color: var(--color-bg);
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.7);
}
