@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700&display=swap');

@font-face {
  font-family: "JuniorDisplay";
  src: url("fonts/NeueMetanaNext-SemiBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #1C1024;
  --cream: #F1ECFF;
  --white: #FFFFFF;
  --orange: #EF8054;
  --pink: #D94D9D;
  --violet: #8F60A8;
  --turquoise: #5CC8DC;
  --yellow: #DDE57F;
  --soft-orange: #FFF4E8;
  --soft-turquoise: #EAFBFF;
  --soft-pink: #FFF0F8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  height: 92px;
  padding: 0 80px;
  background: rgba(18, 13, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 50px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.menu a[aria-current="page"],
.menu a:hover {
  color: var(--orange);
}

/* PAGINA DOCENTI */

.teachers-test {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 77, 157, 0.24), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(92, 200, 220, 0.28), transparent 26%),
    radial-gradient(circle at 72% 88%, rgba(239, 128, 84, 0.18), transparent 28%),
    var(--cream);
}

/* HERO DOCENTI */

.teachers-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: var(--dark);
}

.teachers-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(18%) saturate(1.18) contrast(1.04) brightness(1.02);
  z-index: 0;
  transform: scale(1.02);
}

.teachers-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(217, 77, 157, 0.18), transparent 25%),
    radial-gradient(circle at 82% 22%, rgba(92, 200, 220, 0.14), transparent 28%),
    radial-gradient(circle at 68% 82%, rgba(239, 128, 84, 0.12), transparent 30%),
    linear-gradient(
      to bottom,
      rgba(28, 16, 36, 0.04) 0%,
      rgba(28, 16, 36, 0.14) 42%,
      rgba(28, 16, 36, 0.58) 100%
    );
  pointer-events: none;
}

.teachers-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: start;
  gap: 24px;
  padding: 84px 56px 72px;
  margin-left: clamp(0px, 8vw, 128px);
  text-align: left;
}

.teachers-hero-right {
  justify-self: end;
  max-width: 520px;
}

.teachers-kicker {
  margin-bottom: 22px;
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.teachers-eyebrow {
  margin: 0 0 -8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.teachers-intro {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
}

.teachers-hero-subtitle {
  max-width: 760px;
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3.1vw, 46px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 14px 44px rgba(28, 16, 36, 0.62);
}

.teachers-manifesto {
  padding: 70px 56px 76px;
  background:
    radial-gradient(circle at 16% 18%, rgba(239, 128, 84, 0.14), transparent 30%),
    radial-gradient(circle at 86% 74%, rgba(92, 200, 220, 0.12), transparent 34%),
    linear-gradient(135deg, #120d24 0%, #0b1631 58%, #21142e 100%);
}

.teachers-manifesto-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(24px, 3.6vw, 48px);
  align-items: start;
}

.teachers-manifesto h2 {
  margin: 0;
  color: var(--white);
  font-family: "JuniorDisplay", Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.24),
    0 0 30px rgba(92, 200, 220, 0.20);
}

.teachers-manifesto-copy {
  min-width: 0;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 6px solid var(--turquoise);
}

.teachers-manifesto-copy p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
}

.teachers-manifesto-copy p + p {
  margin-top: 0;
}

.teachers-manifesto-lead {
  color: var(--white) !important;
  font: inherit !important;
  text-transform: none;
}

.teachers-page-subtitle {
  max-width: 620px;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.84);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 70px 56px 34px;
}

.header {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.header-label {
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 150px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  text-shadow: 0 18px 60px rgba(28, 16, 36, 0.55);
}

.teachers-title {
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 150px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  text-transform: uppercase;
  text-shadow: 0 18px 60px rgba(28, 16, 36, 0.55);
}

.teachers-hero-label {
  position: absolute;
  top: 28px;
  left: 56px;
  z-index: 4;
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 18px 60px rgba(28, 16, 36, 0.58);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-align: left;
  text-align-last: left;
}

.header-label span,
.teachers-title span {
  color: var(--orange);
}

.header-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 16px;
  max-width: 260px;
  line-height: 1.6;
}

.intro {
  position: relative;
  z-index: 3;
  padding: 0 56px 62px;
  display: flex;
  justify-content: flex-end;
}

