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

:root {
  --navy:        #0B1C3D;
  --navy-mid:    #1A2F5A;
  --slate:       #4A5C7A;
  --slate-light: #8A9DB5;
  --emerald:     #0B8F64;
  --emerald-dk:  #097A55;
  --gold:        #C9A84C;
  --gold-light:  #E3C572;
  --cream:       #F6F5F1;
  --white:       #FFFFFF;
  --font-h:      'Montserrat', sans-serif;
  --font-b:      'Inter', sans-serif;
  --max-w:       1280px;
  --nav-h:       70px;
  --radius:      10px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 60px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-tag span {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn--primary { background: var(--emerald); color: var(--white); }
.btn--primary:hover { background: var(--emerald-dk); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-in   { animation: fadeIn 0.5s ease both; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(11,28,61,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 60px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.03em;
  flex: 1;
}
.nav-logo .nav-logo__dot { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-b);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  background: none;
  border-right: none;
  border-left: none;
  border-top: none;
}
.nav-link:hover, .nav-link--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--emerald);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 5px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition);
  margin-left: 8px;
}
.nav-cta:hover { background: var(--emerald-dk); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HOMEPAGE — HERO
══════════════════════════════════════════════════════════════════════════════ */
#page-wrapper { padding-top: var(--nav-h); }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2647 60%, #162F55 100%);
  min-height: calc(70vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  padding: 60px 60px;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  position: relative;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.hero__eyebrow span {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.85);
}
.hero__h1 {
  font-size: clamp(36px, 4vw, 50px);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__h1 em { color: var(--gold); font-style: italic; }
.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__portrait {
  position: relative;
}
.hero__portrait::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,0.4), transparent);
  z-index: 0;
}
.hero__portrait img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  filter: brightness(0.95) saturate(0.9);
}

/* ── Trust bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(11,28,61,0.07);
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 20px 60px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.trust-bar__label {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-bar__brands {
  flex: 1;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-bar__brands span {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  color: rgba(11,28,61,0.22);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Pillars ───────────────────────────────────────────────────────────────── */
.pillars {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 75px 60px;
}
.pillars__intro { margin-bottom: 48px; max-width: 560px; }
.pillars__intro h2 {
  font-size: clamp(30px, 3vw, 40px);
  color: var(--navy);
  line-height: 1.15;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid rgba(11,28,61,0.07);
  border-left: 3px solid rgba(11,28,61,0.12);
  transition: border-left-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.pillar-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.pillar-card:hover.pillar-card--emerald { border-left-color: var(--emerald); }
.pillar-card:hover.pillar-card--gold    { border-left-color: var(--gold); }
.pillar-card:hover.pillar-card--slate   { border-left-color: var(--slate); }
.pillar-card__icon { font-size: 28px; margin-bottom: 16px; }
.pillar-card__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar-card__body { font-size: 14.5px; color: var(--slate); line-height: 1.65; }

/* ── Stats band ────────────────────────────────────────────────────────────── */
.stats-band {
  background: var(--navy);
  padding: 54px 60px;
}
.stats-band__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 44px;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.4;
}

/* ── Home CTA ──────────────────────────────────────────────────────────────── */
.home-cta {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 75px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.home-cta h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.home-cta p { font-size: 16px; color: var(--slate); line-height: 1.65; margin-bottom: 32px; }

.home-cta__img { position: relative; }
.home-cta__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  filter: saturate(0.7) brightness(0.95);
}
.home-cta__caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,28,61,0.5), transparent);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.home-cta__caption-text strong {
  display: block;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.home-cta__caption-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHI SONO
══════════════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 60px 60px 54px;
}
.page-hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; }
.page-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  filter: saturate(0.85);
}

/* Adsense artifact */
.artifact {
  background: var(--white);
  border-bottom: 1px solid rgba(11,28,61,0.07);
}
.artifact__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 54px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.artifact h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.artifact p { font-size: 15.5px; color: var(--slate); line-height: 1.7; margin-bottom: 16px; }
.artifact__img-wrap { position: relative; }
.artifact__img-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), transparent);
}
.artifact__img-wrap img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  position: relative;
  filter: sepia(0.15) brightness(0.95);
}
.artifact__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 12px;
}

