/* Agenzie page specific styles */
.bfz-agenzie {
  position: relative;
  padding-bottom: 44px;
}

.bfz-agenzie-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px) 0 clamp(76px, 8vw, 116px);
  background: var(--bfz-blue);
}

.bfz-agenzie-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(243, 244, 247, 0), rgba(243, 244, 247, 0.96));
  pointer-events: none;
}

.bfz-agenzie-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.bfz-agenzie-hero-copy {
  max-width: 900px;
  text-align: center;
}

.bfz-agenzie-hero-copy h1 {
  margin: 0;
  color: var(--bfz-white);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
  font-weight: 800;
}

.bfz-agenzie-hero-copy p {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1rem, 1.4vw, 1.26rem);
  line-height: 1.45;
  max-width: 64ch;
}

.bfz-agenzie-map-wrap {
  margin-top: clamp(-72px, -6vw, -48px);
  position: relative;
  z-index: 3;
}

.bfz-agenzie-map-card {
  background: #f3f4f7;
  border: 1px solid rgba(23, 72, 142, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(23, 43, 70, 0.18);
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
}

.bfz-agenzie-map {
  width: 100%;
  height: 500px;
  border-radius: 18px;
}

.bfz-agenzie-list-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--bfz-bg);
}

.bfz-agenzie-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.bfz-agenzie-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.bfz-agenzie-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bfz-agenzie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bfz-agenzie-card--primary {
  background: #1a2f58;
  color: #ffffff;
}

.bfz-agenzie-card--secondary {
  background: #1a2f58;
  color: #ffffff;
}

.bfz-agenzie-card--tertiary {
  background: #1a2f58;
  color: #ffffff;
}

.bfz-agenzie-distance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.bfz-agenzie-distance i {
  font-size: 1rem;
}

.bfz-distance-value {
  font-weight: 700;
  font-size: 1rem;
}

.bfz-agenzie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bfz-agenzie-card:hover::before {
  opacity: 1;
}

.bfz-agenzie-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
}

.bfz-agenzie-card-content {
  min-width: 0;
}

.bfz-agenzie-card-content h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.bfz-agenzie-card-content p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.4;
}

.bfz-agenzie-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  margin-top: auto;
}

.bfz-agenzie-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.bfz-agenzie-action-btn:hover,
.bfz-agenzie-action-btn:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.08);
}

.bfz-agenzie-action-btn:active {
  transform: scale(0.96);
}

.bfz-agenzie-directions-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #1a2f58;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.bfz-agenzie-directions-btn i {
  font-size: 1.05rem;
}

.bfz-agenzie-directions-btn:hover,
.bfz-agenzie-directions-btn:focus-visible {
  background: #eaf0ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.bfz-agenzie-directions-btn:active {
  transform: translateY(0);
}

.bfz-agenzie-card-details {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardPulse {
  0% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.4);
  }
  100% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

.bfz-agenzie-card-details p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.bfz-agenzie-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bfz-agenzie-contact i {
  margin-top: 2px;
  font-size: 0.95rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.bfz-agenzie-contact a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.bfz-agenzie-contact a:hover,
.bfz-agenzie-contact a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991.98px) {
  .bfz-agenzie-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .bfz-agenzie-card {
    gap: 14px;
    padding: clamp(16px, 2.5vw, 24px);
  }

  .bfz-agenzie-action-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .bfz-agenzie-map {
    height: 300px;
  }

  .bfz-agenzie-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 575.98px) {
  .bfz-agenzie-cards {
    grid-template-columns: 1fr;
  }

  .bfz-agenzie-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .bfz-agenzie-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .bfz-agenzie-action-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .bfz-agenzie-card-content h3 {
    font-size: 1.05rem;
  }

  .bfz-agenzie-card-content p {
    font-size: 0.9rem;
  }

  .bfz-agenzie-map {
    height: 250px;
  }

  .bfz-agenzie-list-section {
    padding: 30px 0;
  }

  .bfz-agenzie-map-section {
    padding: 30px 0;
  }

  .bfz-agenzie-hero {
    padding: 30px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bfz-agenzie-card,
  .bfz-agenzie-action-btn,
  .bfz-agenzie-card-details {
    transition: none;
    animation: none;
  }

  .bfz-agenzie-card:hover {
    transform: none;
  }

  .bfz-agenzie-action-btn:hover,
  .bfz-agenzie-action-btn:active {
    transform: none;
  }
}
