
/* =========================================================
   PAGINA DEL MAESTRO - BLU NOTTE E ORO
   ========================================================= */

.pagina-maestri {
  --maestro-blu: #172b45;
  --maestro-blu-profondo: #0d1c30;
  --maestro-oro: #c5a46d;
  --maestro-oro-chiaro: #e2cc9f;
  --maestro-crema: #f7f5f0;
  --maestro-testo: #4d5968;

  color: var(--maestro-testo);
  overflow-x: clip;
}

.pagina-maestri h1,
.pagina-maestri h2,
.pagina-maestri h3 {
  color: var(--maestro-blu);
}

.pagina-maestri p {
  line-height: 1.8;
}

.pagina-maestri .section-padding {
  padding: 100px 0;
}

/* HERO */

.maestro-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 590px;
  padding: 145px 0 85px;
  background:
    linear-gradient(90deg,
      rgba(8, 20, 36, 0.94) 0%,
      rgba(13, 28, 48, 0.8) 60%,
      rgba(13, 28, 48, 0.45) 100%),
    url("../image/front-image.jpg") center 45% / cover no-repeat;
}

.maestro-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 28, 48, 0.35), transparent);
  pointer-events: none;
}

.maestro-hero-content {
  position: relative;
  z-index: 1;
}

.maestro-eyebrow,
.maestro-cta-kicker {
  color: var(--maestro-oro-chiaro);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.maestro-hero h1 {
  margin: 24px 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.maestro-hero h1 span {
  color: var(--maestro-oro-chiaro);
}

.maestro-hero p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.btn-maestro-primary,
.btn-maestro-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn-maestro-primary {
  border: 1px solid var(--maestro-oro);
  background: var(--maestro-oro);
  color: var(--maestro-blu-profondo);
}

.btn-maestro-primary:hover {
  transform: translateY(-2px);
  border-color: var(--maestro-oro-chiaro);
  background: var(--maestro-oro-chiaro);
  color: var(--maestro-blu-profondo);
}

.btn-maestro-light {
  border: 1px solid var(--maestro-oro-chiaro);
  background: var(--maestro-oro-chiaro);
  color: var(--maestro-blu-profondo);
}

.btn-maestro-light:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #fff;
  color: var(--maestro-blu);
}

/* ETICHETTE E TITOLI */

.maestro-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #98763d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maestro-section-label > span {
  width: 30px;
  height: 2px;
  background: var(--maestro-oro);
}

.maestro-biografia h2,
.maestro-section-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.maestro-biografia h2 span,
.maestro-section-heading h2 span {
  color: #a98548;
}

.maestro-section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.maestro-section-heading .maestro-section-label {
  justify-content: center;
}

/* RITRATTO */

.maestro-portrait {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%,
      rgba(197, 164, 109, 0.2), transparent 55%),
    var(--maestro-blu);
  box-shadow: 0 18px 45px rgba(23, 43, 69, 0.13);
}

.maestro-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.maestro-portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 480px;
  color: var(--maestro-oro-chiaro);
}

.maestro-portrait-placeholder i {
  font-size: 4rem;
}

.maestro-portrait-placeholder span {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maestro-portrait-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 50px 25px 25px;
  background: linear-gradient(transparent, rgba(8, 20, 36, 0.92));
  color: #fff;
}

.maestro-portrait-caption span {
  color: var(--maestro-oro-chiaro);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maestro-portrait-caption strong {
  font-size: 1.6rem;
}

/* RUOLO */

.maestro-ruolo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border-left: 3px solid var(--maestro-oro);
  background: var(--maestro-crema);
}

.maestro-ruolo > i {
  color: #a98548;
  font-size: 1.7rem;
}

.maestro-ruolo strong,
.maestro-ruolo span {
  display: block;
}

.maestro-ruolo strong {
  margin-bottom: 5px;
  color: var(--maestro-blu);
}

.maestro-ruolo span {
  font-size: 0.94rem;
  line-height: 1.65;
}