/* Timeline */
.timeline { background: var(--cream); padding: 75px 60px; }
.timeline__wrap { max-width: 900px; margin-inline: auto; }
.timeline__header { text-align: center; margin-bottom: 48px; }
.timeline__header h2 { font-size: clamp(28px, 3vw, 38px); color: var(--navy); }
.timeline__items { position: relative; }
.timeline__items::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(11,28,61,0.1);
  transform: translateX(-50%);
}
.timeline__item {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}
.timeline__item--left  { justify-content: flex-end; }
.timeline__item--right { justify-content: flex-start; }
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline__dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.timeline__card {
  width: calc(50% - 36px);
  background: var(--white);
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid rgba(11,28,61,0.08);
}
.timeline__card--highlight {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 4px 20px rgba(201,168,76,0.1);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline__year {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 18px;
  color: var(--emerald);
}
.timeline__year--gold { color: var(--gold); }
.timeline__label {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.timeline__text { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* Certifications */
.certifications {
  background: var(--navy);
  padding: 54px 60px;
}
.certifications__inner { max-width: var(--max-w); margin-inline: auto; }
.certifications__header { text-align: center; margin-bottom: 36px; }
.certifications__header h2 { font-size: clamp(26px, 3vw, 34px); color: var(--white); }
.certifications__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin-inline: auto;
}
.cert-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.cert-card img { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════════
   SERVIZI
══════════════════════════════════════════════════════════════════════════════ */
.services {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(11,28,61,0.08);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.service-card.open { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.service-card__header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 40px;
  cursor: pointer;
  list-style: none;
}
.service-card__header::-webkit-details-marker { display: none; }
.service-card__num {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: rgba(11,28,61,0.08);
  flex-shrink: 0;
}
.service-card__title-wrap { flex: 1; }
.service-card__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-card__sub { font-size: 14.5px; color: var(--slate); }
.service-card__arrow {
  font-size: 20px;
  color: var(--slate-light);
  transition: transform var(--transition);
}
details[open] .service-card__arrow { transform: rotate(180deg); }

.service-card__body {
  padding: 0 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid rgba(11,28,61,0.07);
  padding-top: 28px;
}
.service-card__items li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.service-card__items li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.service-card--emerald .service-card__items li::before { background: var(--emerald); }
.service-card--gold    .service-card__items li::before { background: var(--gold); }
.service-card--slate   .service-card__items li::before { background: var(--slate); }
.service-card__items li span { font-size: 14px; color: var(--slate); line-height: 1.55; }
.service-card__stack-label {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 14px;
}
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.service-card__tag {
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
}
.service-card--emerald .service-card__tag { background: rgba(11,143,100,0.12); color: var(--emerald); }
.service-card--gold    .service-card__tag { background: rgba(201,168,76,0.12); color: var(--gold); }
.service-card--slate   .service-card__tag { background: rgba(74,92,122,0.12); color: var(--slate); }

/* MER section */
.mer {
  background: var(--white);
  padding: 54px 60px;
  border-top: 1px solid rgba(11,28,61,0.07);
  border-bottom: 1px solid rgba(11,28,61,0.07);
}
.mer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mer h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.mer p { font-size: 15.5px; color: var(--slate); line-height: 1.7; margin-bottom: 20px; }
.mer__box { background: var(--cream); border-radius: 12px; padding: 40px; }
.mer__formula-label {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.mer__formula {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 28px;
}
.mer__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11,28,61,0.07);
}
.mer__val {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 22px;
  width: 70px;
  flex-shrink: 0;
}
.mer__row-title { font-family: var(--font-b); font-weight: 600; font-size: 14px; color: var(--navy); }
.mer__row-sub { font-family: var(--font-b); font-size: 12px; color: var(--slate-light); margin-top: 2px; }

/* Tech stack */
.tech-stack { max-width: var(--max-w); margin-inline: auto; padding: 60px 60px; }
.tech-stack__header { text-align: center; margin-bottom: 42px; }
.tech-stack__header h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.tech-stack__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(11,28,61,0.08);
}
.tech-card__cat {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 16px;
}
.tech-card__tool {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 7px 0;
  border-bottom: 1px solid rgba(11,28,61,0.06);
}

/* ══════════════════════════════════════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════════════════════════════════════ */
.blog-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 54px 60px;
}
.blog-grid__posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.blog-filter {
  background: var(--white);
  border-bottom: 1px solid rgba(11,28,61,0.07);
}
.blog-filter__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 60px;
  display: flex;
  gap: 4px;
  padding-block: 16px;
}
.blog-filter__btn {
  background: transparent;
  color: var(--slate);
  border: 1px solid rgba(11,28,61,0.15);
  padding: 7px 18px;
  border-radius: 100px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.blog-filter__btn:hover, .blog-filter__btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(11,28,61,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); }
