body {
  padding-top: 96px;
  background: #eef3f7;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background: linear-gradient(90deg, rgba(0, 120, 160, 0.92), rgba(0, 188, 212, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1050;
}

.logo-escola {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: white;
  padding: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-escola:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.nome-escola {
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: 0.4px;
  text-shadow: 0 0 3px rgba(0, 0, 0, .3);
}

.sottotitolo {
  font-size: 0.75rem;
  color: #dbe8ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-link.section-link {
  color: rgba(255, 255, 255, .92) !important;
  font-weight: 600;
  padding: .35rem .6rem !important;
  border-radius: 10px;
}

.nav-link.section-link:hover {
  background: rgba(255, 255, 255, .14);
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-weight: 800;
  color: #0b3c54;
}

.section-sub {
  color: #4a6070;
}

/* Hero */
.hero-landing {
  max-width: 1100px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  background: #0b5b7a;
  position: relative;
}

.hero-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .20)),
    url('assets/hero-escola.jpg') center/cover no-repeat;
}

.hero-landing .hero-inner {
  position: relative;
  padding: 56px 40px;
  color: #fff;
}

.hero-landing h1 {
  font-weight: 900;
  letter-spacing: .2px;
}

.hero-landing p {
  max-width: 760px;
  opacity: .95;
}

.card-soft {
  border: 1px solid rgba(13, 110, 253, .08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  background: #fff;
}

.icon-pill {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(13, 110, 253, .10);
  color: #0d6efd;
  flex: 0 0 auto;
}

.stat {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .05);
}

.stat .num {
  font-size: 1.08rem;
  font-weight: 900;
  color: #0b3c54;
}

/* Galeria */
.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

/* Chefes */
#departamentos {
  scroll-margin-top: 100px;
}

#sobre,
#alunos,
#galeria,
#contactos {
  scroll-margin-top: 100px;
}

.chefes-departamento {
  max-width: 1100px;
  margin: 60px auto 20px;
  text-align: center;
  padding: 10px 20px 30px;
}

.chefes-departamento h2 {
  color: #003366;
  margin-bottom: 30px;
  font-size: 1.9rem;
  font-weight: 900;
}

.chefes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.chefe-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  width: 240px;
  padding: 22px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.chefe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
}

.chefe-foto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid rgba(0, 51, 102, .12);
}

.chefe-card h3 {
  color: #003366;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 900;
}

.chefe-card p {
  font-size: .9rem;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.3;
}

.badge-dep {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  color: #fff;
}

.dep-ciencias {
  background: #00796b;
}

.dep-matematica {
  background: #1565c0;
}

.dep-linguas {
  background: #8e24aa;
}

.dep-tecnologia {
  background: #ef6c00;
}

.linkedin {
  display: inline-block;
  color: #0077b5;
  font-size: 1.5rem;
}

.linkedin:hover {
  color: #005580;
}

.facebook {
  display: inline-block;
  color: #1877f2;
  font-size: 1.5rem;
}

.facebook:hover {
  color: #0f5dc2;
}

footer {
  background: linear-gradient(90deg, rgba(0, 120, 160, 0.92), rgba(0, 188, 212, 0.92));
  color: white;
  text-align: center;
  padding: 18px 15px;
  margin-top: 40px;
  font-size: 0.92rem;
}


/*
html {
  scroll-behavior: smooth;
}
*/



/* Menu mobile: sfondo + padding quando è aperto */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 10px;
  }

  .navbar .navbar-nav {
    gap: 4px !important;
  }

  .navbar .btn {
    width: 100%;
  }
}

/* Link attivo (sezione corrente) */
.nav-link.section-link.active {
  background: rgba(255, 255, 255, .22);
  color: #fff !important;
}

/* Piccolo “dot” sotto (solo desktop) */
@media (min-width: 992px) {
  .nav-link.section-link.active {
    position: relative;
  }

  .nav-link.section-link.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 96px;
  background: #eef3f7;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background: linear-gradient(90deg, rgba(0, 120, 160, 0.92), rgba(0, 188, 212, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1050;
}

.navbar.is-scrolled {
  background: linear-gradient(90deg, rgba(0, 90, 125, 0.98), rgba(0, 160, 180, 0.98));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.logo-escola {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}

.logo-escola:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(255, 255, 255, .8);
}

.nome-escola {
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: .4px;
  text-shadow: 0 0 3px rgba(0, 0, 0, .3);
}

.sottotitolo {
  font-size: .75rem;
  color: #dbe8ff;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.nav-link.section-link {
  color: rgba(255, 255, 255, .92) !important;
  font-weight: 600;
  padding: .35rem .6rem !important;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}

.nav-link.section-link:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.nav-link.section-link.active {
  background: rgba(255, 255, 255, .22);
  color: #fff !important;
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-weight: 800;
  color: #0b3c54;
}

.section-sub {
  color: #4a6070;
}

.site-footer {
  background: linear-gradient(90deg, rgba(0, 120, 160, 0.92), rgba(0, 188, 212, 0.92));
  color: #fff;
  text-align: center;
  padding: 18px 15px;
  margin-top: 40px;
  font-size: .92rem;
}

/* Mobile menu panel */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 10px;
  }

  .navbar .navbar-nav {
    gap: 4px !important;
  }

  .navbar .btn {
    width: 100%;
  }
}

/* DOT animato desktop */
@media (min-width: 992px) {
  .navbar .container-fluid {
    position: relative;
  }

  .nav-indicator {
    position: absolute;
    bottom: 10px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    transition: left .25s ease, width .25s ease, opacity .2s ease;
    opacity: 0;
    pointer-events: none;
  }
}


/*
.badge-materia {
  display: inline-block;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .75rem;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  color: #0b3c54;
  margin: 2px 4px 0 0;
}
*/
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
}

.teacher-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.teacher-avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, .06);
}

.teacher-badges {
  min-height: 44px;
}

#professores {
  scroll-margin-top: 100px;
}


#carouselProf .carousel-control-prev,
#carouselProf .carousel-control-next{
  width: 8%;
}
#carouselProf .carousel-control-prev-icon,
#carouselProf .carousel-control-next-icon{
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}

/* ===== Professores badges (allineati) ===== */
.teacher-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-top:6px;
  min-height:32px; /* evita “salti” */
}

.badge-materia{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .6rem;
  border-radius:999px;
  font-weight:800;
  font-size:.72rem;
  line-height:1;
  white-space:nowrap;
  color:#fff;
  border:1px solid rgba(0,0,0,.08);
}

/* colori alternati */
.teacher-badges .badge-materia:nth-child(6n+1){ background:#0d6efd; }
.teacher-badges .badge-materia:nth-child(6n+2){ background:#198754; }
.teacher-badges .badge-materia:nth-child(6n+3){ background:#6f42c1; }
.teacher-badges .badge-materia:nth-child(6n+4){ background:#fd7e14; }
.teacher-badges .badge-materia:nth-child(6n+5){ background:#dc3545; }
.teacher-badges .badge-materia:nth-child(6n+6){ background:#0dcaf0; }


