/* ============================================================
   PWB Forensic — expertscard.css
   NESSUNA regola globale su: nav, ul, img, .flag, .dropdown-*,
   .hamburger, .menu, body padding laterale.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

/* ── Reset base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  /* padding-top gestito da navbar.html */
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0 0 1rem 0;
  padding: 0;
}

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

/* ── Immagini SOLO dentro i contenitori della pagina ──
   MAI "img { }" globale: romperebbe le bandiere navbar  */
.expert-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}


/* ════════════════════════════════
   CONTENT BOX
   ════════════════════════════════ */
.content-box {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
}

.content-box h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  padding-top: 40px;
  margin-bottom: 0;
}

.content-box h1::after {
  content: "";
  background: #e47911;
  display: block;
  height: 3px;
  width: 170px;
  margin: 20px auto 50px;
}


/* ════════════════════════════════
   EXPERTS GRID
   ════════════════════════════════ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.service-box {
  background: #111;
  padding: 50px 30px;
  min-height: 350px;
  text-align: center;
  border-radius: 15px;
  transition: background 0.5s, box-shadow 0.5s;
}

.service-box:hover {
  background: linear-gradient(rgba(0,0,0,0.5), #e47911);
  color: #fff;
  cursor: pointer;
  box-shadow: -5px 5px 10px rgba(0,0,0,0.4);
}

/* Contenitore foto — non usa la classe .icon globale */
.service-box .expert-icon {
  margin: 20px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e47911;
  transition: border-color 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-box:hover .expert-icon {
  border-color: #fff;
}

.service-box h3 {
  font-size: 1.4rem;
  margin-top: 20px;
  color: #fff;
}

.service-box h3 span {
  color: #e47911;
  transition: color 0.5s;
}

.service-box:hover h3 span {
  color: #fff;
}

.service-box p {
  font-size: 1rem;
  margin-top: 10px;
  padding: 0 10px;
  color: #ccc;
  line-height: 1.6;
}

/* Bottone portfolio */
.service-box .btn {
  background-color: #e47911;
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.service-box .btn:hover {
  background-color: #c96800;
}


/* ════════════════════════════════
   FOOTER NOTE
   ════════════════════════════════ */
.note {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: #444;
  border-top: 1px solid #1e1e1e;
  letter-spacing: 0.5px;
}


/* ════════════════════════════════
   RESPONSIVE — TABLET ≤ 900px
   ════════════════════════════════ */
@media (max-width: 900px) {

  body {
    padding-top: 60px;
  }

  .content-box h1 {
    font-size: 2.2rem;
  }

  .services {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }

  .service-box {
    padding: 36px 20px;
    min-height: 280px;
  }
}


/* ════════════════════════════════
   RESPONSIVE — MOBILE ≤ 600px
   ════════════════════════════════ */
@media (max-width: 600px) {

  body {
    padding-top: 60px;
  }

  .content-box {
    padding: 40px 16px;
  }

  .content-box h1 {
    font-size: 1.8rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-box {
    padding: 30px 16px;
    min-height: auto;
  }

  .service-box h3  { font-size: 1.2rem; }
  .service-box p   { font-size: 0.95rem; }
  .service-box .btn { font-size: 0.9rem; padding: 10px 22px; }
}