.post-card__accent { height: 4px; }
.post-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__content { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.post-card__tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-card__read { font-family: var(--font-b); font-size: 12px; color: var(--slate-light); }
.post-card__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.post-card__excerpt { font-size: 13.5px; color: var(--slate); line-height: 1.65; flex: 1; }
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(11,28,61,0.07);
}
.post-card__date { font-family: var(--font-b); font-size: 12px; color: var(--slate-light); }
.post-card__cta { font-family: var(--font-b); font-size: 13px; font-weight: 600; }

/* Newsletter box */
.newsletter-box {
  margin-top: 72px;
  background: var(--navy);
  border-radius: 12px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.newsletter-box h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 10px;
}
.newsletter-box p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-b);
  font-size: 14px;
  width: 220px;
  outline: none;
  color: var(--navy);
}

/* Single post */
.single-post {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 60px 60px;
}
.single-post__featured {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
}
.single-post__featured img { width: 100%; height: auto; display: block; }
.single-post__content,
.single-post__tags,
.single-post__nav {
  max-width: 720px;
  margin-inline: auto;
}
.single-post__header { margin-bottom: 48px; }
.single-post__title { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin-bottom: 20px; }
.single-post__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--slate-light);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(11,28,61,0.08);
}
.single-post__content { font-size: 16px; color: var(--slate); line-height: 1.75; }
.single-post__content h2 { font-size: 26px; color: var(--navy); margin: 40px 0 16px; }
.single-post__content h3 { font-size: 20px; color: var(--navy); margin: 32px 0 12px; }
.single-post__content p { margin-bottom: 20px; }
.single-post__content ul, .single-post__content ol { margin: 0 0 20px 24px; }
.single-post__content li { margin-bottom: 8px; }
.single-post__content a { color: var(--emerald); text-decoration: underline; }
.single-post__content img { border-radius: 8px; margin: 32px 0; }
.single-post__content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--navy);
}
.single-post__tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(11,28,61,0.08);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.single-post__tags span {
  padding: 5px 14px;
  background: rgba(11,28,61,0.06);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-b);
  color: var(--slate);
}
.single-post__nav {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.single-post__nav a {
  padding: 24px;
  background: var(--cream);
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(11,28,61,0.08);
  display: block;
}
.single-post__nav a:last-child { text-align: right; }
.single-post__nav-label {
  font-size: 11px;
  font-family: var(--font-b);
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.single-post__nav-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════════════════════════════════════════ */
.contact-layout {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 54px 60px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 48px;
  border: 1px solid rgba(11,28,61,0.07);
}
.contact-form-wrap h2 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(11,28,61,0.15);
  border-radius: 6px;
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; line-height: 1.55; }
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 15px;
}
.form-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-privacy label {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.4;
}
.form-privacy label a {
  color: var(--emerald);
  text-decoration: underline;
}
.form-note {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--slate-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.form-success {
  background: var(--emerald);
  border-radius: 12px;
  padding: 48px 40px;
  color: var(--white);
  text-align: center;
}
.form-success__icon { font-size: 48px; margin-bottom: 16px; }
.form-success h2 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--white);
}
.form-success p { font-size: 15px; opacity: 0.85; line-height: 1.6; }

