/* ========== SRG Video Hero ========== */
.srg-hero-video {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  max-width: none;
}

.srg-hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srg-hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35), rgba(0, 0, 0, .65));
}

.srg-hero-video__content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 56px);
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
}

.srg-hero-video__content .mil-breadcrumbs li,
.srg-hero-video__content .mil-breadcrumbs a {
  color: rgba(255, 255, 255, .9);
}

.srg-hero-video__content .mil-breadcrumbs {
  justify-content: center;
}

.srg-hero-kicker {
  color: #c5a059;
  text-transform: uppercase;
  letter-spacing: .24em;
  margin: 0 0 14px;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
}

.srg-hero-title {
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: #fff;
}

.srg-hero-lead {
  color: rgba(255, 255, 255, .82);
  margin: 0 auto 34px;
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 300;
  line-height: 1.45;
  max-width: 30ch;
}

.srg-hero-btn {
  display: inline-block;
  background: #c5a059;
  color: #fff;
  border: 1px solid #c5a059;
  padding: 14px 34px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  transition: all .3s ease;
}

.srg-hero-btn:hover,
.srg-hero-btn:focus {
  background: #fff;
  color: #111;
}

.srg-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  animation: srgHeroBounce 1.8s infinite;
}

.srg-hero-scroll:hover,
.srg-hero-scroll:focus {
  color: #c5a059;
}

@keyframes srgHeroBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ========== SRG Projects Grid ========== */
.srg-projects {
  padding: 48px 0 90px;
}

.srg-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.srg-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  will-change: transform;
  transition: transform .8s cubic-bezier(.4,0,.2,1),
              box-shadow .8s cubic-bezier(.4,0,.2,1);
}

.srg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .12);
}

.srg-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-radius: 18px;
}

.srg-card__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.srg-card__name {
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srg-card__year {
  font-size: 12px;
  font-weight: 500;
  color: #4f4f4f;
  opacity: 1;
  display: inline-flex;
  gap: 8px;
}

.srg-card__dots {
  display: inline-flex;
  gap: 6px;
}

.srg-card__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e7e7e7;
}

/* Media area — white background container matching Framer template */
.srg-card__media {
  position: relative;
  border-radius: 18px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 750 / 540;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image — scale + blur on hover */
.srg-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0px);
  transform: scale(1);
  opacity: 1;
  will-change: transform, filter;
  transition: transform .8s cubic-bezier(.4,0,.2,1),
              filter .8s cubic-bezier(.4,0,.2,1),
              opacity .45s ease;
}

.srg-card:hover .srg-card__bg {
  transform: scale(1.1);
  filter: blur(8px);
}

/* Shade overlay — darken on hover */
.srg-card__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .15);
  z-index: 2;
  transition: opacity .8s cubic-bezier(.4,0,.2,1);
}

.srg-card:hover .srg-card__shade {
  opacity: .22;
}

/* Logo — centered, counter-scale on hover (matching Framer template) */
.srg-card__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 5;
  width: 40%;
  min-width: 160px;
  max-width: 270px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
  will-change: transform;
  transition: transform .8s cubic-bezier(.4,0,.2,1),
              filter .35s ease,
              opacity .35s ease;
}

.srg-card:hover .srg-card__logo {
  transform: translate(-50%, -50%) scale(0.9);
}

/* Brand-specific solid hover system */
.srg-card--solid-hover {
  --brand-hover-bg: #fff;
  --brand-logo-filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35));
}

.srg-card--solid-hover .srg-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-hover-bg);
  opacity: 0;
  z-index: 1;
  transition: opacity .35s ease;
}

.srg-card--solid-hover:hover .srg-card__media::before {
  opacity: 1;
}

.srg-card--solid-hover:hover .srg-card__bg {
  opacity: 0;
  transform: scale(1.02);
  filter: blur(0);
}

.srg-card--solid-hover:hover .srg-card__shade {
  opacity: 0;
}

.srg-card--solid-hover:hover .srg-card__logo:not(.srg-card__logo-hover) {
  filter: var(--brand-logo-filter);
}

.srg-card__logo-hover {
  opacity: 0;
  z-index: 6;
}

.srg-card--swap-logo:hover .srg-card__logo:not(.srg-card__logo-hover) {
  opacity: 0;
}

.srg-card--swap-logo:hover .srg-card__logo-hover {
  opacity: 1;
}

/* Brand color tokens */
.srg-card--al-wajaha {
  --brand-hover-bg: #ffffff;
  --brand-logo-filter: brightness(0) saturate(0%) invert(52%);
}

.srg-card--alpina {
  --brand-hover-bg: #145f78;
  --brand-logo-filter: brightness(0) saturate(100%) invert(74%) sepia(23%) saturate(546%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.srg-card--alumo {
  --brand-hover-bg: #9fc2ca;
  --brand-logo-filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .25));
}

.srg-card--bianco-fratello {
  --brand-hover-bg: #40504f;
  --brand-logo-filter: brightness(0) saturate(100%) invert(74%) sepia(23%) saturate(546%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.srg-card--dormeuil {
  --brand-hover-bg: #34423e;
  --brand-logo-filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35));
}

.srg-card--drapers {
  --brand-hover-bg: #152649;
  --brand-logo-filter: brightness(0) saturate(100%) invert(74%) sepia(23%) saturate(546%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.srg-card--hield {
  --brand-hover-bg: #151943;
}

.srg-card--luiciano,
.srg-card--lencioni {
  --brand-hover-bg: #000000;
  --brand-logo-filter: brightness(0) saturate(100%) invert(74%) sepia(23%) saturate(546%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.srg-card--mario-valentino {
  --brand-hover-bg: #000000;
  --brand-logo-filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35));
}

.srg-card--stefano-borella {
  --brand-hover-bg: #761415;
  --brand-logo-filter: brightness(0) saturate(100%) invert(74%) sepia(23%) saturate(546%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.srg-card--via-milano {
  --brand-hover-bg: #141f4a;
}

@media (max-width: 1199px) {
  .srg-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .srg-projects__grid {
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .srg-projects__grid {
    grid-template-columns: 1fr;
  }
}