.intro p {
  max-width: 520px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  font-style: italic;
}

/* GRID DOCENTI */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: rgba(28, 16, 36, 0.10);
  margin-top: 1px;
}

/* CARD */

.card {
  scroll-margin-top: 116px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  padding: 42px 38px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.55s ease forwards;
  min-height: 360px;
  transition:
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.card:hover {
  background: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(28, 16, 36, 0.14);
  filter: saturate(1.06);
  z-index: 5;
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}

.card:nth-child(2) {
  animation-delay: 0.12s;
}

.card:nth-child(3) {
  animation-delay: 0.19s;
}

.card:nth-child(4) {
  animation-delay: 0.26s;
}

.card:nth-child(5) {
  animation-delay: 0.33s;
}

.card:nth-child(6) {
  animation-delay: 0.40s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MISURE CARD */

.card--large {
  grid-column: span 7;
}

.card--small {
  grid-column: span 5;
}

.card--medium {
  grid-column: span 6;
}

.card--wide {
  grid-column: span 8;
}

.card--thin {
  grid-column: span 4;
}

/* COLORI CARD */

.card--orange .card-discipline {
  color: var(--orange);
}

.card--yellow .card-discipline {
  color: #A8B21D;
}

.card--turquoise .card-discipline {
  color: #239CB0;
}

.card--pink .card-discipline {
  color: var(--pink);
}

.card--violet .card-discipline {
  color: var(--violet);
}

.card--orange .avatar-bg {
  background: var(--orange);
}

.card--yellow .avatar-bg {
  background: var(--yellow);
}

.card--turquoise .avatar-bg {
  background: var(--turquoise);
}

.card--pink .avatar-bg {
  background: var(--pink);
}

.card--violet .avatar-bg {
  background: var(--violet);
}

/* AVATAR */

.card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(28, 16, 36, 0.14);
}

.card--large .card-avatar {
  width: 96px;
  height: 96px;
}

.card-avatar-small {
  width: 80px;
  height: 80px;
}

.avatar-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--dark);
}

.card--pink .avatar-bg,
.card--violet .avatar-bg {
  color: white;
}

/* TESTI CARD */

.card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  color: var(--dark);
}

.card--large .card-name {
  font-size: clamp(46px, 5vw, 70px);
}

.card-discipline {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.card-quote {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(28, 16, 36, 0.72);
  font-style: italic;
  position: relative;
  min-height: 74px;
}

.card-quote .word {
  display: inline-block;
  transition: none;
  will-change: transform, opacity;
  margin-right: 4px;
}

.card-activity {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(28, 16, 36, 0.44);
}

.card-activity span {
  color: rgba(28, 16, 36, 0.68);
}

/* CARD COMPLESSE */

.card--large .card-inner,
.card--wide .card-inner {
  display: flex;
  gap: 38px;
  align-items: flex-start;
}

.card--large .card-content,
.card--wide .card-content {
  flex: 1;
}

/* CERCHIO COLORE IN HOVER */

.card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  z-index: 0;
}

.card:hover::after {
  opacity: 0.18;
  transform: scale(1);
}

.card--orange::after {
  background: var(--orange);
}

.card--yellow::after {
  background: var(--yellow);
}

.card--turquoise::after {
  background: var(--turquoise);
}

.card--pink::after {
  background: var(--pink);
}

.card--violet::after {
  background: var(--violet);
}

.card > * {
  position: relative;
  z-index: 2;
}

/* CARD +4 */

.more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: white;
}

.more-card-inner {
  text-align: center;
}

.more-card-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 68px;
  color: var(--yellow);
  line-height: 0.9;
}

.more-card-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin-top: 12px;
}

/* CTA */

.cta-row {
  padding: 70px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.cta-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  color: rgba(28, 16, 36, 0.42);
  letter-spacing: 1px;
}