/* DIREZIONE MUSICALE */

.maestro-direzione {
  background: var(--maestro-crema);
}

.maestro-value-card {
  height: 100%;
  padding: 34px 28px;
  border: 1px solid rgba(23, 43, 69, 0.08);
  border-radius: 15px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.maestro-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(23, 43, 69, 0.08);
}

.maestro-value-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 13px;
  background: var(--maestro-blu);
  color: var(--maestro-oro-chiaro);
  font-size: 1.65rem;
}

.maestro-value-card h3 {
  margin-bottom: 13px;
  font-size: 1.35rem;
  font-weight: 800;
}

.maestro-value-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* SCUOLA DI MUSICA */

.maestro-scuola {
  background: #fff;
}

.maestro-scuola-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 55px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--maestro-blu);
}

.maestro-scuola-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.maestro-scuola-kicker {
  color: var(--maestro-oro-chiaro);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.maestro-scuola h2 {
  margin: 14px 0 20px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.maestro-scuola p {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.83);
}

.maestro-scuola-decoration {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  border: 1px solid rgba(197, 164, 109, 0.32);
  border-radius: 50%;
}

.maestro-scuola-decoration::before {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(197, 164, 109, 0.22);
  border-radius: 50%;
  content: "";
}

.maestro-scuola-decoration i {
  position: absolute;
  color: rgba(226, 204, 159, 0.5);
}

.maestro-scuola-decoration i:first-child {
  top: 42px;
  left: 35px;
  font-size: 4rem;
}

.maestro-scuola-decoration i:last-child {
  right: 38px;
  bottom: 35px;
  font-size: 3rem;
}

/* CTA */

.maestro-cta {
  padding: 85px 0;
  background:
    radial-gradient(circle at 90% 10%,
      rgba(197, 164, 109, 0.18), transparent 30%),
    var(--maestro-blu-profondo);
}

.maestro-cta-kicker {
  display: block;
  margin-bottom: 18px;
}

.maestro-cta h2 {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.maestro-cta p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  .pagina-maestri .section-padding {
    padding: 75px 0;
  }

  .maestro-portrait,
  .maestro-portrait-placeholder {
    min-height: 400px;
  }

  .maestro-scuola-panel {
    padding: 40px;
  }

  .maestro-scuola-decoration {
    right: -80px;
    opacity: 0.5;
  }

  .maestro-scuola-content {
    max-width: 600px;
  }
}

@media (max-width: 575.98px) {
  .pagina-maestri .section-padding {
    padding: 60px 0;
  }

  .maestro-hero {
    min-height: 520px;
    padding: 125px 0 65px;
    background-position: 60% center;
  }

  .maestro-hero h1 {
    font-size: 2.8rem;
  }

  .maestro-hero p {
    font-size: 1rem;
  }

  .maestro-portrait,
  .maestro-portrait-placeholder {
    min-height: 360px;
  }

  .maestro-value-card {
    padding: 28px 24px;
  }

  .maestro-scuola-panel {
    padding: 30px 24px;
  }

  .maestro-scuola-decoration {
    right: -145px;
    opacity: 0.25;
  }

  .maestro-cta {
    padding: 65px 0;
  }

  .maestro-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagina-maestri *,
  .pagina-maestri *::before,
  .pagina-maestri *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =========================================================
   VICE MAESTRO
   Layout specchiato rispetto alla sezione del maestro
   ========================================================= */

.maestro-vice {
  background: var(--maestro-crema);
}

.maestro-vice .maestro-vice-portrait {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(197, 164, 109, 0.2),
      transparent 55%
    ),
    var(--maestro-blu);
}

.maestro-vice .maestro-portrait-placeholder {
  min-height: 480px;
}

@media (max-width: 991.98px) {
  .maestro-vice .maestro-portrait-placeholder {
    min-height: 400px;
  }
}

@media (max-width: 575.98px) {
  .maestro-vice .maestro-portrait-placeholder {
    min-height: 360px;
  }
}