.contact-sidebar .contact-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 24px;
}
.contact-card__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 20px;
}
.contact-card__item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-card__item-label {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}
.contact-card__item-val { font-family: var(--font-b); font-size: 14px; color: rgba(255,255,255,0.85); }
.contact-note {
  background: var(--cream);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(11,28,61,0.08);
}
.contact-note h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-note p { font-size: 13.5px; color: var(--slate); line-height: 1.6; }

/* FAQ */
.faq { background: var(--white); padding: 54px 60px; border-top: 1px solid rgba(11,28,61,0.07); }
.faq__inner { max-width: 800px; margin-inline: auto; }
.faq__header { text-align: center; margin-bottom: 36px; }
.faq__header h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); }
.faq-item { border-bottom: 1px solid rgba(11,28,61,0.08); }
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 16px;
  text-align: left;
}
.faq-item__q span:first-child {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.4;
}
.faq-item__icon {
  font-family: var(--font-b);
  font-size: 18px;
  color: var(--slate-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { display: none; padding-bottom: 22px; }
.faq-item.open .faq-item__a { display: block; }
.faq-item__a p { font-size: 14.5px; color: var(--slate); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════════════════
   CTA BAND (shared)
══════════════════════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--navy);
  padding: 54px 60px;
  text-align: center;
}
.cta-band__inner { max-width: 600px; margin-inline: auto; }
.cta-band h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: #060E1E;
  padding: 36px 60px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: var(--max-w); margin-inline: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: block;
}
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 280px; }
.footer-nav__title {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-nav ul li, .footer-contacts ul li {
  margin-bottom: 10px;
}
.footer-nav a, .footer-contacts a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--gold); }
.footer-contacts ul { margin-bottom: 16px; }
.footer-contacts ul li { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-cta { margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container,
  .hero__inner,
  .trust-bar__inner,
  .pillars,
  .stats-band,
  .home-cta,
  .page-hero,
  .page-hero__inner,
  .artifact__inner,
  .timeline,
  .certifications,
  .services,
  .mer__inner,
  .tech-stack,
  .blog-grid,
  .blog-filter__inner,
  .contact-layout,
  .faq,
  .cta-band,
  .single-post { padding-inline: 32px; }

  .nav-inner { padding-inline: 32px; }
  .footer-inner, .site-footer { padding-inline: 32px; }
  .newsletter-box { padding: 32px; }

  .hero__inner,
  .page-hero__inner,
  .artifact__inner,
  .home-cta { grid-template-columns: 1fr; gap: 40px; }

  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .tech-stack__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid__posts { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .certifications__grid { grid-template-columns: 1fr; }
  .mer__inner { grid-template-columns: 1fr; }
  .newsletter-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 32px; }
  .nav-cta { margin: 12px 32px 0; }
  .nav-toggle { display: flex; margin-left: auto; }

  .hero__portrait { display: none; }
  .pillars__grid { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
  .tech-stack__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid__posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-card__body { grid-template-columns: 1fr; }
  .home-cta__img { display: none; }

  .timeline__items::before { display: none; }
  .timeline__item { justify-content: flex-start; }
  .timeline__dot { display: none; }
  .timeline__card { width: 100%; }

  .nav-link { border-bottom: none; }

  .contact-layout { padding-inline: 16px; padding-top: 30px; padding-bottom: 30px; }
  .contact-form-wrap { padding: 28px 20px; }
  .faq { padding-inline: 16px; }

  .single-post { padding: 24px 16px 36px; }
  .single-post__featured { margin-bottom: 24px; }
  .single-post__content h2 { font-size: 19px; margin: 22px 0 10px; }
  .single-post__content h3 { font-size: 16px; margin: 18px 0 8px; }
  .single-post__content p { margin-bottom: 14px; }
  .single-post__content img { margin: 20px 0; }
  .single-post__nav { grid-template-columns: 1fr; }
  .single-post__nav a:last-child { text-align: left; }

  .mer { padding-inline: 16px; }
  .mer__inner { padding-inline: 0; }
  .tech-stack { padding-inline: 16px; }
  .services { padding-inline: 16px; }
  .pillars { padding-inline: 16px; }
  .stats-band { padding-inline: 16px; }
  .cta-band { padding: 36px 16px; }
}
