/* ===== Tema Avvocati Salento - Bootstrap 5 ===== */
:root {
  --bs-primary: #0f1a2c;
  --bs-primary-rgb: 15, 26, 44;
  --bs-secondary: #37373f;
  --bs-secondary-rgb: 55, 55, 63;
  --bs-body-font-family: "Montserrat", sans-serif;
  --bs-body-color: #757575;
  --bs-body-color-rgb: 117, 117, 117;
  --bs-heading-color: #37373f;
  --bs-border-radius: 5px;
  --bs-link-color: #0f1a2c;
  --bs-link-color-rgb: 15, 26, 44;
  --bs-link-hover-color: #243b66;
  --bs-link-hover-color-rgb: 36, 59, 102;
  --accent: #b49c73; /* colore chiaro per i punti su sfondo scuro */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Roboto", sans-serif; line-height: 1.2; }
h1, h2, h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 500; }

/* Pulsanti */
.btn { --bs-btn-padding-x: 25px; --bs-btn-padding-y: 10px; --bs-btn-font-weight: 600; }
.btn-sm { --bs-btn-padding-x: .75rem; --bs-btn-padding-y: .3rem; }

.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #0f1a2c; --bs-btn-border-color: #0f1a2c;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1c2f52; --bs-btn-hover-border-color: #1c2f52;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #243b66; --bs-btn-active-border-color: #243b66;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #0f1a2c; --bs-btn-disabled-border-color: #0f1a2c;
  --bs-btn-focus-shadow-rgb: 15, 26, 44;
}
.btn-secondary {
  --bs-btn-color: #fff; --bs-btn-bg: #37373f; --bs-btn-border-color: #37373f;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #25252b; --bs-btn-hover-border-color: #25252b;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1f1f24; --bs-btn-active-border-color: #1f1f24;
  --bs-btn-focus-shadow-rgb: 55, 55, 63;
}
.btn-outline-primary {
  --bs-btn-color: #0f1a2c; --bs-btn-border-color: #0f1a2c;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0f1a2c; --bs-btn-hover-border-color: #0f1a2c;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #0f1a2c; --bs-btn-active-border-color: #0f1a2c;
  --bs-btn-disabled-color: #0f1a2c; --bs-btn-disabled-border-color: #0f1a2c;
  --bs-btn-focus-shadow-rgb: 15, 26, 44;
}

/* Pulsante primario su sfondi scuri (carosello, riquadro "Cominciamo") */
.carousel-caption .btn-primary,
.bg-action .btn-primary {
  --bs-btn-color: #0f1a2c; --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #0f1a2c; --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-color: #0f1a2c; --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent);
}

/* Il blu scuro non si legge sul grigio scuro: lì resta il colore chiaro */
.bg-secondary .text-primary,
.bg-secondary.text-primary,
.owl-carousel .owl-nav button { color: var(--accent) !important; }

/* ===== Componenti del tema ===== */
.btn-square, .btn-sm-square, .btn-lg-square {
  padding: 0; display: flex; align-items: center; justify-content: center;
}
.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.icon-box {
  width: 90px; height: 90px; border-radius: 90px;
  display: flex; align-items: center; justify-content: center;
}

.back-to-top { position: fixed; display: none; right: 15px; bottom: 15px; z-index: 11; }

.navbar-dark .navbar-nav .nav-link { font-family: "Roboto", sans-serif; font-weight: 500; }

.carousel-caption {
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(55, 55, 63, .7);
  z-index: 1;
}


@media (min-width: 992px) { .feature-text { margin-left: -100px; } }

.bg-page-header {
  background: linear-gradient(rgba(55, 55, 63, .7), rgba(55, 55, 63, .7)), url(../img/carousel-2.jpg) center/cover no-repeat;
}
.bg-appointment {
  background: linear-gradient(rgba(55, 55, 63, .7), rgba(55, 55, 63, .7)), url(../img/carousel-1.jpg) center/cover no-repeat;
}
.bg-action {
  background: linear-gradient(rgba(55, 55, 63, .7), rgba(55, 55, 63, .7)), url(../img/carousel-3.jpg) center/cover no-repeat;
}

/* Owl Carousel */
.owl-carousel .owl-nav {
  position: absolute; width: 100px; height: 40px; top: -70px; left: calc(50% - 50px);
  display: flex; align-items: center; justify-content: space-between;
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #37373f; border: 0; border-radius: 5px; font-size: 22px;
}

.team-img .team-social {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(55, 55, 63, .7); transition: .5s; z-index: 1; opacity: 0;
}
.team-item:hover .team-social { opacity: 1; }

.testimonial-text::after {
  position: absolute; content: ""; width: 0; height: 0; bottom: -24px; left: 28px;
  border: 12px solid; border-color: #37373f transparent transparent transparent; z-index: 1;
}
.testimonial-carousel .owl-dots { position: absolute; width: 100%; top: -50px; text-align: center; }
.testimonial-carousel .owl-dot {
  position: relative; display: inline-block; margin: 0 8px;
  width: 15px; height: 15px; border-radius: 15px; background: #0f1a2c;
}
.testimonial-carousel .owl-dot::after {
  position: absolute; content: ""; top: -5px; right: -5px; bottom: -5px; left: -5px;
  border: 2px solid #0f1a2c; border-radius: 20px;
}
.testimonial-carousel .owl-dot.active { background: #343a40; }

.contact-form .help-block ul { margin: 0; padding: 0; list-style-type: none; }

/* Footer: sul blu scuro icone e titoli usano il colore chiaro */
.footer-site .text-primary { color: var(--accent) !important; }
.footer-site a:hover { color: var(--accent) !important; }

/* Testimonianze: freccetta blu e pallini senza stile di default */
.testimonial-text::after {
  border-color: #0f1a2c transparent transparent transparent;
}
.testimonial-carousel .owl-dot {
  border: 0;
  padding: 0;
}

.navbar-logo { height: 50px; width: auto; }

.bg-page-header {
  background:
    linear-gradient(rgba(15, 26, 44, .75), rgba(15, 26, 44, .75)),
    url(../img/carousel-2.jpg) center/cover no-repeat #0f1a2c;
}