.cta-btn {
  display: inline-block;
  padding: 18px 42px;
  background: var(--orange);
  color: var(--dark);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.cta-btn:hover {
  background: var(--yellow);
  transform: translateY(-3px);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .site-header {
    height: 76px;
    padding: 0 24px;
    align-items: center;
    flex-direction: row;
  }

  .menu {
    display: none;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 42px;
  }

  .teachers-hero {
    min-height: 72vh;
  }

  .teachers-hero-content {
    margin-left: 0;
    padding: 96px 24px 54px;
  }

  .teachers-hero-image {
    object-position: center;
  }

  .hero-content {
    padding: 54px 24px 28px;
  }

  .header {
    display: block;
  }

  .header-label {
    font-size: clamp(74px, 22vw, 120px);
  }

  .header-sub {
    margin-top: 18px;
    padding-bottom: 0;
  }

  .intro {
    padding: 0 24px 46px;
    justify-content: flex-start;
  }

  .intro p {
    font-size: 15px;
  }

  .teachers-manifesto {
    padding: 56px 24px;
  }

  .teachers-manifesto-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .teachers-manifesto-copy {
    padding-left: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card--large,
  .card--small,
  .card--medium,
  .card--wide,
  .card--thin {
    grid-column: span 1;
    min-height: auto;
  }

  .card {
    padding: 34px 28px;
  }

  .card--large .card-inner,
  .card--wide .card-inner {
    display: block;
  }

  .card-name,
  .card--large .card-name {
    font-size: 42px;
  }

  .card-quote {
    min-height: 90px;
  }

  .cta-row {
    padding: 54px 24px;
    display: block;
  }

  .cta-btn {
    margin-top: 24px;
    width: 100%;
  }
}

/* DARK IMMERSIVE THEME */

:root {
  --cream: #0e1328;
  --dark: #1c1024;
}

body {
  background: #0e1328;
  color: #ffffff;
}

.teachers-hero {
  background: #1c1024;
  color: #ffffff;
}

.teachers-test {
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 77, 157, 0.18), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(92, 200, 220, 0.14), transparent 34%),
    linear-gradient(145deg, #0e1328 0%, #171033 50%, #090d1e 100%);
  color: #ffffff;
}

.header {
  background:
    radial-gradient(circle at 14% 16%, rgba(239, 128, 84, 0.14), transparent 32%),
    linear-gradient(135deg, #120d24 0%, #0b1631 56%, #21142e 100%);
}

.intro,
.grid,
.header-label,
.header-sub,
.card-name,
.card-discipline,
.card-quote,
.card-activity,
.more-card-label,
.cta-text {
  color: #ffffff;
}

.intro p,
.card-activity span,
.cta-row {
  color: rgba(255, 255, 255, 0.76);
}

.card,
.more-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.card::before {
  background: rgba(255, 255, 255, 0.12);
}

.card-activity {
  border-color: rgba(255, 255, 255, 0.14);
}

.cta-row {
  background:
    radial-gradient(circle at 86% 18%, rgba(92, 200, 220, 0.16), transparent 34%),
    linear-gradient(135deg, #15101c 0%, #0b2236 100%);
}

.cta-btn {
  color: #1c1024;
}

h1,
h2,
h3,
.card-name,
.teachers-hero-subtitle,
.cta-text {
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
.header-label,
.teachers-title,
.teachers-hero-subtitle,
.teachers-hero-label,
.card-name,
.cta-text {
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.card-name {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1;
}

.card--large .card-name {
  font-size: clamp(38px, 4vw, 54px);
}

.cta-text {
  font-size: clamp(24px, 3.2vw, 38px);
}

.teachers-title,
.header-label,
.teachers-hero-subtitle,
.teachers-hero-label {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p:not(.teachers-kicker):not(.teachers-hero-subtitle):not(.teachers-page-subtitle),
blockquote {
  text-align: justify;
  text-align-last: left;
}

h1,
h2,
h3,
.header-label,
.teachers-title,
.teachers-hero-subtitle,
.teachers-hero-label,
.card-name,
.cta-text {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
  padding: 18px;
  background: transparent;
}

.card,
.card--large,
.card--small,
.card--medium,
.card--wide,
.card--thin {
  grid-column: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(14, 19, 40, 0.08), rgba(14, 19, 40, 0.72)),
    var(--teacher-photo);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.42s ease,
    transform 0.6s ease;
}

.card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card::after {
  content: attr(data-teacher);
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 24px;
  z-index: 3;
  width: auto;
  height: auto;
  max-width: calc(100% - 44px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-family: "JuniorDisplay", 'Bebas Neue', sans-serif;
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(-50%, 10px) scale(1);
  transition:
    opacity 0.32s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card:hover {
  background: rgba(14, 19, 40, 0.54);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.36);
}

.card:hover .card-avatar,
.card:hover .card-name,
.card:hover .card-discipline,
.card:hover .card-activity {
  opacity: 0;
  transform: translateY(-10px);
}

.card > *,
.card-inner,
.card-content {
  position: relative;
  z-index: 2;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.card--large .card-inner,
.card--wide .card-inner {
  display: block;
}

.card-avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.card--large .card-avatar,
.card-avatar-small {
  width: 64px;
  height: 64px;
}

.card-name,
.card--large .card-name {
  font-size: clamp(26px, 2.25vw, 36px);
}

.card-discipline {
  font-size: 10px;
  margin-bottom: 14px;
}

.card-quote {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.52;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  text-align: justify;
  text-align-last: left;
}

.card-activity {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.card-activity span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.card:nth-child(1) {
  --teacher-photo: url("images/Ruocco gallery.png");
}

.card:nth-child(2) {
  --teacher-photo: url("images/luppi gallery.png");
}

.card:nth-child(3) {
  --teacher-photo: url("images/righetto gallery.png");
}

.card:nth-child(4) {
  --teacher-photo: url("images/danesin gallery.png");
}

.card:nth-child(5) {
  --teacher-photo: url("images/richeldi gallery.png");
}

.card:nth-child(6) {
  --teacher-photo: url("images/sinivia gallery.png");
}

.card:nth-child(7) {
  --teacher-photo: url("images/lopez gallery.png");
}

.card:nth-child(8) {
  --teacher-photo: url("images/isabellamoro.png");
}

.card:nth-child(9) {
  --teacher-photo: url("images/polesello gallery.png");
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .card,
  .card--large,
  .card--small,
  .card--medium,
  .card--wide,
  .card--thin {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 640px) {
  .teachers-hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-left: 0;
    padding: 126px 24px 42px;
  }

  .teachers-hero-label {
    top: 24px;
    left: 24px;
    font-size: clamp(46px, 18vw, 76px);
  }

  .teachers-hero-right {
    justify-self: start;
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .card,
  .card--large,
  .card--small,
  .card--medium,
  .card--wide,
  .card--thin {
    min-height: auto;
    aspect-ratio: auto;
  }
}

/* Cinearte neon hover */
.teachers-title,
.teachers-hero-subtitle,
h2 {
  --cinearte-glow-core: rgba(219, 229, 127, 0.96);
  --cinearte-glow-a: rgba(217, 77, 157, 0.72);
  --cinearte-glow-b: rgba(92, 200, 220, 0.62);
  --cinearte-glow-c: rgba(239, 128, 84, 0.50);
  cursor: default;
}

.teachers-title:hover,
.teachers-hero-subtitle:hover,
h2:hover {
  color: var(--white);
  text-shadow:
    0 0 7px var(--cinearte-glow-core),
    0 0 18px var(--cinearte-glow-a),
    0 0 34px var(--cinearte-glow-b),
    0 0 58px var(--cinearte-glow-c),
    0 0 78px rgba(143, 96, 168, 0.42);
}

/* CTA neon treatment */
.cta-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  outline: 4px solid rgba(92, 200, 220, 0.76);
  outline-offset: -10px;
  background:
    linear-gradient(135deg, var(--yellow), var(--turquoise));
  color: var(--dark);
  box-shadow:
    0 0 18px rgba(221, 229, 127, 0.48),
    0 18px 42px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    outline-color 0.3s ease;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: -65%;
  z-index: auto;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.44) 50%, transparent 66%);
  opacity: 0.6;
  transform: translateX(-24%) rotate(-8deg);
  transition:
    opacity 0.32s ease,
    transform 0.56s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover {
  background:
    linear-gradient(135deg, var(--yellow), var(--turquoise));
  color: var(--dark);
  transform: translateY(-3px) scale(1.035);
  outline-color: rgba(217, 77, 157, 0.84);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.34),
    0 0 30px rgba(221, 229, 127, 0.48),
    0 22px 54px rgba(0, 0, 0, 0.30);
}

.cta-btn:hover::before {
  opacity: 0.95;
  transform: translateX(18%) rotate(8deg);
}

/* DOCENTI RESPONSIVE REFINEMENTS */

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
  }

  .site-header {
    height: 84px;
    padding: 0 32px;
    flex-direction: row;
  }

  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
    display: block;
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    z-index: 40;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px;
    background: rgba(18, 13, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }

  .site-header.is-menu-open .menu {
    display: grid;
  }

  .menu a {
    min-height: 46px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .menu a:last-child {
    border-bottom: 0;
  }

  .teachers-hero {
    min-height: min(780px, calc(100svh - 84px));
  }

  .teachers-hero-content,
  .teachers-manifesto-inner,
  .grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .logo img {
    height: 40px;
  }

  .menu {
    left: 14px;
    right: 14px;
  }

  .teachers-hero {
    min-height: 72svh;
  }

  .teachers-hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 86px 18px 44px;
  }

  .teachers-title {
    font-size: clamp(58px, 20vw, 98px);
    line-height: 0.86;
    overflow-wrap: normal;
    word-break: normal;
  }

  .teachers-hero-subtitle {
    max-width: calc(100vw - 36px);
    font-size: clamp(25px, 8vw, 38px);
    line-height: 0.98;
  }

  .teachers-manifesto {
    padding: 48px 18px;
  }

  .teachers-page-subtitle,
  .teachers-intro {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.5;
  }

  .teachers-manifesto h2 {
    font-size: clamp(21px, 6vw, 30px);
    text-align: left;
  }

  .teachers-manifesto-copy {
    padding-left: 18px;
    border-left-width: 4px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .card,
  .card--large,
  .card--small,
  .card--medium,
  .card--wide,
  .card--thin {
    grid-column: auto;
    min-height: auto;
    aspect-ratio: auto;
    padding: 22px;
  }

  .card-name {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 0.98;
  }

  .card-quote,
  .card-activity {
    font-size: 15px;
    line-height: 1.42;
  }

  .cta-btn {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .teachers-title {
    font-size: clamp(52px, 22vw, 78px);
  }

  .teachers-hero-subtitle {
    font-size: clamp(22px, 8.5vw, 32px);
  }

  .card {
    padding: 20px;
  }

  .card-name {
    font-size: clamp(26px, 10vw, 34px);
  }
}

/* HAMBURGER CONSISTENCY */

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    background: rgba(14, 19, 40, 0.94);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .menu {
    background: rgba(14, 19, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }

  .menu a {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }
}

/* MOBILE HERO TITLE SAFETY */

@media (max-width: 768px) {
  .teachers-hero-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .teachers-title,
  .teachers-hero-subtitle {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .teachers-title {
    font-size: clamp(42px, 14vw, 62px);
    line-height: 0.88;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .teachers-hero-subtitle {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1;
    text-align: left;
    text-align-last: left;
  }
}

@media (max-width: 480px) {
  .teachers-title {
    font-size: clamp(36px, 13vw, 50px);
  }

  .teachers-hero-subtitle {
    font-size: clamp(20px, 6.4vw, 28px);
  }
}

/* Teacher card order */
#gaetano-ruocco-guadagno {
  order: 1;
  --teacher-photo: url("images/Ruocco gallery.png");
}

#susi-danesin {
  order: 2;
  --teacher-photo: url("images/danesin gallery.png");
}

#sara-righetto {
  order: 3;
  --teacher-photo: url("images/righetto gallery.png");
}

#isabella-moro {
  order: 4;
  --teacher-photo: url("images/isabellamoro.png");
}

#adriano-sinivia {
  order: 5;
  --teacher-photo: url("images/sinivia gallery.png");
}

#chiara-luppi {
  order: 6;
  --teacher-photo: url("images/luppi gallery.png");
}

#sendy-lopez {
  order: 7;
  --teacher-photo: url("images/lopez gallery.png");
}

#nicolo-polesello {
  order: 8;
  --teacher-photo: url("images/polesello gallery.png");
}

#marta-richeldi {
  order: 9;
  --teacher-photo: url("images/richeldi gallery.png");
}

/* Text-only yellow harmonization */
.card--yellow .card-discipline,
.more-card-number,
.more-card-label {
  color: #DBE57F !important;
}
